text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What is the score of the game home team gillingham played on 23 january 1982? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What is the tie no of the game that home team huddersfield town played? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "chicago_black_hawks_4_st_louis_blues_1" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What is the home team of the game with a 2-0 record? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "chicago_black_hawks_4_st_louis_blues_1" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What is the score of the game with a 3-0 record? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "chicago_black_hawks_4_st_louis_blues_1" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What is the visitor team on April 4? <|assistant|> SELECT "visitor" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "chicago_black_hawks_4_st_louis_blues_1" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What is the score of the game with the chicago black hawks as the vi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparison_of_features" ( "name" text, "e_mail_server" text, "faxing" text, "instant_messaging" text, "telephony" text, "videoconferencing" text, "web_conferencing" text, "data_conferencin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparison_of_features" ( "name" text, "e_mail_server" text, "faxing" text, "instant_messaging" text, "telephony" text, "videoconferencing" text, "web_conferencing" text, "data_conferencin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparison_of_features" ( "name" text, "e_mail_server" text, "faxing" text, "instant_messaging" text, "telephony" text, "videoconferencing" text, "web_conferencing" text, "data_conferencin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparison_of_features" ( "name" text, "e_mail_server" text, "faxing" text, "instant_messaging" text, "telephony" text, "videoconferencing" text, "web_conferencing" text, "data_conferencin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparison_of_features" ( "name" text, "e_mail_server" text, "faxing" text, "instant_messaging" text, "telephony" text, "videoconferencing" text, "web_conferencing" text, "data_conferencin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparison_of_features" ( "name" text, "e_mail_server" text, "faxing" text, "instant_messaging" text, "telephony" text, "videoconferencing" text, "web_conferencing" text, "data_conferencin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_the_most_populous_us_counties_so" ( "rank" text, "county" text, "state" text, "land_area_km" text, "land_area_mi" text, "april_1_2010_census" text, "april_1_2010_density_km" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_the_most_populous_us_counties_so" ( "rank" text, "county" text, "state" text, "land_area_km" text, "land_area_mi" text, "april_1_2010_census" text, "april_1_2010_density_km" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_the_most_populous_us_counties_so" ( "rank" text, "county" text, "state" text, "land_area_km" text, "land_area_mi" text, "april_1_2010_census" text, "april_1_2010_density_km" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_the_most_populous_us_counties_so" ( "rank" text, "county" text, "state" text, "land_area_km" text, "land_area_mi" text, "april_1_2010_census" text, "april_1_2010_density_km" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_the_most_populous_us_counties_so" ( "rank" text, "county" text, "state" text, "land_area_km" text, "land_area_mi" text, "april_1_2010_census" text, "april_1_2010_density_km" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_the_most_populous_us_counties_so" ( "rank" text, "county" text, "state" text, "land_area_km" text, "land_area_mi" text, "april_1_2010_census" text, "april_1_2010_density_km" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_20_8_12" ( "outcome" text, "date" real, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What Tournament has an Outcome of winner, and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_20_8_12" ( "outcome" text, "date" real, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What Partner has a Score of 3–6, 2–6? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_20_8_12" ( "outcome" text, "date" real, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What Tournament has a Partner of tom gorman? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_20_8_12" ( "outcome" text, "date" real, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What Outcome has Opponents of bob hewitt frew ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1961" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: Who was the name of the opposing team on 11/02/1961? <|assistant|> SELECT "opposing_teams" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1961" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: Which Opposing team had an Against smaller Than 5? <|assistant|> SELECT "opposing_teams" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1961" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: What is the status for 07/01/1961? <|assistant|> SELECT "status" FROM "1961" WHERE "date"='0...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick" real, "afl_team" text, "player" text, "position" text, "college" text ); Question: What position does Karl Singer play? <|assistant|> SELECT "position" FROM "round_one" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick" real, "afl_team" text, "player" text, "position" text, "college" text ); Question: Which player is an offensive tackle for the New York Jets? <|assistant|> SELECT "player" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick" real, "afl_team" text, "player" text, "position" text, "college" text ); Question: What position does Mike Dennis play? <|assistant|> SELECT "position" FROM "round_one" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick" real, "afl_team" text, "player" text, "position" text, "college" text ); Question: Which AFL team has a pick 4 for the offensive tackle position? <|assistant|> SELECT "afl_t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "loans" ( "name" text, "country" text, "loan_club" text, "started" text, "ended" text, "start_source" text ); Question: From which country was Sodje loaned? <|assistant|> SELECT "country" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "loans" ( "name" text, "country" text, "loan_club" text, "started" text, "ended" text, "start_source" text ); Question: From which club is player C. Dickinson? <|assistant|> SELECT "loan_club"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_ships" ( "ship" text, "tonnage" text, "builder" text, "original_operator" text, "fate" text ); Question: What is the fate for the Bremen ship? <|assistant|> SELECT "fate" FROM "the_ships" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_ships" ( "ship" text, "tonnage" text, "builder" text, "original_operator" text, "fate" text ); Question: Who is the original operator for the AG Vulcan builder and the Prinzess Irene ship? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_ships" ( "ship" text, "tonnage" text, "builder" text, "original_operator" text, "fate" text ); Question: What is the Tonnage that has builder AG Vulcan, and the original operator NDL, and t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "swimming_and_diving" ( "combined" text, "50_yard_freestyle" text, "100_yard_freestyle" text, "200_yard_freestyle" text, "500_yard_freestyle" text, "100_yard_backstroke" text, "100_yard_butte...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "swimming_and_diving" ( "combined" text, "50_yard_freestyle" text, "100_yard_freestyle" text, "200_yard_freestyle" text, "500_yard_freestyle" text, "100_yard_backstroke" text, "100_yard_butte...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "swimming_and_diving" ( "combined" text, "50_yard_freestyle" text, "100_yard_freestyle" text, "200_yard_freestyle" text, "500_yard_freestyle" text, "100_yard_backstroke" text, "100_yard_butte...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "swimming_and_diving" ( "combined" text, "50_yard_freestyle" text, "100_yard_freestyle" text, "200_yard_freestyle" text, "500_yard_freestyle" text, "100_yard_backstroke" text, "100_yard_butte...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "swimming_and_diving" ( "combined" text, "50_yard_freestyle" text, "100_yard_freestyle" text, "200_yard_freestyle" text, "500_yard_freestyle" text, "100_yard_backstroke" text, "100_yard_butte...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "swimming_and_diving" ( "combined" text, "50_yard_freestyle" text, "100_yard_freestyle" text, "200_yard_freestyle" text, "500_yard_freestyle" text, "100_yard_backstroke" text, "100_yard_butte...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: Who has a Score of 68-71-70=208? <|assistant|> SELECT "player" FROM "third_round" WHERE "sco...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: Which country has -9 to par with a Score of 70-69-68=207? <|assistant|> SELECT "country" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What is Tiger Woods' to par? <|assistant|> SELECT "to_par" FROM "third_round" WHERE "player"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: Which away team played against Peterborough United, with a tie no of replay? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wickets" ( "player" text, "team" text, "matches" real, "overs" real, "runs" real, "wickets" real, "best" text, "econ" real, "s_rate" real, "4_inns" real, "5_inns" real, "average" r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wickets" ( "player" text, "team" text, "matches" real, "overs" real, "runs" real, "wickets" real, "best" text, "econ" real, "s_rate" real, "4_inns" real, "5_inns" real, "average" r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wickets" ( "player" text, "team" text, "matches" real, "overs" real, "runs" real, "wickets" real, "best" text, "econ" real, "s_rate" real, "4_inns" real, "5_inns" real, "average" r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wickets" ( "player" text, "team" text, "matches" real, "overs" real, "runs" real, "wickets" real, "best" text, "econ" real, "s_rate" real, "4_inns" real, "5_inns" real, "average" r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_titles_4" ( "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: What is the surface when the partner was Robert Ha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episode_ratings" ( "episode_no" text, "airdate" text, "time" text, "ratings_5_capital_cities" real, "timeslot_rank" text, "overall_nightly_rank" text ); Question: What was the rating of the e...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_results" ( "round" text, "date" text, "event" text, "circuit" text, "winning_driver" text, "winning_team" text ); Question: Who was the winning team on May 12? <|assistant|> SELECT "winn...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_results" ( "round" text, "date" text, "event" text, "circuit" text, "winning_driver" text, "winning_team" text ); Question: Who was the winning team for circuit zolder? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_results" ( "round" text, "date" text, "event" text, "circuit" text, "winning_driver" text, "winning_team" text ); Question: Who was the winning team for round 3? <|assistant|> SELECT "wi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_results" ( "round" text, "date" text, "event" text, "circuit" text, "winning_driver" text, "winning_team" text ); Question: Who was the winning team on July 13? <|assistant|> SELECT "win...
<|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, "event" text ); Question: Name the highest Year which has a Venue of narbonne , france? <|assistant|> SELECT MAX(...
<|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, "event" text ); Question: Which Competition has a Year larger than 1990 in seville , spain? <|assistant|> SELECT ...
<|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, "event" text ); Question: COunt the Year which has a Venue of latakia , syria? <|assistant|> SELECT COUNT("year")...
<|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, "event" text ); Question: Which Position has an Event of 4x400 m relay, and a Venue of stuttgart , germany? <|as...
<|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, "event" text ); Question: Which Year has a Competition of european indoor championships, and a Venue of budapest ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_drivers" ( "team" text, "driver" text, "class" text, "chassis" text, "engine" text, "rounds" text ); Question: How many rounds did satrio hermanto go with an opc-challenge engine? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_drivers" ( "team" text, "driver" text, "class" text, "chassis" text, "engine" text, "rounds" text ); Question: How many rounds did frédéric vervisch go? <|assistant|> SELECT "rounds...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_drivers" ( "team" text, "driver" text, "class" text, "chassis" text, "engine" text, "rounds" text ); Question: How many rounds did shirley van der lof go? <|assistant|> SELECT "roun...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_drivers" ( "team" text, "driver" text, "class" text, "chassis" text, "engine" text, "rounds" text ); Question: What c class engine did philipp eng and team hs technik motorsport use...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_drivers" ( "team" text, "driver" text, "class" text, "chassis" text, "engine" text, "rounds" text ); Question: What is the chassis of rahel frey's volkswagen engine? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_ladder" ( "golden_rivers" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the greatest number of losses when the against is 1465 and ther...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_ladder" ( "golden_rivers" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the total of against matches when there are less than 12 wins, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_ladder" ( "golden_rivers" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the total losses when Hay is the golden river and there are mor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_ladder" ( "golden_rivers" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the total number of draws when there are 1465 against matches a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_ladder" ( "golden_rivers" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the greatest number of losses when there are more than 0 draws ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_ladder" ( "golden_rivers" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: What is the highest number of wins when there are more than 2 byes? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "head_coaching_history" ( "name" text, "years" text, "wins" real, "losses" real, "ties" real, "pct" real ); Question: Which percent has Wins larger than 72, and a Name of john yovicsin? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "head_coaching_history" ( "name" text, "years" text, "wins" real, "losses" real, "ties" real, "pct" real ); Question: How many Ties have Years of 1919–1925, and a Pct larger than 0.734? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "head_coaching_history" ( "name" text, "years" text, "wins" real, "losses" real, "ties" real, "pct" real ); Question: Which Pct has Years of 1957–1970, and Wins smaller than 78? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "head_coaching_history" ( "name" text, "years" text, "wins" real, "losses" real, "ties" real, "pct" real ); Question: Which Wins have Years of 1881, and a Pct larger than 0.75? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grammy_hall_of_fame" ( "year_recorded" text, "title" text, "genre" text, "label" text, "year_inducted" text ); Question: What's the genre of the song recorded in 1929? <|assistant|> SELECT "gen...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grammy_hall_of_fame" ( "year_recorded" text, "title" text, "genre" text, "label" text, "year_inducted" text ); Question: What label is "weather bird" under? <|assistant|> SELECT "label" FROM "g...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grammy_hall_of_fame" ( "year_recorded" text, "title" text, "genre" text, "label" text, "year_inducted" text ); Question: What's the year inducted for the label of label? <|assistant|> SELECT "y...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grammy_hall_of_fame" ( "year_recorded" text, "title" text, "genre" text, "label" text, "year_inducted" text ); Question: What genre is the song recorded in 1929? <|assistant|> SELECT "genre" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grammy_hall_of_fame" ( "year_recorded" text, "title" text, "genre" text, "label" text, "year_inducted" text ); Question: What genre is the song recorded in 1926? <|assistant|> SELECT "genre" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "name" text, "residence" text, "party" text, "years_in_assembly" text, "years_in_senate" text ); Question: Which Party has a Residence of san diego? <|assistant|> SELECT "par...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "name" text, "residence" text, "party" text, "years_in_assembly" text, "years_in_senate" text ); Question: Which Years in Senate has a Years in Assembly of 2010–present, and...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "name" text, "residence" text, "party" text, "years_in_assembly" text, "years_in_senate" text ); Question: Which Party has Years in Senate of —, and Years in Assembly of 201...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "name" text, "residence" text, "party" text, "years_in_assembly" text, "years_in_senate" text ); Question: Show the Residence whose Name is rich gordon? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "name" text, "residence" text, "party" text, "years_in_assembly" text, "years_in_senate" text ); Question: Which Years in Assembly has a Name of toni atkins? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "name" text, "residence" text, "party" text, "years_in_assembly" text, "years_in_senate" text ); Question: Which Party has Years in Assembly of 2008–present, and a Name of to...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: In what year(s) did Raymond Floyd have a total of less than 291 and a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: What was Jeff Sluman's To par when his total was smaller than 284? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: What was the finish for Lanny Wadkins of the United States? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: Which player had a To par of +11? <|assistant|> SELECT "player" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: From which country was the player whose year(s) won was 1983? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: What is the total for the player whose finish was t66? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "locomotives_and_wagons" ( "class" text, "quantity" real, "type" text, "delivered" text, "k_b_sts_b_class" text, "retired" text ); Question: What is the type of the locomotive which was delive...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "locomotives_and_wagons" ( "class" text, "quantity" real, "type" text, "delivered" text, "k_b_sts_b_class" text, "retired" text ); Question: What is the highest quantity of the b ix k.b.sts.b....
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "locomotives_and_wagons" ( "class" text, "quantity" real, "type" text, "delivered" text, "k_b_sts_b_class" text, "retired" text ); Question: What is the lowest quantity of the 1b n2 type, whic...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "virginia" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text ); Question: What district is Jim Moran the incumbent for. <|assistant|> SELECT "district" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "virginia" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text ); Question: What was the election result before 2004 where Eric Cantor was the incumbent? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "names_in_national_languages" ( "abbr" text, "common_english" text, "french" text, "italian" text, "romansh" text ); Question: What is the common English for the Italian word san gallo? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "names_in_national_languages" ( "abbr" text, "common_english" text, "french" text, "italian" text, "romansh" text ); Question: What is the italian word for Glarus? <|assistant|> SELECT "italian"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "names_in_national_languages" ( "abbr" text, "common_english" text, "french" text, "italian" text, "romansh" text ); Question: What is the common english word with the abbr of ai? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "names_in_national_languages" ( "abbr" text, "common_english" text, "french" text, "italian" text, "romansh" text ); Question: What is the abbr of argovia? <|assistant|> SELECT "abbr" FROM "name...