text
stringlengths
310
1.28k
<|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 was the score of the game that had more than 8 points? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "event" text, "round" text, "result" text, "opponent" text, "score" text ); Question: The round that had the final, what was the result? <|assistant|> SELECT "result" FROM "results" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "event" text, "round" text, "result" text, "opponent" text, "score" text ); Question: Opponent of andry laffita had what score? <|assistant|> SELECT "score" FROM "results" WHERE "opp...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "event" text, "round" text, "result" text, "opponent" text, "score" text ); Question: Opponent of igor samoilenco had what result? <|assistant|> SELECT "result" FROM "results" WHERE ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "event" text, "round" text, "result" text, "opponent" text, "score" text ); Question: Score of 33-22 had what round? <|assistant|> SELECT "round" FROM "results" WHERE "score"='33-22'...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "event" text, "round" text, "result" text, "opponent" text, "score" text ); Question: Round of first had what opponent? <|assistant|> SELECT "opponent" FROM "results" WHERE "round"='...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "event" text, "round" text, "result" text, "opponent" text, "score" text ); Question: Result of win, and a Score of 33-22 involved what event? <|assistant|> SELECT "event" FROM "resu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "february" real, "opponent" text, "score" text, "record" text, "points" real ); Question: What were the lowest points of game 60? <|assistant|> SELECT MIN("poin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_5_2_3" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: What championship had Francesca Schiavo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "college_sports" ( "school" text, "mascot" text, "conference" text, "national_titles" real, "founded" real ); Question: What is the total number of national titles for the team with doane tigers...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season_results" ( "year" text, "coach" text, "crew" text, "record" text, "win_pct" real ); Question: Which year's crew is varsity 8+ when the record is 7-3? <|assistant|> SELECT "year...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season_results" ( "year" text, "coach" text, "crew" text, "record" text, "win_pct" real ); Question: What is the total number of win % when John Gartin is coach, the crew is varsity 8...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season_results" ( "year" text, "coach" text, "crew" text, "record" text, "win_pct" real ); Question: What is the largest win percentage when John Gartin is coach, the record is 11-0, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season_results" ( "year" text, "coach" text, "crew" text, "record" text, "win_pct" real ); Question: What is the total of win percentages when the year is 2008 and the crew is varsity...
<|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 is the pick number for the tight end who was picked after round 6? <|assistant|> SELECT C...
<|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 is the lowest round for the player whose position is guard and had a pick number smaller ...
<|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 position of terry jones whose pick number was after 256? <|assistant|> SELECT "po...
<|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: Which Loss has a Record of 30-32? <|assistant|> SELECT "loss" FROM "game_log...
<|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: Which Attendance is the highest one that has a Record of 37-38? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: Which Score has a Loss of buehrle (7-2)? <|assistant|> SELECT "score" FROM "...
<|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 Overall is the average one that has a Pick # la...
<|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 Round is the lowest one that has a Pick # large...
<|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 Round is the highest one that has an Overall of...
<|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: How many Picks have a Round larger than 8, and a Coll...
<|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 Overall is the highest one that has a College o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "under_23" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What is the result of the match on 30 July 2004? <|assistant|> SELECT "result" FROM "under_23...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "under_23" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What is the result of the match on 3 March 2004? <|assistant|> SELECT "result" FROM "under_23...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "under_23" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What is the score of the friendly match? <|assistant|> SELECT "score" FROM "under_23" WHERE "...
<|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: Which Week had a Result of w 10-0, and an Attendance smaller than 58,571? <|assistant|> SELE...
<|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: Which Week had a Result of w 23-17? <|assistant|> SELECT SUM("week") FROM "schedule" WHERE "...
<|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 Attendance on october 2, 1977? <|assistant|> SELECT "attendance" FROM "schedule...
<|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: Bronze of 2, and a Silver smaller than 0 then what is the sum of the gold? <|as...
<|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: Smaller than 4, and a Silver larger than 0, and a Rank of 3, and a Bronze small...
<|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: Total larger than 3, and a Rank of 4, and a Silver larger than 0 has what avera...
<|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: Total smaller than 10, and a Gold larger than 1 then what is the lowest silver?...
<|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, "game_site" text, "attendance" real ); Question: What was the date of the week 9 game? <|assistant|> SELECT "date"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_motorcycle_racing_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); Question: What class has over 0 wins and 42 points? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_motorcycle_racing_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); Question: What team was the bike with a 350cc class, over 2 points, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grand_prix_motorcycle_racing_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); Question: What is the earliest year associated with 0 wins and 42 po...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_of_the_year" ( "season" text, "player" text, "position" text, "nationality" text, "team" text ); Question: What Nationality has the Player of Marcus Walker? <|assistant|> SELECT "nationa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_of_the_year" ( "season" text, "player" text, "position" text, "nationality" text, "team" text ); Question: What Season is listed for the Player of Jon Stefansson? <|assistant|> SELECT "s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_of_the_year" ( "season" text, "player" text, "position" text, "nationality" text, "team" text ); Question: Which Team has the Player of A.J. Moye? <|assistant|> SELECT "team" FROM "playe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_of_the_year" ( "season" text, "player" text, "position" text, "nationality" text, "team" text ); Question: What Position does the Team of KR and the Player of Marcus Walker have listed? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tallest_proposed" ( "rank" real, "name" text, "location" text, "height_feet_metres" text, "floors" text, "year_proposed" text ); Question: What building is in ljubljana, proposed in 2010, and...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_of_federal_taxation_and_spending_b" ( "state" text, "revenue_millions" text, "population" real, "revenue_per_capita" text, "spending_millions" text, "spending_per_capita" text, "net_co...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_of_federal_taxation_and_spending_b" ( "state" text, "revenue_millions" text, "population" real, "revenue_per_capita" text, "spending_millions" text, "spending_per_capita" text, "net_co...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_of_federal_taxation_and_spending_b" ( "state" text, "revenue_millions" text, "population" real, "revenue_per_capita" text, "spending_millions" text, "spending_per_capita" text, "net_co...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text ); Question: Who is the PBA team with Mlqu college? <|assistant|> SELECT "pba_team" FROM "round_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text ); Question: Which country of origin corresponds to Far Eastern college? <|assistant|> SELECT "c...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text ); Question: Who is the player with the PBA team of Barangay Ginebra Kings? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "stadium" text, "attendance" real, "record" text ); Question: Who was the opponent on April 28? <|assistant|> SELECT "op...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_10_albums" ( "issue_date" real, "album_title" text, "artist" text, "sales" real, "highest_position" real ); Question: What is the highest position the album Where we belong, which had an is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_10_albums" ( "issue_date" real, "album_title" text, "artist" text, "sales" real, "highest_position" real ); Question: What is the biggest issue date Madonna, who had less than 1,060,000 sal...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_10_albums" ( "issue_date" real, "album_title" text, "artist" text, "sales" real, "highest_position" real ); Question: What is the highest position Talk on Corners, which had an issue date g...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_10_albums" ( "issue_date" real, "album_title" text, "artist" text, "sales" real, "highest_position" real ); Question: What is the highest sales All Saints had? <|assistant|> SELECT MAX("sal...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_drivers" ( "team" text, "manufacturer" text, "car_model" text, "engine" text, "driver" text ); Question: Who is the Driver that has Car Model Commodore VS? <|assistant|> SELECT "drive...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_drivers" ( "team" text, "manufacturer" text, "car_model" text, "engine" text, "driver" text ); Question: What Car Model has the Manufacturer of Saab, and Driver Dean Randle? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_drivers" ( "team" text, "manufacturer" text, "car_model" text, "engine" text, "driver" text ); Question: Who is the Driver with the Team of P & L Mechanical Services? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_drivers" ( "team" text, "manufacturer" text, "car_model" text, "engine" text, "driver" text ); Question: What Car Model has the Engine of Ford 6.0 V8? <|assistant|> SELECT "car_model"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_drivers" ( "team" text, "manufacturer" text, "car_model" text, "engine" text, "driver" text ); Question: What Team has the Engine of Chevrolet 6.0 V8, the Manufacturer of Opel, and th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_21_2013" ( "series_ep" text, "episode" real, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What is the Segment A entry for the episode that has an...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_21_2013" ( "series_ep" text, "episode" real, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What is the series episode number that is larger than 2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text ); Question: Which First elected has a District of south carolina 2? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text ); Question: Which Incumbent has a First elected larger than 1884? <|assistant|> SELECT "i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000s" ( "year" real, "english_title" text, "original_title" text, "country" text, "director" text ); Question: What is the English title with a Director named ang lee? <|assistant|> SELECT "en...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000s" ( "year" real, "english_title" text, "original_title" text, "country" text, "director" text ); Question: What is the Original title with a Country that is canada? <|assistant|> SELECT "o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "editions_feature_grid" ( "product" text, "extensions" text, "projects_templates" text, "msdn_integration" text, "debugging" text, "profiling" text, "intelli_trace" text, "unit_test" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "editions_feature_grid" ( "product" text, "extensions" text, "projects_templates" text, "msdn_integration" text, "debugging" text, "profiling" text, "intelli_trace" text, "unit_test" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "editions_feature_grid" ( "product" text, "extensions" text, "projects_templates" text, "msdn_integration" text, "debugging" text, "profiling" text, "intelli_trace" text, "unit_test" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "editions_feature_grid" ( "product" text, "extensions" text, "projects_templates" text, "msdn_integration" text, "debugging" text, "profiling" text, "intelli_trace" text, "unit_test" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "editions_feature_grid" ( "product" text, "extensions" text, "projects_templates" text, "msdn_integration" text, "debugging" text, "profiling" text, "intelli_trace" text, "unit_test" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "editions_feature_grid" ( "product" text, "extensions" text, "projects_templates" text, "msdn_integration" text, "debugging" text, "profiling" text, "intelli_trace" text, "unit_test" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "historical_list_of_princeton_eating_club" ( "name" text, "years_of_operation" text, "location" text, "historical_photos" text, "year_clubhouse_constructed" text, "sign_in_bicker" text, "year...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "historical_list_of_princeton_eating_club" ( "name" text, "years_of_operation" text, "location" text, "historical_photos" text, "year_clubhouse_constructed" text, "sign_in_bicker" text, "year...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "historical_list_of_princeton_eating_club" ( "name" text, "years_of_operation" text, "location" text, "historical_photos" text, "year_clubhouse_constructed" text, "sign_in_bicker" text, "year...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "historical_list_of_princeton_eating_club" ( "name" text, "years_of_operation" text, "location" text, "historical_photos" text, "year_clubhouse_constructed" text, "sign_in_bicker" text, "year...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "historical_list_of_princeton_eating_club" ( "name" text, "years_of_operation" text, "location" text, "historical_photos" text, "year_clubhouse_constructed" text, "sign_in_bicker" text, "year...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "historical_list_of_princeton_eating_club" ( "name" text, "years_of_operation" text, "location" text, "historical_photos" text, "year_clubhouse_constructed" text, "sign_in_bicker" text, "year...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_knockout_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What is the 1st leg of team 1 Lyon? <|assistant|> SELECT "1st_leg" FROM "first_knoc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_knockout_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What is the 1st leg of team 1 Liverpool? <|assistant|> SELECT "1st_leg" FROM "first...
<|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: How many events resulted in a top-25 less than 2? <|assis...
<|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 smallest number of wins for a top-25 value gr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many bronze medals did Chinese Taipei win with less than 0 gold? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many silver medals had a rank of 3 with bronze larger than 0? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many silver medals does China have? <|assistant|> SELECT COUNT("silver") FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: Which Position has L...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: How many Wins have a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: How many Points has ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: How many Wins has a ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: Which Position has ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); Question: Which Played has a S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_six_nations_championship_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text ); Question: When was the player with 51 caps from a Club/pro...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overview_of_main_characters" ( "character" text, "actor" text, "years" text, "series" text, "episode_count" real ); Question: How many Episode Counts have an Actor of liz carr? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overview_of_main_characters" ( "character" text, "actor" text, "years" text, "series" text, "episode_count" real ); Question: Which Years have a Character of dr trevor stewart? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "overview_of_main_characters" ( "character" text, "actor" text, "years" text, "series" text, "episode_count" real ); Question: Which Series has an Actor of tom ward? <|assistant|> SELECT "series...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text ); Question: How many picks involved the player Joe Germanese? <|assistant|> SELECT SUM("pick_n...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_two" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text ); Question: Which player's pick number was 25? <|assistant|> SELECT "player" FROM "round_two" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What team did the Montreal Canadiens visit when the record was 0-3...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What was the score on April 23? <|assistant|> SELECT "score" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: What team did the Chicago Black Hawks visit on April 20? <|assista...