text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "record_vs_big_12_opponents" ( "oklahoma_vs" text, "overall_record" text, "at_norman" text, "at_opponent_s_venue" text, "at_neutral_site" text, "last_5_meetings" text, "last_10_meetings" text...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "record_vs_big_12_opponents" ( "oklahoma_vs" text, "overall_record" text, "at_norman" text, "at_opponent_s_venue" text, "at_neutral_site" text, "last_5_meetings" text, "last_10_meetings" text...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "record_vs_big_12_opponents" ( "oklahoma_vs" text, "overall_record" text, "at_norman" text, "at_opponent_s_venue" text, "at_neutral_site" text, "last_5_meetings" text, "last_10_meetings" text...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "record_vs_big_12_opponents" ( "oklahoma_vs" text, "overall_record" text, "at_norman" text, "at_opponent_s_venue" text, "at_neutral_site" text, "last_5_meetings" text, "last_10_meetings" text...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "record_vs_big_12_opponents" ( "oklahoma_vs" text, "overall_record" text, "at_norman" text, "at_opponent_s_venue" text, "at_neutral_site" text, "last_5_meetings" text, "last_10_meetings" text...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "april" real, "opponent" text, "score" text, "decision" text, "record" text ); Question: What is the record for a game lower than 79? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_finals_10_6_4" ( "outcome" text, "date" real, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: Who was the pa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_finals_10_6_4" ( "outcome" text, "date" real, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: Who was the pa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_finals_10_6_4" ( "outcome" text, "date" real, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Question: What tournamen...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_top_50_performances" ( "athlete" text, "time" text, "country" text, "year" real, "place" real ); Question: Which Year is the lowest one that has an Athlete of markus thalmann, and a Ti...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_top_50_performances" ( "athlete" text, "time" text, "country" text, "year" real, "place" real ); Question: Which Year is the lowest one that has a Time of 24:55:58, and a Place larger ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_top_50_performances" ( "athlete" text, "time" text, "country" text, "year" real, "place" real ); Question: Which Athlete has a Place of 1, and a Year smaller than 1988, and a Country o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_top_50_performances" ( "athlete" text, "time" text, "country" text, "year" real, "place" real ); Question: Which Time has a Year larger than 1985, and a Place smaller than 2, and an At...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_schedule" ( "game" text, "day_date" text, "anand" text, "gelfand" text, "standing" text ); Question: What was Anand's score in game 8? <|assistant|> SELECT "anand" FROM "regular_schedul...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_schedule" ( "game" text, "day_date" text, "anand" text, "gelfand" text, "standing" text ); Question: What is the day and date of game 2? <|assistant|> SELECT "day_date" FROM "regular_sc...
<|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 "doubles_12_9_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partnering" text, "opponent_in_the_final" text, "score" text ); Question: What tournament is on 18 May 199...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_12_9_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partnering" text, "opponent_in_the_final" text, "score" text ); Question: What is the score of the tournam...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_10_4_6" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent_in_final" text, "score_in_final" text ); Question: On what surface did Katarina Srebotnik play Paol...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_10_4_6" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent_in_final" text, "score_in_final" text ); Question: At what tournament was the Score 5–7, 7–5, 6–4? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_10_4_6" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent_in_final" text, "score_in_final" text ); Question: What was the Final Score on February 24, 2002? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1st_round" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text ); Question: What was the smallest crowd when the a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1st_round" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text ); Question: What was the average crowd size for a ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_preliminary_round" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: What is the 1st leg when the 2nd leg was 67-83? <|assistant|> SELECT "1st_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_preliminary_round" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: Which Team #1 had a 1st leg of 78-78? <|assistant|> SELECT "team_num1" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_preliminary_round" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: Who was Team #1 when Team #2 was galatasaray cc i̇stanbul? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text ); Question: What a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" text, "wins" text, "poles" text, "f_laps" text, "podiums" text, "points" text, "position" text ); Question: What i...
<|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 to par is located in the united states and has a player by the name of hal sutton? <|a...
<|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 is in the place of t1 and has the score of 67-70=137? <|assistant|> SELECT "pla...
<|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 place has the score of 67-74=141? <|assistant|> SELECT "place" FROM "second_round" WHE...
<|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 the score of 67-72=139? <|assistant|> SELECT "player" FROM "second_round" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" text, "location" text ); Question: What was Gassaway's record at the fight in mississippi, unit...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" text, "location" text ); Question: What was the location the fight was held at that lasted 5 ro...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" text, "location" text ); Question: What was the location of the fight when Gassaway fought kevi...
<|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 place did Fred Couples finish in? <|assistant|> SELECT "place" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fortune_2013_list" ( "rank" real, "company" text, "country" text, "industry" text, "revenue_in_usd" text ); Question: What is the rank of the company who has a revenue of $428.2 billion? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fortune_2013_list" ( "rank" real, "company" text, "country" text, "industry" text, "revenue_in_usd" text ); Question: What is the rank of the petroleum company who has a revenue of $481.7 billi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_singles_performance_timeline" ( "tournament" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "career_sr" text, "career_win_loss" text ); Q...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_singles_performance_timeline" ( "tournament" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "career_sr" text, "career_win_loss" text ); Q...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_singles_performance_timeline" ( "tournament" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "career_sr" text, "career_win_loss" text ); Q...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_qualifying_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What was the score in the 1st leg when 2nd leg was 1–4? <|assistant|> SELECT "1s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "panchayatana" ( "center" text, "north_east" text, "south_east" text, "south_west" text, "north_west" text ); Question: Who is in the south-west next to Vishnu on the east, Durga on the west, an...
<|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" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "record" text, "points" real ); Question: What was the highest score for a California home game with o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "carleton_county_new_brunswick" ( "official_name" text, "status" text, "area_km_2" real, "population" real, "census_ranking" text ); Question: What is the sum of the areas for populations of 542...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "carleton_county_new_brunswick" ( "official_name" text, "status" text, "area_km_2" real, "population" real, "census_ranking" text ); Question: What is the highest area for locations named Centre...
<|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 competition when the result is 1-1 and venue is gwangju? <|assistant|>...
<|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 date when the competition is 1998 asian games? <|assistant|> SELECT "d...
<|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 venue when the score is 1 goal and the date is october 11, 1997? <|ass...
<|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 competition when the result is 2-1? <|assistant|> SELECT "competition"...
<|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 when the date is august 24, 1997? <|assistant|> SELECT "result"...
<|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 venue when the date is december 7, 1998? <|assistant|> SELECT "venue" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "fin_pos" text, "car_no" text, "driver" text, "team" text, "laps" text, "time_retired" text, "grid" text, "laps_led" text, "points" text ); Question: Who is the driver...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "fin_pos" text, "car_no" text, "driver" text, "team" text, "laps" text, "time_retired" text, "grid" text, "laps_led" text, "points" text ); Question: What is the grid ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "fin_pos" text, "car_no" text, "driver" text, "team" text, "laps" text, "time_retired" text, "grid" text, "laps_led" text, "points" text ); Question: What is the grid ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "fin_pos" text, "car_no" text, "driver" text, "team" text, "laps" text, "time_retired" text, "grid" text, "laps_led" text, "points" text ); Question: What is the grid ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_16" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: WHAT TEAM 1 HAS A 1st leg of 1–1, and a 2nd leg of 1–3? <|assistant|> SELECT "team_1" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_16" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: WHAT IS THE 1ST LEG WITH TEAM 2 AS ATHLETIC? <|assistant|> SELECT "1st_leg" FROM "round_of_1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_of_16" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: WHAT IS THE 2ND LEG WITH TEAM 1 OF SPORTING? <|assistant|> SELECT "2nd_leg" FROM "round_of_1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text ); Question: Sum of cuyo selection as the opposing team? <|assistant|> SELECT SUM("against") FROM "matc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text ); Question: Lowest against for tour match on 21 july 1990? <|assistant|> SELECT MIN("against") FROM "m...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "computer_encoding" ( "character" text, "code" text, "name" text, "version" real, "year" real ); Question: Name the lowest version with a code of u+1034a that began after 2001. <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "computer_encoding" ( "character" text, "code" text, "name" text, "version" real, "year" real ); Question: What character was the version 5.1 and had a Greek capital letter Archaic Sampi? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "computer_encoding" ( "character" text, "code" text, "name" text, "version" real, "year" real ); Question: Give the sum of the version with the coptic small letter sampi, and a year after 2005. ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "computer_encoding" ( "character" text, "code" text, "name" text, "version" real, "year" real ); Question: What is the year that has a name with the Greek small letter sampi? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What country id Bob Rosburg from? <|assistant|> SELECT "country" FROM "third_round" WHERE "p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What country has a score of 73-72-67=212? <|assistant|> SELECT "country" FROM "third_round" ...
<|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 Mike Souchak's to par? <|assistant|> SELECT "to_par" FROM "third_round" WHERE "playe...
<|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 Mike Souchak's to par score? <|assistant|> SELECT "to_par" FROM "third_round" WHERE ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: What was the finish for the golfer with a total of 285? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: What was the total for the golfer who had a year won of 1987? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: What was the finish for the golfer with a To par of +2? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: What was the total for the golfer who had a To par of +10 and year wo...
<|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 "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What is josé maría olazábal's country? <|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 Player has a Score of 74-67-74-71=286? <|assistant|> SELECT "pla...
<|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 Place has a Country of united states, and a Player of corey pavi...
<|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, "tv_time" text, "attendance" real ); Question: Who is the opponent in week 15? <|assistant|> SELECT "opponent" FROM "sche...
<|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, "tv_time" text, "attendance" real ); Question: What is the highest attendance a result of W 30-7? <|assistant|> SELECT MA...
<|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, "tv_time" text, "attendance" real ); Question: What is the average attendance at week earlier than 6 on October 14, 2001?...
<|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 record when the m...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "promotion_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: How many average points did svg burgkirchen have with a loss smaller than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "promotion_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: Who had points smaller than 22 and a drawn of 2? <|assistant|> SELECT "na...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "promotion_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: Who lost 2 and had a position bigger than 1? <|assistant|> SELECT "name" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "issued_title" text, "year" real, "label" text, "format" text, "catalog" text ); Question: What is the name of the catalog issued with the title of 1958 Miles on the Sony lab...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "issued_title" text, "year" real, "label" text, "format" text, "catalog" text ); Question: What is the label of the Year before 1979? <|assistant|> SELECT "label" FROM "relea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: WHAT IS THE 2011 PERFORMANCE AT THE MIAMI MASTER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: WHAT IS THE 2008 PERFORMANCE WITH A 2007 CAREER ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: WHAT IS THE TOURNAMENT WITH A 2010 OF A, 2009 OF...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: WHAT IS THE 2009 PERFORMANCE WITH A 2012 OF 2R, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: WHAT IS THE 2011 PERFORMANCE WITH A 2007 OF Q3? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: Which Score has a Place of t2? <|assistant|> SELECT "score" FROM "final_roun...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What was spain's score? <|assistant|> SELECT "score" FROM "final_round" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: Which To par has a Score of 70-73-80-68=291? <|assistant|> SELECT "to_par" F...
<|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: From what Country is T6 Place Player Tom Weiskopf? <|assistant|> SELECT "country" FROM "sec...