text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Who had the high assists...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What date was the locati...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What player had the high...
<|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 result when they played the Miami Dolphins with a crowd of 21,881? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "rank" real, "rank_forbes_2000" real, "name" text, "headquarters" text, "revenue_bn" real, "profit_bn" real, "assets_bn" real, "market_value_bn" real, "industry" text ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "rank" real, "rank_forbes_2000" real, "name" text, "headquarters" text, "revenue_bn" real, "profit_bn" real, "assets_bn" real, "market_value_bn" real, "industry" text ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "rank" real, "rank_forbes_2000" real, "name" text, "headquarters" text, "revenue_bn" real, "profit_bn" real, "assets_bn" real, "market_value_bn" real, "industry" text ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "rank" real, "rank_forbes_2000" real, "name" text, "headquarters" text, "revenue_bn" real, "profit_bn" real, "assets_bn" real, "market_value_bn" real, "industry" text ); Questio...
<|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 highest number of gold medals when the silver is less than 0? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "immigration" ( "year" text, "indians_admitted" real, "pakistanis_admitted" real, "sri_lankans_admitted" real, "bangladeshis_admitted" real, "nepalis_admitted" real ); Question: What was the m...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "immigration" ( "year" text, "indians_admitted" real, "pakistanis_admitted" real, "sri_lankans_admitted" real, "bangladeshis_admitted" real, "nepalis_admitted" real ); Question: What were the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "immigration" ( "year" text, "indians_admitted" real, "pakistanis_admitted" real, "sri_lankans_admitted" real, "bangladeshis_admitted" real, "nepalis_admitted" real ); Question: How many Sri L...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "immigration" ( "year" text, "indians_admitted" real, "pakistanis_admitted" real, "sri_lankans_admitted" real, "bangladeshis_admitted" real, "nepalis_admitted" real ); Question: How many Bangl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "immigration" ( "year" text, "indians_admitted" real, "pakistanis_admitted" real, "sri_lankans_admitted" real, "bangladeshis_admitted" real, "nepalis_admitted" real ); Question: What was the m...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "special_editions" ( "title" text, "parent_magazine" text, "magazine_type" text, "frequency" text, "first_published" text ); Question: What is the frequency that the magazine issues that was fir...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "special_editions" ( "title" text, "parent_magazine" text, "magazine_type" text, "frequency" text, "first_published" text ); Question: What was the type of the magazine that was named dengeki ga...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "special_editions" ( "title" text, "parent_magazine" text, "magazine_type" text, "frequency" text, "first_published" text ); Question: What is the name of the video game magazine that was issued...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "special_editions" ( "title" text, "parent_magazine" text, "magazine_type" text, "frequency" text, "first_published" text ); Question: What was the parent magazine for the manga magazine, dengek...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "special_editions" ( "title" text, "parent_magazine" text, "magazine_type" text, "frequency" text, "first_published" text ); Question: What was the parent magazine of the magazine that was first...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text ); Question: WHAT IS THE OVERALL AVERAGE WITH A 22 PICK, FROM RICE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text ); Question: WHAT POSITION HAS A 23 PICK? <|assistant|> SELECT "po...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text ); Question: WHAT IS THE AVERAGE OVERALL WITH A ROUND LARGER THAN ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text ); Question: WHAT IS THE TOTAL NUMBER WITH A ROUND BIGGER THAN 7 A...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text ); Question: WHAT POSITION IS 273? <|assistant|> SELECT "position"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "college_statistics" ( "year" text, "rebs" real, "asts" real, "stls" real, "blks" real ); Question: What is the lowest Stls, when Rebs is greater than 8.6? <|assistant|> SELECT MIN("stls") FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "college_statistics" ( "year" text, "rebs" real, "asts" real, "stls" real, "blks" real ); Question: What is the sum of Blks, when Stls is 1, and when Rebs is greater than 8.6? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "october" real, "opponent" text, "score" text, "record" text ); Question: Which opponent played in game 3 before October 18? <|assistant|> SELECT "opponent"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "october" real, "opponent" text, "score" text, "record" text ); Question: Which game was after October 24 and had a record of 6-2-1? <|assistant|> SELECT "g...
<|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" text ); Question: What was the lowest pick for the kicker after round 12? <|assistant|> SELECT MIN("pick") FROM ...
<|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" text ); Question: How many picks had less than 11 rounds and a player of Charley Casey? <|assistant|> SELECT SUM...
<|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" text ); Question: How many rounds had a position of kicker? <|assistant|> SELECT SUM("round") FROM "nfl_draft" W...
<|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" text ); Question: Which position had a pick larger than 80 and Walt Mainer as a player? <|assistant|> SELECT "po...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_11" ( "date" text, "home" text, "score" text, "away" text, "attendance" real ); Question: What is the score of the match with deportes savio as the away team? <|assistant|> SELECT "score"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_11" ( "date" text, "home" text, "score" text, "away" text, "attendance" real ); Question: What is the total attendance of the match with a 1:2 score? <|assistant|> SELECT COUNT("attendanc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_11" ( "date" text, "home" text, "score" text, "away" text, "attendance" real ); Question: What is the home team of the match on 21 September 2008 with an attendance less than 2248 and a 2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_11" ( "date" text, "home" text, "score" text, "away" text, "attendance" real ); Question: What is the highest attendance of the match with a 2:0 score and vida as the away team? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_11" ( "date" text, "home" text, "score" text, "away" text, "attendance" real ); Question: What is the score of the home team olimpia? <|assistant|> SELECT "score" FROM "round_11" WHERE "h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_11" ( "date" text, "home" text, "score" text, "away" text, "attendance" real ); Question: What is the score of the match with an attendance of 2248? <|assistant|> SELECT "score" FROM "rou...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "party" text, "previous_council" real, "staying_councillors" real, "seats_up_for_election" real, "election_result" real, "new_council" real ); Question: Which Seats up for election...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "party" text, "previous_council" real, "staying_councillors" real, "seats_up_for_election" real, "election_result" real, "new_council" real ); Question: Which New council has an El...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "party" text, "previous_council" real, "staying_councillors" real, "seats_up_for_election" real, "election_result" real, "new_council" real ); Question: Which Staying councillors h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); Question: What was the record when they played in the Miami Arena, before game 24? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); Question: Who was the opponent when they played after Game 26 and their record was 23-4?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); Question: On what date did they play in Boston Garden with a record of 22-4? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); Question: What was their record on Wed. Dec. 5, when they played in Boston Garden? <|ass...
<|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 in Lon Hinkle in? <|assistant|> SELECT "place" 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 country does Mark Hayes play for? <|assistant|> SELECT "country" FROM "second_round" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real, "finish" text ); Question: What is the sum of To Par, when Country is "United States", and when ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real, "finish" text ); Question: What is Player, when Total is greater than 288, and when Country is "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real, "finish" text ); Question: What is Year(s) Won, when To Par is greater than 13? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members_of_the_georgia_state_house_of_re" ( "district" real, "representative" text, "party" text, "first_elected" real, "residence" text ); Question: What residence has representative Quincy Mu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "test_matches" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text ); Question: Who is the home captain when the venue is adelaide oval? <|assistant|> SELECT "ho...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season" ( "date" text, "time" text, "opponent" text, "location" text, "score" text ); Question: What was the score in the September 20 game? <|assistant|> SELECT "score" FROM "pre_season" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season" ( "date" text, "time" text, "opponent" text, "location" text, "score" text ); Question: Where was the September 22 game played? <|assistant|> SELECT "location" FROM "pre_season" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season" ( "date" text, "time" text, "opponent" text, "location" text, "score" text ); Question: What was the score in the September 26 game? <|assistant|> SELECT "score" FROM "pre_season" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season" ( "date" text, "time" text, "opponent" text, "location" text, "score" text ); Question: Who was the opposing team in the game(s) that started at 7:30pm? <|assistant|> SELECT "oppone...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season" ( "date" text, "time" text, "opponent" text, "location" text, "score" text ); Question: What was the score of the 7:00pm game at Scotiabank Place against the Philadelphia Flyers? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "rank_num" text, "site" text, "result" text, "attendance" text ); Question: What is the attendance of the match on October 26? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "rank_num" text, "site" text, "result" text, "attendance" text ); Question: What is the opponent number of the match with a w27-16 result? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "rank_num" text, "site" text, "result" text, "attendance" text ); Question: What is the result of the match with an attendance of 73,855? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "rank_num" text, "site" text, "result" text, "attendance" text ); Question: What is the rank of the match on October 19? <|assistant|> SELECT "ran...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_cup" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real, "scorers" text ); Question: Who was the scorer when the opponent was aberdeen? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_cup" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real, "scorers" text ); Question: When was the scorer mccoist (3), johnston, butcher, steven? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "record" text, "points" real ); Question: What is Score, when Visitor is "Pittsburgh", and when Points...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "record" text, "points" real ); Question: What is the sum of Points, when Home is "Pittsburgh", when D...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "record" text, "points" real ); Question: What is the lowest Points, when Home is "Boston"? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_season" ( "season" text, "race" real, "podium" real, "pole" real, "f_lap" real ); Question: What is the lowest pole with a Flap larger than 5, and a before race 155? <|assistant|> SELECT MIN...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: What was Fred Couples' score? <|assistant|> SELECT COUNT("score") FROM "first_round" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: When Payne Stewart of the United States scored higher than 69, what was the To Par? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "north_korea_dprk" ( "city" text, "korean" text, "hancha" text, "province" text, "population_2008" real ); Question: What is the 2008 population in 함ν₯ (Ham Hyung)? <|assistant|> SELECT SUM("popu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_200_most_topographically_prominent_m" ( "rank" real, "mountain_peak" text, "region" text, "mountain_range" text, "location" text ); Question: what is the mountain peak when the location is ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_200_most_topographically_prominent_m" ( "rank" real, "mountain_peak" text, "region" text, "mountain_range" text, "location" text ); Question: what is the region when the location is 49.7462...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_200_most_topographically_prominent_m" ( "rank" real, "mountain_peak" text, "region" text, "mountain_range" text, "location" text ); Question: what is the rank when the mountain peak is isth...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_200_most_topographically_prominent_m" ( "rank" real, "mountain_peak" text, "region" text, "mountain_range" text, "location" text ); Question: what is the mountain range when the region is b...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1914_1925" ( "name" text, "born_died" text, "term_start" text, "term_end" text, "political_party" text ); Question: What is the Born-Died dates of Xhafer Bej Ypi? <|assistant|> SELECT "born_die...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1914_1925" ( "name" text, "born_died" text, "term_start" text, "term_end" text, "political_party" text ); Question: What is the Name of the Prime Minister with a Born-Died of 1873–1933? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1914_1925" ( "name" text, "born_died" text, "term_start" text, "term_end" text, "political_party" text ); Question: What is the Term Start date of the Progressive Party Prime Minister? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polling_for_the_united_states_gu" ( "poll_source" text, "dates_administered" text, "democrat_brian_schweitzer" text, "republican_roy_brown" text, "libertarian_stan_jones" text, "lead_m...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polling_for_the_united_states_gu" ( "poll_source" text, "dates_administered" text, "democrat_brian_schweitzer" text, "republican_roy_brown" text, "libertarian_stan_jones" text, "lead_m...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polling_for_the_united_states_gu" ( "poll_source" text, "dates_administered" text, "democrat_brian_schweitzer" text, "republican_roy_brown" text, "libertarian_stan_jones" text, "lead_m...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polling_for_the_united_states_gu" ( "poll_source" text, "dates_administered" text, "democrat_brian_schweitzer" text, "republican_roy_brown" text, "libertarian_stan_jones" text, "lead_m...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text, "points" real ); Question: What is Record, when Date is "November 22...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text, "points" real ); Question: What is Date, when Attendance is greater ...
<|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 attendance before week 1? <|assistant|> SELECT COUNT("attendance") FROM "schedul...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_wins_13" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What was the date of the match with a winning score of –7 (6...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: Who was the home team in the match with an away team of Millwall? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What is the score for the match that had a home team of Kidderminster Harriers? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What is the date of the match with a home team of Huddersfield Town and was a rep...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: Who was the home team for tie number 11? <|assistant|> SELECT "home_team" FROM "f...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_2_1000cc_superbike_race_final_stand" ( "rank" real, "rider" text, "team" text, "time" text, "speed" text ); Question: Who was the rider with 120.953 mph speed? <|assistant|> SELECT "rider"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_2_1000cc_superbike_race_final_stand" ( "rank" real, "rider" text, "team" text, "time" text, "speed" text ); Question: What time did rider steve plater have? <|assistant|> SELECT "time" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_2_1000cc_superbike_race_final_stand" ( "rank" real, "rider" text, "team" text, "time" text, "speed" text ); Question: What is the rank of rider gary johnson, who had a speed of 120.979 mph...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); Que...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); Que...