text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26808178_3" (
"series_num" real,
"episode_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: Which series # had 0.852 U.S. viewers(millions)?
<|assistant|>
SELECT MAX("series_num") FROM "table1_26808178_3" WHERE "u_s_viewers_millions"='0.852';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26808178_3" (
"series_num" real,
"episode_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: Which original air date had 0.871 U.S. viewers (millions)?
<|assistant|>
SELECT "original_air_date" FROM "table1_26808178_3" WHERE "u_s_viewers_millions"='0.871';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26808178_3" (
"series_num" real,
"episode_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: Which series # had 0.645 U.S. viewers(millions)?
<|assistant|>
SELECT MAX("series_num") FROM "table1_26808178_3" WHERE "u_s_viewers_millions"='0.645';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26808178_3" (
"series_num" real,
"episode_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: Who was the writer for the episode entitled "dic pics"?
<|assistant|>
SELECT "written_by" FROM "table1_26808178_3" WHERE "title"='\"Dic Pics\"';<|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_name" text,
"races" real,
"wins" real,
"poles" real,
"podiums" real,
"points" real,
"final_placing" text
);
Question: When 12th is the final placing what is the wins?
<|assistant|>
SELECT "wins" FROM "career_summary" WHERE "final_placing"='12th';<|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_name" text,
"races" real,
"wins" real,
"poles" real,
"podiums" real,
"points" real,
"final_placing" text
);
Question: When 24th is the final placing how many wins are there?
<|assistant|>
SELECT COUNT("wins") FROM "career_summary" WHERE "final_placing"='24th';<|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_name" text,
"races" real,
"wins" real,
"poles" real,
"podiums" real,
"points" real,
"final_placing" text
);
Question: What is the lowest overall amount of wins?
<|assistant|>
SELECT MIN("wins") FROM "career_summary";<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26824484_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
Question: What date did the episode with production code 3aky05 air?
<|assistant|>
SELECT "original_air_date" FROM "table1_26824484_1" WHERE "production_code"='3AKY05';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26824484_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
Question: Which episode was directed by Jeff Woolnough and written by Christopher Ambrose?
<|assistant|>
SELECT "title" FROM "table1_26824484_1" WHERE "directed_by"='Jeff Woolnough' AND "written_by"='Christopher Ambrose';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26824484_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
Question: What was the original air date of the episode that was directed by Jessica Landaw?
<|assistant|>
SELECT "original_air_date" FROM "table1_26824484_1" WHERE "directed_by"='Jessica Landaw';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26825349_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
Question: What is the episode number of the episode with a production code of 4aky14?
<|assistant|>
SELECT "no_in_season" FROM "table1_26825349_1" WHERE "production_code"='4AKY14';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26825349_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
Question: "The con man in the meth lab" was which episode number?
<|assistant|>
SELECT "no_in_season" FROM "table1_26825349_1" WHERE "title"='\"The Con Man in the Meth Lab\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26825349_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
Question: The episode that had 8.62 million US viewers originally aired on which date?
<|assistant|>
SELECT "original_air_date" FROM "table1_26825349_1" WHERE "u_s_viewers_millions"='8.62';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_five" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: What was the result in the game broadcast on the Big East Network?
<|assistant|>
SELECT "result" FROM "week_five" WHERE "broadcast"='Big East Network';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_five" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: What was the result in the game where the visiting team was Louisiana-Monroe?
<|assistant|>
SELECT "result" FROM "week_five" WHERE "visiting_team"='Louisiana-Monroe';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_five" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: Who was the home team in the game broadcast on the Big East Network?
<|assistant|>
SELECT "home_team" FROM "week_five" WHERE "broadcast"='Big East Network';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_five" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: What was the result in the game broadcast on the SEC Network?
<|assistant|>
SELECT "result" FROM "week_five" WHERE "broadcast"='SEC Network';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "electoral_districts" (
"district" real,
"region" text,
"communes" text,
"population_2002_census" real,
"pct_of_total_population" text,
"vap" real,
"enrolled" real,
"total_votes" real,
"valid_votes" real,
"turnout" text,
"e_vap" text,
"t_vap" text,
"v_vap" text
);
Question: What is the number enrolled where t/vap is exactly 52.9%?
<|assistant|>
SELECT "enrolled" FROM "electoral_districts" WHERE "t_vap"='52.9%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "electoral_districts" (
"district" real,
"region" text,
"communes" text,
"population_2002_census" real,
"pct_of_total_population" text,
"vap" real,
"enrolled" real,
"total_votes" real,
"valid_votes" real,
"turnout" text,
"e_vap" text,
"t_vap" text,
"v_vap" text
);
Question: How many districts have t/vap values of 67.0%?
<|assistant|>
SELECT COUNT("district") FROM "electoral_districts" WHERE "t_vap"='67.0%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "electoral_districts" (
"district" real,
"region" text,
"communes" text,
"population_2002_census" real,
"pct_of_total_population" text,
"vap" real,
"enrolled" real,
"total_votes" real,
"valid_votes" real,
"turnout" text,
"e_vap" text,
"t_vap" text,
"v_vap" text
);
Question: What is the e/vap value for a turnout of exactly 85.7%?
<|assistant|>
SELECT "e_vap" FROM "electoral_districts" WHERE "turnout"='85.7%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "electoral_districts" (
"district" real,
"region" text,
"communes" text,
"population_2002_census" real,
"pct_of_total_population" text,
"vap" real,
"enrolled" real,
"total_votes" real,
"valid_votes" real,
"turnout" text,
"e_vap" text,
"t_vap" text,
"v_vap" text
);
Question: What communes have enrolled values of 174946?
<|assistant|>
SELECT "communes" FROM "electoral_districts" WHERE "enrolled"=174946;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "electoral_districts" (
"district" real,
"region" text,
"communes" text,
"population_2002_census" real,
"pct_of_total_population" text,
"vap" real,
"enrolled" real,
"total_votes" real,
"valid_votes" real,
"turnout" text,
"e_vap" text,
"t_vap" text,
"v_vap" text
);
Question: How many total votes values are associated with t/vap values of 45.3%?
<|assistant|>
SELECT COUNT("total_votes") FROM "electoral_districts" WHERE "t_vap"='45.3%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "electoral_districts" (
"district" real,
"region" text,
"communes" text,
"population_2002_census" real,
"pct_of_total_population" text,
"vap" real,
"enrolled" real,
"total_votes" real,
"valid_votes" real,
"turnout" text,
"e_vap" text,
"t_vap" text,
"v_vap" text
);
Question: How many vap values are associated with 140469 valid votes?
<|assistant|>
SELECT COUNT("vap") FROM "electoral_districts" WHERE "valid_votes"=140469;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_four" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: Name the time for georgia
<|assistant|>
SELECT "time" FROM "week_four" WHERE "visiting_team"='Georgia';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_four" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: Name the time for #1 alabama
<|assistant|>
SELECT "time" FROM "week_four" WHERE "visiting_team"='#1 Alabama';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_eight" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: Name the time for result msst 29–24
<|assistant|>
SELECT "time" FROM "week_eight" WHERE "result"='MSST 29–24';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_eight" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: Name the number of time for uab
<|assistant|>
SELECT COUNT("time") FROM "week_eight" WHERE "visiting_team"='UAB';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_eight" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: Name the date for broadcast fsn
<|assistant|>
SELECT "date" FROM "week_eight" WHERE "broadcast"='FSN';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_eight" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: Name the broadcast for 7:00pm and mississippi state
<|assistant|>
SELECT "broadcast" FROM "week_eight" WHERE "time"='7:00pm' AND "home_team"='Mississippi State';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_eight" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: Name the date for espn
<|assistant|>
SELECT "date" FROM "week_eight" WHERE "broadcast"='ESPN';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_eight" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: Name the broadcast for davis-wade stadium • starkville ms
<|assistant|>
SELECT "broadcast" FROM "week_eight" WHERE "site"='Davis-Wade Stadium • Starkville MS';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_seven" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: On what network was the Kentucky game broadcast?
<|assistant|>
SELECT "broadcast" FROM "week_seven" WHERE "home_team"='Kentucky';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_one" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: Where's the louisiana-lafayette as a visiting team?
<|assistant|>
SELECT "site" FROM "week_one" WHERE "visiting_team"='Louisiana-Lafayette';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_one" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: What were the results of the tennessee tech as a visiting team?
<|assistant|>
SELECT "result" FROM "week_one" WHERE "visiting_team"='Tennessee Tech';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_one" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: What is the home team where the San Jose state is the visiting team?
<|assistant|>
SELECT "home_team" FROM "week_one" WHERE "visiting_team"='San Jose State';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_one" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: What were the results in the bryant-denny stadium • tuscaloosa, al?
<|assistant|>
SELECT "result" FROM "week_one" WHERE "site"='Bryant-Denny Stadium • Tuscaloosa, AL';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_one" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: What home team is at 7:30pm in ESPN?
<|assistant|>
SELECT "home_team" FROM "week_one" WHERE "time"='7:30pm' AND "broadcast"='ESPN';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_three" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: If the visiting team is Clemson, when was the time?
<|assistant|>
SELECT "time" FROM "week_three" WHERE "visiting_team"='Clemson';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_three" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: How many times was the site wallace wade stadium • durham, nc?
<|assistant|>
SELECT COUNT("attendance") FROM "week_three" WHERE "site"='Wallace Wade Stadium • Durham, NC';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_three" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: If the site was wallace wade stadium • durham, nc, what was the result?
<|assistant|>
SELECT "result" FROM "week_three" WHERE "site"='Wallace Wade Stadium • Durham, NC';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_three" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: If the site is sanford stadium • athens, ga, what is the date?
<|assistant|>
SELECT "date" FROM "week_three" WHERE "site"='Sanford Stadium • Athens, GA';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26845668_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
Question: What is the production code for the movie with 4.32 million U.S. viewers?
<|assistant|>
SELECT "production_code" FROM "table1_26845668_1" WHERE "u_s_viewers_millions"='4.32';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_two" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: How many times was Louisiana-Monroe a visiting team?
<|assistant|>
SELECT COUNT("time") FROM "week_two" WHERE "visiting_team"='Louisiana-Monroe';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_two" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: List all dates where South Florida was a visiting team.
<|assistant|>
SELECT "date" FROM "week_two" WHERE "visiting_team"='South Florida';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_two" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: How many times was #7 Oregon a visiting team?
<|assistant|>
SELECT "time" FROM "week_two" WHERE "visiting_team"='#7 Oregon';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_two" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: List all home teams when Western Kentucky was the visiting team.
<|assistant|>
SELECT "home_team" FROM "week_two" WHERE "visiting_team"='Western Kentucky';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_two" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: List all times with Kentucky as the home team.
<|assistant|>
SELECT "time" FROM "week_two" WHERE "home_team"='Kentucky';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009" (
"round_num" text,
"home_team" text,
"win_loss" text,
"score" text,
"opposition" text,
"location" text
);
Question: What is the score when the opposition is mid canterbury?
<|assistant|>
SELECT "score" FROM "2009" WHERE "opposition"='Mid Canterbury';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009" (
"round_num" text,
"home_team" text,
"win_loss" text,
"score" text,
"opposition" text,
"location" text
);
Question: what is the home team when the opposition is east coast?
<|assistant|>
SELECT "home_team" FROM "2009" WHERE "opposition"='East Coast';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009" (
"round_num" text,
"home_team" text,
"win_loss" text,
"score" text,
"opposition" text,
"location" text
);
Question: What is the home team when the opposition is wairarapa bush?
<|assistant|>
SELECT "home_team" FROM "2009" WHERE "opposition"='Wairarapa Bush';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009" (
"round_num" text,
"home_team" text,
"win_loss" text,
"score" text,
"opposition" text,
"location" text
);
Question: what is the home team when the round # is round 1?
<|assistant|>
SELECT "home_team" FROM "2009" WHERE "round_num"='Round 1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009" (
"round_num" text,
"home_team" text,
"win_loss" text,
"score" text,
"opposition" text,
"location" text
);
Question: Who is the opposition when the score is 37 - 28?
<|assistant|>
SELECT "opposition" FROM "2009" WHERE "score"='37 - 28';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009" (
"round_num" text,
"home_team" text,
"win_loss" text,
"score" text,
"opposition" text,
"location" text
);
Question: What is the location when the opposition is mid canterbury?
<|assistant|>
SELECT "location" FROM "2009" WHERE "opposition"='Mid Canterbury';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008" (
"round_num" text,
"home_team" text,
"win_loss" text,
"score" text,
"opposition" text,
"location" text
);
Question: What was the score in round 7?
<|assistant|>
SELECT "score" FROM "2008" WHERE "round_num"='Round 7';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008" (
"round_num" text,
"home_team" text,
"win_loss" text,
"score" text,
"opposition" text,
"location" text
);
Question: Who was the home team when the opposition was Buller?
<|assistant|>
SELECT "home_team" FROM "2008" WHERE "opposition"='Buller';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008" (
"round_num" text,
"home_team" text,
"win_loss" text,
"score" text,
"opposition" text,
"location" text
);
Question: Was it a win or loss for Wanganui in round 3?
<|assistant|>
SELECT "win_loss" FROM "2008" WHERE "round_num"='Round 3';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008" (
"round_num" text,
"home_team" text,
"win_loss" text,
"score" text,
"opposition" text,
"location" text
);
Question: What was the location when the opposition was East Coast?
<|assistant|>
SELECT "location" FROM "2008" WHERE "opposition"='East Coast';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008" (
"round_num" text,
"home_team" text,
"win_loss" text,
"score" text,
"opposition" text,
"location" text
);
Question: What was the score when the opposition was West Coast in Wanganui?
<|assistant|>
SELECT "score" FROM "2008" WHERE "opposition"='West Coast' AND "location"='Wanganui';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008" (
"round_num" text,
"home_team" text,
"win_loss" text,
"score" text,
"opposition" text,
"location" text
);
Question: Was it a win or a loss for Wanganui in Paeroa?
<|assistant|>
SELECT "win_loss" FROM "2008" WHERE "location"='Paeroa';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26866205_1" (
"series_num" real,
"episode_num" real,
"title" text,
"director" text,
"writer" text,
"original_airdate" text
);
Question: What is every original air date for series# of 26?
<|assistant|>
SELECT "original_airdate" FROM "table1_26866205_1" WHERE "series_num"=26;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26866277_1" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer" text,
"original_airdate" text
);
Question: Who is the director where title is "the comeback"?
<|assistant|>
SELECT "director" FROM "table1_26866277_1" WHERE "title"='\"The Comeback\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26866233_1" (
"series_num" real,
"episode_num" real,
"title" text,
"director" text,
"writer" text,
"original_airdate" text
);
Question: The episode with the title "Written in Dust" is what episode #?
<|assistant|>
SELECT "episode_num" FROM "table1_26866233_1" WHERE "title"='\"Written in Dust\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26866233_1" (
"series_num" real,
"episode_num" real,
"title" text,
"director" text,
"writer" text,
"original_airdate" text
);
Question: Who are the directors of the episode in series # 54?
<|assistant|>
SELECT "director" FROM "table1_26866233_1" WHERE "series_num"=54;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26866233_1" (
"series_num" real,
"episode_num" real,
"title" text,
"director" text,
"writer" text,
"original_airdate" text
);
Question: The director of the episode with the title "The Sky is Falling" is who?
<|assistant|>
SELECT "director" FROM "table1_26866233_1" WHERE "title"='\"The Sky is Falling\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26866233_1" (
"series_num" real,
"episode_num" real,
"title" text,
"director" text,
"writer" text,
"original_airdate" text
);
Question: Who are the writers of the episode with the title "An Angel by Any Other Name"?
<|assistant|>
SELECT "writer" FROM "table1_26866233_1" WHERE "title"='\"An Angel by Any Other Name\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26866233_1" (
"series_num" real,
"episode_num" real,
"title" text,
"director" text,
"writer" text,
"original_airdate" text
);
Question: The episode where the director is Gene Reynolds has who as the writer?
<|assistant|>
SELECT "writer" FROM "table1_26866233_1" WHERE "director"='Gene Reynolds';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26866233_1" (
"series_num" real,
"episode_num" real,
"title" text,
"director" text,
"writer" text,
"original_airdate" text
);
Question: The episode with the original airdate December22,1996 has what title?
<|assistant|>
SELECT "title" FROM "table1_26866233_1" WHERE "original_airdate"='December22,1996';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26866299_1" (
"series_num" real,
"episode_num" real,
"title" text,
"director" text,
"writer" text,
"original_airdate" text
);
Question: What was the original air date of the episode written by michael glassberg?
<|assistant|>
SELECT "original_airdate" FROM "table1_26866299_1" WHERE "writer"='Michael Glassberg';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26866299_1" (
"series_num" real,
"episode_num" real,
"title" text,
"director" text,
"writer" text,
"original_airdate" text
);
Question: What was the original air date for episode number 96 in the series?
<|assistant|>
SELECT "original_airdate" FROM "table1_26866299_1" WHERE "series_num"=96;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26866299_1" (
"series_num" real,
"episode_num" real,
"title" text,
"director" text,
"writer" text,
"original_airdate" text
);
Question: What was the first numbered episode in the series titled "the wind beneath our wings"?
<|assistant|>
SELECT MIN("series_num") FROM "table1_26866299_1" WHERE "title"='\"The Wind Beneath Our Wings\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26866299_1" (
"series_num" real,
"episode_num" real,
"title" text,
"director" text,
"writer" text,
"original_airdate" text
);
Question: What numbered episode in the series is directed by tim van patten and titled "black like monica"?
<|assistant|>
SELECT MIN("series_num") FROM "table1_26866299_1" WHERE "director"='Tim Van Patten' AND "title"='\"Black Like Monica\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26866434_1" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer" text,
"original_air_date" text
);
Question: What episode number in the series is "millennium"?
<|assistant|>
SELECT MIN("series_num") FROM "table1_26866434_1" WHERE "title"='\"Millennium\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26866434_1" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer" text,
"original_air_date" text
);
Question: Who wrote episode 122 in the series?
<|assistant|>
SELECT "writer" FROM "table1_26866434_1" WHERE "series_num"=122;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26866434_1" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer" text,
"original_air_date" text
);
Question: Who wrote "Monica's bad day"?
<|assistant|>
SELECT "writer" FROM "table1_26866434_1" WHERE "title"='\"Monica''s Bad Day\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26866519_1" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer" text,
"original_airdate" text
);
Question: Who directed series episode number 201?
<|assistant|>
SELECT "director" FROM "table1_26866519_1" WHERE "series_num"=201;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26866519_1" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer" text,
"original_airdate" text
);
Question: What is the first series episode number for "the christmas watch"?
<|assistant|>
SELECT MIN("series_num") FROM "table1_26866519_1" WHERE "title"='\"The Christmas Watch\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26866519_1" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer" text,
"original_airdate" text
);
Question: What are the original air date(s) for season episode 20?
<|assistant|>
SELECT "original_airdate" FROM "table1_26866519_1" WHERE "season_num"=20;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26866519_1" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer" text,
"original_airdate" text
);
Question: Who wrote "at the end of the aisle"?
<|assistant|>
SELECT "writer" FROM "table1_26866519_1" WHERE "title"='\"At The End of the Aisle\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26866519_1" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer" text,
"original_airdate" text
);
Question: Who wrote "the word"?
<|assistant|>
SELECT "writer" FROM "table1_26866519_1" WHERE "title"='\"The Word\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26866519_1" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer" text,
"original_airdate" text
);
Question: How many episodes are directed by ricardo mendez matta?
<|assistant|>
SELECT COUNT("season_num") FROM "table1_26866519_1" WHERE "director"='Ricardo Mendez Matta';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "central_hockey_league" (
"season" text,
"games" real,
"wins" real,
"losses" real,
"ties" real,
"points" real,
"goals_for" real,
"goals_against" real,
"standing" text,
"playoffs" text
);
Question: Name the leaast points for standing 5th
<|assistant|>
SELECT MIN("points") FROM "central_hockey_league" WHERE "standing"='5th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26894949_2" (
"event" text,
"start_date" text,
"finish_date" text,
"start" text,
"finish" text,
"distance" text,
"abu_dhabi" text,
"camper" real,
"groupama" real,
"puma" text,
"sanya" text,
"telef_nica" real
);
Question: If puma is 12, what is camper?
<|assistant|>
SELECT MIN("camper") FROM "table1_26894949_2" WHERE "puma"='12';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26894949_2" (
"event" text,
"start_date" text,
"finish_date" text,
"start" text,
"finish" text,
"distance" text,
"abu_dhabi" text,
"camper" real,
"groupama" real,
"puma" text,
"sanya" text,
"telef_nica" real
);
Question: In how many events was Puma 20 and abu dhabi 30?
<|assistant|>
SELECT COUNT("event") FROM "table1_26894949_2" WHERE "puma"='20' AND "abu_dhabi"='30';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26894949_2" (
"event" text,
"start_date" text,
"finish_date" text,
"start" text,
"finish" text,
"distance" text,
"abu_dhabi" text,
"camper" real,
"groupama" real,
"puma" text,
"sanya" text,
"telef_nica" real
);
Question: How many time was the distance Abu Dhabi?
<|assistant|>
SELECT COUNT("sanya") FROM "table1_26894949_2" WHERE "distance"='Abu Dhabi';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "standings" (
"country" text,
"skip" text,
"w" real,
"l" real,
"pf" real,
"pa" real,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" real
);
Question: When czech republic is the country what is the lowest amount l?
<|assistant|>
SELECT MIN("l") FROM "standings" WHERE "country"='Czech Republic';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "standings" (
"country" text,
"skip" text,
"w" real,
"l" real,
"pf" real,
"pa" real,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" real
);
Question: What is the largest amount of ends lost?
<|assistant|>
SELECT MAX("ends_lost") FROM "standings";<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "standings" (
"country" text,
"skip" text,
"w" real,
"l" real,
"pf" real,
"pa" real,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" real
);
Question: When sweden is the country who is the skip?
<|assistant|>
SELECT "skip" FROM "standings" WHERE "country"='Sweden';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "standings" (
"country" text,
"skip" text,
"w" real,
"l" real,
"pf" real,
"pa" real,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" real
);
Question: When chen lu'an is the skip what is the lowest amount l's?
<|assistant|>
SELECT MIN("l") FROM "standings" WHERE "skip"='Chen Lu''an';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26914076_3" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"story_by" text,
"teleplay_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: Who wrote the story viewed by 0.53 million viewers?
<|assistant|>
SELECT "story_by" FROM "table1_26914076_3" WHERE "u_s_viewers_millions"='0.53';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26914076_3" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"story_by" text,
"teleplay_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: How many viewers watched the episode with a story by david simon & mari kornhauser?
<|assistant|>
SELECT "u_s_viewers_millions" FROM "table1_26914076_3" WHERE "story_by"='David Simon & Mari Kornhauser';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26914076_3" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"story_by" text,
"teleplay_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: How many entries are there for u.s. viewers (millions) for the episode directed by rob bailey?
<|assistant|>
SELECT COUNT("u_s_viewers_millions") FROM "table1_26914076_3" WHERE "directed_by"='Rob Bailey';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_26914076_3" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"story_by" text,
"teleplay_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: What is the date the episode directed by rob bailey aired?
<|assistant|>
SELECT "original_air_date" FROM "table1_26914076_3" WHERE "directed_by"='Rob Bailey';<|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,
"incoming_manager" text,
"date_of_appointment" text,
"position_in_table" text
);
Question: WHich team had dave penney as an incoming manager
<|assistant|>
SELECT "team" FROM "managerial_changes" WHERE "incoming_manager"='Dave Penney';<|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,
"incoming_manager" text,
"date_of_appointment" text,
"position_in_table" text
);
Question: What was the manner of departure for notts county with an incoming manager of martin allen
<|assistant|>
SELECT "manner_of_departure" FROM "managerial_changes" WHERE "team"='Notts County' AND "incoming_manager"='Martin Allen';<|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,
"incoming_manager" text,
"date_of_appointment" text,
"position_in_table" text
);
Question: How many teams had gary megson as an incoming manager
<|assistant|>
SELECT COUNT("position_in_table") FROM "managerial_changes" WHERE "incoming_manager"='Gary Megson';<|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,
"incoming_manager" text,
"date_of_appointment" text,
"position_in_table" text
);
Question: who was the incoming manager for the 12th position in the table
<|assistant|>
SELECT "incoming_manager" FROM "managerial_changes" WHERE "position_in_table"='12th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"name" text,
"position" text,
"height" text,
"weight" real,
"age" real,
"home_town" text,
"team_school" text
);
Question: How tall is the player from farmington, ky?
<|assistant|>
SELECT "height" FROM "roster" WHERE "home_town"='Farmington, KY';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"name" text,
"position" text,
"height" text,
"weight" real,
"age" real,
"home_town" text,
"team_school" text
);
Question: Where did adrian smith go to college?
<|assistant|>
SELECT "team_school" FROM "roster" WHERE "name"='Adrian Smith';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"name" text,
"position" text,
"height" text,
"weight" real,
"age" real,
"home_town" text,
"team_school" text
);
Question: What player attended california university?
<|assistant|>
SELECT "name" FROM "roster" WHERE "team_school"='California';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "roster" (
"name" text,
"position" text,
"height" text,
"weight" real,
"age" real,
"home_town" text,
"team_school" text
);
Question: What is the name of the player from purcell, ok?
<|assistant|>
SELECT "name" FROM "roster" WHERE "home_town"='Purcell, OK';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.