text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); Question: Which Round is the highest one that has a Position of running back? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); Question: Which Position has a Pick smaller than 29, and a School/Club Team of arizona? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); Question: Which Round is the lowest one that has a School/Club Team of alabama, and a Pick lar...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_2001" text ); Question: what is the venue of belshina <|assistant|> SELECT "venue" FROM "teams_and_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_2001" text ); Question: what is the venue of neman <|assistant|> SELECT "venue" FROM "teams_and_ven...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_2001" text ); Question: what is the venue of neman <|assistant|> SELECT "venue" FROM "teams_and_ven...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: Name the total number of pick with round less than 6 ...
<|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_in_the_final" text, "score" text ); Question: Which Outcome has a Score of 4–6 3–6? <|assistant|> SE...
<|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_in_the_final" text, "score" text ); Question: Which Tournament has a Score of 3–6 6–4 4–6? <|assista...
<|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_in_the_final" text, "score" text ); Question: Which Date has a Score of 6–1 7–6 (8–6)? <|assistant|>...
<|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_in_the_final" text, "score" text ); Question: Which Score has a Date of 26 september 2004? <|assista...
<|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_in_the_final" text, "score" text ); Question: Which Outcome has a Score of 3–6 2–6? <|assistant|> SE...
<|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_in_the_final" text, "score" text ); Question: Which Surface has an Opponent in the final of daniella...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance" ( "m_v_ft_s" real, "shell_lb" real, "time_to_ft_m_at_25_seconds" text, "time_to_ft_m_at_40_seconds" real, "time_to_ft_m_at_55_seconds" real, "max_height_ft" real ); Question: Wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance" ( "m_v_ft_s" real, "shell_lb" real, "time_to_ft_m_at_25_seconds" text, "time_to_ft_m_at_40_seconds" real, "time_to_ft_m_at_55_seconds" real, "max_height_ft" real ); Question: Wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance" ( "m_v_ft_s" real, "shell_lb" real, "time_to_ft_m_at_25_seconds" text, "time_to_ft_m_at_40_seconds" real, "time_to_ft_m_at_55_seconds" real, "max_height_ft" real ); Question: Wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance" ( "m_v_ft_s" real, "shell_lb" real, "time_to_ft_m_at_25_seconds" text, "time_to_ft_m_at_40_seconds" real, "time_to_ft_m_at_55_seconds" real, "max_height_ft" real ); Question: Wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance" ( "m_v_ft_s" real, "shell_lb" real, "time_to_ft_m_at_25_seconds" text, "time_to_ft_m_at_40_seconds" real, "time_to_ft_m_at_55_seconds" real, "max_height_ft" real ); Question: Wha...
<|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 highest attendance for the game that was before week 6 on October 22, 1967? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "delegates" ( "state" text, "name" text, "hometown" text, "age_1" real, "talent" text ); Question: What is the state having a contestant with a talent of classical piano and a hometown from Lanc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "delegates" ( "state" text, "name" text, "hometown" text, "age_1" real, "talent" text ); Question: Whose talent was ballet en pointe? <|assistant|> SELECT "name" FROM "delegates" WHERE "talent"=...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "delegates" ( "state" text, "name" text, "hometown" text, "age_1" real, "talent" text ); Question: What is the state represented by the contestant from Mesa, AZ? <|assistant|> SELECT "state" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "delegates" ( "state" text, "name" text, "hometown" text, "age_1" real, "talent" text ); Question: What is the talent of the contestant from Lexington, SC? <|assistant|> SELECT "talent" FROM "de...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "delegates" ( "state" text, "name" text, "hometown" text, "age_1" real, "talent" text ); Question: What is the age of the contestant from Reno, NV? <|assistant|> SELECT "age_1" FROM "delegates" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_18_1954" ( "episode" text, "title" text, "writer_s" text, "preservation" text, "original_airdate" text ); Question: Which writer wrote episode 18-09 (652)? <|assistant|> SELECT "writer_s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_18_1954" ( "episode" text, "title" text, "writer_s" text, "preservation" text, "original_airdate" text ); Question: What episode was written by jonathan lewis? <|assistant|> SELECT "epis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); Question: What position does Maryland have a player for Round 3? <|assistant|> SELECT "positio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); Question: How many picks are there for defensive back for rounds larger than 11? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text ); Question: What is the highest game that has april 21 as the date? <|assistant|> SELECT MAX("game") FROM "pl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text ); Question: What score has a game less than 4, and april 19 as the date? <|assistant|> SELECT "score" FROM "p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text ); Question: What opponent has a game less than 6, and april 17 as the date? <|assistant|> SELECT "opponent" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fifth_round" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); Question: What is the home team that played Derby County as the away team? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fifth_round" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); Question: Which home team is ranked no. 7 by tie no.? <|assistant|> SELECT "home_team" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fifth_round" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); Question: What is the score for the game in which Manchester United was the home team? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many golds does the nation having a rank of 8, fewer than 5 bronzes and mor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "award_winners" ( "year" real, "name" text, "country" text, "language_s" text, "literary_tradition" text ); Question: What nation was the film from that was in english and had a Literary traditi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "award_winners" ( "year" real, "name" text, "country" text, "language_s" text, "literary_tradition" text ); Question: What is the literary traidtion for the film in english in 2011? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "award_winners" ( "year" real, "name" text, "country" text, "language_s" text, "literary_tradition" text ); Question: What country was the film made in that was made after 2011? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "rebounds" real ); Question: Which team has 48 rebounds? <|assistant|> SELECT "team" FROM "rebounds" WHERE "rebounds"=48;<|endof...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "rebounds" real ); Question: What's the lowest amount of 12 games and less than 48 rebounds? <|assistant|> SELECT MIN("rank") FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "rebounds" real ); Question: How many rebounds does Fedor likholitov have with a rank greater than 8? <|assistant|> SELECT SUM("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "rebounds" real ); Question: Which game has more than 112 rebounds and a rank greater than 3? <|assistant|> SELECT MAX("games") ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "nation" text, "score" text, "to_par" text, "money" real ); Question: What was the score in a place of t5 in the United States? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "nation" text, "score" text, "to_par" text, "money" real ); Question: What is the to par that has more than $122,591 in Sweden and had Annika...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "nation" text, "score" text, "to_par" text, "money" real ); Question: What was the score for a match where Sophie Gustafson played? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rebounds" ( "rank" real, "name" text, "team" text, "games" real, "rebounds" real ); Question: with games more than 22 what is the rebound total? <|assistant|> SELECT SUM("rebounds") FROM "rebou...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" text ); Question: What is the location of the b.c. open? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" text ); Question: What is the location of the tallahassee open, with a Score of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" text ); Question: What date did Lanny Wadkins (6) win? <|assistant|> SELECT "da...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "winner" text, "score" text, "1st_prize" text ); Question: What is the Location for the buick-goodwrench open? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_6_2005_2006" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What is the Netflix episode that ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_6_2005_2006" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Which segment A item that has a S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_6_2005_2006" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Which series episode has a Netfli...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_6_2005_2006" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Which Netflix episode has an over...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "inter_molecular_interactions_micro_rna_u" ( "name" text, "species_specific" text, "intra_molecular_structure" text, "comparative" text, "link" text ); Question: Which Species Specific has a Com...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "inter_molecular_interactions_micro_rna_u" ( "name" text, "species_specific" text, "intra_molecular_structure" text, "comparative" text, "link" text ); Question: Which Intra-molecular structure ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "inter_molecular_interactions_micro_rna_u" ( "name" text, "species_specific" text, "intra_molecular_structure" text, "comparative" text, "link" text ); Question: Which Comparative has a Name of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "inter_molecular_interactions_micro_rna_u" ( "name" text, "species_specific" text, "intra_molecular_structure" text, "comparative" text, "link" text ); Question: Which Name has an Intra-molecula...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "inter_molecular_interactions_micro_rna_u" ( "name" text, "species_specific" text, "intra_molecular_structure" text, "comparative" text, "link" text ); Question: Which Comparative has a Link of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "inter_molecular_interactions_micro_rna_u" ( "name" text, "species_specific" text, "intra_molecular_structure" text, "comparative" text, "link" text ); Question: Which Species Specific has a Lin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "losers_knockout" ( "home_1st_leg" text, "home_2nd_leg" text, "1st_leg" text, "2nd_leg" text, "aggregate" text ); Question: What is the 1st leg for Instituto? <|assistant|> SELECT "1st_leg" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "losers_knockout" ( "home_1st_leg" text, "home_2nd_leg" text, "1st_leg" text, "2nd_leg" text, "aggregate" text ); Question: What Aggregate has a 2-1 1st leg, and is from Belgrano? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "losers_knockout" ( "home_1st_leg" text, "home_2nd_leg" text, "1st_leg" text, "2nd_leg" text, "aggregate" text ); Question: What Aggregate has a 0-0 1st leg, and a 0-1 second leg? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "losers_knockout" ( "home_1st_leg" text, "home_2nd_leg" text, "1st_leg" text, "2nd_leg" text, "aggregate" text ); Question: What aggregate has a 0-0 1st leg, and is from Instituto? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "losers_knockout" ( "home_1st_leg" text, "home_2nd_leg" text, "1st_leg" text, "2nd_leg" text, "aggregate" text ); Question: What is the home of aggregate's 3-4? <|assistant|> SELECT "home_2nd_le...
<|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 round did the fight agai...
<|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 was the method of fight ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: what had a score of 70-71-68-72=281? <|assistant|> SELECT "country" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: what had a score like roberto devicenzo <|assistant|> SELECT "score" F...
<|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 was the total number who attended during week 11? <|assistant|> SELECT COUNT("attendanc...
<|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 was the total number of weeks with a result of l 31-21? <|assistant|> SELECT COUNT("wee...
<|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 was the average week of a game attended by 12,985 with a result of W 38-14? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_men_s_doubles_performance_tim" ( "tournament" text, "1998" text, "1999" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_men_s_doubles_performance_tim" ( "tournament" text, "1998" text, "1999" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_men_s_doubles_performance_tim" ( "tournament" text, "1998" text, "1999" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_men_s_doubles_performance_tim" ( "tournament" text, "1998" text, "1999" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_men_s_doubles_performance_tim" ( "tournament" text, "1998" text, "1999" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_slam_men_s_doubles_performance_tim" ( "tournament" text, "1998" text, "1999" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2...
<|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, "venue" text, "attendance" text ); Question: what is the date of week 7 <|assistant|> SELECT "date" FROM "schedule" WHERE...
<|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, "record" text ); Question: Who was the visitor in the game that led to a 39-20-6 record? <|assistant|> SELECT "visitor" FROM "ma...
<|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, "record" text ); Question: What was the date of the game that led to a 48-21-6 record? <|assistant|> SELECT "date" FROM "march" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text ); Question: Name the average attendance from june 11 <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_and_honorees" ( "year" real, "player" text, "country" text, "score" text, "margin_of_victory" text, "winner_s_share" real ); Question: What is south africa's margin of victory? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_and_honorees" ( "year" real, "player" text, "country" text, "score" text, "margin_of_victory" text, "winner_s_share" real ); Question: Which Score has a Year larger than 1980, and a M...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_and_honorees" ( "year" real, "player" text, "country" text, "score" text, "margin_of_victory" text, "winner_s_share" real ); Question: Which average Winner's share ($) has a Score of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions" ( "season" real, "champion" text, "second" text, "third" text, "team_champion" text ); Question: What was the highest season with Barwa International Campos Team as champion? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions" ( "season" real, "champion" text, "second" text, "third" text, "team_champion" text ); Question: Who was third in Barwa International Campos Team? <|assistant|> SELECT "third" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "clubs" ( "club" text, "founded" real, "homeground" text, "suburb" text, "seniors" text, "juniors" text ); Question: What year was the Beaudesert suburb club founded <|assistant|> SELECT "foun...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "clubs" ( "club" text, "founded" real, "homeground" text, "suburb" text, "seniors" text, "juniors" text ); Question: What year did the Nerang Suburb get founded? <|assistant|> SELECT COUNT("fo...
<|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, "save" text, "attendance" real, "record" text ); Question: Who was the opponent when the Phillies played on April 28? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_team_totals_in_tests" ( "rank" real, "score" text, "overs" real, "run_rate" real, "innings" real, "date" text, "test_no" real, "report" text ); Question: What is the run rate for ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "studio_albums" ( "albumnum" text, "english_title" text, "chinese_title" text, "released" text, "label" text ); Question: Chinese title of 反正 卓文萱 had what released? <|assistant|> SELECT "release...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "studio_albums" ( "albumnum" text, "english_title" text, "chinese_title" text, "released" text, "label" text ); Question: Album # of 5th is what chinese title? <|assistant|> SELECT "chinese_titl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "studio_albums" ( "albumnum" text, "english_title" text, "chinese_title" text, "released" text, "label" text ); Question: Album # of 1st was released on what date? <|assistant|> SELECT "released...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "studio_albums" ( "albumnum" text, "english_title" text, "chinese_title" text, "released" text, "label" text ); Question: Album # of 3rd is what chinese title? <|assistant|> SELECT "chinese_titl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "studio_albums" ( "albumnum" text, "english_title" text, "chinese_title" text, "released" text, "label" text ); Question: English title of oxygenie of happiness has what release date? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "trades" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Which Score has a Home of quebec nordiques on april 16? <|assistant|> SELECT "score" FROM "trades" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "trades" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: WHich Record has a Visitor of quebec nordiques with a Score of 7–5? <|assistant|> SELECT "record" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "trades" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Who is the Visitor on april 8? <|assistant|> SELECT "visitor" FROM "trades" WHERE "date"='april 8';<...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "trades" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: When has Score of 4–5 and quebec nordiques as Visitor? <|assistant|> SELECT "date" FROM "trades" WHE...