text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "finals_14_9_titles_5_runners_up" ( "outcome" text, "year" real, "tournament" text, "opponent" text, "score" text ); Question: What was the outcome of the match against Nguyen Tien Minh in the Bulgaria Open? <|assistant|> SELECT "outcome" FROM "finals_14_9_titles_5_runners_up" WHERE "opponent"='nguyen tien minh' AND "tournament"='bulgaria open';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1989" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: What was the final score when the New York Jets were the Visiting Team? <|assistant|> SELECT "final_score" FROM "1989" WHERE "visiting_team"='new york jets';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1989" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: When were the Cleveland Browns the visiting team? <|assistant|> SELECT "date" FROM "1989" WHERE "visiting_team"='cleveland browns';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1989" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: Where were the New York Jets visiting? <|assistant|> SELECT "stadium" FROM "1989" WHERE "visiting_team"='new york jets';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1989" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: What was the final score in Robert F. Kennedy Memorial Stadium? <|assistant|> SELECT "final_score" FROM "1989" WHERE "stadium"='robert f. kennedy memorial stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1989" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: What was the visiting team on November 12? <|assistant|> SELECT "visiting_team" FROM "1989" WHERE "date"='november 12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1989" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: In what stadium were the New England Patriots the visiting team? <|assistant|> SELECT "stadium" FROM "1989" WHERE "visiting_team"='new england patriots';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real ); Question: If the games played are smaller than 18, what are the lowest goals conceded? <|assistant|> SELECT MIN("goals_conceded") FROM "league_standings" WHERE "played"<18;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real ); Question: If the place is smaller than 8 and they played more than 18, what is the total number of goals conceded? <|assistant|> SELECT COUNT("goals_conceded") FROM "league_standings" WHERE "place"<8 AND "played">18;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real ); Question: What is the sum of the place that has less than 2 losses? <|assistant|> SELECT SUM("place") FROM "league_standings" WHERE "lost"<2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "epic_m_and_epic_x" ( "frame_size" text, "width" real, "height" real, "mpix" real, "aspect_ratio" text, "max_fps" real, "max_fps_hd_rx" real, "lowest_possible_redcode_at_24_fps" text, "lowest_possible_redcode_at_max_fps" text ); Question: What is the aspect ration when the max fps HDRx is 80? <|assistant|> SELECT "aspect_ratio" FROM "epic_m_and_epic_x" WHERE "max_fps_hd_rx"=80;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "epic_m_and_epic_x" ( "frame_size" text, "width" real, "height" real, "mpix" real, "aspect_ratio" text, "max_fps" real, "max_fps_hd_rx" real, "lowest_possible_redcode_at_24_fps" text, "lowest_possible_redcode_at_max_fps" text ); Question: What is the smallest width for a frame size of 5k and a height shorter than 2700? <|assistant|> SELECT MIN("width") FROM "epic_m_and_epic_x" WHERE "frame_size"='5k' AND "height"<2700;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "august" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text ); Question: What was the opponent on August 29? <|assistant|> SELECT "opponent" FROM "august" WHERE "date"='august 29';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "august" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text ); Question: Which team had the attendance of 16,468 and lost? <|assistant|> SELECT "loss" FROM "august" WHERE "attendance"='16,468';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "august" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text ); Question: What opponent has a loss of Trachsel (10-11)? <|assistant|> SELECT "opponent" FROM "august" WHERE "loss"='trachsel (10-11)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "august" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text ); Question: What was the attendance on August 8? <|assistant|> SELECT "attendance" FROM "august" WHERE "date"='august 8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stations" ( "station" text, "japanese" text, "distance_km" real, "rapid" text, "location" text ); Question: Which rapid has a distance in km smaller than 14.2, and a Station of kōmyōji? <|assistant|> SELECT "rapid" FROM "stations" WHERE "distance_km"<14.2 AND "station"='kōmyōji';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances" ( "name" text, "league" real, "fa_cup" real, "league_cup" real, "other" real, "total" real ); Question: What is the sum of Other, when the Name is Simon Gillett Category:Articles with hCards, and when the Total is less than 34? <|assistant|> SELECT SUM("other") FROM "appearances" WHERE "name"='simon gillett category:articles with hcards' AND "total"<34;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances" ( "name" text, "league" real, "fa_cup" real, "league_cup" real, "other" real, "total" real ); Question: What is the sum of the value "League Cup", when the Total is less than 1, and when the League is less than 0? <|assistant|> SELECT SUM("league_cup") FROM "appearances" WHERE "total"<1 AND "league"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances" ( "name" text, "league" real, "fa_cup" real, "league_cup" real, "other" real, "total" real ); Question: What is the greatest Total, when the FA Cup is 0, when the Name is Robbie Williams Category:Articles with hCards, and when the League Cup is less than 0? <|assistant|> SELECT MAX("total") FROM "appearances" WHERE "fa_cup"=0 AND "name"='robbie williams category:articles with hcards' AND "league_cup"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances" ( "name" text, "league" real, "fa_cup" real, "league_cup" real, "other" real, "total" real ); Question: What is the average Total, when the Name is Simon Gillett Category:Articles with hCards, and when the Other is greater than 3? <|assistant|> SELECT AVG("total") FROM "appearances" WHERE "name"='simon gillett category:articles with hcards' AND "other">3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances" ( "name" text, "league" real, "fa_cup" real, "league_cup" real, "other" real, "total" real ); Question: What is the sum of League Cup, when the Other is less than 1, when the Name is Gareth Farrelly Category:Articles with hCards, and when the League is greater than 1? <|assistant|> SELECT SUM("league_cup") FROM "appearances" WHERE "other"<1 AND "name"='gareth farrelly category:articles with hcards' AND "league">1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_champions" ( "year" text, "champion" text, "runner_up" text, "3rd_place" text, "location" text ); Question: Name the runner-up which has 3rd place of terry hollands <|assistant|> SELECT "runner_up" FROM "list_of_champions" WHERE "3rd_place"='terry hollands';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_champions" ( "year" text, "champion" text, "runner_up" text, "3rd_place" text, "location" text ); Question: Name the champion for christopher miles runner-up <|assistant|> SELECT "champion" FROM "list_of_champions" WHERE "runner_up"='christopher miles';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_champions" ( "year" text, "champion" text, "runner_up" text, "3rd_place" text, "location" text ); Question: Name the champion for 2000 <|assistant|> SELECT "champion" FROM "list_of_champions" WHERE "year"='2000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_champions" ( "year" text, "champion" text, "runner_up" text, "3rd_place" text, "location" text ); Question: Name the champion for 3rd place tbc and runner-up tbc <|assistant|> SELECT "champion" FROM "list_of_champions" WHERE "3rd_place"='tbc' AND "runner_up"='tbc';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_champions" ( "year" text, "champion" text, "runner_up" text, "3rd_place" text, "location" text ); Question: Name the location for 1998 <|assistant|> SELECT "location" FROM "list_of_champions" WHERE "year"='1998';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many gold medals correspond with a total over 4? <|assistant|> SELECT "gold" FROM "medal_table" WHERE "total">4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the sum of gold medals with a total of 12 medals and less than 4 bronze medals? <|assistant|> SELECT SUM("gold") FROM "medal_table" WHERE "total"=12 AND "bronze"<4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the smallest number of gold medals corresponding to the total rank with more than 4 bronze medals? <|assistant|> SELECT MIN("gold") FROM "medal_table" WHERE "rank"='total' AND "bronze">4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the smallest number of bronze medals with more than 4 gold medals? <|assistant|> SELECT MIN("bronze") FROM "medal_table" WHERE "gold">4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "7_seats" ( "riding" text, "candidate_s_name" text, "gender" text, "residence" text, "occupation" text, "votes" real, "rank" text ); Question: The candidate with Riding of st. john's south—mount pearl is what gender? <|assistant|> SELECT "gender" FROM "7_seats" WHERE "riding"='st. john''s south—mount pearl';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "7_seats" ( "riding" text, "candidate_s_name" text, "gender" text, "residence" text, "occupation" text, "votes" real, "rank" text ); Question: What is the rank of walter noel from st. john's? <|assistant|> SELECT "rank" FROM "7_seats" WHERE "residence"='st. john''s' AND "candidate_s_name"='walter noel';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "7_seats" ( "riding" text, "candidate_s_name" text, "gender" text, "residence" text, "occupation" text, "votes" real, "rank" text ); Question: What is the name of the candidate from happy valley-goose bay with a gender of m? <|assistant|> SELECT "candidate_s_name" FROM "7_seats" WHERE "gender"='m' AND "residence"='happy valley-goose bay';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "language" ( "language" text, "number" text, "percentage_pct" text, "males" text, "females" text ); Question: Which number has a 0.35 percentage? <|assistant|> SELECT "number" FROM "language" WHERE "percentage_pct"='0.35';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "language" ( "language" text, "number" text, "percentage_pct" text, "males" text, "females" text ); Question: What is the percentage for Russian? <|assistant|> SELECT "percentage_pct" FROM "language" WHERE "language"='russian';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "language" ( "language" text, "number" text, "percentage_pct" text, "males" text, "females" text ); Question: How many males speak Russian? <|assistant|> SELECT "males" FROM "language" WHERE "language"='russian';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007" ( "film" text, "director_s" text, "producer_s" text, "writer_s" text, "recipient" text, "award" text ); Question: Who is the writer for Red Rose Chain LTD? <|assistant|> SELECT "writer_s" FROM "2007" WHERE "recipient"='red rose chain ltd';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007" ( "film" text, "director_s" text, "producer_s" text, "writer_s" text, "recipient" text, "award" text ); Question: Which producer did Daniel Cormack direct? <|assistant|> SELECT "producer_s" FROM "2007" WHERE "director_s"='daniel cormack';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007" ( "film" text, "director_s" text, "producer_s" text, "writer_s" text, "recipient" text, "award" text ); Question: Who produced Laura Tunstall? <|assistant|> SELECT "producer_s" FROM "2007" WHERE "recipient"='laura tunstall';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007" ( "film" text, "director_s" text, "producer_s" text, "writer_s" text, "recipient" text, "award" text ); Question: Who wrote the film Jehovah's Witness? <|assistant|> SELECT "writer_s" FROM "2007" WHERE "film"='jehovah''s witness';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "personal_records" ( "distance" text, "time" text, "date" text, "location" text, "notes" text ); Question: When did Hein Vergeer have a distance of 5,000m? <|assistant|> SELECT "date" FROM "personal_records" WHERE "distance"='5,000m';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "personal_records" ( "distance" text, "time" text, "date" text, "location" text, "notes" text ); Question: What were the notes during the distance of Men's Speed Skating? <|assistant|> SELECT "notes" FROM "personal_records" WHERE "distance"='men''s speed skating';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What date has the competition of uefa euro 2012 qualifying? <|assistant|> SELECT "date" FROM "international_goals" WHERE "competition"='uefa euro 2012 qualifying';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "step_races" ( "race_name" real, "grade" text, "racecourse" text, "distance" text, "priority_entry_rights_to_derby" text ); Question: What is the Grade that has Turf 1600m? <|assistant|> SELECT "grade" FROM "step_races" WHERE "priority_entry_rights_to_derby"='turf 1600m';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "step_races" ( "race_name" real, "grade" text, "racecourse" text, "distance" text, "priority_entry_rights_to_derby" text ); Question: What is the Priority-entry-rights to Derby in rank 4? <|assistant|> SELECT "priority_entry_rights_to_derby" FROM "step_races" WHERE "race_name"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "distribution" ( "installation" text, "cluj" real, "oradea" real, "baia_mare" real, "bistrita" real, "satu_mare" real, "zalau" real, "electrica_north_transylvania" real ); Question: How many Baia Mare have an Electrica North Transylvania under 14.476, Bistrita of 643, and Zalau under 737? <|assistant|> SELECT COUNT("baia_mare") FROM "distribution" WHERE "electrica_north_transylvania"<14.476 AND "bistrita"=643 AND "zalau"<737;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "distribution" ( "installation" text, "cluj" real, "oradea" real, "baia_mare" real, "bistrita" real, "satu_mare" real, "zalau" real, "electrica_north_transylvania" real ); Question: What is the smallest Satu Mare value associated with Baia Mare over 523? <|assistant|> SELECT MIN("satu_mare") FROM "distribution" WHERE "baia_mare">523;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "features" ( "format" text, "filename_extension" text, "image_support" text, "interactivity_support" text, "word_wrap_support" text, "open_standard" text ); Question: Which Word wrap support has a Format of mobipocket? <|assistant|> SELECT "word_wrap_support" FROM "features" WHERE "format"='mobipocket';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "features" ( "format" text, "filename_extension" text, "image_support" text, "interactivity_support" text, "word_wrap_support" text, "open_standard" text ); Question: Which Interactivity support has a Format of fictionbook? <|assistant|> SELECT "interactivity_support" FROM "features" WHERE "format"='fictionbook';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "features" ( "format" text, "filename_extension" text, "image_support" text, "interactivity_support" text, "word_wrap_support" text, "open_standard" text ); Question: Which Filename extension has an Interactivity support of no, an Open standard of yes, and an Image support of no? <|assistant|> SELECT "filename_extension" FROM "features" WHERE "interactivity_support"='no' AND "open_standard"='yes' AND "image_support"='no';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "features" ( "format" text, "filename_extension" text, "image_support" text, "interactivity_support" text, "word_wrap_support" text, "open_standard" text ); Question: Which Filename extension has a Word wrap support of yes, an Open standard of no, and an Interactivity support of yes? <|assistant|> SELECT "filename_extension" FROM "features" WHERE "word_wrap_support"='yes' AND "open_standard"='no' AND "interactivity_support"='yes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "features" ( "format" text, "filename_extension" text, "image_support" text, "interactivity_support" text, "word_wrap_support" text, "open_standard" text ); Question: Which Format has an Interactivity support of no, a Word wrap support of yes, an Image support of yes, and an Open standard of yes? <|assistant|> SELECT "format" FROM "features" WHERE "interactivity_support"='no' AND "word_wrap_support"='yes' AND "image_support"='yes' AND "open_standard"='yes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: Position of guard, and a Pick # larger than 9 is what highest round? <|assistant|> SELECT MAX("round") FROM "indianapolis_colts_draft_history" WHERE "position"='guard' AND "pick_num">9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: Pick # smaller than 11, and a Name of von hutchins belongs to what college? <|assistant|> SELECT "college" FROM "indianapolis_colts_draft_history" WHERE "pick_num"<11 AND "name"='von hutchins';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: College of idaho, and an Overall smaller than 141 is what average round? <|assistant|> SELECT AVG("round") FROM "indianapolis_colts_draft_history" WHERE "college"='idaho' AND "overall"<141;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: Name of David Kimball, and an Overall smaller than 229 is what highest round? <|assistant|> SELECT MAX("round") FROM "indianapolis_colts_draft_history" WHERE "name"='david kimball' AND "overall"<229;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: How many points did the car with the brm v8 engine have? <|assistant|> SELECT COUNT("points") FROM "complete_formula_one_world_championship_" WHERE "engine"='brm v8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Which chassis has more than 0 points and was before 1966? <|assistant|> SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "year"<1966 AND "points">0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: How many points did he average in 1964? <|assistant|> SELECT AVG("points") FROM "complete_formula_one_world_championship_" WHERE "year"=1964;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Before the year 1963 what was the fewest points the climax v8 engine had? <|assistant|> SELECT MIN("points") FROM "complete_formula_one_world_championship_" WHERE "engine"='climax v8' AND "year"<1963;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What was the earliest year that had less than 1 point? <|assistant|> SELECT MIN("year") FROM "complete_formula_one_world_championship_" WHERE "points"<1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "friday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text ); Question: What is the 8:00 feature with je at 7:00? <|assistant|> SELECT "8_00" FROM "friday" WHERE "7_00"='je';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "friday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text ); Question: What is the 10:00 feature with 1 vs. 100 at 8:30? <|assistant|> SELECT "10_00" FROM "friday" WHERE "8_30"='1 vs. 100';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "friday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text ); Question: What is the 7:00 feature with entertainment tonight at 7:30? <|assistant|> SELECT "7_00" FROM "friday" WHERE "7_30"='entertainment tonight';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "friday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text ); Question: What is the 7:30 feature with le tva 22 heures at 10:00? <|assistant|> SELECT "7_30" FROM "friday" WHERE "10_00"='le tva 22 heures';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "friday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text ); Question: What is the 9:30 feature with la porte des étoiles at 8:30? <|assistant|> SELECT "9_30" FROM "friday" WHERE "8_30"='la porte des étoiles';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: How many were in attendance on October 27, 1963? <|assistant|> SELECT MAX("attendance") FROM "season_schedule" WHERE "date"='october 27, 1963';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "num_county" text, "ihsaa_class" text, "year_joined" real, "previous_conference" text ); Question: which # / county is correct for year less than 1981 and chalmers as location? <|assistant|> SELECT "num_county" FROM "membership" WHERE "year_joined"<1981 AND "location"='chalmers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "num_county" text, "ihsaa_class" text, "year_joined" real, "previous_conference" text ); Question: what is the correct year for # / county of 09 cass? <|assistant|> SELECT "year_joined" FROM "membership" WHERE "num_county"='09 cass';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "num_county" text, "ihsaa_class" text, "year_joined" real, "previous_conference" text ); Question: what's the mascot for 66 pulaski 2? <|assistant|> SELECT "mascot" FROM "membership" WHERE "num_county"='66 pulaski 2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sporting_events" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the total bronze with a Silver of 2, and a Gold smaller than 0? <|assistant|> SELECT SUM("bronze") FROM "sporting_events" WHERE "silver"=2 AND "gold"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sporting_events" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the average total with a Rank larger than 11, a Nation of switzerland, and a Silver smaller than 0? <|assistant|> SELECT AVG("total") FROM "sporting_events" WHERE "rank">11 AND "nation"='switzerland' AND "silver"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sporting_events" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the total Gold with a Bronze smaller than 7, a Total of 1, a Nation of cape verde, and a Silver smaller than 0? <|assistant|> SELECT SUM("gold") FROM "sporting_events" WHERE "bronze"<7 AND "total"=1 AND "nation"='cape verde' AND "silver"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "models" ( "engine" text, "displacement" text, "power" text, "torque" text, "year" real ); Question: How powerful is the model before 1999? <|assistant|> SELECT "power" FROM "models" WHERE "year"<1999;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "models" ( "engine" text, "displacement" text, "power" text, "torque" text, "year" real ); Question: What displacement is the model in 1999 with a Torque of 280n·m (207lb·ft) @ 1750? <|assistant|> SELECT "displacement" FROM "models" WHERE "year"=1999 AND "torque"='280n·m (207lb·ft) @ 1750';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "models" ( "engine" text, "displacement" text, "power" text, "torque" text, "year" real ); Question: When is the earliest year with a Power of 90kw (121hp) @ 4000? <|assistant|> SELECT MIN("year") FROM "models" WHERE "power"='90kw (121hp) @ 4000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "models" ( "engine" text, "displacement" text, "power" text, "torque" text, "year" real ); Question: When is the earliest year with a Torque of 330n·m (243lb·ft) @ 2000-2500? <|assistant|> SELECT MIN("year") FROM "models" WHERE "torque"='330n·m (243lb·ft) @ 2000-2500';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What week 14 has the lowest attendance? <|assistant|> SELECT MIN("attendance") FROM "schedule" WHERE "week"=14;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: Which sum of week that had an attendance larger than 55,767 on September 28, 1986? <|assistant|> SELECT SUM("week") FROM "schedule" WHERE "attendance">'55,767' AND "date"='september 28, 1986';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What is the highest attendance on September 14, 1986? <|assistant|> SELECT MAX("attendance") FROM "schedule" WHERE "date"='september 14, 1986';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stage_results" ( "date" text, "course" text, "distance" text, "type" text, "winner" text ); Question: What type is the race with the vicenza to marostica course? <|assistant|> SELECT "type" FROM "stage_results" WHERE "course"='vicenza to marostica';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: Name the 2005 for 2003 of a and 2011 of 3r <|assistant|> SELECT "2005" FROM "women_s_doubles_performance_timeline" WHERE "2003"='a' AND "2011"='3r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: Name the 2006 with 2003 of a and 2012 of a <|assistant|> SELECT "2006" FROM "women_s_doubles_performance_timeline" WHERE "2003"='a' AND "2012"='a';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: Name the 2010 for 2006 of 2r <|assistant|> SELECT "2010" FROM "women_s_doubles_performance_timeline" WHERE "2006"='2r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: Name the 2007 for 2005 of a and 003 of a with 2009 of sf <|assistant|> SELECT "2007" FROM "women_s_doubles_performance_timeline" WHERE "2005"='a' AND "2003"='a' AND "2009"='sf';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: Name the 2011 with 2006 of 2r <|assistant|> SELECT "2011" FROM "women_s_doubles_performance_timeline" WHERE "2006"='2r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: what was the venue on 7 october 2011? <|assistant|> SELECT "venue" FROM "international_goals" WHERE "date"='7 october 2011';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_boxing_quadruple_or_four_divisio" ( "number" real, "name" text, "titles" text, "date" text, "opponent" text, "result" text ); Question: What is the highest number of the match with julio césar vásquez as the opponent? <|assistant|> SELECT MAX("number") FROM "list_of_boxing_quadruple_or_four_divisio" WHERE "opponent"='julio césar vásquez';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_boxing_quadruple_or_four_divisio" ( "number" real, "name" text, "titles" text, "date" text, "opponent" text, "result" text ); Question: Who was the opponent of the match on 2006-04-08? <|assistant|> SELECT "opponent" FROM "list_of_boxing_quadruple_or_four_divisio" WHERE "date"='2006-04-08';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_boxing_quadruple_or_four_divisio" ( "number" real, "name" text, "titles" text, "date" text, "opponent" text, "result" text ); Question: What is the result of the match with Zab Judah as the opponent? <|assistant|> SELECT "result" FROM "list_of_boxing_quadruple_or_four_divisio" WHERE "opponent"='zab judah';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_boxing_quadruple_or_four_divisio" ( "number" real, "name" text, "titles" text, "date" text, "opponent" text, "result" text ); Question: What is the date of the match with a result of ud 12/12 between Pernell Whitaker and James Mcgirt? <|assistant|> SELECT "date" FROM "list_of_boxing_quadruple_or_four_divisio" WHERE "result"='ud 12/12' AND "name"='pernell whitaker' AND "opponent"='james mcgirt';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "biggest_wins" ( "margin" real, "score" text, "opponent" text, "venue" text, "date" text ); Question: What score was on 13 June 2004? <|assistant|> SELECT "score" FROM "biggest_wins" WHERE "date"='13 june 2004';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_tour_finishers" ( "rider" text, "year" real, "final_position_giro" real, "final_position_tour" real, "final_position_vuelta" real ); Question: Who is the rider with less than 50 final position-tours and less than 11 final position-vuelta before 2008? <|assistant|> SELECT "rider" FROM "grand_tour_finishers" WHERE "final_position_tour"<50 AND "final_position_vuelta"<11 AND "year"<2008;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_tour_finishers" ( "rider" text, "year" real, "final_position_giro" real, "final_position_tour" real, "final_position_vuelta" real ); Question: What is the earliest year of Valdimir Poelnikov, who has a final position-tour bigger than 72, a final position-vuelta less than 77, and a final position-giro less than 57? <|assistant|> SELECT MIN("year") FROM "grand_tour_finishers" WHERE "final_position_tour">72 AND "final_position_vuelta"<77 AND "final_position_giro"<57 AND "rider"='valdimir poelnikov';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_tour_finishers" ( "rider" text, "year" real, "final_position_giro" real, "final_position_tour" real, "final_position_vuelta" real ); Question: What is the number of final position-tours Mariano Piccoli, who has more than 20 final position-giros, before 1999 has? <|assistant|> SELECT COUNT("final_position_tour") FROM "grand_tour_finishers" WHERE "final_position_giro">20 AND "rider"='mariano piccoli' AND "year"<1999;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_tour_finishers" ( "rider" text, "year" real, "final_position_giro" real, "final_position_tour" real, "final_position_vuelta" real ); Question: What year was the rider with a final position-tour of 88 and less than 11 final position-giros? <|assistant|> SELECT SUM("year") FROM "grand_tour_finishers" WHERE "final_position_tour"=88 AND "final_position_giro"<11;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: How much did they lose by on April 26? <|assistant|> SELECT "loss" FROM "game_log" WHERE "date"='april 26';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What was the highest attendance when the opponent was the Indians and the record was 13-4? <|assistant|> SELECT MAX("attendance") FROM "game_log" WHERE "opponent"='indians' AND "record"='13-4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What day did the record reach 15-4? <|assistant|> SELECT "date" FROM "game_log" WHERE "record"='15-4';<|endoftext|>