text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "races" ( "race" text, "date" text, "venue" text, "winner" text, "notes" text ); Question: What was the race for the world championship formula 1 at a venue of hungaroring? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "races" ( "race" text, "date" text, "venue" text, "winner" text, "notes" text ); Question: Who is the winner for the match on October 7? <|assistant|> SELECT "winner" FROM "races" WHERE "date"='...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "races" ( "race" text, "date" text, "venue" text, "winner" text, "notes" text ); Question: What is the date of the race for the new zealand grand prix? <|assistant|> SELECT "date" FROM "races" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "races" ( "race" text, "date" text, "venue" text, "winner" text, "notes" text ); Question: Who was the winner for the world championship formula 1 at the venue, circuit de monaco? <|assistant|> ...
<|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, "record" text, "attendance" text ); Question: What is Result, when Opponent is New England Patriots? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cup_finals_at_dalymount" ( "date" text, "competition" text, "winners" text, "score" text, "runners_up" text ); Question: What competition took place on 28/04/1906? <|assistant|> SELECT "competi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cup_finals_at_dalymount" ( "date" text, "competition" text, "winners" text, "score" text, "runners_up" text ); Question: Who were the runners-up in the game that was won by Cork City F.C. on 10...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cup_finals_at_dalymount" ( "date" text, "competition" text, "winners" text, "score" text, "runners_up" text ); Question: What was the score in the game that was won by Sligo Rovers F.C.? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cup_finals_at_dalymount" ( "date" text, "competition" text, "winners" text, "score" text, "runners_up" text ); Question: What date did the Fai Cup with Derry City F.C. as runners-up take place?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "tournament" text, "surface" text, "week" text, "winner" text, "runner_up" text, "semifinalists" text ); Question: What is the Runner-up on April 11? <|assistant|> SELECT "runner_u...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "tournament" text, "surface" text, "week" text, "winner" text, "runner_up" text, "semifinalists" text ); Question: What was the Tournament on May 2? <|assistant|> SELECT "tournamen...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ministers_without_portfolio" ( "portfolio" text, "minister" text, "took_office" text, "left_office" text, "party" text ); Question: What is Left Office, when Took Office is "11 June 2001", and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ministers_without_portfolio" ( "portfolio" text, "minister" text, "took_office" text, "left_office" text, "party" text ); Question: What is Minister, when Party is "AN"? <|assistant|> SELECT "m...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ministers_without_portfolio" ( "portfolio" text, "minister" text, "took_office" text, "left_office" text, "party" text ); Question: What is Left Office, when Party is "UDC", and when Took Offic...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ministers_without_portfolio" ( "portfolio" text, "minister" text, "took_office" text, "left_office" text, "party" text ); Question: What is Party, when Left Office is "23 April 2005", when Port...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ministers_without_portfolio" ( "portfolio" text, "minister" text, "took_office" text, "left_office" text, "party" text ); Question: What is Minister, when Portfolio is "Minister of Pubblic Admi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ministers_without_portfolio" ( "portfolio" text, "minister" text, "took_office" text, "left_office" text, "party" text ); Question: What is Party, when Minister is "Franco Frattini"? <|assistan...
<|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 event had the opponent R...
<|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 location had the opponen...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "winner" text, "runners_up" text, "aggregate" text, "1st_leg" text, "2nd_leg" text ); Question: What was the 2nd leg for 2004? <|assistant|> SELECT "2nd_leg" FROM "win...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" real, "winner" text, "runners_up" text, "aggregate" text, "1st_leg" text, "2nd_leg" text ); Question: What is the 2nd leg when San Pedro was the winner? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_present" ( "season" real, "player" text, "club" text, "goals" real, "games" real, "rate" real ); Question: What was the rate when there were more than 22 goals? <|assistant|> SELECT "rat...
<|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: What largest against has the opposing team of fiji? <|assistant|> SELECT MAX("against") FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); Question: Which Position has a Competition of european race walking cup? <|assistant|> SELECT "po...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); Question: Which Venue has a Competition of european championships, and a Position of 7th? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); Question: Where was the world race walking cup held before 2001? <|assistant|> SELECT "venue" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notable_final_matches" ( "opponent" text, "res" text, "class" text, "score" text, "date" text, "competition" text, "notes" text ); Question: WHAT COMPETITION HAS MARIAN SANDU? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notable_final_matches" ( "opponent" text, "res" text, "class" text, "score" text, "date" text, "competition" text, "notes" text ); Question: WHAT SCORE WAS ON 1999-05-31? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notable_final_matches" ( "opponent" text, "res" text, "class" text, "score" text, "date" text, "competition" text, "notes" text ); Question: WHAT OPPONENT HAD A SCORE OF 5:5? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goals_for_senior_national_team" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What Competition on August 3, 2005 had a Score of 5-0? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goals_for_senior_national_team" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What was the Venue of the 2009 Gulf Cup of Nations? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goals_for_senior_national_team" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What Venue on October 27, 2005 had a Score of 5-0? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goals_for_senior_national_team" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What is the Result of the Friendly Competition on October 27, 2005 with...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final" ( "lane" real, "name" text, "country" text, "mark" text, "react" real ); Question: Can you tell me the total number of React that has the Lane of 5? <|assistant|> SELECT COUNT("react") F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final" ( "lane" real, "name" text, "country" text, "mark" text, "react" real ); Question: Can you tell me the lowest React that has the Lane of 5? <|assistant|> SELECT MIN("react") FROM "final"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_5" ( "year" real, "championship" text, "winning_score" text, "margin" text, "runner_s_up" text ); Question: What is the winning score of the match with a margin of 3 strokes? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_5" ( "year" real, "championship" text, "winning_score" text, "margin" text, "runner_s_up" text ); Question: How many years was there a peter jackson classic? <|assistant|> SELECT COUNT("ye...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_5" ( "year" real, "championship" text, "winning_score" text, "margin" text, "runner_s_up" text ); Question: Which year was the peter jackson classic? <|assistant|> SELECT "year" FROM "wins...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text, "points" real ); Question: What is Date, when Visitor is Toron...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text, "points" real ); Question: What is Record, when Date is Novemb...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text, "points" real ); Question: What is Visitor, when Home is Phila...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text, "points" real ); Question: What is the average Attendance, whe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "accolades" ( "year" real, "publication" text, "country" text, "accolade" text, "rank" real ); Question: What's the average year with a rank less than 3? <|assistant|> SELECT AVG("year") FROM "a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "accolades" ( "year" real, "publication" text, "country" text, "accolade" text, "rank" real ); Question: What country got accolades in 2002? <|assistant|> SELECT "country" FROM "accolades" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "accolades" ( "year" real, "publication" text, "country" text, "accolade" text, "rank" real ); Question: What's the accolade for the rank of 497? <|assistant|> SELECT "accolade" FROM "accolades"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "accolades" ( "year" real, "publication" text, "country" text, "accolade" text, "rank" real ); Question: What's the average year for the accolade 100 greatest singles of all time? <|assistant|> ...
<|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 "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); Question: Which NFL team has a player that came from a college in Washington? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); Question: What position does Bobby Micho, who was picked later than 186 others, play on the Bron...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "squad_information" ( "nat" text, "name" text, "since" text, "goals" real, "ends" text, "transfer_fee" text ); Question: What is Since, when Transfer Fee is "£ 12m"? <|assistant|> SELECT "sinc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "squad_information" ( "nat" text, "name" text, "since" text, "goals" real, "ends" text, "transfer_fee" text ); Question: What is Name, when Goals is greater than 14, and when Transfer Fee is "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "squad_information" ( "nat" text, "name" text, "since" text, "goals" real, "ends" text, "transfer_fee" text ); Question: What is Nat., when Name is "Fàbregas ( Captain )"? <|assistant|> SELECT...
<|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 Time, when Method is ...
<|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 Record, when Event is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_of_the_swedish_motorcycle_grand_" ( "year" text, "track" text, "125_cc" text, "250_cc" text, "report" text ); Question: What is the name of the track that hosted the Swedish Grand Prix ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_of_the_swedish_motorcycle_grand_" ( "year" text, "track" text, "125_cc" text, "250_cc" text, "report" text ); Question: What year did Barry Sheene win the 125 cc? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_of_the_swedish_motorcycle_grand_" ( "year" text, "track" text, "125_cc" text, "250_cc" text, "report" text ); Question: Who won the 250 cc in 1987? <|assistant|> SELECT "250_cc" FROM "w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_of_the_swedish_motorcycle_grand_" ( "year" text, "track" text, "125_cc" text, "250_cc" text, "report" text ); Question: At what track resulted in Fausto Gresini winning the 125 cc and C...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_of_the_swedish_motorcycle_grand_" ( "year" text, "track" text, "125_cc" text, "250_cc" text, "report" text ); Question: Who won the 250 cc in 1985? <|assistant|> SELECT "250_cc" FROM "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 ); Question: Which opponent has 1-1 as the record? <|assistant|> SELECT "opponent" FROM "mix...
<|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 ); Question: What record has magomedkhan gamzatkhanov as the opponent, and submission as the...
<|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 ); Question: What round has 3-4 as the record? <|assistant|> SELECT "round" FROM "mixed_mart...
<|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 ); Question: What record has loss as the res., 1 for the round, and akira maeda as the oppon...
<|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 ); Question: What record has decision (majority) as the method? <|assistant|> SELECT "record...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What is Agg., when Team 1 is CD Elá Nguema? <|assistant|> SELECT "agg" FROM "prelimina...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What is 1st Leg, when 2nd Leg is 1-3? <|assistant|> SELECT "1st_leg" FROM "preliminary...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What is 1st Leg, when 2nd Leg is 0-1? <|assistant|> SELECT "1st_leg" FROM "preliminary...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What is Team 2, when 2nd Leg is 1-0? <|assistant|> SELECT "team_2" FROM "preliminary_r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What is Team 2, when 2nd Leg is 2-1? <|assistant|> SELECT "team_2" FROM "preliminary_r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What is Team 2, when 2nd Leg is 0-3 1? <|assistant|> SELECT "team_2" FROM "preliminary...
<|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 was Jim Colbert's score? <|assistant|> SELECT "score" 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 country scored 69-69-73=211? <|assistant|> SELECT "country" FROM "third_round" WHERE "s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What country does Bobby Nichols play for? <|assistant|> SELECT "country" FROM "third_round" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "grid" text ); Question: WHAT IS THE TIME/ RETIRED WITH A HONDA MANUFACTURER, GRID 8? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "grid" text ); Question: WHAT IS THE MANUFACTURER WITH 24 LAPS, AND +1.965 TIME/RETIRED? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "grid" text ); Question: WHAT IS THE GRID OF HONDA, WITH 24 LAPS AND Time/Retired of +13.997? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "grid" text ); Question: WHAT IS THE LAPS WITH A GRID OF 26? <|assistant|> SELECT "laps" FROM "125cc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "grid" text ); Question: WHAT IS THE RIDER WITH A 21 GRID? <|assistant|> SELECT "rider" FROM "125cc_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "grid" text ); Question: WHAT IS THE MANUFACTURER WITH 24 LAPS AND GRID 27? <|assistant|> SELECT "ma...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "players_selected" ( "year_a" real, "pick" text, "player" text, "position" text, "college" text ); Question: What is the most recent year georgia tech chose a linebacker? <|assistant|> SELECT MA...
<|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: Who is the player from Spain that has a +2 to par? <|assistant|> SELECT "player" FROM "seco...
<|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: Name the country with a score of 69-71=140. <|assistant|> SELECT "country" FROM "second_rou...
<|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's the to par for Hale Irwin of the United States? <|assistant|> SELECT "to_par" FROM "...
<|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's the to par for Jim Thorpe in T5 Place? <|assistant|> SELECT "to_par" FROM "second_ro...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: What was Jack Nicklaus's score after round 1? <|assistant|> SELECT MIN("score") FROM "first_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); Question: Which Laps have a Time of +39.476, and a Grid larger than 11? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); Question: Which Time has Laps smaller than 28, and a Rider of nicky hayden? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); Question: Which Rider has a Grid larger than 6, and has Laps of 28, and a Time of +39.476? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Bronze has a Total of 4, and a Gold smaller than 1? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Bronze has a Silver larger than 1, a Total larger than 3, a Nation of tur...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Gold has a Bronze of 1, and a Total smaller than 3? <|assistant|> SELECT ...
<|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, "attendance" real ); Question: In what Week is the Opponent the New Orleans Saints? <|assistant|> SELECT AVG("week") 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, "attendance" real ); Question: In what Weeks is the game against the Tampa Bay Buccaneers with less than 44,506 in Attendan...
<|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, "attendance" real ); Question: What is the Opponent in the game in Week 6 with more than 42,910 in Attendance? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What team was home, when the record was 24–16–6? <|assistant|> SELECT "home" FROM "regular_s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What date was the visitor the Boston Bruins, and the record was 4–0–1? <|assistant|> SELECT ...
<|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, "high_points" text, "high_rebounds" text, "location_attendance" text, "record" text ); Question: Who had the most points in game 81? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "turkish_airlines_reported_incidents_and_" ( "date" text, "flight" text, "aircraft" text, "registration" text, "location" text, "fatalities" real ); Question: Which flight had an aircraft of v...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "turkish_airlines_reported_incidents_and_" ( "date" text, "flight" text, "aircraft" text, "registration" text, "location" text, "fatalities" real ); Question: Which flight had the aircraft avr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "turkish_airlines_reported_incidents_and_" ( "date" text, "flight" text, "aircraft" text, "registration" text, "location" text, "fatalities" real ); Question: When was the registration of tc-j...