text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What Team 1 has union douala as Team 2? <|assistant|> SELECT "team_1" FROM "second_round" WHERE "team_2"='union douala';<|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 score of the game that had a loss of Cerutti (0-1)? <|assistant|> SELECT "score" FROM "game_log" WHERE "loss"='cerutti (0-1)';<|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: Who was the opponent at the game that had a record of 93-54? <|assistant|> SELECT "opponent" FROM "game_log" WHERE "record"='93-54';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); Question: What was the score to par for 156 strokes? <|assistant|> SELECT COUNT("to_par") FROM "missed_the_cut" WHERE "total">156;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); Question: How many strokes for arnold palmer with a to par of greater than 9? <|assistant|> SELECT AVG("total") FROM "missed_the_cut" WHERE "to_par">9 AND "player"='arnold palmer';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); Question: What was the score to par in 1960? <|assistant|> SELECT "to_par" FROM "missed_the_cut" WHERE "year_s_won"='1960';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rugby_germany_internationals_1989" ( "first_game" real, "played" real, "drawn" real, "lost" real, "percentage" text ); Question: What is the earliest first game for a rugby team that has 7 lost games and 0 draws? <|assistant|> SELECT MIN("first_game") FROM "rugby_germany_internationals_1989" WHERE "lost"=7 AND "drawn"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rugby_germany_internationals_1989" ( "first_game" real, "played" real, "drawn" real, "lost" real, "percentage" text ); Question: How many games were played by a team that won 0.00% of their games and 0 draws? <|assistant|> SELECT SUM("played") FROM "rugby_germany_internationals_1989" WHERE "percentage"='0.00%' AND "drawn"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team_wins_losses_and_draws" ( "team" text, "1st_match" text, "matches" text, "lost" text, "pct_won" text ); Question: Name the matches for the first match being 30 march 1997 <|assistant|> SELECT "matches" FROM "team_wins_losses_and_draws" WHERE "1st_match"='30 march 1997';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team_wins_losses_and_draws" ( "team" text, "1st_match" text, "matches" text, "lost" text, "pct_won" text ); Question: Name the 1st match for brisbane bears <|assistant|> SELECT "1st_match" FROM "team_wins_losses_and_draws" WHERE "team"='brisbane bears';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team_wins_losses_and_draws" ( "team" text, "1st_match" text, "matches" text, "lost" text, "pct_won" text ); Question: Name the lost for matches of 1 928 <|assistant|> SELECT "lost" FROM "team_wins_losses_and_draws" WHERE "matches"='1 928';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team_wins_losses_and_draws" ( "team" text, "1st_match" text, "matches" text, "lost" text, "pct_won" text ); Question: Name the lost for % won of 55.37 <|assistant|> SELECT "lost" FROM "team_wins_losses_and_draws" WHERE "pct_won"='55.37';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team_wins_losses_and_draws" ( "team" text, "1st_match" text, "matches" text, "lost" text, "pct_won" text ); Question: Name the matches for gold coast <|assistant|> SELECT "matches" FROM "team_wins_losses_and_draws" WHERE "team"='gold coast';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team_wins_losses_and_draws" ( "team" text, "1st_match" text, "matches" text, "lost" text, "pct_won" text ); Question: Name the lost for % won of 55.37 <|assistant|> SELECT "lost" FROM "team_wins_losses_and_draws" WHERE "pct_won"='55.37';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "year" text, "x_dsl" text, "cable" text, "ft_tx" text, "other" text ); Question: What is the year when cable was 4.6%? <|assistant|> SELECT "year" FROM "statistics" WHERE "cable"='4.6%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "year" text, "x_dsl" text, "cable" text, "ft_tx" text, "other" text ); Question: What is the other for 2012? <|assistant|> SELECT "other" FROM "statistics" WHERE "year"='2012';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "year" text, "x_dsl" text, "cable" text, "ft_tx" text, "other" text ); Question: What is the xDSL for the other of 0.6% and FTTx of 35.4%? <|assistant|> SELECT "x_dsl" FROM "statistics" WHERE "other"='0.6%' AND "ft_tx"='35.4%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "year" text, "x_dsl" text, "cable" text, "ft_tx" text, "other" text ); Question: What is the other for a 78.2% xDSL? <|assistant|> SELECT "other" FROM "statistics" WHERE "x_dsl"='78.2%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "year" text, "x_dsl" text, "cable" text, "ft_tx" text, "other" text ); Question: What is the xDSL in 2010 when the other was 0.6%? <|assistant|> SELECT "x_dsl" FROM "statistics" WHERE "other"='0.6%' AND "year"='2010';<|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: Which date has a Result of won, and a Score of 1-0? <|assistant|> SELECT "date" FROM "international_goals" WHERE "result"='won' AND "score"='1-0';<|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: Which result has a Date of november 2, 2007? <|assistant|> SELECT "result" FROM "international_goals" WHERE "date"='november 2, 2007';<|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: Which Competition has a Score of 2-0? <|assistant|> SELECT "competition" FROM "international_goals" WHERE "score"='2-0';<|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: Which Venue has a Date of january 9, 2011? <|assistant|> SELECT "venue" FROM "international_goals" WHERE "date"='january 9, 2011';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "representative" text, "title" text, "presentation_of_credentials" text, "termination_of_mission" text, "appointed_by" text ); Question: What is the termination of mission date of the representative with a presentation of credentials date on July 4, 1898? <|assistant|> SELECT "termination_of_mission" FROM "see_also" WHERE "presentation_of_credentials"='july 4, 1898';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "representative" text, "title" text, "presentation_of_credentials" text, "termination_of_mission" text, "appointed_by" text ); Question: What is the presentation of credentials date of raúl h. castro, who has a title of ambassador extraordinary and plenipotentiary? <|assistant|> SELECT "presentation_of_credentials" FROM "see_also" WHERE "title"='ambassador extraordinary and plenipotentiary' AND "representative"='raúl h. castro';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "representative" text, "title" text, "presentation_of_credentials" text, "termination_of_mission" text, "appointed_by" text ); Question: Who is the representative with a presentation of credentials date on February 23, 1854? <|assistant|> SELECT "representative" FROM "see_also" WHERE "presentation_of_credentials"='february 23, 1854';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "representative" text, "title" text, "presentation_of_credentials" text, "termination_of_mission" text, "appointed_by" text ); Question: What is the title of the representative appointed by James K. Polk? <|assistant|> SELECT "title" FROM "see_also" WHERE "appointed_by"='james k. polk';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "representative" text, "title" text, "presentation_of_credentials" text, "termination_of_mission" text, "appointed_by" text ); Question: What is the termination of mission date of the representative appointed by Franklin Pierce with a title of chargé d'affaires? <|assistant|> SELECT "termination_of_mission" FROM "see_also" WHERE "appointed_by"='franklin pierce' AND "title"='chargé d''affaires';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_season" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: What is the Stadium held on november 29? <|assistant|> SELECT "stadium" FROM "2007_season" WHERE "date"='november 29';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_season" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: Who is the Visiting team on december 20? <|assistant|> SELECT "visiting_team" FROM "2007_season" WHERE "date"='december 20';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_season" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: Which Stadium has a Visiting team of pittsburgh steelers? <|assistant|> SELECT "stadium" FROM "2007_season" WHERE "visiting_team"='pittsburgh steelers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_season" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: Who is the Host team that has a chicago bears as a visiting team? <|assistant|> SELECT "host_team" FROM "2007_season" WHERE "visiting_team"='chicago bears';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_season" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: What is the Final score on november 22? <|assistant|> SELECT "final_score" FROM "2007_season" WHERE "date"='november 22';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_season" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: What is the Host team that has indianapolis colts as a Visiting team? <|assistant|> SELECT "host_team" FROM "2007_season" WHERE "visiting_team"='indianapolis colts';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "winners" text, "club" text, "time" text, "runners_up" text ); Question: Who won when np cooper av cooke was runner up? <|assistant|> SELECT "winners" FROM "winners" WHERE "runners_up"='np cooper av cooke';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: What was the record of the match that had a time of 1:44? <|assistant|> SELECT "record" FROM "mixed_martial_arts_record" WHERE "time"='1:44';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: Who was the opponent at GCM – D.O.G. 4? <|assistant|> SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "event"='gcm – d.o.g. 4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: What was the location of the match that ended before round 2, against Hikaru Sato? <|assistant|> SELECT "location" FROM "mixed_martial_arts_record" WHERE "round"<2 AND "opponent"='hikaru sato';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_10" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" text, "investing_dragon_s" text ); Question: What was the Company or Product name where Entrepreneurs Geoff and Colette Bell requested £75,000? <|assistant|> SELECT "company_or_product_name" FROM "series_10" WHERE "money_requested"='75,000' AND "entrepreneur_s"='geoff and colette bell';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_10" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" text, "investing_dragon_s" text ); Question: Which Investing Dragon(s) belong to Episode 9 with the Entrepreneur Ashley Sayed? <|assistant|> SELECT "investing_dragon_s" FROM "series_10" WHERE "episode"='episode 9' AND "entrepreneur_s"='ashley sayed';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_10" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" text, "investing_dragon_s" text ); Question: What Episode did Entrepreneur(s) Luke Booth and Christopher Eves take part? <|assistant|> SELECT "episode" FROM "series_10" WHERE "entrepreneur_s"='luke booth and christopher eves';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_10" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" text, "investing_dragon_s" text ); Question: Which Company or Product name requested £70,000 on Episode 11? <|assistant|> SELECT "company_or_product_name" FROM "series_10" WHERE "episode"='episode 11' AND "money_requested"='70,000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: What is the year in which Yong Yudianto won the men's singles? <|assistant|> SELECT MIN("year") FROM "previous_winners" WHERE "men_s_singles"='yong yudianto';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Who won the men's singles in 1999? <|assistant|> SELECT "men_s_singles" FROM "previous_winners" WHERE "year"=1999;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2007_squads" ( "player" text, "height" real, "position" text, "year_born" real, "current_club" text ); Question: What is stephen arigbabu's height? <|assistant|> SELECT MIN("height") FROM "fiba_euro_basket_2007_squads" WHERE "player"='stephen arigbabu';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: For all games with los angeles as visitor, what is the highest attendance of all? <|assistant|> SELECT MAX("attendance") FROM "february" WHERE "visitor"='los angeles';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: For all games with calgary as home, what is the average number of attendees? <|assistant|> SELECT AVG("attendance") FROM "february" WHERE "home"='calgary';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nominations" ( "no_1" text, "no_2" text, "no_3" text, "no_5" text, "no_6" text, "final" text ); Question: Who is no. 5 when Lena Claudisabel is no. 1 and Lena Sylvie is no. 2? <|assistant|> SELECT "no_5" FROM "nominations" WHERE "no_1"='lena claudisabel' AND "no_2"='lena sylvie';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nominations" ( "no_1" text, "no_2" text, "no_3" text, "no_5" text, "no_6" text, "final" text ); Question: Who is no.3 when Claudio Sylvie is no.1? <|assistant|> SELECT "no_3" FROM "nominations" WHERE "no_1"='claudio sylvie';<|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" text, "record" text ); Question: What was the score of the game when the record was 18-20? <|assistant|> SELECT "score" FROM "game_log" WHERE "record"='18-20';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: What Men's double held together with Women's singles of camilla martin? <|assistant|> SELECT "men_s_doubles" FROM "past_winners" WHERE "women_s_singles"='camilla martin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Who played in the Mixed Doubles when Zhu Lin played in the Women's Singles? <|assistant|> SELECT "mixed_doubles" FROM "previous_winners" WHERE "women_s_singles"='zhu lin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Who was on the Men's Doubles Team in 2002? <|assistant|> SELECT "men_s_doubles" FROM "previous_winners" WHERE "year"=2002;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Which year did Aya Ohori play in the Women's Singles? <|assistant|> SELECT "year" FROM "previous_winners" WHERE "women_s_singles"='aya ohori';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_8" ( "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: Who was the Partner for Flavio Cipolla Simone Vagnozzi Opponents in the final? <|assistant|> SELECT "partner" FROM "doubles_8" WHERE "opponents_in_the_final"='flavio cipolla simone vagnozzi';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_8" ( "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: Who were the Opponents in the final that played on a carpet (i) Surface? <|assistant|> SELECT "opponents_in_the_final" FROM "doubles_8" WHERE "surface"='carpet (i)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_8" ( "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: Played on Clay Surface, what was the Score of the Dortmund Tournament? <|assistant|> SELECT "score_in_the_final" FROM "doubles_8" WHERE "surface"='clay' AND "tournament"='dortmund';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_8" ( "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: Who is Partner Frederik Nielsen's Opponents in the final? <|assistant|> SELECT "opponents_in_the_final" FROM "doubles_8" WHERE "partner"='frederik nielsen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_8" ( "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: What is Partner Tomas Behrend's Score in the final? <|assistant|> SELECT "score_in_the_final" FROM "doubles_8" WHERE "partner"='tomas behrend';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); Question: What Country does Larry Mize play for? <|assistant|> SELECT "country" FROM "missed_the_cut" WHERE "player"='larry mize';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); Question: What is the winning total from 1976? <|assistant|> SELECT MAX("total") FROM "missed_the_cut" WHERE "year_s_won"='1976';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_since_1995" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text, "time" text ); Question: What year was owner Michael E. Pegram's last win? <|assistant|> SELECT MAX("year") FROM "winners_since_1995" WHERE "owner"='michael e. pegram';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_since_1995" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text, "time" text ); Question: Who is the trainer for Cherry Valley Farm? <|assistant|> SELECT "trainer" FROM "winners_since_1995" WHERE "owner"='cherry valley farm';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_since_1995" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text, "time" text ); Question: Who owned winner Blueeyesintherein after 2009? <|assistant|> SELECT "owner" FROM "winners_since_1995" WHERE "year">2009 AND "winner"='blueeyesintherein';<|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, "record" text ); Question: Who was the Blue Jays' opponent when their record was 33-15? <|assistant|> SELECT "opponent" FROM "game_log" WHERE "record"='33-15';<|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, "record" text ); Question: Who did the Blue Jays lose to when their record was 36-20? <|assistant|> SELECT "loss" FROM "game_log" WHERE "record"='36-20';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What is the rank of the qual 141.471? <|assistant|> SELECT "rank" FROM "indy_500_results" WHERE "qual"='141.471';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What is the start of lap 55? <|assistant|> SELECT "start" FROM "indy_500_results" WHERE "laps"=55;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What is rank of the year 1956? <|assistant|> SELECT "rank" FROM "indy_500_results" WHERE "year"='1956';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What is the lap number for the rank of 13? <|assistant|> SELECT "laps" FROM "indy_500_results" WHERE "rank"='13';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What is the rank for 1961? <|assistant|> SELECT "rank" FROM "indy_500_results" WHERE "year"='1961';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What is the sum of the lap with a finish of 24? <|assistant|> SELECT SUM("laps") FROM "indy_500_results" WHERE "finish"='24';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "discography" ( "album_or_song" text, "band" text, "memebrship" text, "role" text, "year" real ); Question: Which band plays Self Versus Self - Immersion? <|assistant|> SELECT "band" FROM "discography" WHERE "album_or_song"='self versus self - immersion';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "location" text ); Question: What Event used submission (rear naked choke) with 9-4? <|assistant|> SELECT "event" FROM "mixed_martial_arts_record" WHERE "method"='submission (rear naked choke)' AND "record"='9-4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "location" text ); Question: What event was Donald Ouimet involved? <|assistant|> SELECT "event" FROM "mixed_martial_arts_record" WHERE "opponent"='donald ouimet';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senior" ( "year" real, "competition" text, "venue" text, "position" text, "event" text ); Question: What event did she finish 3rd in 2010? <|assistant|> SELECT "event" FROM "senior" WHERE "position"='3rd' AND "year"=2010;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senior" ( "year" real, "competition" text, "venue" text, "position" text, "event" text ); Question: What year did she compete in tampere, finland? <|assistant|> SELECT AVG("year") FROM "senior" WHERE "venue"='tampere, finland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: Ben Hogan with a score larger than 66 had a place listed of what? <|assistant|> SELECT "place" FROM "first_round" WHERE "score">66 AND "player"='ben hogan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: With a score of 70, this player's name is listed as what? <|assistant|> SELECT "player" FROM "first_round" WHERE "score"=70;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: With a score smaller than 71 along with a place of t6, what is the To par score? <|assistant|> SELECT "to_par" FROM "first_round" WHERE "score"<71 AND "place"='t6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cities" ( "city" text, "hanzi" text, "hanyu_pinyin" text, "regional_population_2010" text, "gdp_2011_billion_yuan" real ); Question: Which Hanyu Pinyin has a GDP in 2011 larger than 688.02 billion yuan and a regional population of 8,700,400 in 2010? <|assistant|> SELECT "hanyu_pinyin" FROM "cities" WHERE "gdp_2011_billion_yuan">688.02 AND "regional_population_2010"='8,700,400';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cities" ( "city" text, "hanzi" text, "hanyu_pinyin" text, "regional_population_2010" text, "gdp_2011_billion_yuan" real ); Question: Which Hanzi has a Regional Population of 4,591,972 in 2010? <|assistant|> SELECT "hanzi" FROM "cities" WHERE "regional_population_2010"='4,591,972';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real ); Question: What is the Name of the person from the Netherlands in a Lane lower than 5, with a Rank better than 5, and a time of less than 55.62? <|assistant|> SELECT "name" FROM "semifinal_2" WHERE "rank"<5 AND "time"<55.62 AND "lane"<5 AND "nationality"='netherlands';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real ); Question: What is the highest Rank of Karen Pickering when she had a time of less than 55.71? <|assistant|> SELECT MAX("rank") FROM "semifinal_2" WHERE "name"='karen pickering' AND "time"<55.71;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real ); Question: What is the highest Lane number of a person with a time of 55.94 with a Rank that's bigger than 8? <|assistant|> SELECT MAX("lane") FROM "semifinal_2" WHERE "time">55.94 AND "rank">8;<|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" text, "record" text ); Question: What was the date of the game that had a loss of Burns (0-1)? <|assistant|> SELECT "date" FROM "game_log" WHERE "loss"='burns (0-1)';<|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" text, "record" text ); Question: What was the loss of the game when the record was 20-16? <|assistant|> SELECT "loss" FROM "game_log" WHERE "record"='20-16';<|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" text, "record" text ); Question: What was the loss of the game that had an attendance of 18,769? <|assistant|> SELECT "loss" FROM "game_log" WHERE "attendance"='18,769';<|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" text, "record" text ); Question: What was the date of the game that had a loss of Geisel (0-1)? <|assistant|> SELECT "date" FROM "game_log" WHERE "loss"='geisel (0-1)';<|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" text, "record" text ); Question: What is the date of the game against the Royals that had an attendance of 12,699? <|assistant|> SELECT "date" FROM "game_log" WHERE "opponent"='royals' AND "attendance"='12,699';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tallest_buildings" ( "rank" real, "name" text, "height_ft_m" text, "floors" real, "year" real ); Question: When Regions center has a rank less than 11, what is the greatest number o floors? <|assistant|> SELECT MAX("floors") FROM "tallest_buildings" WHERE "name"='regions center' AND "rank"<11;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tallest_buildings" ( "rank" real, "name" text, "height_ft_m" text, "floors" real, "year" real ); Question: What is the average rank for a building with 24 floors? <|assistant|> SELECT AVG("rank") FROM "tallest_buildings" WHERE "floors"=24;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tallest_buildings" ( "rank" real, "name" text, "height_ft_m" text, "floors" real, "year" real ); Question: What is the rank for Omni nashville hotel? <|assistant|> SELECT SUM("rank") FROM "tallest_buildings" WHERE "name"='omni nashville hotel';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tallest_buildings" ( "rank" real, "name" text, "height_ft_m" text, "floors" real, "year" real ); Question: What is the greatest rank for Fifth third center? <|assistant|> SELECT MAX("rank") FROM "tallest_buildings" WHERE "name"='fifth third center';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tallest_buildings" ( "rank" real, "name" text, "height_ft_m" text, "floors" real, "year" real ); Question: When a building is 292 (89) ft (m) tall, has less than 23 floors, and ranks less than 14, what is the average year? <|assistant|> SELECT AVG("year") FROM "tallest_buildings" WHERE "floors"<23 AND "height_ft_m"='292 (89)' AND "rank"<14;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_summaries" ( "date" text, "visiting_team" text, "home_team" text, "stadium" text, "regular_season_preseason" text ); Question: What type of regular season/preseason game was played on August 25, 2007? <|assistant|> SELECT "regular_season_preseason" FROM "game_summaries" WHERE "date"='august 25, 2007';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_summaries" ( "date" text, "visiting_team" text, "home_team" text, "stadium" text, "regular_season_preseason" text ); Question: In what stadium was the game on August 22, 2008 played? <|assistant|> SELECT "stadium" FROM "game_summaries" WHERE "date"='august 22, 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_summaries" ( "date" text, "visiting_team" text, "home_team" text, "stadium" text, "regular_season_preseason" text ); Question: In what stadium was the home team Dallas Cowboys 21? <|assistant|> SELECT "stadium" FROM "game_summaries" WHERE "home_team"='dallas cowboys 21';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_summaries" ( "date" text, "visiting_team" text, "home_team" text, "stadium" text, "regular_season_preseason" text ); Question: On what date was the home team the Dallas Cowboys 34? <|assistant|> SELECT "date" FROM "game_summaries" WHERE "home_team"='dallas cowboys 34';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_summaries" ( "date" text, "visiting_team" text, "home_team" text, "stadium" text, "regular_season_preseason" text ); Question: Who was the visiting team on October 15, 2006? <|assistant|> SELECT "visiting_team" FROM "game_summaries" WHERE "date"='october 15, 2006';<|endoftext|>