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 \"triangles_and_their_sides\" (\n \"number\" real,\n \"name\" text,\n \"vertices\" text,\n \"hypotenuse_0_c\" text,\n \"vertical_0_b\" text,\n \"horizontal_0_a\" text\n);\n\nQuestion: Name the horizontal 0 for \u901a tong" }, { "role": "assistant", "content": "SELECT \"horizontal_0_a\" FROM \"triangles_and_their_sides\" WHERE \"name\"='\u901a TONG';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"triangles_and_their_sides\" (\n \"number\" real,\n \"name\" text,\n \"vertices\" text,\n \"hypotenuse_0_c\" text,\n \"vertical_0_b\" text,\n \"horizontal_0_a\" text\n);\n\nQuestion: Name the horizontal 0 for \u660e\u5f26\uff08ry\u65e5\u6708\uff09" }, { "role": "assistant", "content": "SELECT \"horizontal_0_a\" FROM \"triangles_and_their_sides\" WHERE \"hypotenuse_0_c\"='\u660e\u5f26\uff08RY\u65e5\u6708\uff09';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"triangles_and_their_sides\" (\n \"number\" real,\n \"name\" text,\n \"vertices\" text,\n \"hypotenuse_0_c\" text,\n \"vertical_0_b\" text,\n \"horizontal_0_a\" text\n);\n\nQuestion: Name the vertical for \u660e\u52fe\uff08ys\u6708\u5357\uff09" }, { "role": "assistant", "content": "SELECT \"vertical_0_b\" FROM \"triangles_and_their_sides\" WHERE \"horizontal_0_a\"='\u660e\u52fe\uff08YS\u6708\u5357\uff09';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"triangles_and_their_sides\" (\n \"number\" real,\n \"name\" text,\n \"vertices\" text,\n \"hypotenuse_0_c\" text,\n \"vertical_0_b\" text,\n \"horizontal_0_a\" text\n);\n\nQuestion: Name the horizontal number for number 10" }, { "role": "assistant", "content": "SELECT COUNT(\"horizontal_0_a\") FROM \"triangles_and_their_sides\" WHERE \"number\"=10;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25518547_3\" (\n \"pick_num\" real,\n \"mls_team\" text,\n \"player\" text,\n \"position\" text,\n \"affiliation\" text\n);\n\nQuestion: How many teams drafted players from the University of Maryland?" }, { "role": "assistant", "content": "SELECT COUNT(\"mls_team\") FROM \"table1_25518547_3\" WHERE \"affiliation\"='University of Maryland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25518547_3\" (\n \"pick_num\" real,\n \"mls_team\" text,\n \"player\" text,\n \"position\" text,\n \"affiliation\" text\n);\n\nQuestion: What MLS team drafted samuel appiah?" }, { "role": "assistant", "content": "SELECT \"mls_team\" FROM \"table1_25518547_3\" WHERE \"player\"='Samuel Appiah';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25518547_3\" (\n \"pick_num\" real,\n \"mls_team\" text,\n \"player\" text,\n \"position\" text,\n \"affiliation\" text\n);\n\nQuestion: What player was drafted by the philadelphia union?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"table1_25518547_3\" WHERE \"mls_team\"='Philadelphia Union';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" text\n);\n\nQuestion: This institution nicknamed Fightin' engineers was founded on what year?" }, { "role": "assistant", "content": "SELECT \"founded\" FROM \"current_members\" WHERE \"nickname\"='Fightin'' Engineers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" text\n);\n\nQuestion: How many inputs joined this institution located in Franklin, Indiana?" }, { "role": "assistant", "content": "SELECT COUNT(\"joined\") FROM \"current_members\" WHERE \"location\"='Franklin, Indiana';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" text\n);\n\nQuestion: How many times this institution was founded that was nicknamed Beavers?" }, { "role": "assistant", "content": "SELECT COUNT(\"founded\") FROM \"current_members\" WHERE \"nickname\"='Beavers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" text\n);\n\nQuestion: How many joined this Private/Church of God institution?" }, { "role": "assistant", "content": "SELECT \"joined\" FROM \"current_members\" WHERE \"type\"='Private/Church of God';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" text\n);\n\nQuestion: How many joined Manchester University?" }, { "role": "assistant", "content": "SELECT \"joined\" FROM \"current_members\" WHERE \"institution\"='Manchester University';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25531112_2\" (\n \"rd\" text,\n \"event\" text,\n \"circuit\" text,\n \"city_state\" text,\n \"date\" text,\n \"championship\" text,\n \"challenge\" text,\n \"production\" text\n);\n\nQuestion: What circuit was the Clipsal 500 on?" }, { "role": "assistant", "content": "SELECT \"circuit\" FROM \"table1_25531112_2\" WHERE \"event\"='Clipsal 500';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25531112_2\" (\n \"rd\" text,\n \"event\" text,\n \"circuit\" text,\n \"city_state\" text,\n \"date\" text,\n \"championship\" text,\n \"challenge\" text,\n \"production\" text\n);\n\nQuestion: Who made the challenge on the Albert Park Grand Prix Circuit?" }, { "role": "assistant", "content": "SELECT \"challenge\" FROM \"table1_25531112_2\" WHERE \"circuit\"='Albert Park Grand Prix Circuit';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25531112_2\" (\n \"rd\" text,\n \"event\" text,\n \"circuit\" text,\n \"city_state\" text,\n \"date\" text,\n \"championship\" text,\n \"challenge\" text,\n \"production\" text\n);\n\nQuestion: In what round was the circuit Eastern Creek Raceway?" }, { "role": "assistant", "content": "SELECT \"rd\" FROM \"table1_25531112_2\" WHERE \"circuit\"='Eastern Creek Raceway';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25531112_2\" (\n \"rd\" text,\n \"event\" text,\n \"circuit\" text,\n \"city_state\" text,\n \"date\" text,\n \"championship\" text,\n \"challenge\" text,\n \"production\" text\n);\n\nQuestion: Who made the challenge in the Australian Grand Prix?" }, { "role": "assistant", "content": "SELECT \"challenge\" FROM \"table1_25531112_2\" WHERE \"event\"='Australian Grand Prix';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"personnel_and_kits\" (\n \"team\" text,\n \"manager\" text,\n \"captain\" text,\n \"kit_manufacturer\" text,\n \"shirt_sponsor\" text,\n \"average_squad_age\" text\n);\n\nQuestion: Who is the shirt sponsor of the team with an average squad age of 25.46?" }, { "role": "assistant", "content": "SELECT \"shirt_sponsor\" FROM \"personnel_and_kits\" WHERE \"average_squad_age\"='25.46';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"personnel_and_kits\" (\n \"team\" text,\n \"manager\" text,\n \"captain\" text,\n \"kit_manufacturer\" text,\n \"shirt_sponsor\" text,\n \"average_squad_age\" text\n);\n\nQuestion: Who is the shirt sponsor for FC Bunyodkor?" }, { "role": "assistant", "content": "SELECT \"shirt_sponsor\" FROM \"personnel_and_kits\" WHERE \"team\"='FC Bunyodkor';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"personnel_and_kits\" (\n \"team\" text,\n \"manager\" text,\n \"captain\" text,\n \"kit_manufacturer\" text,\n \"shirt_sponsor\" text,\n \"average_squad_age\" text\n);\n\nQuestion: What is the average squad age of the team whose shirt sponsor is Sho'rtan Gaz Mahsulot and whose kit manufacturer is Adidas? " }, { "role": "assistant", "content": "SELECT \"average_squad_age\" FROM \"personnel_and_kits\" WHERE \"shirt_sponsor\"='Sho''rtan Gaz Mahsulot' AND \"kit_manufacturer\"='Adidas';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"personnel_and_kits\" (\n \"team\" text,\n \"manager\" text,\n \"captain\" text,\n \"kit_manufacturer\" text,\n \"shirt_sponsor\" text,\n \"average_squad_age\" text\n);\n\nQuestion: Who is the captain of the team whose kit manufacturer is Nike? " }, { "role": "assistant", "content": "SELECT \"captain\" FROM \"personnel_and_kits\" WHERE \"kit_manufacturer\"='Nike';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"personnel_and_kits\" (\n \"team\" text,\n \"manager\" text,\n \"captain\" text,\n \"kit_manufacturer\" text,\n \"shirt_sponsor\" text,\n \"average_squad_age\" text\n);\n\nQuestion: Who is the manager of FK Andijan? " }, { "role": "assistant", "content": "SELECT \"manager\" FROM \"personnel_and_kits\" WHERE \"team\"='FK Andijan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" real,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: Name the year for open cup did not qualify and national final" }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"year_by_year\" WHERE \"open_cup\"='Did not qualify' AND \"playoffs\"='National Final';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" real,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: Name the league for 2000" }, { "role": "assistant", "content": "SELECT \"league\" FROM \"year_by_year\" WHERE \"year\"=2000;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" real,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: Name the league for conference finals" }, { "role": "assistant", "content": "SELECT \"league\" FROM \"year_by_year\" WHERE \"playoffs\"='Conference Finals';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25547943_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: Who directed the episode that was written by Bill Lawrence? " }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_25547943_1\" WHERE \"written_by\"='Bill Lawrence';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series\" (\n \"series\" real,\n \"season\" text,\n \"played_in\" text,\n \"first_match\" text,\n \"tests_played_sched\" text,\n \"tests_won_by_australia\" real,\n \"tests_won_by_england\" real,\n \"tests_drawn\" real,\n \"series_result\" text,\n \"holder_at_series_end\" text\n);\n\nQuestion: Name the series result for season being 1998" }, { "role": "assistant", "content": "SELECT \"series_result\" FROM \"series\" WHERE \"season\"='1998';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series\" (\n \"series\" real,\n \"season\" text,\n \"played_in\" text,\n \"first_match\" text,\n \"tests_played_sched\" text,\n \"tests_won_by_australia\" real,\n \"tests_won_by_england\" real,\n \"tests_drawn\" real,\n \"series_result\" text,\n \"holder_at_series_end\" text\n);\n\nQuestion: Name the total number of tests won by australia for series 10" }, { "role": "assistant", "content": "SELECT COUNT(\"tests_won_by_australia\") FROM \"series\" WHERE \"series\"=10;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"combination_classification\" text,\n \"team_classification\" text\n);\n\nQuestion: How many winners were there when the mountains classification was not awarded? " }, { "role": "assistant", "content": "SELECT COUNT(\"winner\") FROM \"classification_leadership\" WHERE \"mountains_classification\"='not awarded';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"combination_classification\" text,\n \"team_classification\" text\n);\n\nQuestion: Who was awarded mountains classifications when Mikel Nieve was the winner? " }, { "role": "assistant", "content": "SELECT \"mountains_classification\" FROM \"classification_leadership\" WHERE \"winner\"='Mikel Nieve';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"combination_classification\" text,\n \"team_classification\" text\n);\n\nQuestion: Who was awarded mountains classification when Alessandro petacchi won? " }, { "role": "assistant", "content": "SELECT \"mountains_classification\" FROM \"classification_leadership\" WHERE \"winner\"='Alessandro Petacchi';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25548213_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What is the production code for he episode titled \"my best friend's baby's baby and my baby's baby\"" }, { "role": "assistant", "content": "SELECT MIN(\"production_code\") FROM \"table1_25548213_1\" WHERE \"title\"='\\\"My Best Friend''s Baby''s Baby and My Baby''s Baby\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25548213_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_million\" text\n);\n\nQuestion: List the number of episodes directed by linda mendoza." }, { "role": "assistant", "content": "SELECT COUNT(\"production_code\") FROM \"table1_25548213_1\" WHERE \"directed_by\"='Linda Mendoza';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25548213_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many million viewers watch the episode that kevin biegel & aseem batra wrote?" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_million\" FROM \"table1_25548213_1\" WHERE \"written_by\"='Kevin Biegel & Aseem Batra';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25548213_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What is the series number that had 5.31 million viewers?" }, { "role": "assistant", "content": "SELECT MAX(\"series_num\") FROM \"table1_25548213_1\" WHERE \"u_s_viewers_million\"='5.31';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25548213_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What was the name of the episode that bill lawrence directed?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_25548213_1\" WHERE \"directed_by\"='Bill Lawrence';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25548213_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What was the name of the episode that had 4.65 million viewers?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_25548213_1\" WHERE \"u_s_viewers_million\"='4.65';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25548505_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What is the original air date of the episode titled \"My Hard Labor\"?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_25548505_1\" WHERE \"title\"='\\\"My Hard Labor\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25548505_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What is the production code of the episode directed by Michael McDonald?" }, { "role": "assistant", "content": "SELECT \"production_code\" FROM \"table1_25548505_1\" WHERE \"directed_by\"='Michael McDonald';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25548505_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What was the original air date of the episode that had 5.30 million U.S. viewers? " }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_25548505_1\" WHERE \"u_s_viewers_millions\"='5.30';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25548505_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What is the title of the episode directed by Linda Mendoza?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_25548505_1\" WHERE \"directed_by\"='Linda Mendoza';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"political\" (\n \"city_municipality\" text,\n \"type\" text,\n \"no_of_barangays\" real,\n \"population_2010\" real,\n \"area_km\" text,\n \"pop_density_per_km\" real,\n \"income_class\" text,\n \"zip_code\" real\n);\n\nQuestion: What are all the political types where area is 155.77?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"political\" WHERE \"area_km\"='155.77';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"political\" (\n \"city_municipality\" text,\n \"type\" text,\n \"no_of_barangays\" real,\n \"population_2010\" real,\n \"area_km\" text,\n \"pop_density_per_km\" real,\n \"income_class\" text,\n \"zip_code\" real\n);\n\nQuestion: What is the minimum number of barangays where the type is component city?" }, { "role": "assistant", "content": "SELECT MIN(\"no_of_barangays\") FROM \"political\" WHERE \"type\"='Component City';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"political\" (\n \"city_municipality\" text,\n \"type\" text,\n \"no_of_barangays\" real,\n \"population_2010\" real,\n \"area_km\" text,\n \"pop_density_per_km\" real,\n \"income_class\" text,\n \"zip_code\" real\n);\n\nQuestion: What city/municipality has area of 176.40?" }, { "role": "assistant", "content": "SELECT \"city_municipality\" FROM \"political\" WHERE \"area_km\"='176.40';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"political\" (\n \"city_municipality\" text,\n \"type\" text,\n \"no_of_barangays\" real,\n \"population_2010\" real,\n \"area_km\" text,\n \"pop_density_per_km\" real,\n \"income_class\" text,\n \"zip_code\" real\n);\n\nQuestion: What is the area where population in 2010 is 38062?" }, { "role": "assistant", "content": "SELECT \"area_km\" FROM \"political\" WHERE \"population_2010\"=38062;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"political\" (\n \"city_municipality\" text,\n \"type\" text,\n \"no_of_barangays\" real,\n \"population_2010\" real,\n \"area_km\" text,\n \"pop_density_per_km\" real,\n \"income_class\" text,\n \"zip_code\" real\n);\n\nQuestion: What is the population density where area is 48.67?" }, { "role": "assistant", "content": "SELECT COUNT(\"pop_density_per_km\") FROM \"political\" WHERE \"area_km\"='48.67';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"average_chart\" (\n \"rank_by_average\" real,\n \"competition_finish\" real,\n \"couple\" text,\n \"total\" real,\n \"number_of_dances\" real,\n \"average\" text\n);\n\nQuestion: What couple averaged 21.0?" }, { "role": "assistant", "content": "SELECT \"couple\" FROM \"average_chart\" WHERE \"average\"='21.0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"average_chart\" (\n \"rank_by_average\" real,\n \"competition_finish\" real,\n \"couple\" text,\n \"total\" real,\n \"number_of_dances\" real,\n \"average\" text\n);\n\nQuestion: What was the number of dances for the competition finish of 3?" }, { "role": "assistant", "content": "SELECT MAX(\"number_of_dances\") FROM \"average_chart\" WHERE \"competition_finish\"=3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: What was his minimum number wins in a single year?" }, { "role": "assistant", "content": "SELECT MIN(\"wins\") FROM \"career_summary\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: In which series was his position NC\u2020 ?" }, { "role": "assistant", "content": "SELECT \"series\" FROM \"career_summary\" WHERE \"position\"='NC\u2020';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: What was his position when he garnered 38 points?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"career_summary\" WHERE \"points\"='38';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"handicap_results_top_10\" (\n \"position\" real,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"corrected_time_d_hh_mm_ss\" text\n);\n\nQuestion: What was the sail number of Two True?" }, { "role": "assistant", "content": "SELECT \"sail_number\" FROM \"handicap_results_top_10\" WHERE \"yacht\"='Two True';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"handicap_results_top_10\" (\n \"position\" real,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"corrected_time_d_hh_mm_ss\" text\n);\n\nQuestion: What was Swish's corrected time?" }, { "role": "assistant", "content": "SELECT \"corrected_time_d_hh_mm_ss\" FROM \"handicap_results_top_10\" WHERE \"yacht\"='Swish';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"handicap_results_top_10\" (\n \"position\" real,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"corrected_time_d_hh_mm_ss\" text\n);\n\nQuestion: What yacht did Andrew Saies sail on?" }, { "role": "assistant", "content": "SELECT \"yacht\" FROM \"handicap_results_top_10\" WHERE \"skipper\"='Andrew Saies';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"race_number\" text,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: What was the LOA when the elapsed time was 3:06:41:37?" }, { "role": "assistant", "content": "SELECT \"loa_metres\" FROM \"line_honours_results_top_10\" WHERE \"elapsed_time_d_hh_mm_ss\"='3:06:41:37';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"race_number\" text,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: What was the LOA for the Simonis Voogd Maxi? " }, { "role": "assistant", "content": "SELECT \"loa_metres\" FROM \"line_honours_results_top_10\" WHERE \"yacht_type\"='Simonis Voogd Maxi';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"race_number\" text,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: In what position did skipper Mark Richards place? " }, { "role": "assistant", "content": "SELECT \"position\" FROM \"line_honours_results_top_10\" WHERE \"skipper\"='Mark Richards';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"race_number\" text,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: What is the yacht type of Icap Leopard? " }, { "role": "assistant", "content": "SELECT \"yacht_type\" FROM \"line_honours_results_top_10\" WHERE \"yacht\"='ICAP Leopard';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"race_number\" text,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: How many elapsed times were posted for the yacht with 27.38 LOA meters? " }, { "role": "assistant", "content": "SELECT COUNT(\"elapsed_time_d_hh_mm_ss\") FROM \"line_honours_results_top_10\" WHERE \"loa_metres\"='27.38';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"race_number\" text,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: what skipper has the sail number aus60000? " }, { "role": "assistant", "content": "SELECT \"skipper\" FROM \"line_honours_results_top_10\" WHERE \"sail_number\"='AUS60000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"mountains_classification\" text,\n \"sprint_classification\" text,\n \"young_rider_classification\" text,\n \"team_classification\" text,\n \"aggressive_rider\" text\n);\n\nQuestion: Who was the aggressive rider when the winner was luis le\u00f3n s\u00e1nchez?" }, { "role": "assistant", "content": "SELECT \"aggressive_rider\" FROM \"classification_leadership\" WHERE \"winner\"='Luis Le\u00f3n S\u00e1nchez';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"mountains_classification\" text,\n \"sprint_classification\" text,\n \"young_rider_classification\" text,\n \"team_classification\" text,\n \"aggressive_rider\" text\n);\n\nQuestion: Who was the aggressive rider when the sprint classification was andr\u00e9 greipel and mountains classification was timothy roe?" }, { "role": "assistant", "content": "SELECT \"aggressive_rider\" FROM \"classification_leadership\" WHERE \"sprint_classification\"='Andr\u00e9 Greipel' AND \"mountains_classification\"='Timothy Roe';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"mountains_classification\" text,\n \"sprint_classification\" text,\n \"young_rider_classification\" text,\n \"team_classification\" text,\n \"aggressive_rider\" text\n);\n\nQuestion: What was the stage when the winner was luis le\u00f3n s\u00e1nchez?" }, { "role": "assistant", "content": "SELECT \"stage\" FROM \"classification_leadership\" WHERE \"winner\"='Luis Le\u00f3n S\u00e1nchez';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"mountains_classification\" text,\n \"sprint_classification\" text,\n \"young_rider_classification\" text,\n \"team_classification\" text,\n \"aggressive_rider\" text\n);\n\nQuestion: What was the young rider classification when manuel cardoso was the winner?" }, { "role": "assistant", "content": "SELECT \"young_rider_classification\" FROM \"classification_leadership\" WHERE \"winner\"='Manuel Cardoso';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"mountains_classification\" text,\n \"sprint_classification\" text,\n \"young_rider_classification\" text,\n \"team_classification\" text,\n \"aggressive_rider\" text\n);\n\nQuestion: How many winners were there for stage 5?" }, { "role": "assistant", "content": "SELECT COUNT(\"winner\") FROM \"classification_leadership\" WHERE \"stage\"=5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"subdivisions\" (\n \"municipality\" text,\n \"no_of_barangays\" real,\n \"area_hectares\" real,\n \"population_2007\" real,\n \"population_2010\" real,\n \"pop_density_per_km_2\" text\n);\n\nQuestion: What is the 2007 population of Gigmoto?" }, { "role": "assistant", "content": "SELECT COUNT(\"population_2007\") FROM \"subdivisions\" WHERE \"municipality\"='Gigmoto';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"subdivisions\" (\n \"municipality\" text,\n \"no_of_barangays\" real,\n \"area_hectares\" real,\n \"population_2007\" real,\n \"population_2010\" real,\n \"pop_density_per_km_2\" text\n);\n\nQuestion: What is the 2010 population of the municipality with 31 barangays?" }, { "role": "assistant", "content": "SELECT \"population_2010\" FROM \"subdivisions\" WHERE \"no_of_barangays\"=31;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"subdivisions\" (\n \"municipality\" text,\n \"no_of_barangays\" real,\n \"area_hectares\" real,\n \"population_2007\" real,\n \"population_2010\" real,\n \"pop_density_per_km_2\" text\n);\n\nQuestion: What is the population density of Caramoran?" }, { "role": "assistant", "content": "SELECT \"pop_density_per_km_2\" FROM \"subdivisions\" WHERE \"municipality\"='Caramoran';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"subdivisions\" (\n \"municipality\" text,\n \"no_of_barangays\" real,\n \"area_hectares\" real,\n \"population_2007\" real,\n \"population_2010\" real,\n \"pop_density_per_km_2\" text\n);\n\nQuestion: What municipality has a 130.6 pupulation density?" }, { "role": "assistant", "content": "SELECT \"municipality\" FROM \"subdivisions\" WHERE \"pop_density_per_km_2\"='130.6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"municipalities\" (\n \"municipality\" text,\n \"no_of_s_barangay\" real,\n \"area_km\" text,\n \"population_2007\" real,\n \"population_2010\" real\n);\n\nQuestion: What is the number of S Barangay for Paracale?" }, { "role": "assistant", "content": "SELECT \"no_of_s_barangay\" FROM \"municipalities\" WHERE \"municipality\"='Paracale';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"municipalities\" (\n \"municipality\" text,\n \"no_of_s_barangay\" real,\n \"area_km\" text,\n \"population_2007\" real,\n \"population_2010\" real\n);\n\nQuestion: What is the municipality that has an area of exactly 199.35 sq. km?" }, { "role": "assistant", "content": "SELECT \"municipality\" FROM \"municipalities\" WHERE \"area_km\"='199.35';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"municipalities\" (\n \"municipality\" text,\n \"no_of_s_barangay\" real,\n \"area_km\" text,\n \"population_2007\" real,\n \"population_2010\" real\n);\n\nQuestion: What is the municipality that has an area of exactly 214.44 sq. km?" }, { "role": "assistant", "content": "SELECT \"municipality\" FROM \"municipalities\" WHERE \"area_km\"='214.44';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25574050_7\" (\n \"case\" text,\n \"1st_pers_sing\" text,\n \"2nd_pers_sing\" text,\n \"3rd_pers_sing\" text,\n \"1st_pers_pl\" text,\n \"2nd_pers_pl\" text,\n \"3rd_pers_pl\" text\n);\n\nQuestion: Name the 3rd person pl for \u0442\u043e\u043d\u044d\u043d ~ \u0442\u043e\u043d\u044d\u043d\u044b\u0434" }, { "role": "assistant", "content": "SELECT \"3rd_pers_pl\" FROM \"table1_25574050_7\" WHERE \"2nd_pers_sing\"='\u0442\u043e\u043d\u044d\u043d ~ \u0442\u043e\u043d\u044d\u043d\u044b\u0434';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25574050_7\" (\n \"case\" text,\n \"1st_pers_sing\" text,\n \"2nd_pers_sing\" text,\n \"3rd_pers_sing\" text,\n \"1st_pers_pl\" text,\n \"2nd_pers_pl\" text,\n \"3rd_pers_pl\" text\n);\n\nQuestion: Name the 1st person pl for \u0442\u043e\u043d\u044d" }, { "role": "assistant", "content": "SELECT \"1st_pers_pl\" FROM \"table1_25574050_7\" WHERE \"2nd_pers_sing\"='\u0442\u043e\u043d\u044d';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25574050_7\" (\n \"case\" text,\n \"1st_pers_sing\" text,\n \"2nd_pers_sing\" text,\n \"3rd_pers_sing\" text,\n \"1st_pers_pl\" text,\n \"2nd_pers_pl\" text,\n \"3rd_pers_pl\" text\n);\n\nQuestion: Name the 3rd pers pl for dative" }, { "role": "assistant", "content": "SELECT \"3rd_pers_pl\" FROM \"table1_25574050_7\" WHERE \"case\"='dative';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"circuit\" text,\n \"location\" text,\n \"date\" text,\n \"series\" text,\n \"winning_driver\" text,\n \"winning_team\" text\n);\n\nQuestion: When fr2.0 9 is the series who is the winning team?" }, { "role": "assistant", "content": "SELECT \"winning_team\" FROM \"race_calendar\" WHERE \"series\"='FR2.0 9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"circuit\" text,\n \"location\" text,\n \"date\" text,\n \"series\" text,\n \"winning_driver\" text,\n \"winning_team\" text\n);\n\nQuestion: When fairuz fauzy is the winning driver what is the date?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"race_calendar\" WHERE \"winning_driver\"='Fairuz Fauzy';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"circuit\" text,\n \"location\" text,\n \"date\" text,\n \"series\" text,\n \"winning_driver\" text,\n \"winning_team\" text\n);\n\nQuestion: When emt 9 is the series what is the date?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"race_calendar\" WHERE \"series\"='EMT 9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"race_number\" text,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: what are all the state/nation where the race number is 36" }, { "role": "assistant", "content": "SELECT \"state_country\" FROM \"line_honours_results_top_10\" WHERE \"race_number\"='36';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"race_number\" text,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: What State/Country is Sean Langman the skipper?" }, { "role": "assistant", "content": "SELECT \"state_country\" FROM \"line_honours_results_top_10\" WHERE \"skipper\"='Sean Langman';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"race_number\" text,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: What yacht type is involved where Bob Oatley is the skipper?" }, { "role": "assistant", "content": "SELECT \"yacht_type\" FROM \"line_honours_results_top_10\" WHERE \"skipper\"='Bob Oatley';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"race_number\" text,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: How many races was Loki in?" }, { "role": "assistant", "content": "SELECT COUNT(\"race_number\") FROM \"line_honours_results_top_10\" WHERE \"yacht\"='Loki';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: What were the LOA (metres) for the yacht where the skipper was Jez Fanstone?" }, { "role": "assistant", "content": "SELECT \"loa_metres\" FROM \"line_honours_results_top_10\" WHERE \"skipper\"='Jez Fanstone';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: Who was the skipper of the yacht with an elapsed time of 3:07:39:33?" }, { "role": "assistant", "content": "SELECT \"skipper\" FROM \"line_honours_results_top_10\" WHERE \"elapsed_time_d_hh_mm_ss\"='3:07:39:33';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: What was the elapsed time for the yacht that was a Farr 65 type?" }, { "role": "assistant", "content": "SELECT \"elapsed_time_d_hh_mm_ss\" FROM \"line_honours_results_top_10\" WHERE \"yacht_type\"='Farr 65';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: What is the sail number of the yacht that had an elapsed time of 2:22:30:42?" }, { "role": "assistant", "content": "SELECT \"sail_number\" FROM \"line_honours_results_top_10\" WHERE \"elapsed_time_d_hh_mm_ss\"='2:22:30:42';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: What state/country was the yacht that had an elapsed time of 3:04:06:38 from?" }, { "role": "assistant", "content": "SELECT \"state_country\" FROM \"line_honours_results_top_10\" WHERE \"elapsed_time_d_hh_mm_ss\"='3:04:06:38';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: What state/country was the yacht from that had 15.79 LOA (metres)? " }, { "role": "assistant", "content": "SELECT \"state_country\" FROM \"line_honours_results_top_10\" WHERE \"loa_metres\"='15.79';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: What is Matt Allen's sail number?" }, { "role": "assistant", "content": "SELECT \"sail_number\" FROM \"line_honours_results_top_10\" WHERE \"skipper\"='Matt Allen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: What is the state that the boat is from that finished in 2:15:14:06?" }, { "role": "assistant", "content": "SELECT \"state_country\" FROM \"line_honours_results_top_10\" WHERE \"elapsed_time_d_hh_mm_ss\"='2:15:14:06';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: What is the LOA of Brindabella?" }, { "role": "assistant", "content": "SELECT \"loa_metres\" FROM \"line_honours_results_top_10\" WHERE \"yacht\"='Brindabella';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: What the is the state that the boat is from with LOA of 19.50?" }, { "role": "assistant", "content": "SELECT \"state_country\" FROM \"line_honours_results_top_10\" WHERE \"loa_metres\"='19.50';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: How many states is Grant Wharington from?" }, { "role": "assistant", "content": "SELECT COUNT(\"state_country\") FROM \"line_honours_results_top_10\" WHERE \"skipper\"='Grant Wharington';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"line_honours_results_top_10\" (\n \"position\" real,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" text,\n \"skipper\" text,\n \"elapsed_time_d_hh_mm_ss\" text\n);\n\nQuestion: How many times are provided for the boat with LOA of 20.49?" }, { "role": "assistant", "content": "SELECT COUNT(\"elapsed_time_d_hh_mm_ss\") FROM \"line_honours_results_top_10\" WHERE \"loa_metres\"='20.49';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_lighthouses_in_the_philippines\" (\n \"lighthouse\" text,\n \"location\" text,\n \"province_city\" text,\n \"date_first_lit\" text,\n \"tower_height_in_ft_m\" text,\n \"focal_plane_in_ft_m\" text,\n \"current_status\" text,\n \"current_condition_description\" text\n);\n\nQuestion: The date first lit is 1853 total number of current status." }, { "role": "assistant", "content": "SELECT COUNT(\"current_status\") FROM \"list_of_lighthouses_in_the_philippines\" WHERE \"date_first_lit\"='1853';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_lighthouses_in_the_philippines\" (\n \"lighthouse\" text,\n \"location\" text,\n \"province_city\" text,\n \"date_first_lit\" text,\n \"tower_height_in_ft_m\" text,\n \"focal_plane_in_ft_m\" text,\n \"current_status\" text,\n \"current_condition_description\" text\n);\n\nQuestion: Location for focal plane in ft (m) is naidi hills, basco." }, { "role": "assistant", "content": "SELECT \"focal_plane_in_ft_m\" FROM \"list_of_lighthouses_in_the_philippines\" WHERE \"location\"='Naidi Hills, Basco';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_lighthouses_in_the_philippines\" (\n \"lighthouse\" text,\n \"location\" text,\n \"province_city\" text,\n \"date_first_lit\" text,\n \"tower_height_in_ft_m\" text,\n \"focal_plane_in_ft_m\" text,\n \"current_status\" text,\n \"current_condition_description\" text\n);\n\nQuestion: Focal plane in ft (m) is 43ft (13.1m) is the first date lit." }, { "role": "assistant", "content": "SELECT \"date_first_lit\" FROM \"list_of_lighthouses_in_the_philippines\" WHERE \"focal_plane_in_ft_m\"='43ft (13.1m)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_lighthouses_in_the_philippines\" (\n \"lighthouse\" text,\n \"location\" text,\n \"province_city\" text,\n \"date_first_lit\" text,\n \"tower_height_in_ft_m\" text,\n \"focal_plane_in_ft_m\" text,\n \"current_status\" text,\n \"current_condition_description\" text\n);\n\nQuestion: The province/city corregidor island (2) is where the lighthouse is located. " }, { "role": "assistant", "content": "SELECT \"province_city\" FROM \"list_of_lighthouses_in_the_philippines\" WHERE \"lighthouse\"='Corregidor Island (2)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_lighthouses_in_the_philippines\" (\n \"lighthouse\" text,\n \"location\" text,\n \"province_city\" text,\n \"date_first_lit\" text,\n \"tower_height_in_ft_m\" text,\n \"focal_plane_in_ft_m\" text,\n \"current_status\" text,\n \"current_condition_description\" text\n);\n\nQuestion: Where tower height in ft (m) is 46ft (14.0m) the focal plane is ft (m)." }, { "role": "assistant", "content": "SELECT \"focal_plane_in_ft_m\" FROM \"list_of_lighthouses_in_the_philippines\" WHERE \"tower_height_in_ft_m\"='46ft (14.0m)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25604014_6\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: What are the number in series of the pieces directed by Win Phelps and which number in season is 11?" }, { "role": "assistant", "content": "SELECT \"no_in_series\" FROM \"table1_25604014_6\" WHERE \"directed_by\"='Win Phelps' AND \"no_in_season\"=11;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25604014_6\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: What are the titles of the pieces that are number 2 in season?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_25604014_6\" WHERE \"no_in_season\"=2;" } ]