text
stringlengths
310
1.28k
<|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: What college has Chito Victolero? <|assistant|> SELECT "college" FROM "round_2" WHE...
<|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: What college has Jojo Manalo? <|assistant|> SELECT "college" FROM "round_2" WHERE "...
<|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: What is the pick number for the College of Perpetual help with the Coca-Cola Tigers...
<|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 is the score of the game on May 5? <|assistant|> SELECT "score" FROM "g...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); Question: What is the record of the game with 18,084 in attendance? <|assistant|> SELE...
<|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 is the record of the game on May 30? <|assistant|> SELECT "record" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text ); Question: Who won third place in the Zurich Tournament? <|assistant|> SELECT "third_place" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text ); Question: Who was the winner with a score of 7–6 (7–3) , 2–6, [10–6]? <|assistant|> SELECT "winne...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text ); Question: Which tournament did Thomas Enqvist win? <|assistant|> SELECT "tournament" FROM "2012" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2012" ( "tournament" text, "winner" text, "runner_up" text, "score" text, "third_place" text ); Question: Which tournament was Tim Henman the runner-up in? <|assistant|> SELECT "tournament" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_partnerships_of_the_tournament" ( "runs" text, "wicket" text, "partnerships" text, "versus" text, "venue" text, "date" text ); Question: What is the venue where 153 runs were scored? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_partnerships_of_the_tournament" ( "runs" text, "wicket" text, "partnerships" text, "versus" text, "venue" text, "date" text ); Question: What is the partnership in the game with 166* ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "highest_partnerships_of_the_tournament" ( "runs" text, "wicket" text, "partnerships" text, "versus" text, "venue" text, "date" text ); Question: What is the date of the game against South Afr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was the Away team that played at Carl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the smallest crowd at a home gam...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "publication_history" ( "year" text, "language" text, "title" text, "translator" text, "company" text, "pages" real ); Question: What's the title for year n.m.? <|assistant|> SELECT "title" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "publication_history" ( "year" text, "language" text, "title" text, "translator" text, "company" text, "pages" real ); Question: What is the language for translators ritah meltser and amatsyah...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "publication_history" ( "year" text, "language" text, "title" text, "translator" text, "company" text, "pages" real ); Question: What's the fewest number of pages for the title al-jiniral fi m...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "allied_ships" ( "date" text, "name" text, "flag" text, "tonnage_grt" real, "sunk_by" text ); Question: What is the date for Zouave? <|assistant|> SELECT "date" FROM "allied_ships" WHERE "name"=...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "allied_ships" ( "date" text, "name" text, "flag" text, "tonnage_grt" real, "sunk_by" text ); Question: What is the date where the tonnage is larger than 5,754 and the ship was sunk by U-305? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "allied_ships" ( "date" text, "name" text, "flag" text, "tonnage_grt" real, "sunk_by" text ); Question: What is the date for the name of Granville? <|assistant|> SELECT "date" FROM "allied_ships...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "allied_ships" ( "date" text, "name" text, "flag" text, "tonnage_grt" real, "sunk_by" text ); Question: What is the name of the ship sunk by U-305 on 17 March 1943? <|assistant|> SELECT "name" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "april" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text ); Question: Which date's visitor was jazz, when the leading scorer was Mehmet Okur (22)?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_the_triple_crowns_achieved" ( "season" text, "club" text, "national_league" text, "national_cup" text, "european_cup" text ); Question: What Club has Fiba European Champion's Cup and an Ita...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_the_triple_crowns_achieved" ( "season" text, "club" text, "national_league" text, "national_cup" text, "european_cup" text ); Question: What European Cup is in Israeli Premier League? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_the_triple_crowns_achieved" ( "season" text, "club" text, "national_league" text, "national_cup" text, "european_cup" text ); Question: Which season is Euroleague with Greek Cup? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_the_triple_crowns_achieved" ( "season" text, "club" text, "national_league" text, "national_cup" text, "european_cup" text ); Question: Which European Cup is in the 1990-91 season? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_the_triple_crowns_achieved" ( "season" text, "club" text, "national_league" text, "national_cup" text, "european_cup" text ); Question: Which European Cup is in the 2006-07 season? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_the_triple_crowns_achieved" ( "season" text, "club" text, "national_league" text, "national_cup" text, "european_cup" text ); Question: Which National League is in 1969-70 season? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "3001_3100" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text, "apparent_magnitude" real ); Question: what is the right asce...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "3001_3100" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text, "apparent_magnitude" real ); Question: what is the constellat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "3001_3100" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text, "apparent_magnitude" real ); Question: what is the lowest app...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "clubs" ( "club" text, "position_in_2012" text, "first_season" text, "number_of_seasons" real, "first_season_of_current_spell" real, "titles" real, "last_title" text ); Question: what is the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "clubs" ( "club" text, "position_in_2012" text, "first_season" text, "number_of_seasons" real, "first_season_of_current_spell" real, "titles" real, "last_title" text ); Question: what is the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "clubs" ( "club" text, "position_in_2012" text, "first_season" text, "number_of_seasons" real, "first_season_of_current_spell" real, "titles" real, "last_title" text ); Question: what is the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "clubs" ( "club" text, "position_in_2012" text, "first_season" text, "number_of_seasons" real, "first_season_of_current_spell" real, "titles" real, "last_title" text ); Question: what is the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pairs" ( "rank" real, "name" text, "nation" text, "placings" text, "total" real ); Question: What is the rank number for a placing of 28.5 and a total less than 92.7? <|assistant|> SELECT COUNT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pairs" ( "rank" real, "name" text, "nation" text, "placings" text, "total" real ); Question: What is the placing value for a total less than 96.07 in the United States? <|assistant|> SELECT "pl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pairs" ( "rank" real, "name" text, "nation" text, "placings" text, "total" real ); Question: What is the total for Rank 11? <|assistant|> SELECT COUNT("total") FROM "pairs" WHERE "rank"=11;<|en...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pairs" ( "rank" real, "name" text, "nation" text, "placings" text, "total" real ); Question: What is the sum of all total values for Switzerland? <|assistant|> SELECT SUM("total") FROM "pairs" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pairs" ( "rank" real, "name" text, "nation" text, "placings" text, "total" real ); Question: What rank goes to a total of 92.7? <|assistant|> SELECT "rank" FROM "pairs" WHERE "total"=92.7;<|end...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pairs" ( "rank" real, "name" text, "nation" text, "placings" text, "total" real ); Question: Who has a rank great than 3 and a placing of 64? <|assistant|> SELECT "name" FROM "pairs" WHERE "ran...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team_all_around" ( "rank" real, "team" text, "floor_exercise" real, "pommel_horse" real, "rings" real, "vault" real, "parallel_bars" real, "horizontal_bar" real, "total" real ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team_all_around" ( "rank" real, "team" text, "floor_exercise" real, "pommel_horse" real, "rings" real, "vault" real, "parallel_bars" real, "horizontal_bar" real, "total" real ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team_all_around" ( "rank" real, "team" text, "floor_exercise" real, "pommel_horse" real, "rings" real, "vault" real, "parallel_bars" real, "horizontal_bar" real, "total" real ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team_all_around" ( "rank" real, "team" text, "floor_exercise" real, "pommel_horse" real, "rings" real, "vault" real, "parallel_bars" real, "horizontal_bar" real, "total" real ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "filmography" ( "year" real, "title" text, "role" text, "studio" text, "director" text ); Question: What is the title where the studio was RKO, the role was Dolly, and the year was later than 19...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "filmography" ( "year" real, "title" text, "role" text, "studio" text, "director" text ); Question: Who was the director for To Have and Have Not, earlier than 1945 with WB studio? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "filmography" ( "year" real, "title" text, "role" text, "studio" text, "director" text ); Question: What year was The Horn Blows at Midnight, directed by Raoul Walsh? <|assistant|> SELECT AVG("y...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "filmography" ( "year" real, "title" text, "role" text, "studio" text, "director" text ); Question: What title was directed by Raoul Walsh later than 1945? <|assistant|> SELECT "title" FROM "fil...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "filmography" ( "year" real, "title" text, "role" text, "studio" text, "director" text ); Question: What was the studio for The Hard Way in 1943? <|assistant|> SELECT "studio" FROM "filmography"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which team plays at Lake Oval? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the away score when they played...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Where was South Melbourne played? <|assi...
<|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" text ); Question: Where week is greater than 14 and Opponent is Dallas Cowboys, what is the result? <|assistan...
<|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" text ); Question: Where week is greater than 7 and attendance is 66,251 what is the result? <|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" text ); Question: Where attendance is 79,431 what is date? <|assistant|> SELECT "date" 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" text ); Question: Where Date is september 13, 1998 what is result? <|assistant|> SELECT "result" FROM "schedul...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What did the away team score at Junction ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the average amount of spectators...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What did the away team score when the hom...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: Name the score when the home is ny islanders and the visito...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: Name the score when the decision is dipietro and the visito...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: Name the score when it had a decision of dipietro and visit...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: Name the least attendance with carolina visitor <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the Home team score when the cro...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What Venue had Carlton has the Away team?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standings" ( "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What is the reco...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standings" ( "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What had the hig...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standings" ( "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: On what date did...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standings" ( "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Who has the high...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Bronze has a Silver smaller than 1, and a Total larger than 3? <|assistant|> SELECT AVG(...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Gold has a Nation of united states, and a Total larger than 5? <|assistant|> SELECT MIN(...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Bronze has a Nation of argentina, and a Silver smaller than 0? <|assistant|> SELECT AVG(...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Bronze has a Silver of 2, and a Total smaller than 5? <|assistant|> SELECT AVG("bronze")...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Where was the game played when the away t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the largest amount of spectators ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: How many spectators were at the away team...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_member_schools" ( "school" text, "location" text, "enrolment" real, "founded" real, "denomination" text, "boys_girls" text, "day_boarding" text, "school_colors" text ); Question: ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_member_schools" ( "school" text, "location" text, "enrolment" real, "founded" real, "denomination" text, "boys_girls" text, "day_boarding" text, "school_colors" text ); Question: ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_member_schools" ( "school" text, "location" text, "enrolment" real, "founded" real, "denomination" text, "boys_girls" text, "day_boarding" text, "school_colors" text ); Question: ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atari_5200" ( "name" text, "current_version" text, "system" text, "platform" text, "license" text ); Question: What is the System with the Current version 3.0.0? <|assistant|> SELECT "system" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atari_5200" ( "name" text, "current_version" text, "system" text, "platform" text, "license" text ); Question: What is the Name when the License is gpl and the Current Version is 1.72? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atari_5200" ( "name" text, "current_version" text, "system" text, "platform" text, "license" text ); Question: What is the System when the Licence is gpl and the Current Version is 1.72? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atari_5200" ( "name" text, "current_version" text, "system" text, "platform" text, "license" text ); Question: What is the System with a freeware License? <|assistant|> SELECT "system" FROM "at...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atari_5200" ( "name" text, "current_version" text, "system" text, "platform" text, "license" text ); Question: What is the License when the Platform is windows and the Name is Altirra? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atari_5200" ( "name" text, "current_version" text, "system" text, "platform" text, "license" text ); Question: What Platform has a Current Version 0.6.2? <|assistant|> SELECT "platform" FROM "a...
<|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 average attendance on October 9, 1983? <|assistant|> SELECT AVG("attendance") FR...
<|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 lowest attendance on September 4, 1983? <|assistant|> SELECT MIN("attendance") F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "junior_high_schools" ( "school_s_name" text, "school_s_namesake" text, "year_opened" text, "principal" text, "mascot" text ); Question: What is the name of the school whose namesake is John F. ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "junior_high_schools" ( "school_s_name" text, "school_s_namesake" text, "year_opened" text, "principal" text, "mascot" text ); Question: What is the mascot whose school opened in 1970? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "junior_high_schools" ( "school_s_name" text, "school_s_namesake" text, "year_opened" text, "principal" text, "mascot" text ); Question: What principal has a school mascot of the patriots? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "junior_high_schools" ( "school_s_name" text, "school_s_namesake" text, "year_opened" text, "principal" text, "mascot" text ); Question: What is the namesake of the school whose mascot is the pa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "junior_high_schools" ( "school_s_name" text, "school_s_namesake" text, "year_opened" text, "principal" text, "mascot" text ); Question: What is the school namesake for Lincoln Junior High Schoo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1997_fixtures_and_results" ( "date" text, "competition" text, "venue" text, "result" text, "score" text, "goals" text ); Question: What was the venue when the score was 24–28? <|assistant|> S...