text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "date" real, "opponent" text, "score" text, "location_attendance" text, "record" text ); Question: What was the average date with a record of 30-31-9 in a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "date" real, "opponent" text, "score" text, "location_attendance" text, "record" text ); Question: What is the latest date at Los Angeles with a game less...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "date" real, "opponent" text, "score" text, "location_attendance" text, "record" text ); Question: What is the latest date for a game over 69 with a St. L...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "date" real, "opponent" text, "score" text, "location_attendance" text, "record" text ); Question: What is the highest game with Oakland Seals opponent an...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); Question: What is the total attendance for the date of octo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); Question: What record has September 21 as the date? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "under_23_international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What was the score of the match on December 19, 2009? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "january" real, "opponent" text, "score" text, "record" text, "points" real ); Question: What's the highest game against the New York Rangers with more than 55 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "january" real, "opponent" text, "score" text, "record" text, "points" real ); Question: What's the record for a game past 44 against the Dallas Stars with more...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "big_five_it_services_company" ( "firm" text, "revenues" text, "employees" real, "fiscal_year" real, "headquarters" text ); Question: What is the latest Fiscal Year with Revenues of $4.3 billion...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "big_five_it_services_company" ( "firm" text, "revenues" text, "employees" real, "fiscal_year" real, "headquarters" text ); Question: What is the average Fiscal Year of the firm Headquartered in...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_career_statistics" ( "year" real, "class" text, "team" text, "machine" text, "points" real, "wins" real ); Question: What are the Points after 1991? <|assistant|> SELECT COUNT("poi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_career_statistics" ( "year" real, "class" text, "team" text, "machine" text, "points" real, "wins" real ); Question: What Class has 36 Points? <|assistant|> SELECT "class" FROM "gr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_career_statistics" ( "year" real, "class" text, "team" text, "machine" text, "points" real, "wins" real ); Question: What is the Class after 1986? <|assistant|> SELECT "class" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" real ); Question: How many attendances had the Detroit Lions as opponents...
<|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 in ...
<|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 women was on the mixed dou...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_kayak" ( "distance" text, "event" text, "record" text, "nationality" text, "year" real, "location" text ); Question: Which nationality's distance was 500m before 2012, when the record w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_kayak" ( "distance" text, "event" text, "record" text, "nationality" text, "year" real, "location" text ); Question: Which location's year was 2001 when the record was 3:52.983s? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_kayak" ( "distance" text, "event" text, "record" text, "nationality" text, "year" real, "location" text ); Question: Which nationality's distance was 200m and had a year more recent tha...
<|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 Total medals for the team with a Rank of 8, 1 Bronze and more than 1 S...
<|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 Gold does the Nation in Rank 12 with less than 2 Total medals have? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_six" ( "pick_num" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: Which NHL team got pick 89? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_six" ( "pick_num" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); Question: Who plays goaltender for the Vancouver Canucks?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_final_statistics" ( "rank" real, "airport" text, "location" text, "code_iata" text, "total_cargo_metric_tonnes" text, "2003_rank" text, "pct_change" text ); Question: What is the % Cha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_final_statistics" ( "rank" real, "airport" text, "location" text, "code_iata" text, "total_cargo_metric_tonnes" text, "2003_rank" text, "pct_change" text ); Question: What 2003 rank do...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_final_statistics" ( "rank" real, "airport" text, "location" text, "code_iata" text, "total_cargo_metric_tonnes" text, "2003_rank" text, "pct_change" text ); Question: Which airport has...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_final_statistics" ( "rank" real, "airport" text, "location" text, "code_iata" text, "total_cargo_metric_tonnes" text, "2003_rank" text, "pct_change" text ); Question: What is the IATA ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_final_statistics" ( "rank" real, "airport" text, "location" text, "code_iata" text, "total_cargo_metric_tonnes" text, "2003_rank" text, "pct_change" text ); Question: What is the 2003 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_final_statistics" ( "rank" real, "airport" text, "location" text, "code_iata" text, "total_cargo_metric_tonnes" text, "2003_rank" text, "pct_change" text ); Question: What % Change is ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: What district is Wyatt Aiken in? <|assistant|> SELECT "district" FROM "south_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Silver larger than 0, and a Total smaller than 3, and a Nation of bulgaria, and a Bronze small...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Nation of total has what sum of gold? <|assistant|> SELECT SUM("gold") FROM "medal_table" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Total of 3, and a Gold larger than 0, and a Nation of belarus, and a Silver larger than 2 has ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Bronze of 22 has what average silver? <|assistant|> SELECT AVG("silver") FROM "medal_table" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "position" real, "club_city_town" text, "games_played" real, "w_l_d" text, "goals_for_against" text, "points" real ); Question: Which position had 5 games played and a record ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "history_of_leaders" ( "name" text, "term_start" real, "term_end" text, "date_of_birth" text, "date_of_death" text ); Question: What was the name of the leader whose term ended in 2013? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "history_of_leaders" ( "name" text, "term_start" real, "term_end" text, "date_of_birth" text, "date_of_death" text ); Question: When was the start of the leader's term who was born on January 8,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "history_of_leaders" ( "name" text, "term_start" real, "term_end" text, "date_of_birth" text, "date_of_death" text ); Question: Which leader born on December 17, 1874 started their term before 1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_4_2" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: What date shows the Outcome of winner...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_4_2" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: What is the Outcome of the jounieh to...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_4_2" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: What date was the score of 6–3 6–4? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "friday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text, "10_30" text ); Question: What is the 9:00 episode that will be shown on the station ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "friday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text, "10_30" text ); Question: What is the 9:00 show that will be aired on the station tha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "friday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text, "10_30" text ); Question: What is the 9:30 program airing on the station that airs Th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "friday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text, "10_30" text ); Question: What is the 8:30 program that airs on the station that airs...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "friday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text, "10_30" text ); Question: What is the 9:30 program that airs on the station that airs...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); Question: when indiana pacers were the opponent what was the date? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_2008_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_2008_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_2008_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_2008_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_2008_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "taijiquan" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); Question: Who won silver in the year before 2010, the year Chan Ming Shu won gold? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "taijiquan" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); Question: What is the location for the year under 2010 and the year Hei Zhi Hong won silver? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "taijiquan" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); Question: Which location had a year over 2006? <|assistant|> SELECT "location" FROM "taijiquan" WHERE "ye...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season_friendles" ( "date" text, "opponents" text, "venue" text, "result" text, "score_f_a" text ); Question: Score F–A of 2–0, and a Opponents of walsall has what date? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season_friendles" ( "date" text, "opponents" text, "venue" text, "result" text, "score_f_a" text ); Question: Score F–A of 3–0, and a Date of 31 july 2007 had what opponents? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season_friendles" ( "date" text, "opponents" text, "venue" text, "result" text, "score_f_a" text ); Question: Opponents of sheffield wednesday had what date? <|assistant|> SELECT "date" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season_friendles" ( "date" text, "opponents" text, "venue" text, "result" text, "score_f_a" text ); Question: Opponents of sheffield wednesday had what date? <|assistant|> SELECT "date" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season_friendles" ( "date" text, "opponents" text, "venue" text, "result" text, "score_f_a" text ); Question: Date of 4 august 2007 had what opponents? <|assistant|> SELECT "opponents" 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: WHich Position has a Player of david laliberte? <|assistant|...
<|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 Position has a Player of gino pisellini? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_20" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is the winning score of standard register ping tournament, w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_20" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is the winning score of the tournament on 16 May 1993? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_20" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is the margin of victory of the tournament on 5 Jun 1988? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_20" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is the winning scor of the tournament with Robin Walton as t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "nationality" text, "nhl_team" text, "college_junior_club_team_league" text ); Question: which NHL team has a College/Junior/Club Team (League) of sh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "nationality" text, "nhl_team" text, "college_junior_club_team_league" text ); Question: How many Rounds have a Nationality of canada, and a College/...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "nationality" text, "nhl_team" text, "college_junior_club_team_league" text ); Question: Which Round has a NHL team of edmonton oilers and a Player o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "nationality" text, "nhl_team" text, "college_junior_club_team_league" text ); Question: Which Round has a Nationality of united states, and a Colleg...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_pacific_hurricane_statistics" ( "storm_name" text, "dates_active" text, "max_1_min_wind_mph_km_h" text, "min_press_mbar" text, "damage_millions_usd" text, "deaths" text ); Question: What...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_pacific_hurricane_statistics" ( "storm_name" text, "dates_active" text, "max_1_min_wind_mph_km_h" text, "min_press_mbar" text, "damage_millions_usd" text, "deaths" text ); Question: How ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "original_stations" ( "name_location" text, "other_later_names" text, "operation" text, "distance_from_jaffa" text, "elevation" text ); Question: What is the distance from Jaffa of Jerusalem sta...
<|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, "record" text ); Question: What visitor has February 11 as the date? <|assistant|> SELECT "visitor" FROM "february" WHERE "da...
<|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 is the friendly match in? <|assistant|> SELECT "venue" FROM "internati...
<|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: What is the result of the friendly match in Seoul? <|assistant|> SELECT "result" F...
<|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: What is the result of the 2007 AFC asian cup? <|assistant|> SELECT "result" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senior_pga_tour_wins_11" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: Which Runner(s)-up has a Margin of victory of 1 stroke...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senior_pga_tour_wins_11" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: Which Date has a Margin of victory of 4 strokes? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senior_pga_tour_wins_11" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: Which Runner(s)-up has a Tournament of general foods p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senior_pga_tour_wins_11" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: Which Tournament has a Margin of victory of 2 strokes,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "senior_pga_tour_wins_11" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: Which Date has a Winning score of −9 (70-64-70=203)? <...
<|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 "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 "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 "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 "provincial_champions" ( "year" real, "event" text, "skip" text, "third" text, "second" text, "lead" text ); Question: Who has the lead on Lisa Weagle? <|assistant|> SELECT "skip" FROM "provin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "provincial_champions" ( "year" real, "event" text, "skip" text, "third" text, "second" text, "lead" text ); Question: Which event shows Matt St. Louis in second and a skip of John Morris? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rushing" ( "player" text, "attempts" real, "net_yards" real, "yards_per_attempt" real, "touchdowns" real ); Question: What are the highest attempts that have net yards less than 631, and 2 for ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rushing" ( "player" text, "attempts" real, "net_yards" real, "yards_per_attempt" real, "touchdowns" real ); Question: What are the average net yards that have 9 as the touchdowns, 145 as the at...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rushing" ( "player" text, "attempts" real, "net_yards" real, "yards_per_attempt" real, "touchdowns" real ); Question: How many yards per attempt have net yards greater than 631? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rushing" ( "player" text, "attempts" real, "net_yards" real, "yards_per_attempt" real, "touchdowns" real ); Question: What are the highest touchdowns that have net yards greater than 631, with ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_standings" ( "season" real, "overall" real, "slalom" text, "giant_slalom" real, "super_g" text, "downhill" text, "combined" text ); Question: What is the value for Slalom in seasons ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_standings" ( "season" real, "overall" real, "slalom" text, "giant_slalom" real, "super_g" text, "downhill" text, "combined" text ); Question: How many seasons had a Super G of 2 and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_13_6_7" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: Who was the Opponent in the Auckland, New Zealand Tournament? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_13_6_7" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: On what Date was Rafael Nadal the Opponent? <|assistant|> SELECT "date" FROM "single...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_13_6_7" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: Who was the Opponent on a Hard (i) Surface? <|assistant|> SELECT "opponent" FROM "si...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_13_6_7" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: What was the Score at the Auckland, New Zealand Tournament? <|assistant|> SELECT "sc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_1996" text ); Question: What team plays in Dinamo, Brest? <|assistant|> SELECT "team" FROM "teams_a...