text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_competition_scores" ( "state" text, "preliminary" real, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); Question: What state has a swimsuit less than 9.277, go...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_competition_scores" ( "state" text, "preliminary" real, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); Question: What is the average when interview is 9.465 a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_competition_scores" ( "state" text, "preliminary" real, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); Question: What is the best preliminary score from a con...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episodes" ( "episode_num" real, "title" text, "directed_by" text, "written_by" text, "originalairdate" text ); Question: What is Written By, when Originalairdate is 25 April 1993? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "episodes" ( "episode_num" real, "title" text, "directed_by" text, "written_by" text, "originalairdate" text ); Question: What is Directed By, when Episode # is 7? <|assistant|> SELECT "directed...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" text, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" real, "avg_finish" real, "position" text ); Question: WHAT IS...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "europe" ( "country" text, "first_store" text, "hypermarkets" text, "supermarkets" text, "hard_discounters" text ); Question: What country has 50 supermarkets? <|assistant|> SELECT "country" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "europe" ( "country" text, "first_store" text, "hypermarkets" text, "supermarkets" text, "hard_discounters" text ); Question: What country has 370 supermarkets? <|assistant|> SELECT "country" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "europe" ( "country" text, "first_store" text, "hypermarkets" text, "supermarkets" text, "hard_discounters" text ); Question: What country has a fire store of 1991 and a hard discounter of 397? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_drivers" ( "team" text, "driver" text, "chassis" text, "engine" text, "rounds" text ); Question: Which engine is in all rounds with Tsugio Matsuda driving? <|assistant|> SELECT "engin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_drivers" ( "team" text, "driver" text, "chassis" text, "engine" text, "rounds" text ); Question: Which engine is used by Team Lemans with Hiroaki Ishiura driving? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "eliminations_standing" ( "rank" real, "team" text, "loss" real, "sets_won" real, "sets_lost" real, "percentage" text ); Question: What is the least rank with more than 3 losses and less than ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "eliminations_standing" ( "rank" real, "team" text, "loss" real, "sets_won" real, "sets_lost" real, "percentage" text ); Question: What is the least rank with more than 16 sets won and less th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: Who was the home team when the away team was Telford United? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What was the score when the away team was West Ham United? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What is the Tie Number when the home team was West Ham United? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ultra_low_voltage_90_nm" ( "model_number" text, "clock_speed" text, "l2_cache" text, "fsb_speed" text, "voltage_range" text, "socket" text ); Question: Name the Model Number which has a FSB S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ultra_low_voltage_90_nm" ( "model_number" text, "clock_speed" text, "l2_cache" text, "fsb_speed" text, "voltage_range" text, "socket" text ); Question: Name the Voltage Range which has a FSB ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ultra_low_voltage_90_nm" ( "model_number" text, "clock_speed" text, "l2_cache" text, "fsb_speed" text, "voltage_range" text, "socket" text ); Question: Name the L2 Cache which has a Clock Spe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Questi...
<|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: Which Week has an Attendance of 72,855? <|assistant|> SELECT MAX("week") FROM "schedule" WHE...
<|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: Which Week has a Date of december 8, 1991? <|assistant|> SELECT AVG("week") FROM "schedule" ...
<|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: Which Opponent has a Date of november 24, 1991? <|assistant|> SELECT "opponent" FROM "schedu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_200_most_topographically_isolated_su" ( "rank" real, "mountain_peak" text, "state" text, "mountain_range" text, "location" text ); Question: Which location has a rank of 147? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_200_most_topographically_isolated_su" ( "rank" real, "mountain_peak" text, "state" text, "mountain_range" text, "location" text ); Question: Which mountain range contains Sierra Blanca Peak...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_200_most_topographically_isolated_su" ( "rank" real, "mountain_peak" text, "state" text, "mountain_range" text, "location" text ); Question: Which location is in Oregon, ranked under 121, a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "golden_globe_awards_fictional_presidents" ( "year" real, "category" text, "president" text, "nominee" text, "film_or_television_series_or_miniseries" text ); Question: What is the film, televis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "golden_globe_awards_fictional_presidents" ( "year" real, "category" text, "president" text, "nominee" text, "film_or_television_series_or_miniseries" text ); Question: In what year was Martin S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "golden_globe_awards_fictional_presidents" ( "year" real, "category" text, "president" text, "nominee" text, "film_or_television_series_or_miniseries" text ); Question: Who was the president in ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text ); Question: Which Date has a Status of second test? <|assistant|> SELECT "date" FROM "matches" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text ); Question: Which Venue has an Against of 25? <|assistant|> SELECT "venue" FROM "matches" WHERE "again...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text ); Question: Which Status has a Date of 19/05/1981? <|assistant|> SELECT "status" FROM "matches" WHERE ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text ); Question: Which Against has a Date of 30/05/1981? <|assistant|> SELECT COUNT("against") FROM "matche...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text ); Question: Which Date has an Against smaller than 21, and a Status of second test? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members_of_the_marcellus_formation_from_" ( "buffalo" text, "rochester" text, "syracuse" text, "utica" text, "albany" text ); Question: What is Rochester, when Syracuse is Cardiff Dark Gray Sha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members_of_the_marcellus_formation_from_" ( "buffalo" text, "rochester" text, "syracuse" text, "utica" text, "albany" text ); Question: What is Albany, when Buffalo is Oatka Creek Shale, and wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members_of_the_marcellus_formation_from_" ( "buffalo" text, "rochester" text, "syracuse" text, "utica" text, "albany" text ); Question: What is Syracuse, when Utica is Union Springs Shale And L...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members_of_the_marcellus_formation_from_" ( "buffalo" text, "rochester" text, "syracuse" text, "utica" text, "albany" text ); Question: What is Syracuse, when Utica is Solsville Shale And Sands...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members_of_the_marcellus_formation_from_" ( "buffalo" text, "rochester" text, "syracuse" text, "utica" text, "albany" text ); Question: What is Syracuse, when Buffalo is Oatka Creek Shale, and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ice_dancing" ( "rank" real, "name" text, "nation" text, "points" real, "placings" real ); Question: What is the Name of the Players with a Rank of 18? <|assistant|> SELECT "name" FROM "ice_danc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ice_dancing" ( "rank" real, "name" text, "nation" text, "points" real, "placings" real ); Question: How many Points for the couple ranking 17 with Placings larger than 100? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ice_dancing" ( "rank" real, "name" text, "nation" text, "points" real, "placings" real ); Question: What is the Rank of the couple with less than 408.8 Points and Placings of 160? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ice_dancing" ( "rank" real, "name" text, "nation" text, "points" real, "placings" real ); Question: What is the Place of the couple with a Rank smaller than 7 and 514.55 Points? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "country" text, "mark" text ); Question: What is the total Lane with a Mark of 47.02, and a Heat higher than 5? <|assistant|> SELECT SUM("lane") ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "country" text, "mark" text ); Question: With a Mark of 46.47, What is the lowest Heat? <|assistant|> SELECT MIN("heat") FROM "heats" WHERE "mark...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "country" text, "mark" text ); Question: What is the Country that has Richard Buck Lane higher than 3? <|assistant|> SELECT "country" FROM "heats...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "britain" ( "name_dates" text, "eldest_daughter_from_date_to_date" text, "father" text, "date_married" text, "husband_dates" text ); Question: When did Louise, Princess royal get married? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "svenska_cupen_2005" ( "date" text, "venue" text, "opponents" text, "score" text, "round" text, "djurg_rden_scorers" text, "attendance" text ); Question: What are the Djurgården scorers that...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "svenska_cupen_2005" ( "date" text, "venue" text, "opponents" text, "score" text, "round" text, "djurg_rden_scorers" text, "attendance" text ); Question: What are the Opponents that have Dju...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "svenska_cupen_2005" ( "date" text, "venue" text, "opponents" text, "score" text, "round" text, "djurg_rden_scorers" text, "attendance" text ); Question: What is the Score that has a Date of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "svenska_cupen_2005" ( "date" text, "venue" text, "opponents" text, "score" text, "round" text, "djurg_rden_scorers" text, "attendance" text ); Question: What is the Score that has an Attend...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "svenska_cupen_2005" ( "date" text, "venue" text, "opponents" text, "score" text, "round" text, "djurg_rden_scorers" text, "attendance" text ); Question: What is the Date that has a Round of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text ); Question: Which Round is the highest one that has a College of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text ); Question: Which Pick has a Name of ed hickerson, and a Round sm...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text ); Question: How much Overall has a Pick of 10, and a Round smalle...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What date was the away team Morecambe? <|assistant|> SELECT "date" FROM "first_ro...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What team was the away team when the home team was Grimsby Town? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What team was the away team when the home team was Hereford United? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What team was the away team when the tie no is 40? <|assistant|> SELECT "away_tea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_preliminary_round" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: What was the 1st leg score for the team with an Agg score of 151-134? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_preliminary_round" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: What was the team Unics Kazan's 1st leg score? <|assistant|> SELECT "1st_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_preliminary_round" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: Who was the first team when the second team was Kalise Gran Canaria? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_preliminary_round" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: Which second team had a first leg score of 83-69? <|assistant|> SELECT "t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_preliminary_round" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: Which Team #1 had a 2nd leg score of 88-83? <|assistant|> SELECT "team_nu...
<|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, "location_attendance" text, "record" text ); Question: What was the score of gam...
<|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, "location_attendance" text, "record" text ); Question: Who was the high scorer i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "october" real, "opponent" text, "score" text, "record" text ); Question: What is the highest date in october for a game number larger than 8 with a record ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" text, "to_par" real ); Question: When the tom watson is playing for the United States and the To par is under 14, wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" text, "to_par" real ); Question: What player has a total of 158/ <|assistant|> SELECT "player" FROM "missed_the_cut" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" text, "to_par" real ); Question: If 1967 is the winning year and a player has a total recorded as wd with a To par un...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "season" text, "team" text, "games" text, "disposals" text, "kicks" text, "handballs" text, "marks" text, "tackles" text, "goals" text, "behinds" text ); Question: How m...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "statistics" ( "season" text, "team" text, "games" text, "disposals" text, "kicks" text, "handballs" text, "marks" text, "tackles" text, "goals" text, "behinds" text ); Question: How m...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "record_by_competition" ( "competition" text, "played" real, "millwall_wins" real, "drawn" real, "west_ham_wins" real, "millwall_goals" real, "west_ham_goals" real ); Question: How many wins...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "record_by_competition" ( "competition" text, "played" real, "millwall_wins" real, "drawn" real, "west_ham_wins" real, "millwall_goals" real, "west_ham_goals" real ); Question: What is the l...
<|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: what is the attendance when the date is october 22, 2000? <|assistant|> SELECT "attendance" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "share_of_global_gdp_ppp_pct" ( "region" text, "1950" real, "1960" real, "1970" real, "1980" real, "1990" real, "2000" real ); Question: What is the highest value for 2000, when the value fo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "share_of_global_gdp_ppp_pct" ( "region" text, "1950" real, "1960" real, "1970" real, "1980" real, "1990" real, "2000" real ); Question: What is the lowest value for 1990, when the Region is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "share_of_global_gdp_ppp_pct" ( "region" text, "1950" real, "1960" real, "1970" real, "1980" real, "1990" real, "2000" real ); Question: What is the average value for 1970, when the Region i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "share_of_global_gdp_ppp_pct" ( "region" text, "1950" real, "1960" real, "1970" real, "1980" real, "1990" real, "2000" real ); Question: What is the highest value for 1970, when the value fo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "share_of_global_gdp_ppp_pct" ( "region" text, "1950" real, "1960" real, "1970" real, "1980" real, "1990" real, "2000" real ); Question: What is the lowest value for 1960, when the value for...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real ); Question: What ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real ); Question: What ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real ); Question: What ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real ); Question: What ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real ); Question: What ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); Question: Can you tell me the average Total that has the To par of 15? <|assistant|> SELECT AV...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); Question: Can you tell me the Country that has the To par larger than 9, and the Year(s) won o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "turkish_cd_track_listings" ( "track" real, "title" text, "songwriter_s" text, "producer_s" text, "length" text ); Question: Who produced the track that is 4:16 long? <|assistant|> SELECT "produ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "turkish_cd_track_listings" ( "track" real, "title" text, "songwriter_s" text, "producer_s" text, "length" text ); Question: Who produced track 7? <|assistant|> SELECT "producer_s" FROM "turkish...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "contracts" ( "nat" text, "name" text, "status" text, "contract_length" text, "expiry_date" real, "source" text ); Question: What is the contract length when rejected is the status? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: what is the average drawn when the points is more than 15, lost is 1 and play...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: what is the lowest position when points is more than 11, name is ea schongau ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: what is the average lost when played is more than 14? <|assistant|> SELECT AV...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: what is the sum of drawn when points is less than 15, lost is 8 and position ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); Question: what is the lowest points when name is ehc münchen ii and position is less th...
<|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, "record" text, "attendance" text ); Question: what is the result when the week is earlier than 9 and attendance is...
<|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, "series" 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, "series" 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, "series" 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, "series" text ); Question: Wh...