text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "multiple_medalists" ( "athlete_nation" text, "olympics" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the lowest medal total with less than 3 gold medals?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What's the lowest amount of laps with a start of 21? <|assistant|> SELECT MIN(...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What was the start of the competitor with a qualifying time of 84.300? <|assis...
<|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: In what year were there more laps than 200 in a race? <|assistant|> SELECT "ye...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nintendo_64" ( "name" text, "current_version" text, "system" text, "platform" text, "license" text ); Question: what is the current version of the project64 with gpl v2 license? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nintendo_64" ( "name" text, "current_version" text, "system" text, "platform" text, "license" text ); Question: what is the current version of the name mupen64plus with gpl v2 license? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nintendo_64" ( "name" text, "current_version" text, "system" text, "platform" text, "license" text ); Question: what is the current version with license gpl v3? <|assistant|> SELECT "current_ve...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "films" ( "year" real, "film" text, "role" text, "leading_man" text, "director" text ); Question: What leading man earlier than 1932 was directed by archie mayo? <|assistant|> SELECT "leading_ma...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "films" ( "year" real, "film" text, "role" text, "leading_man" text, "director" text ); Question: What year was the role nan taylor, alias of nan ellis, aka mrs. andrews and directed by William ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "films" ( "year" real, "film" text, "role" text, "leading_man" text, "director" text ); Question: What is the latest year for the role of joan gordon, aka francine la rue? <|assistant|> SELECT M...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "films" ( "year" real, "film" text, "role" text, "leading_man" text, "director" text ); Question: What film has a leading man of adolphe menjou in 1939? <|assistant|> SELECT "film" FROM "films" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "films" ( "year" real, "film" text, "role" text, "leading_man" text, "director" text ); Question: What film was the director william a. wellman, later than 1931 with a leading man of george bren...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "films" ( "year" real, "film" text, "role" text, "leading_man" text, "director" text ); Question: What director directed the role of shelby barret wyatt in 1935? <|assistant|> SELECT "director" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ratings" ( "air_date" text, "timeslot_est" text, "season" text, "rating" real, "share" real, "18_49_rating_share" text, "viewers_m" real, "weekly_rank_num" text ); Question: What is the w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ratings" ( "air_date" text, "timeslot_est" text, "season" text, "rating" real, "share" real, "18_49_rating_share" text, "viewers_m" real, "weekly_rank_num" text ); Question: What is the s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ratings" ( "air_date" text, "timeslot_est" text, "season" text, "rating" real, "share" real, "18_49_rating_share" text, "viewers_m" real, "weekly_rank_num" text ); Question: What is the h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ratings" ( "air_date" text, "timeslot_est" text, "season" text, "rating" real, "share" real, "18_49_rating_share" text, "viewers_m" real, "weekly_rank_num" text ); Question: What is the r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bislett_games" ( "year" real, "event" text, "record" text, "athlete" text, "nationality" text ); Question: Which athlete performed before 1984 in an 800 m event? <|assistant|> SELECT "athlete" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What venue has the away side scoring 6.5...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: How many attended the game when the home...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2001_squad_statistics" ( "player" text, "position" text, "tries" real, "goals" real, "points" real ); Question: What is the lowest number of points that Tevita Vaikona scored when making more t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2001_squad_statistics" ( "player" text, "position" text, "tries" real, "goals" real, "points" real ); Question: What is the average number of points scored by Joe Vagana when making fewer than ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What is the competition that had a win result and a score of 3-1? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What is the venue of the match that had a win result and a score of 0-4 in the 200...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What is the score of the match on July 22, 2008? <|assistant|> SELECT "score" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What is the score of the 2002 Tiger Cup third/fourth place match? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What is the competition on October 15, 2008? <|assistant|> SELECT "competition" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text ); Question: What is the player that went to st. benedict's prep? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text ); Question: What is the NBA draft for ohio state? <|assistant|> SELECT "nba_d...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text ); Question: What school did the player that is 6-6 go to? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text ); Question: What school did samardo samuels go to? <|assistant|> SELECT "scho...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "boxing" ( "athlete" text, "event" text, "round_of_32" text, "round_of_16" text, "quarterfinal" text, "semifinal" text, "final" text ); Question: What is the final for middleweight –75 kg? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "boxing" ( "athlete" text, "event" text, "round_of_32" text, "round_of_16" text, "quarterfinal" text, "semifinal" text, "final" text ); Question: For the light heavyweight –81 kg event that ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "boxing" ( "athlete" text, "event" text, "round_of_32" text, "round_of_16" text, "quarterfinal" text, "semifinal" text, "final" text ); Question: What was the final for rouhollah hosseini? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "boxing" ( "athlete" text, "event" text, "round_of_32" text, "round_of_16" text, "quarterfinal" text, "semifinal" text, "final" text ); Question: When the round of 32 was n/a and quarterfina...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Can you tell me a date that has a crowd l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What Home team that has the Home team sco...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Can you tell me the Home team that has a ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What Venue that has the Away team score o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Can you tell me the Away team that has th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What was the lowest attendance at a game when Pittsb...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What was the date of the game when Atlanta was the h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What was the decision of the game when Montreal was ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What was the date of the game with a decision of Nii...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "selections" ( "round" real, "pick" real, "position" text, "nationality" text, "school_club_team" text ); Question: Which Position has a Nationality of united states, and a Pick of 9? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "selections" ( "round" real, "pick" real, "position" text, "nationality" text, "school_club_team" text ); Question: What is the average Pick with a Position of pg, and a Round less than 1? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: Which top ten, having less than 12 cuts less than 2 top ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the average for the top five having a number of 4...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "eastern_conference_quarter_finals_vs_2" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Tell me the score on april 27 with visitor of buffalo <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_22" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Where was the game that the home team sc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_22" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: How many people attended Melbourne's awa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_22" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the home team's score when the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "golden_point_results" ( "opponent" text, "result" text, "score" text, "date" text, "venue" text ); Question: Who won the game at Dairy farmers stadium with a score of 28-24? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "golden_point_results" ( "opponent" text, "result" text, "score" text, "date" text, "venue" text ); Question: Who won that game on 24 July 2010? <|assistant|> SELECT "result" FROM "golden_point_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "golden_point_results" ( "opponent" text, "result" text, "score" text, "date" text, "venue" text ); Question: Who loss the 24-28 game? <|assistant|> SELECT "opponent" FROM "golden_point_results"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "golden_point_results" ( "opponent" text, "result" text, "score" text, "date" text, "venue" text ); Question: Who scored 18-19? <|assistant|> SELECT "opponent" FROM "golden_point_results" WHERE ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which rank has more than 1 silver and a total nation? <|assistant|> SELECT "ran...
<|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 lowest total from slovenia with a Gold smaller than 0? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fleet_details" ( "class" text, "operator" text, "no_built" real, "year_built" text, "cars_per_set" real, "unit_nos" text ); Question: What class has less than 12 numbers built operated by sou...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly" ( "episode" text, "air_date" text, "timeslot" text, "households_rating_share" text, "18_49_rating_share" text, "viewers_m" real, "weekly_rank_num" text ); Question: Tell me the epis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly" ( "episode" text, "air_date" text, "timeslot" text, "households_rating_share" text, "18_49_rating_share" text, "viewers_m" real, "weekly_rank_num" text ); Question: Name the episode...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly" ( "episode" text, "air_date" text, "timeslot" text, "households_rating_share" text, "18_49_rating_share" text, "viewers_m" real, "weekly_rank_num" text ); Question: Name the 18-49 r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text ); Question: Who was the driver with 29 laps? <|assistant|> SELECT "driver" FROM "race" WHERE "laps"='29...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text ); Question: What was the retired time for someone who was on grid 18? <|assistant|> SELECT "time_retire...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text ); Question: Jacques Villeneuve was on what grid? <|assistant|> SELECT "grid" FROM "race" WHERE "driver"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text ); Question: What's the time for someone on grid 9? <|assistant|> SELECT "time_retired" FROM "race" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" text, "time_retired" text, "grid" text ); Question: What was the grid of Alex Yoong? <|assistant|> SELECT "grid" FROM "race" WHERE "driver"='al...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What date was the game played at Lake Ova...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: How many people came to the game at Victo...
<|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 lost to moyer (9–4)? <|assistant|> SELECT "opponent" 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: How many people attended when the record was broken with 47–63? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who is the home team that played the away...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the score of the home team that p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who is the away team that played at punt ...
<|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, "decision" text, "attendance" real, "record" text ); Question: Who was the visitor when ward recorded the decision with a ...
<|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, "decision" text, "attendance" real, "record" text ); Question: What is the score of the game when they had a record of 22–...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_first_week_sales" ( "number" real, "artist" text, "album" text, "1st_week_sales" real, "1st_week_position" text ); Question: What is the 1st week sales for the album finding forever bef...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_first_week_sales" ( "number" real, "artist" text, "album" text, "1st_week_sales" real, "1st_week_position" text ); Question: What is the album for the number 6 with the 1st week positio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: What is the sum number of grid where time/retired is 2:41:38.4 and laps were more...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: Which constructor had laps amounting to more than 21 where the driver was John Su...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: How many laps did Jo Bonnier driver when the grid number was smaller than 11? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: How many laps were there when time/retired was gearbox? <|assistant|> SELECT SUM(...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text ); Question: How many were in attendance at the game where the vi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: Who did the Chiefs play at the game attended by 34,063? <|assistant|> SELECT "opponen...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: Which week's game was attended by 33,057 people? <|assistant|> SELECT "week" FROM "se...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_achievements" ( "year" real, "organisation" text, "award" text, "nominated_work_title" text, "result" text ); Question: what is the organisation when the year is less than 2005 and the a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_achievements" ( "year" real, "organisation" text, "award" text, "nominated_work_title" text, "result" text ); Question: what is the organisation when the nominated work title is n/a in t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_achievements" ( "year" real, "organisation" text, "award" text, "nominated_work_title" text, "result" text ); Question: what is the lowest year with the result is nominated for the work ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_achievements" ( "year" real, "organisation" text, "award" text, "nominated_work_title" text, "result" text ); Question: what is the year when then organisation is star awards, the result...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_achievements" ( "year" real, "organisation" text, "award" text, "nominated_work_title" text, "result" text ); Question: what is the latest year that has the result of nominated and the n...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_achievements" ( "year" real, "organisation" text, "award" text, "nominated_work_title" text, "result" text ); Question: what is the nominated work title when the result is won, the organ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "asian_games" ( "games" text, "gold" text, "silver" text, "bronze" text, "total" text, "rank" text ); Question: What is the rank of the games that had 9 gold and 9 silvers? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "asian_games" ( "games" text, "gold" text, "silver" text, "bronze" text, "total" text, "rank" text ); Question: How many golds were there in a game that has 17 bronze and a total of 31? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "asian_games" ( "games" text, "gold" text, "silver" text, "bronze" text, "total" text, "rank" text ); Question: Which game had 8 bronze and 4 gold? <|assistant|> SELECT "games" FROM "asian_gam...
<|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, "decision" text, "attendance" real, "record" text ); Question: When did San Jose visit the St. Louis? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_grand_prix_wins_by_en" ( "rank" real, "engine" text, "wins" real, "first_win" text, "latest_win" text ); Question: How many total wins with the latest win at the 1999 Italian...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_grand_prix_wins_by_en" ( "rank" real, "engine" text, "wins" real, "first_win" text, "latest_win" text ); Question: What is the rank 6 lowest win who's first win was at the 19...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_grand_prix_wins_by_en" ( "rank" real, "engine" text, "wins" real, "first_win" text, "latest_win" text ); Question: What is the rank 16 wins with the latest win at the 1967 Be...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "pick" real, "round" text, "player" text, "position" text, "school" text ); Question: What's the lowest pick for a defensive back at Drake? <|assistant|> SELECT MIN("pick") FROM "n...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "pick" real, "round" text, "player" text, "position" text, "school" text ); Question: What's terry jones' lowest pick? <|assistant|> SELECT MIN("pick") FROM "nfl_draft" WHERE "play...