text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "match_up_summary" ( "district" real, "incumbent" text, "2008_status" text, "democratic" text, "republican" text, "green" text ); Question: What's the 2008 Status of Rosa Delauro? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "match_up_summary" ( "district" real, "incumbent" text, "2008_status" text, "democratic" text, "republican" text, "green" text ); Question: Who was the incumbent when Bo Itshaky was the Republ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "match_up_summary" ( "district" real, "incumbent" text, "2008_status" text, "democratic" text, "republican" text, "green" text ); Question: Who was the Republican in the district more than 4? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "match_up_summary" ( "district" real, "incumbent" text, "2008_status" text, "democratic" text, "republican" text, "green" text ); Question: Who was the Republican when the green was Harold Bur...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "match_up_summary" ( "district" real, "incumbent" text, "2008_status" text, "democratic" text, "republican" text, "green" text ); Question: Who was the Democratic when then Incumbent was Chris...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990s" ( "year" real, "title" text, "director" text, "studio_s" text, "notes" text ); Question: Who is the director of Antz? <|assistant|> SELECT "director" FROM "1990s" WHERE "title"='antz';<|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1990s" ( "year" real, "title" text, "director" text, "studio_s" text, "notes" text ); Question: What studio has the director Philip Frank Messina? <|assistant|> SELECT "studio_s" FROM "1990s" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" text, "main_date" text, "number_of_fixtures" real, "clubs" text, "new_entries_this_round" text ); Question: What are the club number for the first round? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" text, "main_date" text, "number_of_fixtures" real, "clubs" text, "new_entries_this_round" text ); Question: when there were 48 → 32 clubs? <|assistant|> SELECT "new_entries_...
<|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, "round" real, "time" text, "location" text ); Question: Where was the fight that took a time of 1:37?...
<|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, "round" real, "time" text, "location" text ); Question: What was the resolution of the fight against ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the average number of bronze medals won by Poland? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the average number of gold medals Switzerland received when they ranke...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_six_s_ultra_prominent_summit_of_the_" ( "rank" real, "peak" text, "country" text, "island" text, "elevation_m" real, "col_m" real ); Question: What is the rank when the col is larger than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_six_s_ultra_prominent_summit_of_the_" ( "rank" real, "peak" text, "country" text, "island" text, "elevation_m" real, "col_m" real ); Question: What is the rank when the elevation is 1,628...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_six_s_ultra_prominent_summit_of_the_" ( "rank" real, "peak" text, "country" text, "island" text, "elevation_m" real, "col_m" real ); Question: What is the elevation of Vanuatu, when the r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_selling_video_games_of_the_1990s_sa" ( "rank" real, "title" text, "release_date" text, "franchise" text, "developer_s" text, "platform" text, "units_sold_in_millions" real ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1938_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); Question: What is the average number of losses when there are more than 4 wins, and the against matches i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1938_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); Question: What is the total number of draws when there is 1 Win, and less than 1728 against matches? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1938_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); Question: What is the highest number of wins when there are less than 2 losses? <|assistant|> SELECT MAX(...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1938_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); Question: What is the highest number of losses for the Cobden club when there is less than 1 win? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1938_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); Question: What is the average number of wins for the Terang Club, when there are less than 0 draws? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "national_softball_congress_1947_to_1957" ( "year" real, "1st_place_team" text, "2nd_place_team" text, "3rd_place_team" text, "4th_place_team" text, "host_location" text ); Question: What year...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "national_softball_congress_1947_to_1957" ( "year" real, "1st_place_team" text, "2nd_place_team" text, "3rd_place_team" text, "4th_place_team" text, "host_location" text ); Question: Who was t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "locations" ( "iteration" text, "year" real, "dates" text, "location" text, "theme" text ); Question: In what Year is the Location of the Festival Koror, Palau? <|assistant|> SELECT SUM("year") ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "locations" ( "iteration" text, "year" real, "dates" text, "location" text, "theme" text ); Question: What is the Location of the 10th Iteration? <|assistant|> SELECT "location" FROM "locations"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "locations" ( "iteration" text, "year" real, "dates" text, "location" text, "theme" text ); Question: What is the Location of the "My Pacific" Theme? <|assistant|> SELECT "location" FROM "locati...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_councils" ( "party" text, "county" real, "city" real, "borough" real, "town" real, "total" real ); Question: How many counties have people before profit as the party, and a borough greate...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_councils" ( "party" text, "county" real, "city" real, "borough" real, "town" real, "total" real ); Question: How many counties have 2 as the total, 0 as the city with a town less than 1? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_councils" ( "party" text, "county" real, "city" real, "borough" real, "town" real, "total" real ); Question: What average city has a total less than 2, with a borough greater than 0? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What is the rank # of the swimmer in Lane 5? <|assistant|> SELECT COUNT("rank") FROM "semifina...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparative_properties_of_common_cooking" ( "total_fat" text, "saturated_fat" text, "monounsaturated_fat" text, "polyunsaturated_fat" text, "smoke_point" text ); Question: What is the total fat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparative_properties_of_common_cooking" ( "total_fat" text, "saturated_fat" text, "monounsaturated_fat" text, "polyunsaturated_fat" text, "smoke_point" text ); Question: What is the saturated...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparative_properties_of_common_cooking" ( "total_fat" text, "saturated_fat" text, "monounsaturated_fat" text, "polyunsaturated_fat" text, "smoke_point" text ); Question: What is the monounsat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparative_properties_of_common_cooking" ( "total_fat" text, "saturated_fat" text, "monounsaturated_fat" text, "polyunsaturated_fat" text, "smoke_point" text ); Question: What is the saturated...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparative_properties_of_common_cooking" ( "total_fat" text, "saturated_fat" text, "monounsaturated_fat" text, "polyunsaturated_fat" text, "smoke_point" text ); Question: What is the monounsat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparative_properties_of_common_cooking" ( "total_fat" text, "saturated_fat" text, "monounsaturated_fat" text, "polyunsaturated_fat" text, "smoke_point" text ); Question: What is the polyunsat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_timeline" ( "tournament" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "win_pct...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_timeline" ( "tournament" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "win_pct...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_timeline" ( "tournament" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "win_pct...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_timeline" ( "tournament" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "win_pct...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "home_team" text, "away_team" text, "winner" text, "score" text ); Question: who is the home team when the away team is rivercity rage? <|assistant|> SELECT "home_t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "home_team" text, "away_team" text, "winner" text, "score" text ); Question: who is the winner when the score is 71-62? <|assistant|> SELECT "winner" FROM "year_by_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "home_team" text, "away_team" text, "winner" text, "score" text ); Question: who is the winner when the home team is sioux falls storm and the year is earlier than ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "home_team" text, "away_team" text, "winner" text, "score" text ); Question: what is the score when the away team is rivercity rage? <|assistant|> SELECT "score" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" real, "home_team" text, "away_team" text, "winner" text, "score" text ); Question: what is the year when the score is 59-32? <|assistant|> SELECT SUM("year") FROM "year_b...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sport" ( "club" text, "league" text, "sport" text, "venue" text, "established" real, "capacity" real ); Question: What is the venue established after 1948? <|assistant|> SELECT "venue" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sport" ( "club" text, "league" text, "sport" text, "venue" text, "established" real, "capacity" real ); Question: What is the league established before 1930 with the rayo vallecano club? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sport" ( "club" text, "league" text, "sport" text, "venue" text, "established" real, "capacity" real ); Question: What sport is the rayo vallecano club in? <|assistant|> SELECT "sport" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sport" ( "club" text, "league" text, "sport" text, "venue" text, "established" real, "capacity" real ); Question: What sport is the cb estudiantes club in? <|assistant|> SELECT "sport" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalogue_num" text ); Question: What is the label for CAD 2014 CD? <|assistant|> SELECT "label" FROM "release_hist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalogue_num" text ); Question: What is the format for the catalogue number GAD 2014 CD on July 6, 1998? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1940_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); Question: How many wins are there when the draws are less than 0? <|assistant|> SELECT SUM("wins") FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1940_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); Question: What are the most losses when there are 5 wins and draws less than 0? <|assistant|> SELECT MAX(...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1940_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); Question: What are the most wins of Terang with the draws less than 0? <|assistant|> SELECT MAX("wins") F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1940_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); Question: What is the lowest against when the draws are more than 0 and the losses are less than 3? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1940_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); Question: What are the least losses of Warrnambool with more than 6 wins and less than 630 against? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1940_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); Question: What are the draws of Cobden when there are more than 3 losses? <|assistant|> SELECT AVG("draws...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What average bronze has 0 as the silver, 17 as the rank, and a gold less than ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the lowest silver that has 2 as the bronze, with a total greater than ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many bronzes have a total less than 11, with 11 as the rank, and a gold le...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "45_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "turbo" text, "cores" real, "l2_cache" text, "l3_cache" text, "i_o_bus" text, "mult" text, "memory" text, "volta...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "45_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "turbo" text, "cores" real, "l2_cache" text, "l3_cache" text, "i_o_bus" text, "mult" text, "memory" text, "volta...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "draw" real, "language" text, "artist" text, "song" text, "place" real, "points" real ); Question: What was the lowest draw for Beathoven when the place was smaller than 16? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "draw" real, "language" text, "artist" text, "song" text, "place" real, "points" real ); Question: What Luca Barbarossa song had a draw smaller than 20? <|assistant|> SELECT "song"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012_results" ( "date" text, "opponent" text, "location" text, "result" text, "record" text, "rank" text ); Question: Who did they play at sec tournament? <|assistant|> SELECT "opponent" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012_results" ( "date" text, "opponent" text, "location" text, "result" text, "record" text, "rank" text ); Question: Where was the game played when their record was 9-1-0? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episodes" ( "children_of_earth" text, "run_time" text, "writer" text, "director" text, "original_airdate" text, "viewers_including_hd_in_millions" text ); Question: Who is the writer of Child...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episodes" ( "children_of_earth" text, "run_time" text, "writer" text, "director" text, "original_airdate" text, "viewers_including_hd_in_millions" text ); Question: How many viewers were ther...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episodes" ( "children_of_earth" text, "run_time" text, "writer" text, "director" text, "original_airdate" text, "viewers_including_hd_in_millions" text ); Question: Who was the director of Ch...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episodes" ( "children_of_earth" text, "run_time" text, "writer" text, "director" text, "original_airdate" text, "viewers_including_hd_in_millions" text ); Question: Who was the director of th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: Which Points have Drawn of 1, and a Played larger than 14? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: Which Position has Drawn larger than 1, and a Played smaller than 14? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: Which Lost has Drawn larger than 1, and a Played larger than 14? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: How much Lost has Points larger than 15, and a Name of ev pegnitz? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "draw" real, "language" text, "artist" text, "song" text, "english_translation" text, "place" real, "points" real ); Question: what is the english translation when the artist is ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sixteenth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); Question: What player was picked earlier than 126 by the Houston Oilers? <|assistant|> SELECT "pla...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sixteenth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); Question: What college was picked later than 122 by the Boston Patriots? <|assistant|> SELECT "col...
<|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 to par for geoff ogilvy? <|assistant|> SELECT "to_par" FR...
<|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 country for geoff ogilvy? <|assistant|> SELECT "country" ...
<|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 to par for retief goosen? <|assistant|> SELECT "to_par" F...
<|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: how many times is the player jim furyk? <|assistant|> SELECT COUNT("t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_2" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real ); Question: What is the lowest lane in which an athlete got a time larger than 20.75 and a r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_2" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real ); Question: What is Christian Malcolm´s highest react when his time was below 20.58? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_selections" ( "year_a" real, "pick" text, "player_name" text, "position" text, "college" text ); Question: what is the position when the year [A} is after 2011 and the pick is 28? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_selections" ( "year_a" real, "pick" text, "player_name" text, "position" text, "college" text ); Question: Who is the player when the pick is 22 and the year [A] is after 1979? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_selections" ( "year_a" real, "pick" text, "player_name" text, "position" text, "college" text ); Question: who is the player when the pick is 15 and the year [A] is 2000? <|assistant|> S...
<|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 was the player from who scored 66-72-70=207? <|assistant|> SELECT "country" FR...
<|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 place was the player who scored 70-69-68=207? <|assistant|> SELECT "place" FROM "third_...
<|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 country was the player in t10 place with a score of 66-72-70=207? <|assistant|> SELECT ...
<|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 the to par of United States' Cristie Kerr? <|assistant|> SELECT "to_par" FROM "third...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "track_listing" ( "song" text, "performer" text, "original_artist" text, "length" text, "recorded" text ); Question: Who is the original artist of the 3:00 song? <|assistant|> SELECT "original_a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "track_listing" ( "song" text, "performer" text, "original_artist" text, "length" text, "recorded" text ); Question: How long is "Harvest"? <|assistant|> SELECT "length" FROM "track_listing" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "track_listing" ( "song" text, "performer" text, "original_artist" text, "length" text, "recorded" text ); Question: Which song lasts 3:34? <|assistant|> SELECT "song" FROM "track_listing" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "track_listing" ( "song" text, "performer" text, "original_artist" text, "length" text, "recorded" text ); Question: Who is the original artist of "Let's Dance"? <|assistant|> SELECT "original_a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "track_listing" ( "song" text, "performer" text, "original_artist" text, "length" text, "recorded" text ); Question: Which song lasts 4:08? <|assistant|> SELECT "song" FROM "track_listing" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many bronze medals for Romania when the silver count is more than 1? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managers" ( "num_a" text, "manager" text, "years" text, "wins" real, "losses" real, "w_pct" real ); Question: Which manager had less than 287 losses, less than 80 wins, a win percentage of 0....
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "solo_singles" ( "year" real, "u_s_hot_100" text, "u_s_r_b" text, "u_s_rap" text, "album" text ); Question: Which U.S. Hot has 13 as the U.S. R&B? <|assistant|> SELECT "u_s_hot_100" FROM "solo_s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "solo_singles" ( "year" real, "u_s_hot_100" text, "u_s_r_b" text, "u_s_rap" text, "album" text ); Question: What U.S. Rap has life in the concrete jungle as the album? <|assistant|> SELECT "u_s_...