text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text ); Question: What is the Home Team on April 13 with a Road Team of St. Louis? <|assistant|> SELECT "hom...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" real, "opponent" text, "score" text, "decision" text, "location_attendance" text, "record" text ); Question: What is Score, when Date is greater than 7, and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" real, "opponent" text, "score" text, "decision" text, "location_attendance" text, "record" text ); Question: What is Opponent, when Location/Attendance is "M...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" real, "opponent" text, "score" text, "decision" text, "location_attendance" text, "record" text ); Question: What is Score, when Game is greater than 78, and...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" real, "opponent" text, "score" text, "decision" text, "location_attendance" text, "record" text ); Question: What is Score, when Opponent is "Tampa Bay Light...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" real, "opponent" text, "score" text, "decision" text, "location_attendance" text, "record" text ); Question: What is Location/Attendance, when Score is "4-5 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "original_ner_class" text, "1914_ner_class" text, "lner_class" text, "cylinders" text, "driving_wheels" text ); Question: What driving wheels are on the m1 original NER class?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "original_ner_class" text, "1914_ner_class" text, "lner_class" text, "cylinders" text, "driving_wheels" text ); Question: What is the LNER class with an m 1914 NER class? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "original_ner_class" text, "1914_ner_class" text, "lner_class" text, "cylinders" text, "driving_wheels" text ); Question: What is the 1914 NER class with a d17/2 LNER class? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" real ); Question: What was Lew Worsham's score? <|assistant|> SELECT "score" FROM "final...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: Which Points have a Time/Retired of +49.222 secs? <|assistant|> SELECT MAX("point...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: What are grid 4's average points? <|assistant|> SELECT AVG("points") FROM "race" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text ); Question: Who was the owner of Give a Toast after 1985? <|assistant|> SELECT "owner" FROM "winners" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text ); Question: What is the earliest year Stuart Janney III was an owner? <|assistant|> SELECT MIN("year") FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text ); Question: Who was the winner after 1989 when Stronach Stable was the owner? <|assistant|> SELECT "winner" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text ); Question: Who was the trainer when Mckaymackenna won? <|assistant|> SELECT "trainer" FROM "winners" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "northern_ireland" ( "county" text, "tunnel" text, "type" text, "length_imperial" text, "date_of_opening" text ); Question: What Tunnel has an Imperial Length of 307 yd? <|assistant|> SELECT "tu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "northern_ireland" ( "county" text, "tunnel" text, "type" text, "length_imperial" text, "date_of_opening" text ); Question: What Type of Tunnel is the Downhill Tunnel? <|assistant|> SELECT "type...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What did United States score in the place t6? <|assistant|> SELECT "sc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: Which country has the player Ted Schulz? <|assistant|> SELECT "country...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: Which country scored 69-67-69-70=275? <|assistant|> SELECT "country" F...
<|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 "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What day was the away team Cardiff City? <|assistant|> SELECT "date" FROM "fourt...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What home team had an away team of Aston Villa? <|assistant|> SELECT "home_team"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What was the score when York City was home? <|assistant|> SELECT "score" FROM "f...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_champions_in_the_field" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real, "finish" text ); Question: If the player is Corey Pavin when he had a To par of o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: What is the round for the ufc...
<|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" text ); Question: Where was the game played when 71,060 people attended? ...
<|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" text ); Question: When the game was played at Mile High Stadium before we...
<|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" text ); Question: Against the Houston Oilers after week 14, what was the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What player has +3 to par and score of 75-72=147? <|assistant|> SELECT "player" FROM "secon...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What is the country that the player is from with +3 to par and score of 74-73=147? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What player has +2 to par? <|assistant|> SELECT "player" FROM "second_round" WHERE "to_par"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" text ); Question: Name the Team which has a Time/Retired of contact, and a Grid smaller than 17? <|...
<|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: What is the average Bronze, when Nation is "North Korea", and when Total is gre...
<|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: What is the lowest Bronze, when Total is greater than 10, when Silver is greate...
<|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: What is Rank, when Silver is less than 6, when Bronze is greater than 4, and wh...
<|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: What is Gold, when Rank is 7? <|assistant|> SELECT "gold" FROM "medal_table" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_by_year" ( "year" real, "men_s_open" text, "women_s_open" text, "mixed_open" text, "men_s_u20" text, "women_s_u20" text, "senior_mixed" text, "men_s_30" text, "women_s_30" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_by_year" ( "year" real, "men_s_open" text, "women_s_open" text, "mixed_open" text, "men_s_u20" text, "women_s_u20" text, "senior_mixed" text, "men_s_30" text, "women_s_30" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_by_year" ( "year" real, "men_s_open" text, "women_s_open" text, "mixed_open" text, "men_s_u20" text, "women_s_u20" text, "senior_mixed" text, "men_s_30" text, "women_s_30" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_by_year" ( "year" real, "men_s_open" text, "women_s_open" text, "mixed_open" text, "men_s_u20" text, "women_s_u20" text, "senior_mixed" text, "men_s_30" text, "women_s_30" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_by_year" ( "year" real, "men_s_open" text, "women_s_open" text, "mixed_open" text, "men_s_u20" text, "women_s_u20" text, "senior_mixed" text, "men_s_30" text, "women_s_30" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_7" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: what is the surface on july 26, 2010? <|assistant|> SELECT "surface" FROM "singles_7" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_7" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: what is the tournament on august 17, 2008? <|assistant|> SELECT "tournament" FROM "single...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_7" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: who is the opponent when the score is 7–5, 7–6 (8–6)? <|assistant|> SELECT "opponent" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_7" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: what is the tournament on july 23, 2006? <|assistant|> SELECT "tournament" FROM "singles_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_7" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: what is the score when the opponent is fernando vicente? <|assistant|> SELECT "score" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_7" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: who is the opponent when the score is 3–6, 6–1, 7–5? <|assistant|> SELECT "opponent" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "other_appearances" ( "year" real, "song" text, "album_appearance" text, "album_artist" text, "notes" text ); Question: What is the lowest Year, when Notes is "Spanish adaptation of "Hope There'...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "other_appearances" ( "year" real, "song" text, "album_appearance" text, "album_artist" text, "notes" text ); Question: What is Album Artist, when Song is ""Something New" (with Mint Royale and ...
<|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 Scott Hoch's to par? <|assistant|> SELECT "to_par" FROM "third_round" WHERE "player"...
<|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 is Nolan Henke in? <|assistant|> SELECT "place" FROM "third_round" WHERE "player"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "legislative_elections" ( "election" real, "total_votes" real, "share_of_votes" text, "outcome_of_election" text, "election_leader" text ); Question: What is the vote total for elections after 2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_and_goals" ( "squad_no" real, "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_and_goals" ( "squad_no" real, "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_and_goals" ( "squad_no" real, "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_and_goals" ( "squad_no" real, "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goal_scorers" ( "name" text, "premier_league" real, "league_cup" real, "fa_cup" real, "total" real ); Question: What is the lowest FA cup with 1 league cup, less than 12 total and 1 premier lea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goal_scorers" ( "name" text, "premier_league" real, "league_cup" real, "fa_cup" real, "total" real ); Question: What is the highest league cup with more than 0 FA cups, a premier league less th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goal_scorers" ( "name" text, "premier_league" real, "league_cup" real, "fa_cup" real, "total" real ); Question: What is the average total of kenwyne jones, who has more than 10 premier leagues?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goal_scorers" ( "name" text, "premier_league" real, "league_cup" real, "fa_cup" real, "total" real ); Question: What is the highest league cup of danny collins, who has more than 1 premier leag...
<|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 "international" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What was the competition on 29 November 1997 that resulted in a draw? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "local_government_in_the_faroe_islands" ( "municipality" text, "population" real, "inhabitants_per_km" real, "area_in_km" real, "markatal" real, "island" text, "region" text ); Question: Wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "local_government_in_the_faroe_islands" ( "municipality" text, "population" real, "inhabitants_per_km" real, "area_in_km" real, "markatal" real, "island" text, "region" text ); Question: Wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "local_government_in_the_faroe_islands" ( "municipality" text, "population" real, "inhabitants_per_km" real, "area_in_km" real, "markatal" real, "island" text, "region" text ); Question: Wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "local_government_in_the_faroe_islands" ( "municipality" text, "population" real, "inhabitants_per_km" real, "area_in_km" real, "markatal" real, "island" text, "region" text ); Question: Wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_campaigns" ( "season" real, "competition" text, "games" real, "wins" real, "loses" real, "against" text ); Question: How many seasons have Losses larger than 1, and a Competition of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_campaigns" ( "season" real, "competition" text, "games" real, "wins" real, "loses" real, "against" text ); Question: How many Wins have Losses larger than 2, and an Against of 73.3? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1960s_giants_12_6" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text ); Question: In what Year was the Game on September 26? <|assistant|> SELECT SUM("ye...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1960s_giants_12_6" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text ); Question: What was the Loser of the Game with a Result of 35-27? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1960s_giants_12_6" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text ); Question: In what Year was the Result of the game 16-14? <|assistant|> SELECT MAX...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1960s_giants_12_6" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text ); Question: What Year had a Result of 34-25? <|assistant|> SELECT AVG("year") FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1960s_giants_12_6" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text ); Question: What is the Winner of the Game on November 26? <|assistant|> SELECT "wi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_and_rankings_timeline" ( "2004_05" text, "2006_07" text, "2007_08" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text ); Question: What was the 2012/13 result ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_and_rankings_timeline" ( "2004_05" text, "2006_07" text, "2007_08" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text ); Question: What was the 2006/07 finish ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_1_2_01_2010" ( "position" real, "pilot" text, "glider" text, "speed" text, "distance" text ); Question: What is the highest Position, when Pilot is "Mario Kiessling"? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_1_2_01_2010" ( "position" real, "pilot" text, "glider" text, "speed" text, "distance" text ); Question: What is the average Position, when Speed is "143.5km/h"? <|assistant|> SELECT AVG("p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_1_2_01_2010" ( "position" real, "pilot" text, "glider" text, "speed" text, "distance" text ); Question: What is Glider, when Speed is "147.3km/h"? <|assistant|> SELECT "glider" FROM "race_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_1_2_01_2010" ( "position" real, "pilot" text, "glider" text, "speed" text, "distance" text ); Question: What is Distance, when Pilot is "Stanislaw Wujczak"? <|assistant|> SELECT "distance"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "m" ( "player" text, "nationality" text, "jersey_number_s" text, "position" text, "years" text ); Question: Who has a Jersey number of 31? <|assistant|> SELECT "player" FROM "m" WHERE "jersey_nu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "m" ( "player" text, "nationality" text, "jersey_number_s" text, "position" text, "years" text ); Question: What was the position in 1999? <|assistant|> SELECT "position" FROM "m" WHERE "years"=...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What is the name of the away team with a Tie no of 7? <|assistant|> SELECT "away_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What is home team Chelsea's Tie no? <|assistant|> SELECT "tie_no" FROM "fifth_rou...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What away team has a Tie no of 5? <|assistant|> SELECT "away_team" FROM "fifth_ro...
<|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" real ); Question: Can you tell me the Score that has the Player of raymond floyd? <|assistant|> SELECT "score"...
<|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" real ); Question: Can you tell me the Player that has the Country of united states, and the Score of 77-72-72=...
<|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" real ); Question: Can you tell me the Score that has the Country of united states, and the To par of 8? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text ); Question: What was the time when his opponent was Cleber L...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text ); Question: What was the method in round 1 of the UFC 20 eve...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What was the record when the visitor was Atlanta Hawks? <|assistant|> SELECT "record" FROM "decemb...