text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real, "left" real, "current_conference" text ); Question: Where is Southern Vermont College located? <|assistant|> SELECT "location" FROM "former_members" WHERE "institution"='Southern Vermont College';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real, "left" real, "current_conference" text ); Question: In what year did the school with enrollment of 650 leave? <|assistant|> SELECT "left" FROM "former_members" WHERE "enrollment"=650;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text ); Question: What was the number of races in the season in which the team placed on the 14th position? <|assistant|> SELECT MIN("races") FROM "career_summary" WHERE "position"='14th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text ); Question: What is the lowest number of wins of a team? <|assistant|> SELECT MIN("wins") FROM "career_summary";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text ); Question: What's the minimal number of wins of a team? <|assistant|> SELECT MIN("wins") FROM "career_summary";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "nickname" text, "location" text, "founded" real, "type" text, "enrollment" real, "joined" real ); Question: Name the institution for statesmen <|assistant|> SELECT "institution" FROM "current_members" WHERE "nickname"='Statesmen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "nickname" text, "location" text, "founded" real, "type" text, "enrollment" real, "joined" real ); Question: Name the institution for yellowjackets <|assistant|> SELECT "institution" FROM "current_members" WHERE "nickname"='Yellowjackets';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "nickname" text, "location" text, "founded" real, "type" text, "enrollment" real, "joined" real ); Question: Name the type for hobart college <|assistant|> SELECT "type" FROM "current_members" WHERE "institution"='Hobart College';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "nickname" text, "location" text, "founded" real, "type" text, "enrollment" real, "joined" real ); Question: Name the location for 1829 <|assistant|> SELECT "location" FROM "current_members" WHERE "founded"=1829;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "nickname" text, "location" text, "founded" real, "type" text, "enrollment" real, "joined" real ); Question: Name the location of statesmen <|assistant|> SELECT "location" FROM "current_members" WHERE "nickname"='Statesmen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_197446_1" ( "office" text, "branch" text, "location" text, "elected" real, "term_began" text, "term_ended" text ); Question: What location was the congressional service of which the term ended in January 3, 2011? <|assistant|> SELECT "location" FROM "table1_197446_1" WHERE "term_ended"='January 3, 2011';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_197446_1" ( "office" text, "branch" text, "location" text, "elected" real, "term_began" text, "term_ended" text ); Question: What branch was involved when the term began in January 3, 1985? <|assistant|> SELECT "branch" FROM "table1_197446_1" WHERE "term_began"='January 3, 1985';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_197446_1" ( "office" text, "branch" text, "location" text, "elected" real, "term_began" text, "term_ended" text ); Question: What year was the congressional service elected for a term beginning on January 3, 1989? <|assistant|> SELECT "elected" FROM "table1_197446_1" WHERE "term_began"='January 3, 1989';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_197446_1" ( "office" text, "branch" text, "location" text, "elected" real, "term_began" text, "term_ended" text ); Question: What group was in office when the term ended in January 3, 1993? <|assistant|> SELECT "office" FROM "table1_197446_1" WHERE "term_ended"='January 3, 1993';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_197446_1" ( "office" text, "branch" text, "location" text, "elected" real, "term_began" text, "term_ended" text ); Question: How many terms began when the term ended in January 3, 1989? <|assistant|> SELECT COUNT("term_began") FROM "table1_197446_1" WHERE "term_ended"='January 3, 1989';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19744915_22" ( "rank" real, "couple" text, "judges" real, "public" real, "total" real, "vote_percentage" text, "result" text ); Question: How many different total points does the couple ranked at number 5 have? <|assistant|> SELECT COUNT("total") FROM "table1_19744915_22" WHERE "rank"=5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19744915_22" ( "rank" real, "couple" text, "judges" real, "public" real, "total" real, "vote_percentage" text, "result" text ); Question: What couple had vote percentage of 21.843%? <|assistant|> SELECT "couple" FROM "table1_19744915_22" WHERE "vote_percentage"='21.843%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19744915_22" ( "rank" real, "couple" text, "judges" real, "public" real, "total" real, "vote_percentage" text, "result" text ); Question: How many judges points did the couple ranked at number 5 have? <|assistant|> SELECT MAX("judges") FROM "table1_19744915_22" WHERE "rank"=5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19744915_22" ( "rank" real, "couple" text, "judges" real, "public" real, "total" real, "vote_percentage" text, "result" text ); Question: What couple had less than 2.0 points from the public? <|assistant|> SELECT "couple" FROM "table1_19744915_22" WHERE "public"<2.0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19744915_17" ( "rank" real, "couple" text, "judges" real, "public" real, "total" real, "vote_percentage" text, "result" text ); Question: What was the total result for couple Ellery and Frankie? <|assistant|> SELECT COUNT("result") FROM "table1_19744915_17" WHERE "couple"='Ellery and Frankie';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19744915_17" ( "rank" real, "couple" text, "judges" real, "public" real, "total" real, "vote_percentage" text, "result" text ); Question: If the vote percentage is 2.111%, what was the minimum rank? <|assistant|> SELECT MIN("rank") FROM "table1_19744915_17" WHERE "vote_percentage"='2.111%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19744915_17" ( "rank" real, "couple" text, "judges" real, "public" real, "total" real, "vote_percentage" text, "result" text ); Question: If the total is 17, what was the maximum rank amount? <|assistant|> SELECT MAX("rank") FROM "table1_19744915_17" WHERE "total"=17;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19744915_17" ( "rank" real, "couple" text, "judges" real, "public" real, "total" real, "vote_percentage" text, "result" text ); Question: For couple Todd and Susie, what was the vote percentage? <|assistant|> SELECT "vote_percentage" FROM "table1_19744915_17" WHERE "couple"='Todd and Susie';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19744915_18" ( "rank" real, "couple" text, "judges" real, "public" real, "total" real, "vote_percentage" text, "result" text ); Question: When 9 is the rank who are the couple? <|assistant|> SELECT "couple" FROM "table1_19744915_18" WHERE "rank"=9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19744915_18" ( "rank" real, "couple" text, "judges" real, "public" real, "total" real, "vote_percentage" text, "result" text ); Question: When roxanne and daniel are the couple what is the highest rank? <|assistant|> SELECT MAX("rank") FROM "table1_19744915_18" WHERE "couple"='Roxanne and Daniel';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19744915_18" ( "rank" real, "couple" text, "judges" real, "public" real, "total" real, "vote_percentage" text, "result" text ); Question: When ellery and frankie are the couple what is the highest total? <|assistant|> SELECT MAX("total") FROM "table1_19744915_18" WHERE "couple"='Ellery and Frankie';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19744915_18" ( "rank" real, "couple" text, "judges" real, "public" real, "total" real, "vote_percentage" text, "result" text ); Question: When 8 is the public what are the results? <|assistant|> SELECT "result" FROM "table1_19744915_18" WHERE "public"=8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19744915_18" ( "rank" real, "couple" text, "judges" real, "public" real, "total" real, "vote_percentage" text, "result" text ); Question: When 8 is the public and the result is safe what is the highest rank? <|assistant|> SELECT MAX("rank") FROM "table1_19744915_18" WHERE "result"='Safe' AND "public"=8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19744915_4" ( "order" real, "couple" text, "karen" text, "nicky" text, "jason" text, "ruthie" text, "robin" text, "total" text, "skating_song" text, "scoreboard" text, "public_vote" text ); Question: Name the karen when nicky is 2.5 <|assistant|> SELECT "karen" FROM "table1_19744915_4" WHERE "nicky"='2.5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "conference_facilities" ( "school" text, "baseball_stadium" text, "softball_stadium" text, "basketball_arena" text, "capacity" text ); Question: What is the capacity for the school that has the Owl Athletic Complex baseball stadium? <|assistant|> SELECT "capacity" FROM "conference_facilities" WHERE "baseball_stadium"='Owl Athletic Complex';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "conference_facilities" ( "school" text, "baseball_stadium" text, "softball_stadium" text, "basketball_arena" text, "capacity" text ); Question: What is the name of the softball stadium for the school that has Eastern Baseball Stadium? <|assistant|> SELECT "softball_stadium" FROM "conference_facilities" WHERE "baseball_stadium"='Eastern Baseball Stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "conference_facilities" ( "school" text, "baseball_stadium" text, "softball_stadium" text, "basketball_arena" text, "capacity" text ); Question: What is the name of UMass Boston's softball stadium? <|assistant|> SELECT "softball_stadium" FROM "conference_facilities" WHERE "school"='UMass Boston';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "conference_facilities" ( "school" text, "baseball_stadium" text, "softball_stadium" text, "basketball_arena" text, "capacity" text ); Question: What is the name of Rhode Island College's softball stadium? <|assistant|> SELECT "softball_stadium" FROM "conference_facilities" WHERE "school"='Rhode Island College';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "conference_facilities" ( "school" text, "baseball_stadium" text, "softball_stadium" text, "basketball_arena" text, "capacity" text ); Question: How many basketball arenas are there that belong to a school with a capacity of 3,000? <|assistant|> SELECT COUNT("basketball_arena") FROM "conference_facilities" WHERE "capacity"='3,000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "conference_facilities" ( "school" text, "baseball_stadium" text, "softball_stadium" text, "basketball_arena" text, "capacity" text ); Question: What is the name of the baseball stadium for the school with the Murray Center basketball arena? <|assistant|> SELECT "baseball_stadium" FROM "conference_facilities" WHERE "basketball_arena"='The Murray Center';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "associate_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "primary_conference" text, "lec_sport" text ); Question: Where is the Westfield State University located? <|assistant|> SELECT "location" FROM "associate_members" WHERE "institution"='Westfield State University';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "associate_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "primary_conference" text, "lec_sport" text ); Question: When was the school in Salem, Massachusetts located? <|assistant|> SELECT "founded" FROM "associate_members" WHERE "location"='Salem, Massachusetts';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "associate_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "primary_conference" text, "lec_sport" text ); Question: What's the nickname of Westfield State University's students? <|assistant|> SELECT "nickname" FROM "associate_members" WHERE "institution"='Westfield State University';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "associate_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "primary_conference" text, "lec_sport" text ); Question: What's Fitchburg State University's LEC sport? <|assistant|> SELECT "lec_sport" FROM "associate_members" WHERE "institution"='Fitchburg State University';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "associate_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "primary_conference" text, "lec_sport" text ); Question: Where is the school whose students are nicknamed falcons located? <|assistant|> SELECT "location" FROM "associate_members" WHERE "nickname"='Falcons';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "associate_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "primary_conference" text, "lec_sport" text ); Question: What's Salem State University's primary conference? <|assistant|> SELECT "primary_conference" FROM "associate_members" WHERE "institution"='Salem State University';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "north_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Name the incumbent for north carolina 9 <|assistant|> SELECT "incumbent" FROM "north_carolina" WHERE "district"='North Carolina 9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "north_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Name the total party for north carolina 7 <|assistant|> SELECT COUNT("party") FROM "north_carolina" WHERE "district"='North Carolina 7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "north_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Name the incumbent for sue myrick (r) 69.0% jeff doctor (d) 31.0% <|assistant|> SELECT "incumbent" FROM "north_carolina" WHERE "candidates"='Sue Myrick (R) 69.0% Jeff Doctor (D) 31.0%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "north_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Name the result for north carolina 7 <|assistant|> SELECT "result" FROM "north_carolina" WHERE "district"='North Carolina 7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "north_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Name the incumbent for north carolina 9 <|assistant|> SELECT "incumbent" FROM "north_carolina" WHERE "district"='North Carolina 9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real ); Question: What's Babson College's enrollment? <|assistant|> SELECT MAX("enrollment") FROM "current_members" WHERE "institution"='Babson College';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real ); Question: When has Clark University joined the Conference? <|assistant|> SELECT MAX("joined") FROM "current_members" WHERE "institution"='Clark University';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real ); Question: What's the type of the school in New London, Connecticut? <|assistant|> SELECT "type" FROM "current_members" WHERE "location"='New London, Connecticut';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real ); Question: When was the school in Springfield, Massachusetts founded? <|assistant|> SELECT MAX("founded") FROM "current_members" WHERE "location"='Springfield, Massachusetts';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "location" text, "nickname" text, "founded" real, "type" text, "enrollment" real, "joined" real ); Question: What school is located in Worcester, Massachusetts? <|assistant|> SELECT "institution" FROM "current_members" WHERE "location"='Worcester, Massachusetts';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19753079_12" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Who are the candidates in Florida 13 district? <|assistant|> SELECT "candidates" FROM "table1_19753079_12" WHERE "district"='Florida 13';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19753079_12" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: How many different pairs of candidates were there for the district first elected in 1988? <|assistant|> SELECT COUNT("candidates") FROM "table1_19753079_12" WHERE "first_elected"=1988;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19753079_12" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: Who were candidates in Florida 10 district? <|assistant|> SELECT "candidates" FROM "table1_19753079_12" WHERE "district"='Florida 10';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19753079_12" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What party got elected in Florida 9 district? <|assistant|> SELECT "party" FROM "table1_19753079_12" WHERE "district"='Florida 9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19751479_4" ( "rnd" real, "circuit" text, "pole_position" text, "fastest_lap" text, "winner" text, "results" text ); Question: What is the first round that had #67 the racer's group with the fastest lap? <|assistant|> SELECT MIN("rnd") FROM "table1_19751479_4" WHERE "fastest_lap"='#67 The Racer''s Group';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_19751479_4" ( "rnd" real, "circuit" text, "pole_position" text, "fastest_lap" text, "winner" text, "results" text ); Question: How many races had #99 gainsco/bob stallings racing in round 10? <|assistant|> SELECT COUNT("fastest_lap") FROM "table1_19751479_4" WHERE "rnd"=10 AND "pole_position"='#99 GAINSCO/Bob Stallings Racing';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "california" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What incumbent was first elected in 2009? <|assistant|> SELECT "incumbent" FROM "california" WHERE "first_elected"=2009;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "california" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: How many were first elected in California 7? <|assistant|> SELECT "first_elected" FROM "california" WHERE "district"='California 7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "california" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: What district did George Miller belong to? <|assistant|> SELECT "district" FROM "california" WHERE "incumbent"='George Miller';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pennsylvania" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: When mark critz (d) 50.8% tim burns (r) 49.2% are the candidates what is the party? <|assistant|> SELECT "party" FROM "pennsylvania" WHERE "candidates"='Mark Critz (D) 50.8% Tim Burns (R) 49.2%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pennsylvania" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: When chris carney is the incumbent what are the results? <|assistant|> SELECT "result" FROM "pennsylvania" WHERE "incumbent"='Chris Carney';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pennsylvania" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: When 1994 is the first elected what is the district? <|assistant|> SELECT "district" FROM "pennsylvania" WHERE "first_elected"=1994;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pennsylvania" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: When pennsylvania 3 is the district who is the incumbent? <|assistant|> SELECT "incumbent" FROM "pennsylvania" WHERE "district"='Pennsylvania 3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pennsylvania" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text, "candidates" text ); Question: When 1984 is the first elected who are the candidates? <|assistant|> SELECT "candidates" FROM "pennsylvania" WHERE "first_elected"=1984;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semi_final_2_21_february_2009" ( "draw" real, "artist" text, "song" text, "jury_votes" real, "televotes" real, "total_votes" real, "result" text ); Question: What is Salva Ortega's result? <|assistant|> SELECT "result" FROM "semi_final_2_21_february_2009" WHERE "artist"='Salva Ortega';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semi_final_2_21_february_2009" ( "draw" real, "artist" text, "song" text, "jury_votes" real, "televotes" real, "total_votes" real, "result" text ); Question: How many televotes are there for "Lujuria"? <|assistant|> SELECT "televotes" FROM "semi_final_2_21_february_2009" WHERE "song"='\"Lujuria\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semi_final_2_21_february_2009" ( "draw" real, "artist" text, "song" text, "jury_votes" real, "televotes" real, "total_votes" real, "result" text ); Question: How many televotes are there where there is 4 jury votes? <|assistant|> SELECT "televotes" FROM "semi_final_2_21_february_2009" WHERE "jury_votes"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semi_final_2_21_february_2009" ( "draw" real, "artist" text, "song" text, "jury_votes" real, "televotes" real, "total_votes" real, "result" text ); Question: How many jury votes for the televote of 7? <|assistant|> SELECT "jury_votes" FROM "semi_final_2_21_february_2009" WHERE "televotes"=7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semi_final_1_14_february_2009" ( "draw" real, "artist" text, "song" text, "jury_votes" text, "televotes" real, "total_votes" real, "result" text ); Question: What is the result for Normativa Vigente? <|assistant|> SELECT "result" FROM "semi_final_1_14_february_2009" WHERE "artist"='Normativa Vigente';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semi_final_1_14_february_2009" ( "draw" real, "artist" text, "song" text, "jury_votes" text, "televotes" real, "total_votes" real, "result" text ); Question: What song has 24 votes? <|assistant|> SELECT "song" FROM "semi_final_1_14_february_2009" WHERE "total_votes"=24;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semi_final_1_14_february_2009" ( "draw" real, "artist" text, "song" text, "jury_votes" text, "televotes" real, "total_votes" real, "result" text ); Question: What is the least total votes? <|assistant|> SELECT MIN("total_votes") FROM "semi_final_1_14_february_2009";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semi_final_1_14_february_2009" ( "draw" real, "artist" text, "song" text, "jury_votes" text, "televotes" real, "total_votes" real, "result" text ); Question: How many votes does Carlos Ferrer Eai have? <|assistant|> SELECT "total_votes" FROM "semi_final_1_14_february_2009" WHERE "artist"='Carlos Ferrer EAI';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men_s_singles" ( "num" real, "player" text, "age" real, "australian_open" real, "french_open" real, "wimbledon" real, "us_open" real ); Question: How many players are on this list? <|assistant|> SELECT MAX("num") FROM "men_s_singles";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men_s_singles" ( "num" real, "player" text, "age" real, "australian_open" real, "french_open" real, "wimbledon" real, "us_open" real ); Question: Who won the French Open in 1999? <|assistant|> SELECT "player" FROM "men_s_singles" WHERE "french_open"=1999;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men_s_singles" ( "num" real, "player" text, "age" real, "australian_open" real, "french_open" real, "wimbledon" real, "us_open" real ); Question: Who won the US Open in 1937? <|assistant|> SELECT "player" FROM "men_s_singles" WHERE "us_open"=1937;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men_s_singles" ( "num" real, "player" text, "age" real, "australian_open" real, "french_open" real, "wimbledon" real, "us_open" real ); Question: How many times did Roy Emerson win the Australian Open? <|assistant|> SELECT COUNT("australian_open") FROM "men_s_singles" WHERE "player"='Roy Emerson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men_s_singles" ( "num" real, "player" text, "age" real, "australian_open" real, "french_open" real, "wimbledon" real, "us_open" real ); Question: At what age did Roy Emerson complete the Grand Slam? <|assistant|> SELECT MAX("age") FROM "men_s_singles" WHERE "player"='Roy Emerson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goalscorers" ( "rank" real, "no" real, "pos" text, "player" text, "premier_league" real, "fa_cup" real, "league_cup" real, "champions_league" real, "club_world_cup" real, "total" real ); Question: Name the least rank for 2 <|assistant|> SELECT MIN("rank") FROM "goalscorers" WHERE "total"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goalscorers" ( "rank" real, "no" real, "pos" text, "player" text, "premier_league" real, "fa_cup" real, "league_cup" real, "champions_league" real, "club_world_cup" real, "total" real ); Question: Name the total for jamie carragher <|assistant|> SELECT "total" FROM "goalscorers" WHERE "player"='Jamie Carragher';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goalscorers" ( "rank" real, "no" real, "pos" text, "player" text, "premier_league" real, "fa_cup" real, "league_cup" real, "champions_league" real, "club_world_cup" real, "total" real ); Question: Name the total number of club worl cup for djibril cisse <|assistant|> SELECT COUNT("club_world_cup") FROM "goalscorers" WHERE "player"='Djibril Cisse';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administration" ( "english_name" text, "chinese_name_simplified_traditional" text, "pinyin" text, "population" real, "post_code" real ); Question: What's the post code of the county with the Chinese name 潜山县 / 潛山縣? <|assistant|> SELECT MIN("post_code") FROM "administration" WHERE "chinese_name_simplified_traditional"='潜山县 / 潛山縣';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administration" ( "english_name" text, "chinese_name_simplified_traditional" text, "pinyin" text, "population" real, "post_code" real ); Question: What's the English name of the county called 太湖县 / 太湖縣 in Chinese? <|assistant|> SELECT "english_name" FROM "administration" WHERE "chinese_name_simplified_traditional"='太湖县 / 太湖縣';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administration" ( "english_name" text, "chinese_name_simplified_traditional" text, "pinyin" text, "population" real, "post_code" real ); Question: What's the English name of the county with a postcode 246400? <|assistant|> SELECT "english_name" FROM "administration" WHERE "post_code"=246400;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administration" ( "english_name" text, "chinese_name_simplified_traditional" text, "pinyin" text, "population" real, "post_code" real ); Question: What's the Chinese (simplified/traditional) name of Susong County? <|assistant|> SELECT "chinese_name_simplified_traditional" FROM "administration" WHERE "english_name"='Susong County';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administration" ( "english_name" text, "chinese_name_simplified_traditional" text, "pinyin" text, "population" real, "post_code" real ); Question: What's the Pinyin name of the county with a postcode 246500? <|assistant|> SELECT "pinyin" FROM "administration" WHERE "post_code"=246500;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location" text, "record" text ); Question: On how many different dates was a game against Houston played? <|assistant|> SELECT COUNT("date") FROM "regular_season" WHERE "opponent"='Houston';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location" text, "record" text ); Question: How many different players did the high assists in games where the high rebounds were done by Sales (10)? <|assistant|> SELECT COUNT("high_assists") FROM "regular_season" WHERE "high_rebounds"='Sales (10)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location" text, "record" text ); Question: What's the number of the game played on June 22? <|assistant|> SELECT MAX("game") FROM "regular_season" WHERE "date"='June 22';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location" text, "record" text ); Question: Who was game number 8 played against? <|assistant|> SELECT "opponent" FROM "regular_season" WHERE "game"=8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location" text, "record" text ); Question: Who did the high rebounds in the game in which five players (3) did the high assists? <|assistant|> SELECT "high_rebounds" FROM "regular_season" WHERE "high_assists"='Five Players (3)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "present_subjunctive" ( "verbs" text, "yo" text, "t" text, "vos" text, "l_ella_usted" text, "nosotros_nosotras" text, "vosotros_vosotras" text, "ellos_ellas_ustedes" text ); Question: What are all the conjugated forms of the verb where the el/ ella/usted verb is piense? <|assistant|> SELECT "nosotros_nosotras" FROM "present_subjunctive" WHERE "l_ella_usted"='piense';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "present_subjunctive" ( "verbs" text, "yo" text, "t" text, "vos" text, "l_ella_usted" text, "nosotros_nosotras" text, "vosotros_vosotras" text, "ellos_ellas_ustedes" text ); Question: What are all the conjugated forms of the verb moler where the vosotros / vosotras is moláis for the yo tense? <|assistant|> SELECT "yo" FROM "present_subjunctive" WHERE "vosotros_vosotras"='moláis';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "present_subjunctive" ( "verbs" text, "yo" text, "t" text, "vos" text, "l_ella_usted" text, "nosotros_nosotras" text, "vosotros_vosotras" text, "ellos_ellas_ustedes" text ); Question: how many verbs have the yo form as sienta? <|assistant|> SELECT COUNT("verbs") FROM "present_subjunctive" WHERE "yo"='sienta';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "present_subjunctive" ( "verbs" text, "yo" text, "t" text, "vos" text, "l_ella_usted" text, "nosotros_nosotras" text, "vosotros_vosotras" text, "ellos_ellas_ustedes" text ); Question: What us the conjucated form(s) of el/ella/ usted when the Vos (*) is muelas / molás? <|assistant|> SELECT "l_ella_usted" FROM "present_subjunctive" WHERE "vos"='muelas / molás';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "present_subjunctive" ( "verbs" text, "yo" text, "t" text, "vos" text, "l_ella_usted" text, "nosotros_nosotras" text, "vosotros_vosotras" text, "ellos_ellas_ustedes" text ); Question: What are the forms of the conjucated vos(*) where él / ella / usted is muela <|assistant|> SELECT "vos" FROM "present_subjunctive" WHERE "l_ella_usted"='muela';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "toll_rates" ( "vehicle_category" text, "till_aligarh" real, "till_mathura" real, "till_agra" real, "for_round_trip" real ); Question: How many have the Till Agra of 500? <|assistant|> SELECT COUNT("till_mathura") FROM "toll_rates" WHERE "till_agra"=500;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "toll_rates" ( "vehicle_category" text, "till_aligarh" real, "till_mathura" real, "till_agra" real, "for_round_trip" real ); Question: What kind of vehicle is the agra 1050? <|assistant|> SELECT "vehicle_category" FROM "toll_rates" WHERE "till_agra"=1050;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "toll_rates" ( "vehicle_category" text, "till_aligarh" real, "till_mathura" real, "till_agra" real, "for_round_trip" real ); Question: If the till aligarh is 150, what the mac till mathura? <|assistant|> SELECT MAX("till_mathura") FROM "toll_rates" WHERE "till_aligarh"=150;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "toll_rates" ( "vehicle_category" text, "till_aligarh" real, "till_mathura" real, "till_agra" real, "for_round_trip" real ); Question: If the till agra is 1050, what is the max round trip? <|assistant|> SELECT MAX("for_round_trip") FROM "toll_rates" WHERE "till_agra"=1050;<|endoftext|>