text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What's the smallest amount of Laps that had a finish of 7 with a start of 6? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the smallest bronze with a Gold smaller than 3, and a Silver larger tha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the average bronze with a rank of 4 and less than 1 silver? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which silver has a Gold larger than 4, and a Rank of 1? <|assistant|> SELECT "s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What lowest bronze has a total of 3, a Nation of hungary, and a Gold smaller th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many gold have a Rank of 7, and a Bronze of 1, and a Silver smaller than 0?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many Totals have a Silver smaller than 2, and a Nation of ukraine, and a Go...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_figures_in_an_innings" ( "bowling" text, "player" text, "opponent" text, "venue" text, "season" text ); Question: Which player played in 2007? <|assistant|> SELECT "player" FROM "best_figu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_figures_in_an_innings" ( "bowling" text, "player" text, "opponent" text, "venue" text, "season" text ); Question: What was Min Patel's bowling? <|assistant|> SELECT "bowling" FROM "best_fi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_of_nominations" ( "week_1" text, "week_2" text, "week_6" text, "week_9" text, "week_12" text ); Question: Who was the week 1 nomination when the week 2 nomination was Piia Jarkko? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_of_nominations" ( "week_1" text, "week_2" text, "week_6" text, "week_9" text, "week_12" text ); Question: Who was the week 12 nomination when the week 9 nomination walked (day 11)? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_of_nominations" ( "week_1" text, "week_2" text, "week_6" text, "week_9" text, "week_12" text ); Question: What is the week 12 nomination that had a week 1 nomination of Maria Maxine and a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "call_sign" text, "frequency" text, "city_of_license" text, "facility_id" real, "erp_power_w" real, "height_m_ft" text, "class" text ); Question: Name the heightfor city of lice...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "call_sign" text, "frequency" text, "city_of_license" text, "facility_id" real, "erp_power_w" real, "height_m_ft" text, "class" text ); Question: Name the class with call sign o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "call_sign" text, "frequency" text, "city_of_license" text, "facility_id" real, "erp_power_w" real, "height_m_ft" text, "class" text ); Question: Name the frequency with class o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "call_sign" text, "frequency" text, "city_of_license" text, "facility_id" real, "erp_power_w" real, "height_m_ft" text, "class" text ); Question: Name the city of license with f...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "call_sign" text, "frequency" text, "city_of_license" text, "facility_id" real, "erp_power_w" real, "height_m_ft" text, "class" text ); Question: Name the total number of ERP/Po...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_world_championship_formula_one_" ( "year" real, "chassis" text, "engine_s" text, "tyres" text, "points" text ); Question: What is the Engine(s) that has f Tyres in 1971? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "time" text, "att" real, "record" text ); Question: What was the attendance on June 27? <|assistant|> SELECT MIN("att") ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_titles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: Name the surface for 12 september 2006 <|assistant|> SELECT "surface" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_titles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: Name the score for opponent in the final being paul baccanello <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_titles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: Name the surface for 20 march 2007 <|assistant|> SELECT "surface" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_titles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: Name the date for opponent in the final being ignasi villacampa <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_titles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: Name the tournament for grass surface and opponent in the final being p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "location" text, "year" real, "champion" text, "runner_up" text, "score" text ); Question: When is the earliest year in milan that guillermo vilas was champion? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "location" text, "year" real, "champion" text, "runner_up" text, "score" text ); Question: Where in 1985 was tim mayotte runner up? <|assistant|> SELECT "location" FROM "singles" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "location" text, "year" real, "champion" text, "runner_up" text, "score" text ); Question: What was the score when stefan edberg won after 1978? <|assistant|> SELECT "score" FROM "si...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "broadcast_translators_of_wpby" ( "station" text, "city_of_license" text, "channel" text, "erp_k_w" real, "haat_m_ft" text, "facility_id" real ); Question: What is the Facility ID that has a C...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "broadcast_translators_of_wpby" ( "station" text, "city_of_license" text, "channel" text, "erp_k_w" real, "haat_m_ft" text, "facility_id" real ); Question: What is the City of license that has...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tower_remains" ( "church_name" text, "location" text, "rebuilt" text, "date_of_demolition" real, "subsuming_parish" text ); Question: What is the location that has a date of demolition of 1940 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tower_remains" ( "church_name" text, "location" text, "rebuilt" text, "date_of_demolition" real, "subsuming_parish" text ); Question: How many dates of demolition are located on Wood Street? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_12_8_titles_4_runners_up" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What was Olga Govortsova's score when she played o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_12_8_titles_4_runners_up" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What was Olga Govortsova's outcome when she played...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_12_8_titles_4_runners_up" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What was Olga Govortsova's goal when she played on...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_50_most_topographically_prominent_mo" ( "rank" real, "mountain_peak" text, "province" text, "mountain_range" text, "location" text ); Question: Which mountain range has a rank of 19? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_50_most_topographically_prominent_mo" ( "rank" real, "mountain_peak" text, "province" text, "mountain_range" text, "location" text ); Question: Which location includes Coast Mountains with ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_50_most_topographically_prominent_mo" ( "rank" real, "mountain_peak" text, "province" text, "mountain_range" text, "location" text ); Question: Which mountain range includes Mount Hubbard? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_50_most_topographically_prominent_mo" ( "rank" real, "mountain_peak" text, "province" text, "mountain_range" text, "location" text ); Question: Which province includes Axel Heiberg Island? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); Question: What are the notes of events that finished in 12th position? <|assistant|> SELECT "note...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); Question: Which venue was finished in 2nd position in 1985? <|assistant|> SELECT "venue" FROM "ac...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); Question: What is the average year of events that took place in Antwerp, Belgium? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); Question: What's the year of the event that took place most recently in Antwerp, Belgium with tea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" real, "label" text, "format" text, "catalog" text ); Question: What was the label's format LP and catalog of CH-9192? <|assistant|> SELECT "label" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" real, "label" text, "format" text, "catalog" text ); Question: When was Catalog CHD-9192 published? <|assistant|> SELECT "date" FROM "release_history" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: I need the FCC info on the radio Frequency MHz 107.5? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: Give me the MHz Frequency of Allapattah, Florida. <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: What class does the w298ak sign belong to? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: What class is ERP W of 800? <|assistant|> SELECT "clas...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "apertura_2002_standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real ); Question: What is the total of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "apertura_2002_standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real ); Question: What's the total of L...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "apertura_2002_standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real ); Question: What's the total of G...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "apertura_2002_standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real ); Question: What is listed as the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "apertura_2002_standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real ); Question: What is listed as the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: When was the game that ended with a score of 6-4? <|assistant|> SELECT "date...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "april" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What was the score on April 8? <|assistant|> SELECT "score" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "april" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What was the decision in Minnesota? <|assistant|> SELECT "dec...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "april" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: Which score has a record of 58–15–8? <|assistant|> SELECT "sc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_to_season" ( "season" text, "level" text, "division" text, "section" text, "position" text ); Question: Which section has a level of Tier 3, is in the 6th position, and is in the 1937-38...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_to_season" ( "season" text, "level" text, "division" text, "section" text, "position" text ); Question: Which section is in the 6th position? <|assistant|> SELECT "section" FROM "season_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: Name the attendance with date of june 11 <|assistant|> SELECT "attendance" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_partnerships_for_each_wicket" ( "wicket" text, "runs" text, "partnerships" text, "venue" text, "date" text ); Question: Which partnership has a run number of 27? <|assistant|> SELECT "p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_partnerships_for_each_wicket" ( "wicket" text, "runs" text, "partnerships" text, "venue" text, "date" text ); Question: What venue did the parntership of shoaib malik / misbah-ul-haq oc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_partnerships_for_each_wicket" ( "wicket" text, "runs" text, "partnerships" text, "venue" text, "date" text ); Question: What venue did the partnership of herschelle gibbs / justin kemp ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_2011_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_2011_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_2011_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_2011_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_2011_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_2011_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_champions" ( "name" text, "reign" real, "days_held" text, "location" text, "defenses" real ); Question: What is the days held the champion with a reign larger than 3 and 1 defense has? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_champions" ( "name" text, "reign" real, "days_held" text, "location" text, "defenses" real ); Question: What is the days held the champion with a reign larger than 3 and less than 1 def...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_champions" ( "name" text, "reign" real, "days_held" text, "location" text, "defenses" real ); Question: What is the average defenses a champion with 404 days held and a reign larger tha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_champions" ( "name" text, "reign" real, "days_held" text, "location" text, "defenses" real ); Question: What is the lowest defense a champion with 345 days held has? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: On what date was there a record of 76-72? <|assistant|> SELECT "date" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What was the attendance that had a loss of Ponson (1-5)? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: On which day was there a record of 36-39? <|assistant|> SELECT "date" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: On what day was the record 30-31? <|assistant|> SELECT "date" FROM "game_log...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text ); Question: Who was the opponent at the game that had a loss of Leonard (7–8)? <|assistant|> SELECT "opponent...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text ); Question: What was the score of the game when the record was 18–43? <|assistant|> SELECT "score" FROM "game...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text ); Question: What was the score of the game against the Royals when the record was 24–52? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text ); Question: What was the score of the game when the record was 22–46? <|assistant|> SELECT "score" FROM "game...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "characters" ( "code_name" text, "function_figure" text, "real_name" text, "birthplace" text, "serial_number" text, "primary_military_speciality" text, "secondary_military_speciality" text );...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "characters" ( "code_name" text, "function_figure" text, "real_name" text, "birthplace" text, "serial_number" text, "primary_military_speciality" text, "secondary_military_speciality" text );...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "characters" ( "code_name" text, "function_figure" text, "real_name" text, "birthplace" text, "serial_number" text, "primary_military_speciality" text, "secondary_military_speciality" text );...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "characters" ( "code_name" text, "function_figure" text, "real_name" text, "birthplace" text, "serial_number" text, "primary_military_speciality" text, "secondary_military_speciality" text );...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "characters" ( "code_name" text, "function_figure" text, "real_name" text, "birthplace" text, "serial_number" text, "primary_military_speciality" text, "secondary_military_speciality" text );...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text ); Question: What is the names for the medalist in the sport of canoeing? <|assistant|> SELECT "name" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text ); Question: What games had the women's half middleweight event? <|assistant|> SELECT "games" FROM "list...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text ); Question: Who received the bronze medal in the 2000 Sydney games? <|assistant|> SELECT "name" FROM "l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: How many people attended when opponent was twins? <|assistant|> SELECT COUNT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: Which date has a Record of 41-46? <|assistant|> SELECT "date" FROM "game_log...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: Which score has a Record of 48-55? <|assistant|> SELECT "score" FROM "game_l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: Which score has a Record of 44-49? <|assistant|> SELECT "score" FROM "game_l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: Which score has an Attendance larger than 16,571, and a Loss of mcdowell (0-...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: Which score has an Opponent of white sox, and a Record of 2-0? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_in_federal_elections" ( "year" real, "office" text, "candidate" text, "popular_votes" real, "percentage" text ); Question: How many votes did candice sjostrom receive? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_in_federal_elections" ( "year" real, "office" text, "candidate" text, "popular_votes" real, "percentage" text ); Question: What percentage did chris wright receive? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_in_federal_elections" ( "year" real, "office" text, "candidate" text, "popular_votes" real, "percentage" text ); Question: How many votes for the candidate after 1992, 1.59% of the vote...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "external_links" ( "representative" text, "years" text, "state" text, "party" text, "lifespan" text ); Question: What years did J. Smith Young serve as a Representative? <|assistant|> SELECT "ye...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "external_links" ( "representative" text, "years" text, "state" text, "party" text, "lifespan" text ); Question: Which party did Thomas L. Young belong to? <|assistant|> SELECT "party" FROM "ext...