text
stringlengths 310
1.28k
|
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_228439_4" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
Question: What district is Samuel A. Bridges ( D ) assigned to as a successor?
<|assistant|>
SELECT "district" FROM "table1_228439_4" WHERE "successor"='Samuel A. Bridges ( D )';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_228439_4" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
Question: what was the reason Richard K. Meade ( d ) became a successor?
<|assistant|>
SELECT "reason_for_change" FROM "table1_228439_4" WHERE "successor"='Richard K. Meade ( D )';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_228439_4" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
Question: Who is the successor for massachusetts 8th?
<|assistant|>
SELECT "successor" FROM "table1_228439_4" WHERE "district"='Massachusetts 8th';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"location" text,
"opponent" text,
"cards_points" real,
"opp_points" real,
"record" text
);
Question: Name the opponent for 11-1
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "record"='11-1';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"location" text,
"opponent" text,
"cards_points" real,
"opp_points" real,
"record" text
);
Question: Name the record for kentucky
<|assistant|>
SELECT "record" FROM "schedule" WHERE "opponent"='Kentucky';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_15_8_titles_7_runner_ups" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
Question: Who is the opponent in the match with final score 3β6, 4β6, 7β5, 4β6?
<|assistant|>
SELECT "opponent_in_the_final" FROM "singles_15_8_titles_7_runner_ups" WHERE "score_in_the_final"='3β6, 4β6, 7β5, 4β6';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_15_8_titles_7_runner_ups" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
Question: What was the outcome of the match with score 4β6, 3β6, 2β6?
<|assistant|>
SELECT "outcome" FROM "singles_15_8_titles_7_runner_ups" WHERE "score_in_the_final"='4β6, 3β6, 2β6';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_15_8_titles_7_runner_ups" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
Question: What is the most recent year where the final score is 4β6, 3β6, 6β4, 5β7?
<|assistant|>
SELECT MAX("year") FROM "singles_15_8_titles_7_runner_ups" WHERE "score_in_the_final"='4β6, 3β6, 6β4, 5β7';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_15_8_titles_7_runner_ups" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
Question: What championship had a final score of 6β4, 6β2, 6β2?
<|assistant|>
SELECT "championship" FROM "singles_15_8_titles_7_runner_ups" WHERE "score_in_the_final"='6β4, 6β2, 6β2';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"tournaments_played" real,
"cuts_made" real,
"wins" real,
"2nd" real,
"top_10s" real,
"best_finish" text,
"earnings" real,
"money_list_rank" real,
"scoring_average" text,
"scoring_rank" real
);
Question: If the year is 2007, what is the top ten?
<|assistant|>
SELECT "top_10s" FROM "lpga_tour_career_summary" WHERE "year"=2007;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"tournaments_played" real,
"cuts_made" real,
"wins" real,
"2nd" real,
"top_10s" real,
"best_finish" text,
"earnings" real,
"money_list_rank" real,
"scoring_average" text,
"scoring_rank" real
);
Question: What is the possible maximum money list rank?
<|assistant|>
SELECT MAX("money_list_rank") FROM "lpga_tour_career_summary";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"tournaments_played" real,
"cuts_made" real,
"wins" real,
"2nd" real,
"top_10s" real,
"best_finish" text,
"earnings" real,
"money_list_rank" real,
"scoring_average" text,
"scoring_rank" real
);
Question: If the scoring average is 72.46, what is the best finish?
<|assistant|>
SELECT "best_finish" FROM "lpga_tour_career_summary" WHERE "scoring_average"='72.46';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_14" (
"edition" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"opponent" text,
"w_l" text,
"result" text
);
Question: Name the result for wesley moodie
<|assistant|>
SELECT "result" FROM "singles_14" WHERE "opponent"='Wesley Moodie';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_14" (
"edition" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"opponent" text,
"w_l" text,
"result" text
);
Question: Name the surface against monaco
<|assistant|>
SELECT "surface" FROM "singles_14" WHERE "against"='Monaco';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_14" (
"edition" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"opponent" text,
"w_l" text,
"result" text
);
Question: Name the result for alexander shvec
<|assistant|>
SELECT "result" FROM "singles_14" WHERE "opponent"='Alexander Shvec';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_14" (
"edition" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"opponent" text,
"w_l" text,
"result" text
);
Question: Name the opponent for 3β6, 4β6, 6β1, 6β7 (7β9)
<|assistant|>
SELECT "opponent" FROM "singles_14" WHERE "result"='3β6, 4β6, 6β1, 6β7 (7β9)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_22854436_1" (
"administrative_region" text,
"population_2002_census_data" real,
"surface_km_2" real,
"main_rivers" text,
"average_annual_rainfall_mm" text,
"average_annual_runoff_mm" text,
"per_capita_average_annual_renewable_water_resources_m_3" real
);
Question: Name the annual rainfail for 2002 population being 493984
<|assistant|>
SELECT "average_annual_rainfall_mm" FROM "table1_22854436_1" WHERE "population_2002_census_data"=493984;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_22854436_1" (
"administrative_region" text,
"population_2002_census_data" real,
"surface_km_2" real,
"main_rivers" text,
"average_annual_rainfall_mm" text,
"average_annual_runoff_mm" text,
"per_capita_average_annual_renewable_water_resources_m_3" real
);
Question: Name the most population 2002
<|assistant|>
SELECT MAX("population_2002_census_data") FROM "table1_22854436_1";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_22854436_1" (
"administrative_region" text,
"population_2002_census_data" real,
"surface_km_2" real,
"main_rivers" text,
"average_annual_rainfall_mm" text,
"average_annual_runoff_mm" text,
"per_capita_average_annual_renewable_water_resources_m_3" real
);
Question: Name the total water resources m3 for rainfall being 650
<|assistant|>
SELECT COUNT("per_capita_average_annual_renewable_water_resources_m_3") FROM "table1_22854436_1" WHERE "average_annual_rainfall_mm"='650';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_singles_statistics" (
"year" real,
"tournaments" real,
"titles" real,
"hardcourt_w_l" text,
"clay_w_l" text,
"grass_w_l" text,
"carpet_w_l" text,
"overall_w_l" text,
"win_pct" text,
"year_end_ranking" text
);
Question: What were the carpet w-l in 1993?
<|assistant|>
SELECT "carpet_w_l" FROM "career_singles_statistics" WHERE "year"=1993;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_7_finals_3_titles_4_runner_up" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"opponent_in_final" text,
"score_in_final" text
);
Question: What is the amount of US open runner-up score?
<|assistant|>
SELECT COUNT("score_in_final") FROM "grand_slam_7_finals_3_titles_4_runner_up" WHERE "championship"='US Open' AND "outcome"='Runner-up';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_7_finals_3_titles_4_runner_up" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"opponent_in_final" text,
"score_in_final" text
);
Question: What is the year where the runner-up outcome was at its basic minimum?
<|assistant|>
SELECT MIN("year") FROM "grand_slam_7_finals_3_titles_4_runner_up" WHERE "outcome"='Runner-up';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_slam_7_finals_3_titles_4_runner_up" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"opponent_in_final" text,
"score_in_final" text
);
Question: How many championships have there been with Steffi Graf?
<|assistant|>
SELECT "championship" FROM "grand_slam_7_finals_3_titles_4_runner_up" WHERE "opponent_in_final"='Steffi Graf';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_37_31_6" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: How many opponents have wimbledon (2) as the championship?
<|assistant|>
SELECT COUNT("opponents") FROM "doubles_37_31_6" WHERE "championship"='Wimbledon (2)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_37_31_6" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What is the surface when the us open is the championship in the year 1979?
<|assistant|>
SELECT "surface" FROM "doubles_37_31_6" WHERE "championship"='US Open' AND "year"=1979;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"num" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"record" text
);
Question: What is the game number that was on November 27?
<|assistant|>
SELECT "num" FROM "game_log" WHERE "date"='November 27';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"num" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"record" text
);
Question: What was the score when the team was @ New Jersey?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "team"='@ New Jersey';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"num" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"record" text
);
Question: How many high rebound catagories are listed for game number 5?
<|assistant|>
SELECT COUNT("high_rebounds") FROM "game_log" WHERE "num"=5;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"date" text,
"location" text,
"opponent" text,
"terps_points" real,
"opp_points" real,
"record" text
);
Question: Who were the opponents when the record was 11-2?
<|assistant|>
SELECT "opponent" FROM "season_schedule" WHERE "record"='11-2';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"date" text,
"location" text,
"opponent" text,
"terps_points" real,
"opp_points" real,
"record" text
);
Question: What were the records when the opponents had 50 points?
<|assistant|>
SELECT "record" FROM "season_schedule" WHERE "opp_points"=50;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"date" text,
"location" text,
"opponent" text,
"terps_points" real,
"opp_points" real,
"record" text
);
Question: What are the terps points for the nov. 25/05 game?
<|assistant|>
SELECT "terps_points" FROM "season_schedule" WHERE "date"='Nov. 25/05';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"date" text,
"location" text,
"opponent" text,
"terps_points" real,
"opp_points" real,
"record" text
);
Question: Where were games played when the record was 9-1?
<|assistant|>
SELECT "location" FROM "season_schedule" WHERE "record"='9-1';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"date" text,
"location" text,
"opponent" text,
"terps_points" real,
"opp_points" real,
"record" text
);
Question: What is the highest number of terps points in games where the opponent made 53 points?
<|assistant|>
SELECT MAX("terps_points") FROM "season_schedule" WHERE "opp_points"=53;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"date" text,
"location" text,
"opponent" text,
"terps_points" real,
"opp_points" real,
"record" text
);
Question: Where was the game on jan. 16/06 played?
<|assistant|>
SELECT "location" FROM "season_schedule" WHERE "date"='Jan. 16/06';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"num" real,
"date" text,
"visitor" text,
"score" text,
"arena_attendance" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"record" text
);
Question: Name the high points for 21-45 record
<|assistant|>
SELECT COUNT("high_points") FROM "game_log" WHERE "record"='21-45';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"num" real,
"date" text,
"visitor" text,
"score" text,
"arena_attendance" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"record" text
);
Question: Name the visitor for march 23
<|assistant|>
SELECT "visitor" FROM "game_log" WHERE "date"='March 23';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"num" real,
"date" text,
"visitor" text,
"score" text,
"arena_attendance" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"record" text
);
Question: Name the high rebounds for td garden 18,624
<|assistant|>
SELECT "high_rebounds" FROM "game_log" WHERE "arena_attendance"='TD Garden 18,624';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"num" real,
"date" text,
"visitor" text,
"score" text,
"arena_attendance" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"record" text
);
Question: Name the record for march 16
<|assistant|>
SELECT "record" FROM "game_log" WHERE "date"='March 16';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"num" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"record" text
);
Question: Name the total number for score l 110-112
<|assistant|>
SELECT COUNT("num") FROM "game_log" WHERE "score"='L 110-112';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"num" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"record" text
);
Question: Name the team for w 125-115 score
<|assistant|>
SELECT "team" FROM "game_log" WHERE "score"='W 125-115';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"num" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"record" text
);
Question: Name the high assists for american airlines center 19,585
<|assistant|>
SELECT "high_assists" FROM "game_log" WHERE "location_attendance"='American Airlines Center 19,585';<|endoftext|>
|
<|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: Who has the high points when 3-2 is the series?
<|assistant|>
SELECT "high_points" FROM "game_log" WHERE "series"='3-2';<|endoftext|>
|
<|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: Who has the high assists when 0-1 is the series?
<|assistant|>
SELECT "high_assists" FROM "game_log" WHERE "series"='0-1';<|endoftext|>
|
<|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: How many high rebounds are in series 3-3?
<|assistant|>
SELECT COUNT("high_rebounds") FROM "game_log" WHERE "series"='3-3';<|endoftext|>
|
<|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: How many games are on the date of April 30?
<|assistant|>
SELECT MIN("game") FROM "game_log" WHERE "date"='April 30';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Who did the high points in the game played on December 18?
<|assistant|>
SELECT "high_points" FROM "game_log" WHERE "date"='December 18';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Who did the high points in the game played on December 2?
<|assistant|>
SELECT "high_points" FROM "game_log" WHERE "date"='December 2';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: What's the record of the game in which Carlos Delfino (17) did the most high points?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "high_points"='Carlos Delfino (17)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Who did the high rebounds in the game in which Brandon Jennings (8) did the high assists?
<|assistant|>
SELECT "high_rebounds" FROM "game_log" WHERE "high_assists"='Brandon Jennings (8)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_stats" (
"player" text,
"field_goals" text,
"three_pointers" text,
"free_throws" text,
"assists" real,
"steals" real,
"rebounds" text,
"points" text
);
Question: Which player has 18-50 .360 field goals?
<|assistant|>
SELECT "player" FROM "player_stats" WHERE "field_goals"='18-50 .360';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_stats" (
"player" text,
"field_goals" text,
"three_pointers" text,
"free_throws" text,
"assists" real,
"steals" real,
"rebounds" text,
"points" text
);
Question: What is the most assists for points 129-3.9?
<|assistant|>
SELECT MAX("assists") FROM "player_stats" WHERE "points"='129-3.9';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_stats" (
"player" text,
"field_goals" text,
"three_pointers" text,
"free_throws" text,
"assists" real,
"steals" real,
"rebounds" text,
"points" text
);
Question: Which player has 18-50 .360 field goals?
<|assistant|>
SELECT "player" FROM "player_stats" WHERE "field_goals"='18-50 .360';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"location" text,
"opponent" text,
"irish_points" real,
"opp_points" real,
"record" text
);
Question: Name the date for irish points being 89
<|assistant|>
SELECT "date" FROM "schedule" WHERE "irish_points"=89;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"location" text,
"opponent" text,
"irish_points" real,
"opp_points" real,
"record" text
);
Question: Name the number of location for 22-1
<|assistant|>
SELECT COUNT("location") FROM "schedule" WHERE "record"='22-1';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"location" text,
"opponent" text,
"irish_points" real,
"opp_points" real,
"record" text
);
Question: Name the opponent for 2-27-10
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "date"='2-27-10';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"location" text,
"opponent" text,
"irish_points" real,
"opp_points" real,
"record" text
);
Question: Name the max irish points for eastern michigan
<|assistant|>
SELECT MAX("irish_points") FROM "schedule" WHERE "opponent"='Eastern Michigan';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"location" text,
"opponent" text,
"irish_points" real,
"opp_points" real,
"record" text
);
Question: Name the irish points for 23-1 record
<|assistant|>
SELECT "irish_points" FROM "schedule" WHERE "record"='23-1';<|endoftext|>
|
<|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: Name the number of high rebounds for l 92β96 (ot)
<|assistant|>
SELECT COUNT("high_rebounds") FROM "game_log" WHERE "score"='L 92β96 (OT)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: what ist he date of game 29?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "game"=29;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: what is the location attendance for game 27?
<|assistant|>
SELECT "location_attendance" FROM "game_log" WHERE "game"=27;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: what is the total number of high rebounds for minnesota?
<|assistant|>
SELECT COUNT("high_rebounds") FROM "game_log" WHERE "team"='Minnesota';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: What were the high rebounds on April 4?
<|assistant|>
SELECT "high_rebounds" FROM "game_log" WHERE "date"='April 4';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: What was the score when the game was 80?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "game"=80;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: What date was the record 11-67?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "record"='11-67';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: How many high rebounds were there on April 7?
<|assistant|>
SELECT COUNT("high_rebounds") FROM "game_log" WHERE "date"='April 7';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: What was the high points when rebounds were Terrence Williams (8)?
<|assistant|>
SELECT "high_points" FROM "game_log" WHERE "high_rebounds"='Terrence Williams (8)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: When the record was 2-29 who had the most assists?
<|assistant|>
SELECT "high_assists" FROM "game_log" WHERE "record"='2-29';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: When we played Houston who had the most points?
<|assistant|>
SELECT "high_points" FROM "game_log" WHERE "team"='Houston';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Name the number of high points for ford center
<|assistant|>
SELECT COUNT("high_points") FROM "game_log" WHERE "location_attendance"='Ford Center';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Name the high rebounds for american airlines center
<|assistant|>
SELECT "high_rebounds" FROM "game_log" WHERE "location_attendance"='American Airlines Center';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Name the record for l 90β100 (ot)
<|assistant|>
SELECT "record" FROM "game_log" WHERE "score"='L 90β100 (OT)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Name the location attendance for l 83β106 (ot)
<|assistant|>
SELECT "location_attendance" FROM "game_log" WHERE "score"='L 83β106 (OT)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Name the score for 49-31
<|assistant|>
SELECT "score" FROM "game_log" WHERE "record"='49-31';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Name the location attendance for minnesota
<|assistant|>
SELECT "location_attendance" FROM "game_log" WHERE "team"='Minnesota';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: What location had a record of 20-12, and how many people attended?
<|assistant|>
SELECT "location_attendance" FROM "game_log" WHERE "record"='20-12';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: What was the total score for january 18?
<|assistant|>
SELECT COUNT("score") FROM "game_log" WHERE "date"='January 18';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Where was game 41 held, and how many people attended?
<|assistant|>
SELECT "location_attendance" FROM "game_log" WHERE "game"=41;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: What was the date for the record 23-13?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "record"='23-13';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: What was the high point for January 20?
<|assistant|>
SELECT "high_points" FROM "game_log" WHERE "date"='January 20';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: What was the location and how many attended when Golden State played?
<|assistant|>
SELECT "location_attendance" FROM "game_log" WHERE "team"='Golden State';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: What is the highest game number where the team was Cleveland?
<|assistant|>
SELECT MAX("game") FROM "game_log" WHERE "team"='Cleveland';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "australian_ratings" (
"order" real,
"episode" text,
"original_airdate" text,
"timeslot" text,
"viewers_100000s" text,
"nightly_rank" real,
"weekly_rank" real
);
Question: What is the highest numbered nightly rank for any episode?
<|assistant|>
SELECT MAX("nightly_rank") FROM "australian_ratings";<|endoftext|>
|
<|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
);
Question: How many attended on december 2?
<|assistant|>
SELECT COUNT("location_attendance") FROM "regular_season" WHERE "date"='December 2';<|endoftext|>
|
<|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
);
Question: Who was he opponent on december 11?
<|assistant|>
SELECT "team" FROM "regular_season" WHERE "date"='December 11';<|endoftext|>
|
<|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
);
Question: What was the score against houston?
<|assistant|>
SELECT "score" FROM "regular_season" WHERE "team"='Houston';<|endoftext|>
|
<|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
);
Question: when did the @ indiana game take place?
<|assistant|>
SELECT "date" FROM "regular_season" WHERE "team"='@ Indiana';<|endoftext|>
|
<|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
);
Question: Name the score for madison square garden 18,828
<|assistant|>
SELECT "score" FROM "regular_season" WHERE "location_attendance"='Madison Square Garden 18,828';<|endoftext|>
|
<|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
);
Question: Name the number of date for dallas
<|assistant|>
SELECT COUNT("date") FROM "regular_season" WHERE "team"='Dallas';<|endoftext|>
|
<|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
);
Question: Name the high assists for january 15
<|assistant|>
SELECT "high_assists" FROM "regular_season" WHERE "date"='January 15';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_228973_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: What is the name of the episode that aired originally on November 10, 1998?
<|assistant|>
SELECT "title" FROM "table1_228973_5" WHERE "original_air_date"='November 10, 1998';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_228973_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: What episode number in the series originally aired on April 27, 1999?
<|assistant|>
SELECT MAX("no_in_series") FROM "table1_228973_5" WHERE "original_air_date"='April 27, 1999';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_228973_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: How many people wrote episode 68 in the series?
<|assistant|>
SELECT COUNT("written_by") FROM "table1_228973_5" WHERE "no_in_series"=68;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_228973_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: How many writers were there for episode named "embassy"?
<|assistant|>
SELECT COUNT("written_by") FROM "table1_228973_5" WHERE "title"='\"Embassy\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_228973_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: What date did "dungaree justice" originally air?
<|assistant|>
SELECT "original_air_date" FROM "table1_228973_5" WHERE "title"='\"Dungaree Justice\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_228973_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: Who directed the episode that originally aired on February 16, 1999?
<|assistant|>
SELECT "directed_by" FROM "table1_228973_5" WHERE "original_air_date"='February 16, 1999';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_228973_11" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: Who directed the episode titled "Two Towns"?
<|assistant|>
SELECT "directed_by" FROM "table1_228973_11" WHERE "title"='\"Two Towns\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_228973_11" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: The episode which originally aired on February 11, 2005 had which episode # of the season?
<|assistant|>
SELECT "no_in_season" FROM "table1_228973_11" WHERE "original_air_date"='February 11, 2005';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_228973_11" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: The episode which originally aired on December 17, 2004 was written by whom?
<|assistant|>
SELECT "written_by" FROM "table1_228973_11" WHERE "original_air_date"='December 17, 2004';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_228973_11" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: David James Elliott directed which episode number within the series?
<|assistant|>
SELECT "no_in_series" FROM "table1_228973_11" WHERE "directed_by"='David James Elliott';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_228973_11" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: Who directed the episode which originally aired February 4, 2005?
<|assistant|>
SELECT "directed_by" FROM "table1_228973_11" WHERE "original_air_date"='February 4, 2005';<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.