text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25287007_2" (
"june_10_11" text,
"march_27_29" text,
"january_15_16" text,
"november_3" text,
"august_21_22" text
);
Question: How many solar eclipse during June 10-11 and march 27-29 is 149?
<|assistant|>
SELECT "june_10_11" FROM "table1_25287007_2" WHERE "march_27_29"='149';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25287007_2" (
"june_10_11" text,
"march_27_29" text,
"january_15_16" text,
"november_3" text,
"august_21_22" text
);
Question: How many solar eclipse during august 21-22 and January 15-16 is 141?
<|assistant|>
SELECT "august_21_22" FROM "table1_25287007_2" WHERE "january_15_16"='141';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25287007_2" (
"june_10_11" text,
"march_27_29" text,
"january_15_16" text,
"november_3" text,
"august_21_22" text
);
Question: How many solar eclipse during January 15-16 and august 21-22 on august 21, 2017?
<|assistant|>
SELECT "january_15_16" FROM "table1_25287007_2" WHERE "august_21_22"='August 21, 2017';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"round" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
Question: Name the fastest lap for round 14
<|assistant|>
SELECT COUNT("fastest_lap") FROM "results" WHERE "round"='14';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"round" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
Question: Name the winning driver for 20 april
<|assistant|>
SELECT "winning_driver" FROM "results" WHERE "date"='20 April';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"round" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
Question: Name the circuit for 13 july
<|assistant|>
SELECT "circuit" FROM "results" WHERE "date"='13 July';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"round" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
Question: Name the fastest lap for round 3
<|assistant|>
SELECT "fastest_lap" FROM "results" WHERE "round"='3';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"round" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
Question: Name the fastest lap for piquet sports and silverstone
<|assistant|>
SELECT "fastest_lap" FROM "results" WHERE "winning_team"='Piquet Sports' AND "circuit"='Silverstone';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
Question: How many laps where the position is 10th and the races is smaller than 9.0?
<|assistant|>
SELECT COUNT("f_laps") FROM "career_summary" WHERE "position"='10th' AND "races"<9.0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
Question: What is the lowest amount of races?
<|assistant|>
SELECT MIN("races") FROM "career_summary";<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
Question: Which races have 137 points?
<|assistant|>
SELECT "races" FROM "career_summary" WHERE "points"='137';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
Question: What team has 137 points?
<|assistant|>
SELECT "team" FROM "career_summary" WHERE "points"='137';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" text,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
Question: How many points were scored when the podiums is 0 and position is 10th?
<|assistant|>
SELECT "points" FROM "career_summary" WHERE "podiums"=0 AND "position"='10th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "setting_the_cap" (
"authority" text,
"rate_or_precept" text,
"budget_limit_m" text,
"budget_plans_m" text,
"rate_limit_p" text,
"rate_change_pct" text,
"desired_rate_p" text,
"desired_rate_change_pct" text
);
Question: What is the rate limit when the desired rate change (%) is +40.4?
<|assistant|>
SELECT "rate_limit_p" FROM "setting_the_cap" WHERE "desired_rate_change_pct"='+40.4';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "setting_the_cap" (
"authority" text,
"rate_or_precept" text,
"budget_limit_m" text,
"budget_plans_m" text,
"rate_limit_p" text,
"rate_change_pct" text,
"desired_rate_p" text,
"desired_rate_change_pct" text
);
Question: What is the rate limit when budget plans (£m) is limit agreed?
<|assistant|>
SELECT "rate_limit_p" FROM "setting_the_cap" WHERE "budget_plans_m"='limit agreed';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "setting_the_cap" (
"authority" text,
"rate_or_precept" text,
"budget_limit_m" text,
"budget_plans_m" text,
"rate_limit_p" text,
"rate_change_pct" text,
"desired_rate_p" text,
"desired_rate_change_pct" text
);
Question: What is the rate limit when the desired rate (p) is 162?
<|assistant|>
SELECT "rate_limit_p" FROM "setting_the_cap" WHERE "desired_rate_p"='162';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "setting_the_cap" (
"authority" text,
"rate_or_precept" text,
"budget_limit_m" text,
"budget_plans_m" text,
"rate_limit_p" text,
"rate_change_pct" text,
"desired_rate_p" text,
"desired_rate_change_pct" text
);
Question: What is the rate change % when the rate limit is 82.86?
<|assistant|>
SELECT "rate_change_pct" FROM "setting_the_cap" WHERE "rate_limit_p"='82.86';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "setting_the_cap" (
"authority" text,
"rate_or_precept" text,
"budget_limit_m" text,
"budget_plans_m" text,
"rate_limit_p" text,
"rate_change_pct" text,
"desired_rate_p" text,
"desired_rate_change_pct" text
);
Question: What is the desired rate when the rate limit (p) is 50.33?
<|assistant|>
SELECT "desired_rate_p" FROM "setting_the_cap" WHERE "rate_limit_p"='50.33';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "setting_the_cap" (
"authority" text,
"rate_or_precept" text,
"budget_limit_m" text,
"budget_plans_m" text,
"rate_limit_p" text,
"rate_change_pct" text,
"desired_rate_p" text,
"desired_rate_change_pct" text
);
Question: What is the authority who set the budget limit (£m) at 900?
<|assistant|>
SELECT "authority" FROM "setting_the_cap" WHERE "budget_limit_m"='900';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ratings" (
"order" real,
"episode" text,
"u_s_air_date" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"viewers_millions" text,
"rank_timeslot" real
);
Question: What was the highest share?
<|assistant|>
SELECT MAX("share") FROM "ratings";<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25331766_3" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
Question: What was the final score of the game with 7523 in attendance?
<|assistant|>
SELECT "final_score" FROM "table1_25331766_3" WHERE "attendance"=7523;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25331766_3" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
Question: What is the lowest attendance?
<|assistant|>
SELECT MIN("attendance") FROM "table1_25331766_3";<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_stats" (
"player" text,
"games_played" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
Question: If the rebounds are at 87, what are the amount of steals?
<|assistant|>
SELECT "steals" FROM "player_stats" WHERE "rebounds"=87;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_stats" (
"player" text,
"games_played" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
Question: How many players 89 points?
<|assistant|>
SELECT COUNT("blocks") FROM "player_stats" WHERE "points"=89;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_stats" (
"player" text,
"games_played" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
Question: If the Steals are 20, what are the blocks?
<|assistant|>
SELECT MAX("blocks") FROM "player_stats" WHERE "steals"=20;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25341765_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
Question: How many millions of viewers did the episode directed by Jeffrey Blitz have?
<|assistant|>
SELECT "u_s_viewers_million" FROM "table1_25341765_1" WHERE "directed_by"='Jeffrey Blitz';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25341765_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
Question: Who directed the episode that had 5.92 million viewers?
<|assistant|>
SELECT "directed_by" FROM "table1_25341765_1" WHERE "u_s_viewers_million"='5.92';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25341765_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
Question: What was the name of the episode Alan Yang wrote?
<|assistant|>
SELECT "title" FROM "table1_25341765_1" WHERE "written_by"='Alan Yang';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25341765_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
Question: How many episodes were directed by Michael McCullers?
<|assistant|>
SELECT COUNT("original_air_date") FROM "table1_25341765_1" WHERE "directed_by"='Michael McCullers';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
Question: When 3rd is the position what is the lowest amount of points?
<|assistant|>
SELECT MIN("points") FROM "career_summary" WHERE "position"='3rd';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
Question: When art grand prix is the team and 2010 is the season how many wins are there?
<|assistant|>
SELECT COUNT("wins") FROM "career_summary" WHERE "season"=2010 AND "team"='ART Grand Prix';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
Question: When 7th is the position and 15 is the race who is the team?
<|assistant|>
SELECT "team" FROM "career_summary" WHERE "races"=15 AND "position"='7th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
Question: What is the lowest overall amount of poles?
<|assistant|>
SELECT MIN("poles") FROM "career_summary";<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" real,
"position" text
);
Question: When racing engineering is the team and 2012 is the team what is the position?
<|assistant|>
SELECT "position" FROM "career_summary" WHERE "season"=2012 AND "team"='Racing Engineering';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_prisons" (
"facility" text,
"location" text,
"year_opened" text,
"major_facility" text,
"population_gender" text,
"capacity" real,
"custody_level_s" text
);
Question: Is the facility opened in 1968 a major facility?
<|assistant|>
SELECT "major_facility" FROM "current_prisons" WHERE "year_opened"='1968';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_prisons" (
"facility" text,
"location" text,
"year_opened" text,
"major_facility" text,
"population_gender" text,
"capacity" real,
"custody_level_s" text
);
Question: What is the custody level of the facility in Shelton?
<|assistant|>
SELECT "custody_level_s" FROM "current_prisons" WHERE "location"='Shelton';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_prisons" (
"facility" text,
"location" text,
"year_opened" text,
"major_facility" text,
"population_gender" text,
"capacity" real,
"custody_level_s" text
);
Question: Is the Washington Corrections Center for Women (WCCW) a major facility?
<|assistant|>
SELECT "major_facility" FROM "current_prisons" WHERE "facility"='Washington Corrections Center for Women (WCCW)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_prisons" (
"facility" text,
"location" text,
"year_opened" text,
"major_facility" text,
"population_gender" text,
"capacity" real,
"custody_level_s" text
);
Question: What is the capacity for a facility opened in 1956?
<|assistant|>
SELECT COUNT("capacity") FROM "current_prisons" WHERE "year_opened"='1956';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_prisons" (
"facility" text,
"location" text,
"year_opened" text,
"major_facility" text,
"population_gender" text,
"capacity" real,
"custody_level_s" text
);
Question: What facility opening in 1954?
<|assistant|>
SELECT "facility" FROM "current_prisons" WHERE "year_opened"='1954';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_stats" (
"player" text,
"games_played" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
Question: Which player had 6 assists?
<|assistant|>
SELECT "player" FROM "player_stats" WHERE "assists"=6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_stats" (
"player" text,
"games_played" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
Question: What is the fewest steals any player had?
<|assistant|>
SELECT MIN("steals") FROM "player_stats";<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_stats" (
"player" text,
"games_played" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
Question: How many steals did Kelly Miller have?
<|assistant|>
SELECT MIN("steals") FROM "player_stats" WHERE "player"='Kelly Miller';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_stats" (
"player" text,
"games_played" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
Question: Which player had 9 blocks?
<|assistant|>
SELECT "player" FROM "player_stats" WHERE "blocks"=9;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_stats" (
"player" text,
"games_played" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
Question: How many rebounds did Tammy Sutton-Brown have?
<|assistant|>
SELECT "rebounds" FROM "player_stats" WHERE "player"='Tammy Sutton-Brown';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2534578_1" (
"school_year" text,
"language" text,
"science" text,
"reading" text,
"mathematics" text,
"social_studies" text
);
Question: What was the science score in the year there was a social studies score of 93.56?
<|assistant|>
SELECT "science" FROM "table1_2534578_1" WHERE "social_studies"='93.56';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2534578_1" (
"school_year" text,
"language" text,
"science" text,
"reading" text,
"mathematics" text,
"social_studies" text
);
Question: How many years did the school have a mathetmatics score of 98.02?
<|assistant|>
SELECT COUNT("science") FROM "table1_2534578_1" WHERE "mathematics"='98.02';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2534578_1" (
"school_year" text,
"language" text,
"science" text,
"reading" text,
"mathematics" text,
"social_studies" text
);
Question: What was the reading score in the year the science score was 96.13?
<|assistant|>
SELECT "reading" FROM "table1_2534578_1" WHERE "science"='96.13';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2534578_1" (
"school_year" text,
"language" text,
"science" text,
"reading" text,
"mathematics" text,
"social_studies" text
);
Question: What was the language score when the reading score was 94.47?
<|assistant|>
SELECT "language" FROM "table1_2534578_1" WHERE "reading"='94.47';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_stats" (
"player" text,
"games_played" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
Question: How many values for points have Sophia Witherspoon as the player?
<|assistant|>
SELECT COUNT("points") FROM "player_stats" WHERE "player"='Sophia Witherspoon';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_stats" (
"player" text,
"games_played" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
Question: What is the highest value for points?
<|assistant|>
SELECT MAX("points") FROM "player_stats";<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_stats" (
"player" text,
"games_played" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
Question: What is every value for rebounds when steals is 19?
<|assistant|>
SELECT "rebounds" FROM "player_stats" WHERE "steals"=19;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_stats" (
"player" text,
"games_played" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
Question: What is every value for points if rebounds is 6 and blocks is 0?
<|assistant|>
SELECT "points" FROM "player_stats" WHERE "rebounds"=6 AND "blocks"=0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_stats" (
"player" text,
"games_played" real,
"rebounds" real,
"assists" real,
"steals" real,
"blocks" real,
"points" real
);
Question: What is every entry for assists if the player is Lynn Pride?
<|assistant|>
SELECT "assists" FROM "player_stats" WHERE "player"='Lynn Pride';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25356350_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"viewers_in_millions" text
);
Question: What is the air date of the episode written by Itamar Moses?
<|assistant|>
SELECT "original_air_date" FROM "table1_25356350_3" WHERE "written_by"='Itamar Moses';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25355392_2" (
"june_10_11" text,
"march_27_29" text,
"january_15_16" text,
"november_3" text,
"august_21_22" text
);
Question: What is the june 10-11 when august 21-22 is august 21, 2017?
<|assistant|>
SELECT "june_10_11" FROM "table1_25355392_2" WHERE "august_21_22"='August 21, 2017';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25355392_2" (
"june_10_11" text,
"march_27_29" text,
"january_15_16" text,
"november_3" text,
"august_21_22" text
);
Question: how many times is march 27-29 is 129?
<|assistant|>
SELECT COUNT("november_3") FROM "table1_25355392_2" WHERE "march_27_29"='129';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25355392_2" (
"june_10_11" text,
"march_27_29" text,
"january_15_16" text,
"november_3" text,
"august_21_22" text
);
Question: what is june 10-11 when march 27-29 is 149?
<|assistant|>
SELECT "june_10_11" FROM "table1_25355392_2" WHERE "march_27_29"='149';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25355392_2" (
"june_10_11" text,
"march_27_29" text,
"january_15_16" text,
"november_3" text,
"august_21_22" text
);
Question: what is november 3 when june 10-11 is june 10, 1964?
<|assistant|>
SELECT "november_3" FROM "table1_25355392_2" WHERE "june_10_11"='June 10, 1964';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25355392_2" (
"june_10_11" text,
"march_27_29" text,
"january_15_16" text,
"november_3" text,
"august_21_22" text
);
Question: what is march 27-29 when november 3 is 133?
<|assistant|>
SELECT "march_27_29" FROM "table1_25355392_2" WHERE "november_3"='133';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25355392_2" (
"june_10_11" text,
"march_27_29" text,
"january_15_16" text,
"november_3" text,
"august_21_22" text
);
Question: What is january 15-16 when november 3 is 153?
<|assistant|>
SELECT "january_15_16" FROM "table1_25355392_2" WHERE "november_3"='153';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25355501_2" (
"june_10_11" text,
"march_27_29" text,
"january_15_16" text,
"november_3" text,
"august_21_22" text
);
Question: january 15-16 when august 21-22 is august 22, 1979?
<|assistant|>
SELECT "january_15_16" FROM "table1_25355501_2" WHERE "august_21_22"='August 22, 1979';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25355501_2" (
"june_10_11" text,
"march_27_29" text,
"january_15_16" text,
"november_3" text,
"august_21_22" text
);
Question: How many entries are shown for november 3 when january 15-16 is 141?
<|assistant|>
SELECT COUNT("november_3") FROM "table1_25355501_2" WHERE "january_15_16"='141';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25355501_2" (
"june_10_11" text,
"march_27_29" text,
"january_15_16" text,
"november_3" text,
"august_21_22" text
);
Question: march 27-29 where june 10-11 is 127?
<|assistant|>
SELECT "march_27_29" FROM "table1_25355501_2" WHERE "june_10_11"='127';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25355501_2" (
"june_10_11" text,
"march_27_29" text,
"january_15_16" text,
"november_3" text,
"august_21_22" text
);
Question: june 10-11 when november 3 is 133?
<|assistant|>
SELECT "june_10_11" FROM "table1_25355501_2" WHERE "november_3"='133';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25355501_2" (
"june_10_11" text,
"march_27_29" text,
"january_15_16" text,
"november_3" text,
"august_21_22" text
);
Question: june 10-11 when january 15-16 is january 15, 1991?
<|assistant|>
SELECT "june_10_11" FROM "table1_25355501_2" WHERE "january_15_16"='January 15, 1991';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25355501_2" (
"june_10_11" text,
"march_27_29" text,
"january_15_16" text,
"november_3" text,
"august_21_22" text
);
Question: What is shown for november 3 when august 21-22 is august 22, 1998?
<|assistant|>
SELECT "november_3" FROM "table1_25355501_2" WHERE "august_21_22"='August 22, 1998';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"position_in_table" text,
"replaced_by" text,
"date_of_appointment" text
);
Question: Name the number of teams for 11th position september 10
<|assistant|>
SELECT COUNT("team") FROM "managerial_changes" WHERE "position_in_table"='11th' AND "date_of_appointment"='September 10';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"position_in_table" text,
"replaced_by" text,
"date_of_appointment" text
);
Question: Name the replaced by for august 9
<|assistant|>
SELECT "replaced_by" FROM "managerial_changes" WHERE "date_of_vacancy"='August 9' AND "date_of_appointment"='August 9';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"num" real,
"name" text,
"position" text,
"height" text,
"weight" real,
"year" text,
"home_town" text,
"last_school" text
);
Question: Name the most number for charvez davis
<|assistant|>
SELECT MAX("num") FROM "roster" WHERE "name"='Charvez Davis';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"num" real,
"name" text,
"position" text,
"height" text,
"weight" real,
"year" text,
"home_town" text,
"last_school" text
);
Question: Name the most height
<|assistant|>
SELECT MAX("weight") FROM "roster";<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"num" real,
"name" text,
"position" text,
"height" text,
"weight" real,
"year" text,
"home_town" text,
"last_school" text
);
Question: Name the number of home town for number being 32
<|assistant|>
SELECT COUNT("home_town") FROM "roster" WHERE "num"=32;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"num" real,
"name" text,
"position" text,
"height" text,
"weight" real,
"year" text,
"home_town" text,
"last_school" text
);
Question: Name the total number of height for number 32
<|assistant|>
SELECT COUNT("height") FROM "roster" WHERE "num"=32;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"num" real,
"name" text,
"position" text,
"height" text,
"weight" real,
"year" text,
"home_town" text,
"last_school" text
);
Question: Name the number for florida air academy
<|assistant|>
SELECT "num" FROM "roster" WHERE "last_school"='Florida Air Academy';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"num" real,
"name" text,
"position" text,
"height" text,
"weight" real,
"year" text,
"home_town" text,
"last_school" text
);
Question: Name the height for demetrius jemison
<|assistant|>
SELECT "height" FROM "roster" WHERE "name"='Demetrius Jemison';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "points_table" (
"team" text,
"played" real,
"won" real,
"lost" real,
"no_result" real,
"abandoned" real,
"bonus_points" real,
"total_points" real,
"net_run_rate" text
);
Question: How many wins did Canterbury Wizards have?
<|assistant|>
SELECT MAX("won") FROM "points_table" WHERE "team"='Canterbury Wizards';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "points_table" (
"team" text,
"played" real,
"won" real,
"lost" real,
"no_result" real,
"abandoned" real,
"bonus_points" real,
"total_points" real,
"net_run_rate" text
);
Question: What team had a net run rate of 0.134?
<|assistant|>
SELECT "team" FROM "points_table" WHERE "net_run_rate"='0.134';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "points_table" (
"team" text,
"played" real,
"won" real,
"lost" real,
"no_result" real,
"abandoned" real,
"bonus_points" real,
"total_points" real,
"net_run_rate" text
);
Question: What's the largest number of abandoned games by any of the teams?
<|assistant|>
SELECT MAX("abandoned") FROM "points_table";<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "points_table" (
"team" text,
"played" real,
"won" real,
"lost" real,
"no_result" real,
"abandoned" real,
"bonus_points" real,
"total_points" real,
"net_run_rate" text
);
Question: How many different net run rates did the team with 19 total points have?
<|assistant|>
SELECT COUNT("net_run_rate") FROM "points_table" WHERE "total_points"=19;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
Question: What was the team that scored 56 points?Qh
<|assistant|>
SELECT "team" FROM "career_summary" WHERE "points"='56';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
Question: What was the earliest season where a team got a 29th position?
<|assistant|>
SELECT MIN("season") FROM "career_summary" WHERE "position"='29th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
Question: What was the recorded flaps of HBR Motorsport team?
<|assistant|>
SELECT "f_laps" FROM "career_summary" WHERE "team"='HBR Motorsport';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
Question: What was the series where a team scored 56 points?
<|assistant|>
SELECT "series" FROM "career_summary" WHERE "points"='56';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_summary" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"poles" real,
"f_laps" real,
"podiums" real,
"points" text,
"position" text
);
Question: How many team position scored 56 points?
<|assistant|>
SELECT COUNT("position") FROM "career_summary" WHERE "points"='56';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25380472_2" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
Question: On what dates was the final score of the game L 14–24?
<|assistant|>
SELECT "date" FROM "table1_25380472_2" WHERE "final_score"='L 14–24';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25380472_2" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
Question: How many game sites are there where the team record is 1–7?
<|assistant|>
SELECT COUNT("game_site") FROM "table1_25380472_2" WHERE "team_record"='1–7';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25380472_2" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
Question: On week 7, what were the opponents?
<|assistant|>
SELECT "opponent" FROM "table1_25380472_2" WHERE "week"=7;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25380472_2" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
Question: On what game sites are there where the team record is 0–5?
<|assistant|>
SELECT "game_site" FROM "table1_25380472_2" WHERE "team_record"='0–5';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25380472_2" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
Question: What game sites are where the team record is 1–6?
<|assistant|>
SELECT "game_site" FROM "table1_25380472_2" WHERE "team_record"='1–6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25380472_2" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
Question: In game site AOL Arena, who are all the opponents?
<|assistant|>
SELECT "opponent" FROM "table1_25380472_2" WHERE "game_site"='AOL Arena';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_asian" (
"letters" text,
"organization" text,
"nickname" text,
"founding_date" text,
"founding_university" text,
"type" text
);
Question: What organization had the founding date of 1998-11-08?
<|assistant|>
SELECT "organization" FROM "south_asian" WHERE "founding_date"='1998-11-08';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "south_asian" (
"letters" text,
"organization" text,
"nickname" text,
"founding_date" text,
"founding_university" text,
"type" text
);
Question: How many letters were given to the organization with a founding date of 1997-12-12?
<|assistant|>
SELECT COUNT("letters") FROM "south_asian" WHERE "founding_date"='1997-12-12';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25374338_1" (
"episode" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
Question: What is the song choice where the original artist is Gino Paoli?
<|assistant|>
SELECT COUNT("song_choice") FROM "table1_25374338_1" WHERE "original_artist"='Gino Paoli';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25374338_1" (
"episode" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
Question: What is the theme where the original artist is Noemi feat. Fiorella Mannoia?
<|assistant|>
SELECT "theme" FROM "table1_25374338_1" WHERE "original_artist"='Noemi feat. Fiorella Mannoia';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25374338_1" (
"episode" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
Question: What is the order number where the song choice is "l'appuntamento"?
<|assistant|>
SELECT "order_num" FROM "table1_25374338_1" WHERE "song_choice"='\"L''appuntamento\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25374338_1" (
"episode" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
Question: What is the song choice where the episode is Live Show 1?
<|assistant|>
SELECT "song_choice" FROM "table1_25374338_1" WHERE "episode"='Live Show 1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25374338_1" (
"episode" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
Question: What is the result where the original artist is Prince and the Revolution?
<|assistant|>
SELECT "result" FROM "table1_25374338_1" WHERE "original_artist"='Prince and The Revolution';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_25374338_1" (
"episode" text,
"theme" text,
"song_choice" text,
"original_artist" text,
"order_num" text,
"result" text
);
Question: What is the theme where the original artist is AC/DC?
<|assistant|>
SELECT "theme" FROM "table1_25374338_1" WHERE "original_artist"='AC/DC';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "asian_american" (
"letters" text,
"organization" text,
"nickname" text,
"founding_date" text,
"founding_university" text,
"type" text
);
Question: what type of organization is sigma phi omega?
<|assistant|>
SELECT "type" FROM "asian_american" WHERE "organization"='Sigma Phi Omega';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "asian_american" (
"letters" text,
"organization" text,
"nickname" text,
"founding_date" text,
"founding_university" text,
"type" text
);
Question: how many types of organization were founded in san diego state university?
<|assistant|>
SELECT COUNT("type") FROM "asian_american" WHERE "founding_university"='San Diego State University';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "asian_american" (
"letters" text,
"organization" text,
"nickname" text,
"founding_date" text,
"founding_university" text,
"type" text
);
Question: name the sorority a.k.a. "sigmas" that was founded in the university of southern california.
<|assistant|>
SELECT "organization" FROM "asian_american" WHERE "founding_university"='University of Southern California' AND "type"='Sorority' AND "nickname"='\"Sigmas\"';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.