text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "nominated_work" text, "category" text, "result" text ); Question: What category has showest award for the category awards? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "nominated_work" text, "category" text, "result" text ); Question: What category has a year after 2004? <|assistant|> SELECT "category" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_5_2_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: Which Opponent had a Score of 6-3, 6-2? <|assistant|> SELECT "oppon...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_5_2_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: Which Score had an Opponent of chris evert-lloyd? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_5_2_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: Which Surface had an Opponent of chris evert-lloyd? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_5_2_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: Which Surface had a Date of june 13, 1983? <|assistant|> SELECT "su...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_21" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "report" text ); Question: What was the highest a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_21" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "report" text ); Question: What was the away team...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_21" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "report" text ); Question: When did the home team...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_21" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "report" text ); Question: What was the largest a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2010_final_statistics" ( "rank" real, "airport" text, "code_iata_icao" text, "total_cargo_metric_tonnes" real, "pct_change" text ); Question: What is the full amount of Total Cargo (in Metric T...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "site" text, "result" text, "attendance" text ); Question: What is the Date at memorial stadium β€’ minneapolis, mn with an Attendance of 20,000, and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "site" text, "result" text, "attendance" text ); Question: What is the Opponent name at memorial stadium β€’ minneapolis, mn on 10/20/1928? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "site" text, "result" text, "attendance" text ); Question: What is the Attendance number when the Opponent was purdue? <|assistant|> SELECT "attenda...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "site" text, "result" text, "attendance" text ); Question: What is the Site when the Result was w52-0? <|assistant|> SELECT "site" FROM "schedule" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "site" text, "result" text, "attendance" text ); Question: What is the Attendance on 11/10/1928? <|assistant|> SELECT "attendance" FROM "schedule" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "winner" text, "score" text, "date" text, "venue" text, "crowd" real ); Question: Who was the Winner at Campbelltown Sports Stadium? <|assistant|> SELECT "winner" FROM "results" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "winner" text, "score" text, "date" text, "venue" text, "crowd" real ); Question: When Sydney Roosters won with a Crown of more than 7,426, what was the Venue? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_and_draw_dates" ( "phase" text, "round" text, "draw_date" text, "first_leg" text, "second_leg" text ); Question: What was the second leg score from the group stage on matchday 5? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_and_draw_dates" ( "phase" text, "round" text, "draw_date" text, "first_leg" text, "second_leg" text ); Question: What was the draw date from the qualifying phase and a round of first qual...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "statue" text, "liberator" text, "country" text, "year_erected" text, "artist" text ); Question: what year did enrique alciati make a statue <|assistant|> SELECT "year_erected" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "statue" text, "liberator" text, "country" text, "year_erected" text, "artist" text ); Question: what artist cam from uruguay <|assistant|> SELECT "artist" FROM "see_also" WHERE "co...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "urban_population_growth_pct" ( "region_country" text, "1985_1990" real, "1990_1995" real, "1995_2000" real, "2000_2005" real ); Question: When 1990-1995 > 0.37, 2000-2005 of 1.37, what's the hi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "urban_population_growth_pct" ( "region_country" text, "1985_1990" real, "1990_1995" real, "1995_2000" real, "2000_2005" real ); Question: When 2000-2005 is smaller than 2.52, and 1990-1995 is l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "urban_population_growth_pct" ( "region_country" text, "1985_1990" real, "1990_1995" real, "1995_2000" real, "2000_2005" real ); Question: What's China's highest 1985-1990 assuming a 2000-2005 l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: What is the women's singles before 1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: When did mika heinonen susanna dahlb...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: How many years did pia pajunen nina ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Who won women's singles in 1961? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "marc_zwiebler" ( "outcome" text, "year" text, "venue" text, "last_opponent" text, "score" text ); Question: Score of 0–3 (11–21, 14–21) had what outcome? <|assistant|> SELECT "outcome" FROM "ma...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "marc_zwiebler" ( "outcome" text, "year" text, "venue" text, "last_opponent" text, "score" text ); Question: Venue of thessaloniki (without participation) had what score? <|assistant|> SELECT "s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "marc_zwiebler" ( "outcome" text, "year" text, "venue" text, "last_opponent" text, "score" text ); Question: Outcome of 13, and a Year of 2007 happened in what venue? <|assistant|> SELECT "venue...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_i_comparison_of_selected_volcanic_" ( "eruptions" text, "country" text, "location" text, "year" real, "volcanic_explosivity_index" text, "fatalities" text ); Question: Which Eruptions h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_i_comparison_of_selected_volcanic_" ( "eruptions" text, "country" text, "location" text, "year" real, "volcanic_explosivity_index" text, "fatalities" text ); Question: How many fataliti...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_i_comparison_of_selected_volcanic_" ( "eruptions" text, "country" text, "location" text, "year" real, "volcanic_explosivity_index" text, "fatalities" text ); Question: How many years ha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "3_liga" ( "season" text, "champions" text, "runners_up" text, "promotion_playoff" text, "standings" text ); Question: What is the Standings of Eintracht Braunschweig? <|assistant|> SELECT "stan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_career_statistics" ( "year" real, "class" text, "team" text, "machine" text, "points" real, "rank" text, "wins" real ); Question: Year larger than 2001 has what average points? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_career_statistics" ( "year" real, "class" text, "team" text, "machine" text, "points" real, "rank" text, "wins" real ); Question: Team of Honda and a point total of 238 is what h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_career_statistics" ( "year" real, "class" text, "team" text, "machine" text, "points" real, "rank" text, "wins" real ); Question: Wins of 0 involves what team? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_1" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text ); Question: what player has a pick of 5 <|assistant|> SELECT "player" FROM "round_1" WHERE "pic...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text ); Question: Which District has a First elected of 1858, and a R...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text ); Question: Which Result has a District of pennsylvania 13? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text ); Question: Which First elected is the lowest one that has an I...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: Who was the Player when College/Junior/Club Team (League) wa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" real ); Question: What is the date of the game with an attendance larger ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" real ); Question: What is the attendance of the game on week 4? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rose_bowl_michigan_49_stanford_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: How many extra points are there that Herrnstein had wit...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rose_bowl_michigan_49_stanford_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: How many touchdowns are there that has field goals less...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rose_bowl_michigan_49_stanford_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: How many field goals are there that have 8 touchdowns a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rose_bowl_michigan_49_stanford_0" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: What's the number of touchdowns that Snow made that had...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: For an IATA of MLE, what is the ICAO? <|assistant|> SELECT "icao" FROM "destinations" WHERE "i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: For an ICAO of VCCT, what is the IATA? <|assistant|> SELECT "iata" FROM "destinations" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: Which city has an ICAO of VCCJ? <|assistant|> SELECT "city" FROM "destinations" WHERE "icao"='...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: Which ICAO is found in Vavuniya? <|assistant|> SELECT "icao" FROM "destinations" WHERE "city"=...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: Which country has Weerawila Airport? <|assistant|> SELECT "country" FROM "destinations" WHERE ...
<|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: Which opponent has april 1 as the date? <|assistant|> SELECT "opponent" FROM...
<|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 opponent has tomko (1-1) as a loss? <|assistant|> SELECT "opponent" FRO...
<|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 opponent has 8-10 as the record? <|assistant|> SELECT "opponent" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual_chemistry" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text ); Question: Whcih was the Class AAA in school year 2006-07? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual_chemistry" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text ); Question: What team was class AA in years 1994-95? <|assistant|> SELECT "clas...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual_chemistry" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text ); Question: Who was Class AA in School Year 1994-95? <|assistant|> SELECT "clas...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text ); Question: What's the date of the game that has the Bulls as a visiting team? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "february" real, "opponent" text, "score" text, "record" text, "points" real ); Question: What is the average game number that took place after February 13 agai...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" real ); Question: Who was the opponent at the game at Sullivan Stadium be...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "head_coaches_and_all_time_results" ( "name" text, "years" text, "seasons" real, "lost" real, "pct" real ); Question: What is the years coached by the person with a win percentage of 0.667 and 3...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "head_coaches_and_all_time_results" ( "name" text, "years" text, "seasons" real, "lost" real, "pct" real ); Question: What is the average percent for the coach from 1905 and more than 7 losses? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "head_coaches_and_all_time_results" ( "name" text, "years" text, "seasons" real, "lost" real, "pct" real ); Question: How many percentages have 20 losses and more than 1 season? <|assistant|> SE...
<|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" text, "record" text ); Question: What home has February 10 as the date? <|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, "decision" text, "attendance" text, "record" text ); Question: What date has ny islanders as the visitor? <|assista...
<|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" text, "record" text ); Question: What score has February 10 as the date? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stage_results" ( "date" text, "course" text, "distance" text, "type" text, "winner" text ); Question: Name the course for 24 july <|assistant|> SELECT "course" FROM "stage_results" WHERE "date"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stage_results" ( "date" text, "course" text, "distance" text, "type" text, "winner" text ); Question: Name the course for team time trial <|assistant|> SELECT "course" FROM "stage_results" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stage_results" ( "date" text, "course" text, "distance" text, "type" text, "winner" text ); Question: Name the winner for rest day for 13 july <|assistant|> SELECT "winner" FROM "stage_results"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "elimination_chamber_entrances_and_elimin" ( "elimination_no" text, "wrestler" text, "entered" real, "eliminated_by" text, "time" text ); Question: Shawn Michaels entered the elimination chamber...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "elimination_chamber_entrances_and_elimin" ( "elimination_no" text, "wrestler" text, "entered" real, "eliminated_by" text, "time" text ); Question: Who Eliminated Kurt Angle? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "elimination_chamber_entrances_and_elimin" ( "elimination_no" text, "wrestler" text, "entered" real, "eliminated_by" text, "time" text ); Question: Who Eliminated Kane? <|assistant|> SELECT "eli...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the sum of all gold medals for Algeria when total medals is less than 3...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "major_urban_areas" ( "urban_area" text, "country" text, "region" text, "population" real, "globalization_index" text ); Question: what is the population of Valencia, Spain? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tallest_buildings" ( "rank" text, "name" text, "height_feet_m" text, "floors" real, "year" real ); Question: which year holds rank 2? <|assistant|> SELECT MAX("year") FROM "tallest_buildings" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tallest_buildings" ( "rank" text, "name" text, "height_feet_m" text, "floors" real, "year" real ); Question: with name meridian condominiums what is number of floors? <|assistant|> SELECT AVG("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tallest_buildings" ( "rank" text, "name" text, "height_feet_m" text, "floors" real, "year" real ); Question: with rank of 31 what is the year? <|assistant|> SELECT COUNT("year") FROM "tallest_b...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What was the date of the match against the visiting team, Toronto? <|assistant|> SELECT "date" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Who played the home team during the game on January 6? <|assistant|> SELECT "home" FROM "january" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What was the cougars record during the game where Boston were the visitors? <|assistant|> SELECT "r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_2" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); Question: What's the lowest Drawn that has a Lost that's less than 0? <|assistant|> SELECT MIN("dr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_2" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); Question: What's the total Lost with Games that's less than 4? <|assistant|> SELECT SUM("lost") FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_2" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); Question: What's the total of Games with a Lost that's larger than 2, and has Points that's smalle...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_2" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); Question: What's the Lost average that has a Drawn less than 0? <|assistant|> SELECT AVG("lost") F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real ); Question: What record has @ ottawa senators as the opponent? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real ); Question: What game has 28 points, and tampa bay lightning as the opponent? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real ); Question: What is the average points that have a December less than 6, with a ga...
<|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" real, "series" text ); Question: Who was the opponent at the game with a loss of Sele (0-1)? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Record of 42–16–8, and a March larger than 5 has what average points? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Points smaller than 96, and a Record of 43–16–8 belongs to what game? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Game smaller than 70, and a Record of 43–16–8 is what opponent? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Record of 44–18–8 involves which score? <|assistant|> SELECT "score" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" text, "pick" text, "player" text, "position" text, "college" text ); Question: Which college is Kellen Davis from? <|assistant|> SELECT "college" FROM "nfl_draft" WHERE "pl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" text, "pick" text, "player" text, "position" text, "college" text ); Question: Which round's position is according to official website? <|assistant|> SELECT "round" FROM "n...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" text, "pick" text, "player" text, "position" text, "college" text ); Question: Which position's round was 3 when pick was 70? <|assistant|> SELECT "position" FROM "nfl_draf...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" text, "pick" text, "player" text, "position" text, "college" text ); Question: Which pick's round was 5 when Kellen Davis was a player? <|assistant|> SELECT "pick" FROM "nf...