text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What is the sum of all laps with rank 3? <|assistant|> SELECT COUNT("laps") FROM "indy_500_re...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What is the sum of all laps starting at 10 and finishing at 20? <|assistant|> SELECT SUM("lap...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What's the rank when the start is 10 and the laps are fewer than 192? <|assistant|> SELECT "r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What's the rank when the laps are fewer than 137 and the qual is 116.470? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_i" ( "film" text, "director_s" text, "producer_s" text, "writer_s" text, "date" text, "award" text ); Question: What director worked with Al Mackay as writer? <|assistant|> SELECT "direc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_i" ( "film" text, "director_s" text, "producer_s" text, "writer_s" text, "date" text, "award" text ); Question: Which producer worked with Robert Sproul-cran as writer? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_i" ( "film" text, "director_s" text, "producer_s" text, "writer_s" text, "date" text, "award" text ); Question: Which film did Al Mackay write? <|assistant|> SELECT "film" FROM "2009_i" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_i" ( "film" text, "director_s" text, "producer_s" text, "writer_s" text, "date" text, "award" text ); Question: Who directed the film 'The Chapel'? <|assistant|> SELECT "director_s" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_i" ( "film" text, "director_s" text, "producer_s" text, "writer_s" text, "date" text, "award" text ); Question: What award did Andrew Ryder win as producer? <|assistant|> SELECT "award" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What is the total national rank of Canada with lanes larger than 3? <|assistant|> SELECT SUM("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: What was the score when the Rangers' attendance was 23,493? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_game_log" ( "date" text, "opponent" text, "result" text, "game_site" text, "attendance" text ); Question: Who was the opponent on the game on April 14, 2007? <|assistant|> SELECT "opponent...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_game_log" ( "date" text, "opponent" text, "result" text, "game_site" text, "attendance" text ); Question: How many people were in attendance on the game on April 8, 2007? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_game_log" ( "date" text, "opponent" text, "result" text, "game_site" text, "attendance" text ); Question: What was the date of the game with 16,404 people? <|assistant|> SELECT "date" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nickelodeon_movies" ( "year" real, "category" text, "film" text, "winner_nominee_s" text, "result" text ); Question: Which category was Dev Patel nominated for? <|assistant|> SELECT "category" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nickelodeon_movies" ( "year" real, "category" text, "film" text, "winner_nominee_s" text, "result" text ); Question: Which film was Eddie Murphy nominated for? <|assistant|> SELECT "film" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: When the start is 22, what is the finish? <|assistant|> SELECT "finish" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What year resulted in 54 laps? <|assistant|> SELECT "year" FROM "indy_500_resu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "los_angeles_kings_4_edmonton_oilers_3" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: On what date was the score 2–4? <|assistant|> SELECT "date" FROM "los...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "los_angeles_kings_4_edmonton_oilers_3" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Who was the home team when the score was 4–3? <|assistant|> SELECT "h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "los_angeles_kings_4_edmonton_oilers_3" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: On what date was the record 2–1? <|assistant|> SELECT "date" FROM "lo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar_and_winners" ( "round" real, "circuit" text, "date" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "winning_manufacturer" text ); Question: Who was the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar_and_winners" ( "round" real, "circuit" text, "date" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "winning_manufacturer" text ); Question: What was the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar_and_winners" ( "round" real, "circuit" text, "date" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "winning_manufacturer" text ); Question: What was the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar_and_winners" ( "round" real, "circuit" text, "date" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "winning_manufacturer" text ); Question: Who was the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "am_radio" ( "frequency" real, "callsign" text, "brand" text, "city_of_license" text, "website" text, "webcast" text ); Question: What is the city of txdot har? <|assistant|> SELECT "city_of_l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "am_radio" ( "frequency" real, "callsign" text, "brand" text, "city_of_license" text, "website" text, "webcast" text ); Question: What was radio mexicana's website? <|assistant|> SELECT "websi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rebounds" ( "rank" real, "player" text, "years" text, "games" real, "reb_avg" real, "total_rebounds" real ); Question: Which player ranks higher than 9? <|assistant|> SELECT "player" FROM "re...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "box_office_score_data" ( "venue" text, "city" text, "tickets_sold_available" text, "gross_revenue_1982" text, "gross_revenue_2011" text ); Question: What was the 2011 gross revenue for the venu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "box_office_score_data" ( "venue" text, "city" text, "tickets_sold_available" text, "gross_revenue_1982" text, "gross_revenue_2011" text ); Question: What was the 2011 gross revenue for the venu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "box_office_score_data" ( "venue" text, "city" text, "tickets_sold_available" text, "gross_revenue_1982" text, "gross_revenue_2011" text ); Question: How many tickets were sold / available for t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "box_office_score_data" ( "venue" text, "city" text, "tickets_sold_available" text, "gross_revenue_1982" text, "gross_revenue_2011" text ); Question: What is the venue in the city of Brussels, B...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "box_office_score_data" ( "venue" text, "city" text, "tickets_sold_available" text, "gross_revenue_1982" text, "gross_revenue_2011" text ); Question: What venue had gross revenues of $1,325,153 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_and_rankings_timeline" ( "2003_04" text, "2004_05" text, "2007_08" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text ); Question: What was held in 2003/04 whe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_and_rankings_timeline" ( "2003_04" text, "2004_05" text, "2007_08" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text ); Question: What was held in 2009/10 wit...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_and_rankings_timeline" ( "2003_04" text, "2004_05" text, "2007_08" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text ); Question: What was held in 2003/04 whe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_and_rankings_timeline" ( "2003_04" text, "2004_05" text, "2007_08" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text ); Question: What was held in 2009/10 whe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "total_region" real, "rockhampton" real, "livingstone" real, "fitzroy" real, "mt_morgan" real ); Question: How many people are in Livingstone when less than 6,406 a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "total_region" real, "rockhampton" real, "livingstone" real, "fitzroy" real, "mt_morgan" real ); Question: How many people in the total region when there are more t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "total_region" real, "rockhampton" real, "livingstone" real, "fitzroy" real, "mt_morgan" real ); Question: How many people were in Mt Morgan earlier than 1933 when ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "population" ( "year" real, "total_region" real, "rockhampton" real, "livingstone" real, "fitzroy" real, "mt_morgan" real ); Question: What is the sum of people in the total region when more t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_competition_scores" ( "state" text, "preliminaries" real, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); Question: What is the total swimsuit with Preliminari...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_competition_scores" ( "state" text, "preliminaries" real, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); Question: What's the average interview with Prelimina...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_competition_scores" ( "state" text, "preliminaries" real, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); Question: How many swimsuits have an Evening Gown lar...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_census_statistics" ( "rank_csa" text, "state_s" text, "2007_estimate" text, "2000_population" text, "percent_change_1990_2000" text ); Question: What is the 2000 population in OK with a 199...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_census_statistics" ( "rank_csa" text, "state_s" text, "2007_estimate" text, "2000_population" text, "percent_change_1990_2000" text ); Question: What is the 1990-2000 percent change of a re...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_census_statistics" ( "rank_csa" text, "state_s" text, "2007_estimate" text, "2000_population" text, "percent_change_1990_2000" text ); Question: What is the rank of a result with a populati...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "for_top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text ); Question: How many matches did goalkeeper Wilfredo Caballero have an average less than 1.1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "for_top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text ); Question: What is the average goals less than 41 that goalkeeper Claudio Bravo had? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "for_top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text ); Question: What is the highest average of goals less than 45 for team Real Sociedad? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1405_1482" ( "name" text, "father" text, "birth" text, "marriage" text, "became_countess" text, "ceased_to_be_countess" text, "death" text, "spouse" text ); Question: When did the person ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1405_1482" ( "name" text, "father" text, "birth" text, "marriage" text, "became_countess" text, "ceased_to_be_countess" text, "death" text, "spouse" text ); Question: Who was the father o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1405_1482" ( "name" text, "father" text, "birth" text, "marriage" text, "became_countess" text, "ceased_to_be_countess" text, "death" text, "spouse" text ); Question: When was the marriag...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fed_cup_doubles_performances_0_5" ( "edition" text, "round" text, "date" text, "partnering" text, "against" text, "surface" text, "opponents" text, "result" text ); Question: On what surf...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fed_cup_doubles_performances_0_5" ( "edition" text, "round" text, "date" text, "partnering" text, "against" text, "surface" text, "opponents" text, "result" text ); Question: Who was play...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text ); Question: Name the least year for paris, france venue <|assistant|> SELECT MIN("year") FROM "achieve...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "supplemental_first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text ); Question: What's the total number of picks for mckinney high school? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "supplemental_first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text ); Question: What was the highest pick for the player Adam Jones? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "supplemental_first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text ); Question: What's the total number of picks for the player Matt Murton? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "supplemental_first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text ); Question: What position was pick 32? <|assistant|> SELECT "position" FROM "supp...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "race_title" text, "circuit" text, "city_state" text, "date" text, "winner" text, "team" text ); Question: Who won at the Barbagallo Raceway circuit? <|assistant|> SELECT "wi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "race_title" text, "circuit" text, "city_state" text, "date" text, "winner" text, "team" text ); Question: What was the title of the race at Oran Park Raceway? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "race_title" text, "circuit" text, "city_state" text, "date" text, "winner" text, "team" text ); Question: Who won at the Oran Park Raceway? <|assistant|> SELECT "winner" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "race_title" text, "circuit" text, "city_state" text, "date" text, "winner" text, "team" text ); Question: When Jim Richards won at the Winton Motor Raceway circuit, what was...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leading_copper_producing_mines" ( "rank" text, "mine" text, "county" text, "operator" text, "capacity_thousands_of_metric_tons" text ); Question: What is the capacity of the mine that is operat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leading_copper_producing_mines" ( "rank" text, "mine" text, "county" text, "operator" text, "capacity_thousands_of_metric_tons" text ); Question: What rank is the Silver Bell mine of Pima count...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leading_copper_producing_mines" ( "rank" text, "mine" text, "county" text, "operator" text, "capacity_thousands_of_metric_tons" text ); Question: What is the capacity of the Pinto Valley mine i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What is the first leg with an agg of 10-2? <|assistant|> SELECT "1st_leg" FROM "first_round"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What is the agg of team 2 for Vantour Club Mangoungou? <|assistant|> SELECT "agg" FROM "firs...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What is the first leg of team 1 for Hardware stars? <|assistant|> SELECT "1st_leg" FROM "fir...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What is the agg with a second leg of 0-1? <|assistant|> SELECT "agg" FROM "first_round" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What team 2 had a 1st leg of 1-1, and agg of 3-1? <|assistant|> SELECT "team_2" FROM "first_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What team 2 had a second leg of 3-2? <|assistant|> SELECT "team_2" FROM "first_round" WHERE ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches" ( "date" text, "time" text, "round" text, "opponent" text, "ground" text, "score" text ); Question: On what date was the game played at home against the opponent Siena? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches" ( "date" text, "time" text, "round" text, "opponent" text, "ground" text, "score" text ); Question: What time was the game played against Cagliari that lasted 16 rounds? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches" ( "date" text, "time" text, "round" text, "opponent" text, "ground" text, "score" text ); Question: Where was the game played that had a score of 3-2 and a time of 15:00 cet? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: What was the score on April 18? <|assistant|> SELECT "score" FROM "game_log"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: What was the attendance when Nakamura (0-1) lost? <|assistant|> SELECT "atte...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: What was their record when they lost with Lilly (0-1) pitching? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: What was their record when the attendance was 26,827? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1980_1989" ( "january" text, "february" text, "march" text, "april" text, "june" text, "july" text, "august" text, "september" text, "october" text, "november" text, "december" text ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1980_1989" ( "january" text, "february" text, "march" text, "april" text, "june" text, "july" text, "august" text, "september" text, "october" text, "november" text, "december" text ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1980_1989" ( "january" text, "february" text, "march" text, "april" text, "june" text, "july" text, "august" text, "september" text, "october" text, "november" text, "december" text ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1980_1989" ( "january" text, "february" text, "march" text, "april" text, "june" text, "july" text, "august" text, "september" text, "october" text, "november" text, "december" text ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1980_1989" ( "january" text, "february" text, "march" text, "april" text, "june" text, "july" text, "august" text, "september" text, "october" text, "november" text, "december" text ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1980_1989" ( "january" text, "february" text, "march" text, "april" text, "june" text, "july" text, "august" text, "september" text, "october" text, "november" text, "december" text ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_season" ( "week" real, "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: What is the home stadium of the Tennessee Titans? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_season" ( "week" real, "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: When were the Houston Texans the visiting team later in the se...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_season" ( "week" real, "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: The final score was 24-34 on what date? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_by_nation" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the total number of gold medals won by nations that won 2 silver medals but fe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_by_nation" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the total number of medals won by nations that had 7 bronze medals and more th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_by_nation" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What nation with Rank 1 won the fewest gold medals while winning more than 11 silver b...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_by_nation" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the highest total medals won by a nation that had 7 bronze but more than 12 si...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_by_nation" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What nation won the fewest gold medals while being in Rank 1, with a total of 37 medal...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_titles" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: Name the score for yuliya ustyuzhanina <|assistant|> SELECT "score" FROM "singles_ti...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_titles" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: Name the date for hard surface and tournament of fort walton beach <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_titles" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: Name the opponent with score of 1–6, 6–4, 6–4 <|assistant|> SELECT "opponent" FROM "...