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" W...
<|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...
<|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|> S...
<|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...
<|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|> SE...
<|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_cu...
<|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...
<|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 gam...
<|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|> SELE...
<|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...
<|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_w...
<|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_win...
<|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_w...
<|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_win...
<|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"=...
<|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';<|e...
<|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 "stati...
<|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"='...
<|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" W...
<|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" FR...
<|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 "i...
<|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 "int...
<|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 "inte...
<|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 t...
<|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...
<|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 presentatio...
<|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 appo...
<|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 t...
<|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 ...
<|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"...
<|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|> SELEC...
<|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...
<|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" FR...
<|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? <|assis...
<|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" WHE...
<|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 ma...
<|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 –...
<|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 ...
<|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 ...
<|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...
<|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 Entrepr...
<|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...
<|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 Y...
<|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 199...
<|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("he...
<|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 hig...
<|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 nu...
<|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|> S...
<|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 "nomination...
<|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|> SELE...
<|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...
<|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 ...
<|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 Tea...
<|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...
<|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 Oppo...
<|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...
<|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 ...
<|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? <...
<|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? <|assis...
<|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_t...
<|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_...
<|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 ...
<|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 "traine...
<|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 "ow...
<|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...
<|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...
<|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_5...
<|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_resul...
<|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_resu...
<|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 "i...
<|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"...
<|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...
<|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 "disco...
<|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...
<|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? <|ass...
<|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 "posi...
<|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"...
<|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 "plac...
<|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...
<|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...
<|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 bill...
<|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? ...
<|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...
<|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? <|assistan...
<|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 tha...
<|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|> ...
<|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|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: What was the loss of the game that had an attendance of 18,769? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: What was the date of the game that had a loss of Geisel (0-1)? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: What is the date of the game against the Royals that had an attendance of 12...
<|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? <|a...
<|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...
<|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 "tall...
<|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") FRO...
<|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 ...
<|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 Augu...
<|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? <|ass...
<|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? <|assist...
<|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? <|assis...
<|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|> ...