text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); Question: Which Year is the highest one that has a Venue of edmonton, canada? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); Question: Which Position has a Competition of world championships, and a Year larger than 1997? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); Question: Which Venue has a Notes of heptathlon, and a Year of 1991? <|assistant|> SELECT "venue"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pro_wrestling_zero1_version_disputed_bra" ( "wrestler" text, "reign" text, "days_held" text, "location" text, "event" text ); Question: What days held has noiz as the wrestler? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pro_wrestling_zero1_version_disputed_bra" ( "wrestler" text, "reign" text, "days_held" text, "location" text, "event" text ); Question: What location has tatsuhito takaiwa as the wrestler? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pro_wrestling_zero1_version_disputed_bra" ( "wrestler" text, "reign" text, "days_held" text, "location" text, "event" text ); Question: What event has 8 as the days held? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pro_wrestling_zero1_version_disputed_bra" ( "wrestler" text, "reign" text, "days_held" text, "location" text, "event" text ); Question: What event has unknown as the days held.? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011" ( "model" text, "engine" text, "displacement" text, "valvetrain" text, "fuel_system" text, "max_power_at_rpm" text, "max_torque_at_rpm" text ); Question: What is the Displacement of t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011" ( "model" text, "engine" text, "displacement" text, "valvetrain" text, "fuel_system" text, "max_power_at_rpm" text, "max_torque_at_rpm" text ); Question: What is the Displacement of t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011" ( "model" text, "engine" text, "displacement" text, "valvetrain" text, "fuel_system" text, "max_power_at_rpm" text, "max_torque_at_rpm" text ); Question: What is the Valvetrain of the...
<|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" real, "finish" text ); Question: Year(s) won of 1994 , 1997 has what average total? <|assistant|> SELE...
<|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" real, "finish" text ); Question: Player of corey pavin, and a To par larger than 5 has what average to...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real, "finish" text ); Question: Total smaller than 285, and a To par larger than 1 belongs to what pl...
<|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" real, "finish" text ); Question: Total larger than 285, and a Finish of t30 belongs to what player? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "islands_km" ( "rank" real, "island_s_name" text, "area_sqmi" real, "area_km_2" real, "location" text, "population_2000" text ); Question: What is the total area of Kruzof island? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "external_links" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: Name the total number of frequency Mhz with class o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "external_links" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: Name the least frequency Mhz with call sign of k202...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "external_links" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: Name the class with call sign of k220cp <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "december" real, "opponent" text, "score" text, "record" text ); Question: What is the Winnipeg Jets record? <|assistant|> SELECT "record" FROM "schedule_an...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What's the stadium on November 8? <|assistant|> SELECT "home" FROM "regular_season" WHERE "d...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Who was the visitor on March 17? <|assistant|> SELECT "visitor" FROM "regular_season" WHERE ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What's the score for Toronto Maple Leafs on November 10? <|assistant|> SELECT "score" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Who was the visitor on October 31? <|assistant|> SELECT "visitor" FROM "regular_season" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); Question: What is the rank associated with 0 wins and a 350cc class? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "athlete" text, "country" text, "run_1" real, "run_2" real, "run_3" real ); Question: What is the run 2 of the athlete from Australia with a run 1 less than 53.75? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "athlete" text, "country" text, "run_1" real, "run_2" real, "run_3" real ); Question: What is the run 2 of athlete Maria Orlova from Russia? <|assistant|> SELECT SUM("run_2") FROM "wom...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "athlete" text, "country" text, "run_1" real, "run_2" real, "run_3" real ); Question: What is the run 3 of the athlete with a run 1 more than 53.75 and a run 2 less than 52.91? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "athlete" text, "country" text, "run_1" real, "run_2" real, "run_3" real ); Question: What is the lowest run 3 an athlete with a run 2 less than 53.72 and a run 1 of 53.1 has? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women" ( "athlete" text, "country" text, "run_1" real, "run_2" real, "run_3" real ); Question: What is the lowest run 2 of the athlete with a run 1 of 52.44 and a run 3 less than 52.35? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standings" ( "position" real, "driver" text, "wins" real, "poles" real, "top_5_s" real, "points" real ); Question: How many points are associated with over 1 top 5, 1 win, over 0 poles, and a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standings" ( "position" real, "driver" text, "wins" real, "poles" real, "top_5_s" real, "points" real ); Question: How many points are associated with 0 poles? <|assistant|> SELECT COUNT("poi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standings" ( "position" real, "driver" text, "wins" real, "poles" real, "top_5_s" real, "points" real ); Question: How many wins are associated with a position of under 6, over 8 top 5s, and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march" ( "game_num" real, "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real ); Question: What is the first game that has a home team of Detroit? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march" ( "game_num" real, "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real ); Question: Which home team has higher than 92 points? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "test_centuries_by_nightwatchmen" ( "player" text, "team" text, "score" text, "versus" text, "year" real ); Question: what team's score is 101? <|assistant|> SELECT "team" FROM "test_centuries_b...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "test_centuries_by_nightwatchmen" ( "player" text, "team" text, "score" text, "versus" text, "year" real ); Question: what team played against zimbabwe in 1999? <|assistant|> SELECT "team" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "test_centuries_by_nightwatchmen" ( "player" text, "team" text, "score" text, "versus" text, "year" real ); Question: what is the team that played in 2006? <|assistant|> SELECT "team" FROM "test...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_average_points_per_race_entered" ( "driver" text, "entries" real, "points" real, "average_points_per_race_entered" real, "average_pre_2010" real ); Question: What is the lowest amount o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_average_points_per_race_entered" ( "driver" text, "entries" real, "points" real, "average_points_per_race_entered" real, "average_pre_2010" real ); Question: What is the average number ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_average_points_per_race_entered" ( "driver" text, "entries" real, "points" real, "average_points_per_race_entered" real, "average_pre_2010" real ); Question: What is the highest average...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_average_points_per_race_entered" ( "driver" text, "entries" real, "points" real, "average_points_per_race_entered" real, "average_pre_2010" real ); Question: What is the lowest average ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "january" real, "opponent" text, "score" text, "record" text ); Question: What is the first game played against the Chicago Black Hawks? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "premier_division" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real ); Question: Name the opponent for 9 november 1991 <|assistant|> SELECT "opponent" FROM "premier...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cfl_teams_with_one_or_no_wins_in_a_seaso" ( "season" real, "team" text, "games" real, "wins" real, "losses" real, "ties" real ); Question: Which Losses is the lowest one that has Wins smaller...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cfl_teams_with_one_or_no_wins_in_a_seaso" ( "season" real, "team" text, "games" real, "wins" real, "losses" real, "ties" real ); Question: Which Losses have a Season larger than 1941, and a T...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cfl_teams_with_one_or_no_wins_in_a_seaso" ( "season" real, "team" text, "games" real, "wins" real, "losses" real, "ties" real ); Question: Which Season has Ties smaller than 1, and a Team of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cfl_teams_with_one_or_no_wins_in_a_seaso" ( "season" real, "team" text, "games" real, "wins" real, "losses" real, "ties" real ); Question: How many Ties have Wins smaller than 1, and Games of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cfl_teams_with_one_or_no_wins_in_a_seaso" ( "season" real, "team" text, "games" real, "wins" real, "losses" real, "ties" real ); Question: Which Wins have a Team of winnipeg blue bombers, and...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real ); Question: What engine class is associated with a year after 1985 and over 0 wins? <|assist...
<|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, "save" text ); Question: Which opponent has a loss of trout (7-4)? <|assistant|> SELECT "opponent" FROM "game_log" WHERE "lo...
<|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, "save" text ); Question: Which opponent has a save of smith (22)? <|assistant|> SELECT "opponent" FROM "game_log" WHERE "sav...
<|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 much Gold has a Bronze larger than 1, and a Silver larger than 2? <|assista...
<|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: Which Total has a Nation of japan (jpn), and a Silver smaller than 1? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_13" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is the margin of victory in WGC-Accenture Match Play Cha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_13" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: On what date was Nick Price the runner-up? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_13" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is the margin of victory for Nick Price as a runner-up? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_13" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is the margin of victory for PGA Championship? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_13" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: On what date was the winning score –20 (68-67-65-64=264)? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: Which player was D past Round 3? <|assistant|> SELECT "playe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: Which Round was F picked? <|assistant|> SELECT "round" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: What Position is Ryan Russell? <|assistant|> SELECT "positio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: What country does Round 4 come from? <|assistant|> SELECT "n...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text ); Question: Which opponent was present on April 14? <|assistant|> SELECT "opponent" FROM "playoffs" WHERE "da...
<|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, "save" text ); Question: what team lost on april 15 <|assistant|> SELECT "loss" FROM "game_log" WHERE "date"='april 15';<|en...
<|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, "save" text ); Question: what team played on april 21 <|assistant|> SELECT "opponent" FROM "game_log" WHERE "date"='april 21...
<|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, "save" text ); Question: what team scored on april 10 <|assistant|> SELECT "score" FROM "game_log" WHERE "date"='april 10';<...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_card" ( "weight_division" text, "winner" text, "loser" text, "method" text, "round" real, "time" text ); Question: Who lost with a time of 0:58? <|assistant|> SELECT "loser" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_card" ( "weight_division" text, "winner" text, "loser" text, "method" text, "round" real, "time" text ); Question: What is the average number of rounds for winner Rafael Cavalcant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_card" ( "weight_division" text, "winner" text, "loser" text, "method" text, "round" real, "time" text ); Question: What win method has a time of 2:32? <|assistant|> SELECT "method...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "double_double_bonus" ( "hand" text, "1_credit" text, "2_credits" text, "3_credits" text, "4_credits" text, "5_credits" text ); Question: If Four aces yields 800 for 5 credits, what would the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_group_c_denmark" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); Question: What is the sum of points values that are associated with 0 l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_group_c_denmark" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); Question: What is the fewest losses associated with more than 13 points...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_group_c_denmark" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); Question: What is the difference associated with more than 2 points, fe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_group_c_denmark" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); Question: What is the fewest number of points associated with more than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1921_1930" ( "title" text, "date" text, "theatre" text, "role" text, "dance_partner" text, "director" text, "lyrics" text, "music" text ); Question: Which title did richard kolner play? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1921_1930" ( "title" text, "date" text, "theatre" text, "role" text, "dance_partner" text, "director" text, "lyrics" text, "music" text ); Question: Which Title has a Dance Partner of ade...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1921_1930" ( "title" text, "date" text, "theatre" text, "role" text, "dance_partner" text, "director" text, "lyrics" text, "music" text ); Question: Which Role has a Theatre of globe, and...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "proposed" ( "rank" real, "name" text, "height_ft_m" text, "year_est" text, "city" text ); Question: what name was on the year 2012 <|assistant|> SELECT "name" FROM "proposed" WHERE "year_est"='...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "house_of_habsburg_lorraine_1765_1918" ( "name" text, "birth" text, "marriage" text, "became_duchess" text, "ceased_to_be_duchess" text, "death" text, "spouse" text ); Question: Which member...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "house_of_habsburg_lorraine_1765_1918" ( "name" text, "birth" text, "marriage" text, "became_duchess" text, "ceased_to_be_duchess" text, "death" text, "spouse" text ); Question: What is the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "house_of_habsburg_lorraine_1765_1918" ( "name" text, "birth" text, "marriage" text, "became_duchess" text, "ceased_to_be_duchess" text, "death" text, "spouse" text ); Question: When did the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "house_of_habsburg_lorraine_1765_1918" ( "name" text, "birth" text, "marriage" text, "became_duchess" text, "ceased_to_be_duchess" text, "death" text, "spouse" text ); Question: What is the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "house_of_habsburg_lorraine_1765_1918" ( "name" text, "birth" text, "marriage" text, "became_duchess" text, "ceased_to_be_duchess" text, "death" text, "spouse" text ); Question: What is the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nba_draft" ( "round" real, "pick" real, "player" text, "nationality" text, "school_club_team" text ); Question: What is the highest numbered pick from round 7? <|assistant|> SELECT MAX("pick") ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: How much Played has an Again...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: Which average Drawn has Poin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: Which Played is the lowest o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: Which Played has a Lost larg...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: Which Lost has a Position of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: How much Lost has a Drawn la...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_6_2_titles_4_runners_up" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: What tournament has yvonne vermaak as the opponen...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_6_2_titles_4_runners_up" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: What outcome has yvonne vermaak as the opponent? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_6_2_titles_4_runners_up" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: What is the outcome for the Hershey tournament? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "save" text ); Question: Who played against Save Of Ni Fu-Deh? <|assistant|> SELECT "opponent" FROM "regular_season" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "save" text ); Question: What's the loss of who has a Save of Miguel Saladin and played against Chinatrust Whales? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "save" text ); Question: Who's the opponent when Diegomar Markwell is the loss? <|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, "attendance" text, "record" text ); Question: what game had a score of 86-71 <|assistant|> SELECT "attendance" FROM "game_...
<|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 game took place on september 14 <|assistant|> SELECT "record" FROM "gam...
<|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 game had an attendance of 21,629 <|assistant|> SELECT "record" FROM "ga...