text stringlengths 310 1.28k |
|---|
<|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,
"record" text
);
Question: What was the loss of the game against the Indians when the record was 15-15?... |
<|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,
"record" text
);
Question: What is the total attendance for games when the record was 23-23?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "seasons_since_1970" (
"division" text,
"drawn" real,
"lost" real,
"points" real,
"league_pos" text
);
Question: What is the total number of points for the conference division, a league position... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "seasons_since_1970" (
"division" text,
"drawn" real,
"lost" real,
"points" real,
"league_pos" text
);
Question: What is the drawn result with a league position of 15th and a lost result that is... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "competition_timeline" (
"competition" text,
"1993_94" text,
"1994_95" text,
"1995_96" text,
"1996_97" text,
"1997_98" text,
"1998_99" text,
"1999_2000" text,
"2000_01" text,
"2001_02" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "competition_timeline" (
"competition" text,
"1993_94" text,
"1994_95" text,
"1995_96" text,
"1996_97" text,
"1997_98" text,
"1998_99" text,
"1999_2000" text,
"2000_01" text,
"2001_02" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "competition_timeline" (
"competition" text,
"1993_94" text,
"1994_95" text,
"1995_96" text,
"1996_97" text,
"1997_98" text,
"1998_99" text,
"1999_2000" text,
"2000_01" text,
"2001_02" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "competition_timeline" (
"competition" text,
"1993_94" text,
"1994_95" text,
"1995_96" text,
"1996_97" text,
"1997_98" text,
"1998_99" text,
"1999_2000" text,
"2000_01" text,
"2001_02" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "competition_timeline" (
"competition" text,
"1993_94" text,
"1994_95" text,
"1995_96" text,
"1996_97" text,
"1997_98" text,
"1998_99" text,
"1999_2000" text,
"2000_01" text,
"2001_02" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: Name the score for columbus visitor
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: Name the least attendance with visitor of edmonton
<|assis... |
<|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" real
);
Question: What is the lowest numbered lane of Sue Rolph with a rank under 5?
<|assistant|>
SELECT MIN("l... |
<|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" real
);
Question: What is the lane number of the swimmer with a time of 55.69?
<|assistant|>
SELECT "lane" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goalscorers" (
"name" text,
"championship" real,
"league_cup" real,
"fa_cup" real,
"total" text
);
Question: What is the lowest number of league cups with 4 championships?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goalscorers" (
"name" text,
"championship" real,
"league_cup" real,
"fa_cup" real,
"total" text
);
Question: What is the highest value for FA cups, that has a total of 0 4, with less than 4 cha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goalscorers" (
"name" text,
"championship" real,
"league_cup" real,
"fa_cup" real,
"total" text
);
Question: How many FA cups were there without any league cups, but a total of 0 2?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_three" (
"pick_num" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: Who is Pick #41?
<|assistant|>
SELECT "player... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_three" (
"pick_num" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: Which player was Pick #40?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_three" (
"pick_num" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: Which team picked Dave Bonter?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_three" (
"pick_num" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: Which team picked the player from the Toronto... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"season" text,
"league" text,
"rank" real,
"games" real,
"points" real,
"manager" text,
"top_scorer" text,
"goals" real
);
Question: Name the most games for eredivisie when jur... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"season" text,
"league" text,
"rank" real,
"games" real,
"points" real,
"manager" text,
"top_scorer" text,
"goals" real
);
Question: Name the least rank when games are more tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
Question: Name the least point for mv agusta and rank of 13th for wins less... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
Question: Name the rank for wins of 0 and points of 2
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "motorcycle_grand_prix_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
Question: Name the total number of points with year less than 1955 and rank... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_taranaki_district" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: What is the total decile in the area of Normanby with a roller sma... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_taranaki_district" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: What Authority has a decile greater than 5, with a roll of 170?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goaltending_leaders" (
"player" text,
"years" text,
"games_played" real,
"goals_allowed" real,
"goals_against_average" real
);
Question: What is the average goals against average for those play... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goaltending_leaders" (
"player" text,
"years" text,
"games_played" real,
"goals_allowed" real,
"goals_against_average" real
);
Question: Who played over 46 games and allowed less than 195 goals... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goaltending_leaders" (
"player" text,
"years" text,
"games_played" real,
"goals_allowed" real,
"goals_against_average" real
);
Question: Who played 44 games who averaged over 2.07 goals against... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "language" (
"pure_tamil" text,
"how_ashtagrama_iyers_say_it" text,
"how_other_iyers_say_it" text,
"how_other_tamils_say_it" text,
"english_meaning" text
);
Question: Name how ashtagrama lyers s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "language" (
"pure_tamil" text,
"how_ashtagrama_iyers_say_it" text,
"how_other_iyers_say_it" text,
"how_other_tamils_say_it" text,
"english_meaning" text
);
Question: Name the english meaning fo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "language" (
"pure_tamil" text,
"how_ashtagrama_iyers_say_it" text,
"how_other_iyers_say_it" text,
"how_other_tamils_say_it" text,
"english_meaning" text
);
Question: Name how other lyers say en... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "language" (
"pure_tamil" text,
"how_ashtagrama_iyers_say_it" text,
"how_other_iyers_say_it" text,
"how_other_tamils_say_it" text,
"english_meaning" text
);
Question: Name the pure tamil for eng... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_largest_ferries_of_europe" (
"ship" text,
"length" text,
"passengers" real,
"speed" text,
"built" real,
"company" text,
"registry" text
);
Question: What company built the ship named ex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_largest_ferries_of_europe" (
"ship" text,
"length" text,
"passengers" real,
"speed" text,
"built" real,
"company" text,
"registry" text
);
Question: What's the total built by the United... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2005" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: Name the visiting team for stadium of ralph wilson stadium
<|assistant|>
SELECT "vis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2005" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: Name the date for visiting team of denver broncos
<|assistant|>
SELECT "date" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2005" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: Name the stadium with host team of san diego chargers and final score of 23-45
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2005" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: Name the stadium with final score of 20-10
<|assistant|>
SELECT "stadium" FROM "2005... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2005" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: Name the date with visiting team of philadelphia eagles
<|assistant|>
SELECT "date" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2005" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: Name the host team for january 1 (2006)
<|assistant|>
SELECT "host_team" FROM "2005"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_regular_season_football_standings" (
"school" text,
"team" text,
"division_record" text,
"overall_record" text,
"season_outcome" text
);
Question: What team belongs to Delmar?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_regular_season_football_standings" (
"school" text,
"team" text,
"division_record" text,
"overall_record" text,
"season_outcome" text
);
Question: What was Laurel's division record?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "passenger_statistics" (
"rank" real,
"airport" text,
"city" text,
"code_iata_icao" text,
"2008" real,
"2009" real,
"2010" real
);
Question: What is the rank of airport with a (IATA/ICAO) of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "passenger_statistics" (
"rank" real,
"airport" text,
"city" text,
"code_iata_icao" text,
"2008" real,
"2009" real,
"2010" real
);
Question: What is the average for the year 2008 of the team... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "passenger_statistics" (
"rank" real,
"airport" text,
"city" text,
"code_iata_icao" text,
"2008" real,
"2009" real,
"2010" real
);
Question: What is the average in 2010 of the team with a co... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "partisan_mix_of_the_house_by_state" (
"state_ranked_in_partisan_order" text,
"percentage_republicans" text,
"percentage_democrats" text,
"republican_democratic" text,
"republican_seat_plurality"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "partisan_mix_of_the_house_by_state" (
"state_ranked_in_partisan_order" text,
"percentage_republicans" text,
"percentage_democrats" text,
"republican_democratic" text,
"republican_seat_plurality"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "partisan_mix_of_the_house_by_state" (
"state_ranked_in_partisan_order" text,
"percentage_republicans" text,
"percentage_democrats" text,
"republican_democratic" text,
"republican_seat_plurality"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "partisan_mix_of_the_house_by_state" (
"state_ranked_in_partisan_order" text,
"percentage_republicans" text,
"percentage_democrats" text,
"republican_democratic" text,
"republican_seat_plurality"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "partisan_mix_of_the_house_by_state" (
"state_ranked_in_partisan_order" text,
"percentage_republicans" text,
"percentage_democrats" text,
"republican_democratic" text,
"republican_seat_plurality"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournaments" (
"year" real,
"tournament" text,
"round_1" real,
"round_2" real,
"round_3" real,
"round_4" real,
"score" real,
"to_par" text,
"place" text,
"money" real
);
Question: Wha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournaments" (
"year" real,
"tournament" text,
"round_1" real,
"round_2" real,
"round_3" real,
"round_4" real,
"score" real,
"to_par" text,
"place" text,
"money" real
);
Question: Wha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournaments" (
"year" real,
"tournament" text,
"round_1" real,
"round_2" real,
"round_3" real,
"round_4" real,
"score" real,
"to_par" text,
"place" text,
"money" real
);
Question: Wha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournaments" (
"year" real,
"tournament" text,
"round_1" real,
"round_2" real,
"round_3" real,
"round_4" real,
"score" real,
"to_par" text,
"place" text,
"money" real
);
Question: Wha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_results" (
"year" real,
"event" text,
"venue" text,
"driver" text,
"result" text
);
Question: Where was the BRDC International Trophy with driver Emerson Fittipaldi held?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_results" (
"year" real,
"event" text,
"venue" text,
"driver" text,
"result" text
);
Question: What was the most recent race at Kyalami with Keke Rosberg competing?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_results" (
"year" real,
"event" text,
"venue" text,
"driver" text,
"result" text
);
Question: What year was the Spanish Grand Prix where Emerson Fittipaldi drove?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_results" (
"year" real,
"event" text,
"venue" text,
"driver" text,
"result" text
);
Question: What was the outcome for Emerson Fittipaldi in the race held at Jarama?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_results" (
"year" real,
"event" text,
"venue" text,
"driver" text,
"result" text
);
Question: How many years did Wilson Fittipaldi race?
<|assistant|>
SELECT COUNT("year") 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,
"record" text
);
Question: What was the score of the game that had a loss of Cox (6–2)?
<|assistant|>
SELECT "score" FROM "g... |
<|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,
"record" text
);
Question: What was the date of the game that had a loss of Rojas (9–8)?
<|assistant|>
SELECT "date" FROM "g... |
<|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,
"record" text
);
Question: What was the score of the game that had a loss of Coates (0–2)?
<|assistant|>
SELECT "score" 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,
"record" text
);
Question: What was the score of the game when the record was 58–47?
<|assistant|>
SELECT "score" FROM "game... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_of_theophoric_names_with_yeho_and_" (
"strong_s_num" real,
"hebrew_word" text,
"strong_s_transliteration" text,
"strong_s_words_compounded" text,
"english_spelling" text
);
Question: Stro... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_of_theophoric_names_with_yeho_and_" (
"strong_s_num" real,
"hebrew_word" text,
"strong_s_transliteration" text,
"strong_s_words_compounded" text,
"english_spelling" text
);
Question: How ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_of_theophoric_names_with_yeho_and_" (
"strong_s_num" real,
"hebrew_word" text,
"strong_s_transliteration" text,
"strong_s_words_compounded" text,
"english_spelling" text
);
Question: What... |
<|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: Which start has 1956 as the year?
<|assistant|>
SELECT "start" FROM "indy_500_... |
<|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: Which start has 32 as the finish and laps more than 6?
<|assistant|>
SELECT "s... |
<|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: Which start has 4 as a rank?
<|assistant|>
SELECT "start" FROM "indy_500_resul... |
<|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: How many laps have 1 as the start?
<|assistant|>
SELECT COUNT("laps") FROM "in... |
<|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: Which finish has 33 as a rank and 200 for laps?
<|assistant|>
SELECT "finish" ... |
<|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: Which finish has 1 as the rank?
<|assistant|>
SELECT "finish" FROM "indy_500_r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "one_dollar" (
"year" real,
"theme" text,
"artist" text,
"issue_price" real,
"special_notes" text
);
Question: What are the special notes for an issue price under 24.95 with an edmonton oilers t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "one_dollar" (
"year" real,
"theme" text,
"artist" text,
"issue_price" real,
"special_notes" text
);
Question: What theme has special notes from calgary flames gift set?
<|assistant|>
SELECT "th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "one_dollar" (
"year" real,
"theme" text,
"artist" text,
"issue_price" real,
"special_notes" text
);
Question: What year has an issue price over 15.95, and a special notes from edmonton oilers g... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "construction" (
"ship" text,
"site" text,
"guns" real,
"naval_constructor" text,
"superintendent" text
);
Question: What is the site when the superintendent was John Barry?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "construction" (
"ship" text,
"site" text,
"guns" real,
"naval_constructor" text,
"superintendent" text
);
Question: What is the number of guns when the superintendent was Silas Talbot?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "construction" (
"ship" text,
"site" text,
"guns" real,
"naval_constructor" text,
"superintendent" text
);
Question: What is the site when the superintendent was James Sever?
<|assistant|>
SELEC... |
<|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,
"record" text
);
Question: Who was the loss in the game with the record of 65-53?
<|assistant|>
SELECT ... |
<|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,
"record" text
);
Question: On August 29, What was the record playing against the Rangers?
<|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" real,
"record" text
);
Question: On August 22, how many people came to the game?
<|assistant|>
SELECT "attend... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "totals_up_to_and_including_the_5th_test_" (
"series" text,
"season" text,
"host" text,
"tests" real,
"england" real,
"west_indies" real,
"draw" real,
"series_result" text,
"holder_at_the... |
<|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,
"record" text
);
Question: When were the Brewers 27-31?
<|assistant|>
SELECT "date" FROM "game_log" WHE... |
<|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,
"record" text
);
Question: When did the Brewers lose 2-8?
<|assistant|>
SELECT "loss" FROM "game_log" W... |
<|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,
"record" text
);
Question: When the Brewers score was 5-7, what was the lowest attendance?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006_season" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: Who hosted the visiting team Baltimore Ravens?
<|assistant|>
SELECT "host_tea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006_season" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: What was the final score at Heinz Field?
<|assistant|>
SELECT "final_score" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006_season" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: What is the home stadium of the Atlanta Falcons?
<|assistant|>
SELECT "stadiu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2006_season" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
);
Question: What date did the New York Giants play as a visiting team?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the score of Tim Herron, who placed t1?
<|assistant|>
SELECT "score" FROM "second_r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What place does Fred Funk, who has a score of 69-69=138, have?
<|assistant|>
SELECT "place"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is Tiger Woods's score?
<|assistant|>
SELECT "score" FROM "second_round" WHERE "player... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the score of Australia?
<|assistant|>
SELECT "score" FROM "second_round" WHERE "cou... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "moto_gp_participants" (
"team" text,
"constructor" text,
"motorcycle" text,
"tyre" text,
"rider" text,
"rounds" text
);
Question: Who was Constructor for rider Marco Melandri?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "moto_gp_participants" (
"team" text,
"constructor" text,
"motorcycle" text,
"tyre" text,
"rider" text,
"rounds" text
);
Question: Anthony West ride which Motorcyle?
<|assistant|>
SELECT "moto... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_four" (
"pick_num" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: What team draft a player from Canada that was ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_four" (
"pick_num" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: What nationality is Gerry Methe?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_four" (
"pick_num" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: What which player from Canada was picked #49 a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.