text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: Which college's round is more than 4, when the overal...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What is the smallest overall for Oregon State? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roster" ( "name" text, "height" text, "weight" text, "class" text, "position" text, "hometown" text ); Question: What is the class of the qb, Josh Riddell? <|assistant|> SELECT "class" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roster" ( "name" text, "height" text, "weight" text, "class" text, "position" text, "hometown" text ); Question: What position does Jamar Chaney play? <|assistant|> SELECT "position" FROM "ro...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roster" ( "name" text, "height" text, "weight" text, "class" text, "position" text, "hometown" text ); Question: What hometown is Kyle love from? <|assistant|> SELECT "hometown" FROM "roster"...
<|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: Which Attendance has a Home of philadelphia, and Points smal...
<|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: Which Visitor has a Record of 9–12–5? <|assistant|> SELECT "...
<|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: Which Date has a Visitor of boston? <|assistant|> SELECT "da...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "futures_titles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: What is the date for the grass surface final against Nathan Healey? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "futures_titles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: What was the score of the final against Dane Propoggia? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "groups_10_clubs" ( "nation" text, "t_score" real, "a_score" real, "e_score" real, "total" real ); Question: What was the total score when the E score was larger than 9.6 and the A score was 6? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "groups_10_clubs" ( "nation" text, "t_score" real, "a_score" real, "e_score" real, "total" real ); Question: What was the average E score when the T score was less than 4? <|assistant|> SELECT A...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "groups_10_clubs" ( "nation" text, "t_score" real, "a_score" real, "e_score" real, "total" real ); Question: What was the average T score when the E score was larger than 9.6 and the team was fr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "groups_10_clubs" ( "nation" text, "t_score" real, "a_score" real, "e_score" real, "total" real ); Question: What was the total number of A scores for Japan when the T score was more than 4? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "groups_10_clubs" ( "nation" text, "t_score" real, "a_score" real, "e_score" real, "total" real ); Question: What was the sum of the E scores when the total score was 19.466? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "groups_10_clubs" ( "nation" text, "t_score" real, "a_score" real, "e_score" real, "total" real ); Question: What is the total number of E scores when the total score was 19.7 and the A score wa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_group_c_netherlands" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); Question: What is the highest number of draws with 14 points and le...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "attendance" text ); Question: What was the attendance at the game with a record of 4-5? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "attendance" text ); Question: What was the date of the week 16 game? <|assistant|> SELECT "date" FROM "sc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "attendance" text ); Question: What was the record at the game with a result of W 13-12 after week 4? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "attendance" text ); Question: Who was the opponent at the game attended by 62,019 before week 17? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atp_doubles_finals_13_6_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partnering" text, "opponents_in_the_final" text, "score" text ); Question: Name the surface for...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atp_doubles_finals_13_6_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partnering" text, "opponents_in_the_final" text, "score" text ); Question: Name the outcome for...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atp_doubles_finals_13_6_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partnering" text, "opponents_in_the_final" text, "score" text ); Question: Name the score for o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atp_doubles_finals_13_6_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partnering" text, "opponents_in_the_final" text, "score" text ); Question: Name the outcome for...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atp_doubles_finals_13_6_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partnering" text, "opponents_in_the_final" text, "score" text ); Question: Name the surface for...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_group_c_spain" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); Question: Which Games have a Drawn smaller than 1, and a Lost smaller tha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_group_c_spain" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); Question: Which Drawn is the lowest one that has a Lost of 5, and Points ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "general_election_results" ( "election" text, "d_il" text, "share_of_votes" text, "seats" real, "government" text ); Question: Which Government has 57 seats? <|assistant|> SELECT "government" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "general_election_results" ( "election" text, "d_il" text, "share_of_votes" text, "seats" real, "government" text ); Question: How many seats does the 6th Dail have? <|assistant|> SELECT COUNT("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "general_election_results" ( "election" text, "d_il" text, "share_of_votes" text, "seats" real, "government" text ); Question: What is the number of the dail with 61 seats? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "general_election_results" ( "election" text, "d_il" text, "share_of_votes" text, "seats" real, "government" text ); Question: What is the lowest number of seats from the election with 27.0% of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "general_election_results" ( "election" text, "d_il" text, "share_of_votes" text, "seats" real, "government" text ); Question: What is the 6th dail share of votes? <|assistant|> SELECT "share_of...
<|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, "game_site" text, "record" text, "attendance" text ); Question: What was the highest week when the record was 1-3? <|as...
<|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, "game_site" text, "record" text, "attendance" text ); Question: Who was the opponent at the game attended by 62,657? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "inland_steam_and_river_boats_of_coos_bay" ( "name" text, "type" text, "year_built" real, "where_built" text, "length" text ); Question: What is the year built for the Fay No. 4? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "inland_steam_and_river_boats_of_coos_bay" ( "name" text, "type" text, "year_built" real, "where_built" text, "length" text ); Question: Where the length is 91', what is the year built? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "elementary_schools_grades_k_6" ( "elementary_schools" text, "mascot" text, "address" text, "principal_2013_2014" text, "assistant_principal_2013_2014" text ); Question: What is the address for ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "elementary_schools_grades_k_6" ( "elementary_schools" text, "mascot" text, "address" text, "principal_2013_2014" text, "assistant_principal_2013_2014" text ); Question: What is the address for ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "elementary_schools_grades_k_6" ( "elementary_schools" text, "mascot" text, "address" text, "principal_2013_2014" text, "assistant_principal_2013_2014" text ); Question: What was the mascot for ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "elementary_schools_grades_k_6" ( "elementary_schools" text, "mascot" text, "address" text, "principal_2013_2014" text, "assistant_principal_2013_2014" text ); Question: Who were the assistant a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "elementary_schools_grades_k_6" ( "elementary_schools" text, "mascot" text, "address" text, "principal_2013_2014" text, "assistant_principal_2013_2014" text ); Question: What is the address for ...
<|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 result of the game played at Jinan? <|assistant|> SELECT "result" 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 game on November 10, 2006? <|assistant|> SELECT "score" F...
<|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 date of the game held at Lahore? <|assistant|> SELECT "date" FROM "int...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_starts_from_front_row_in_a_season" ( "driver" text, "season" text, "entries" real, "front_row_starts" real, "percentage" text ); Question: What were the total number of entries in 2001 tha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_starts_from_front_row_in_a_season" ( "driver" text, "season" text, "entries" real, "front_row_starts" real, "percentage" text ); Question: What are the lowest entries for a front row small...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_starts_from_front_row_in_a_season" ( "driver" text, "season" text, "entries" real, "front_row_starts" real, "percentage" text ); Question: What was the highest front row starts for Alain P...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_ladder" ( "ntfa_div_2" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: Which Against has Losses larger than 2, and Wins of 8, and Byes smaller th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_ladder" ( "ntfa_div_2" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: Which Draws have Wins larger than 14? <|assistant|> SELECT SUM("draws") FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_ladder" ( "ntfa_div_2" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: How many Losses have an NTFA Div 2 of perth, and Wins smaller than 10? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_ladder" ( "ntfa_div_2" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: Which Byes have an Against smaller than 1647, and an NTFA Div 2 of fingal ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sprint_race" ( "team" text, "driver" text, "laps" real, "time" text, "grid" real ); Question: How many grids were there races with more than 10 laps and a time of +34.121? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sprint_race" ( "team" text, "driver" text, "laps" real, "time" text, "grid" real ); Question: What is the smallest grid number that had 10 laps listed with Jonathan Summerton as the driver? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sprint_race" ( "team" text, "driver" text, "laps" real, "time" text, "grid" real ); Question: What is the average grid number that had Team China with less than 10 laps? <|assistant|> SELECT AV...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "general" ( "name" text, "creator" text, "platform_os" text, "first_public_release" text, "latest_stable_release" text, "open_source" text, "programming_language_used" text ); Question: Whic...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "general" ( "name" text, "creator" text, "platform_os" text, "first_public_release" text, "latest_stable_release" text, "open_source" text, "programming_language_used" text ); Question: Whic...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "general" ( "name" text, "creator" text, "platform_os" text, "first_public_release" text, "latest_stable_release" text, "open_source" text, "programming_language_used" text ); Question: Whic...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "general" ( "name" text, "creator" text, "platform_os" text, "first_public_release" text, "latest_stable_release" text, "open_source" text, "programming_language_used" text ); Question: Whic...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What is the College of Rice's highest overall for the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What is Tommy Nobis' position that has fewer than 16 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "january" real, "opponent" text, "score" text, "record" text ); Question: What was the score when the Rangers were playing against the Vancouver Canucks? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "january" real, "opponent" text, "score" text, "record" text ); Question: Who were the opponents on January 27? <|assistant|> SELECT "opponent" FROM "schedu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "january" real, "opponent" text, "score" text, "record" text ); Question: Who was the opponent for game number less than 47 and a record of 24-13-4? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "january" real, "opponent" text, "score" text, "record" text ); Question: What is the average january number when the game number was higher than 39 and the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "o_reilly_200_memphis" ( "pos" real, "car_num" real, "driver" text, "make" text, "team" text ); Question: Which Pos has a Make of chevrolet, and a Driver of jack sprague, and a Car # smaller tha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "o_reilly_200_memphis" ( "pos" real, "car_num" real, "driver" text, "make" text, "team" text ); Question: How many Car numbers have a Driver of erik darnell, and a Pos smaller than 2? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "o_reilly_200_memphis" ( "pos" real, "car_num" real, "driver" text, "make" text, "team" text ); Question: Which Pos has a Car # of 33? <|assistant|> SELECT SUM("pos") FROM "o_reilly_200_memphis"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "o_reilly_200_memphis" ( "pos" real, "car_num" real, "driver" text, "make" text, "team" text ); Question: Which Pos has a Team of circle bar racing, and a Car # smaller than 14? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "o_reilly_200_memphis" ( "pos" real, "car_num" real, "driver" text, "make" text, "team" text ); Question: Which Pos has a Car # larger than 2, and a Team of billy ballew motorsports? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engelberg" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text ); Question: What is the lowest points that has 135 as 2n...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engelberg" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text ); Question: What is the overall WC points (rank) that ha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engelberg" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text ); Question: How many 2nd (m) have aut as the nationality...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engelberg" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text ); Question: What name has a 1st (m) greater than 124.5, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_2005" ( "rank" text, "film" text, "director_s" text, "country" text, "prize" text ); Question: What Rank is the Director(s) of satoko okita? <|assistant|> SELECT "rank" FROM "2004_2005" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_2005" ( "rank" text, "film" text, "director_s" text, "country" text, "prize" text ); Question: What country is the film hi no tsugi ha rekishi from? <|assistant|> SELECT "country" FROM "20...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_2005" ( "rank" text, "film" text, "director_s" text, "country" text, "prize" text ); Question: Which Director(s) made the film hanzubon no ojisan and received a prize of ¥300,000? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_2005" ( "rank" text, "film" text, "director_s" text, "country" text, "prize" text ); Question: Which country did the Director(s) of kota nagaoka come from and win ¥300,000? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_2005" ( "rank" text, "film" text, "director_s" text, "country" text, "prize" text ); Question: What Director won a prize of ¥2,000,000? <|assistant|> SELECT "director_s" FROM "2004_2005" W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004_2005" ( "rank" text, "film" text, "director_s" text, "country" text, "prize" text ); Question: What Rank is the director of maximilian jezo-parovsky? <|assistant|> SELECT "rank" FROM "2004...
<|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" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: What's the Loss for the game that had a 22-24 record? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "nation" text, "height" text, "athlete" text, "venue" text, "date" text ); Question: What was the date that Elvir Krehmic made a high jump record? <|assistant|> SELECT "date" FROM "men" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "other_bibliographic_details" ( "start_month" text, "end_month" text, "cover" text, "spine" text, "indicia" text, "masthead" text, "number_of_issues" real ); Question: Which spine has 12 iss...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "other_bibliographic_details" ( "start_month" text, "end_month" text, "cover" text, "spine" text, "indicia" text, "masthead" text, "number_of_issues" real ); Question: How many issues end on...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "other_bibliographic_details" ( "start_month" text, "end_month" text, "cover" text, "spine" text, "indicia" text, "masthead" text, "number_of_issues" real ); Question: Which masthead ends on...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text ); Question: What is the game number held on May 2? <|assistant|> SELECT AVG("game") FROM "playoffs" WHERE "da...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season" ( "season" text, "tier" real, "division" text, "pos" real, "postseason" text, "cup_competitions" text ); Question: Which Season has a Postseason of promoted runner-up? <|ass...
<|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 attendance of the match with a record 20-11? <|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: What is the date of the match with a 28-15 record? <|assistant|> SELECT "dat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text ); Question: Which opponent did they play against on April 16? <|assistant|> SELECT "opponent" FROM "playoffs"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" real, "circuit" text, "state_territory" text, "date" text, "winning_driver" text ); Question: What circuit was after round 2 in Victoria? <|assistant|> SELECT "circuit" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" real, "circuit" text, "state_territory" text, "date" text, "winning_driver" text ); Question: What is the state the winning driver Jamie Whincup from in round 2? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "october" real, "opponent" text, "score" text, "record" text, "points" real ); Question: What date in October did the Flyers play against the Toronto Maple Leaf...