text
stringlengths 310
1.28k
|
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11677100_16" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: What school did the player Ethan Bennett attend?
<|assistant|>
SELECT "school" FROM "table1_11677100_16" WHERE "player"='Ethan Bennett';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11677100_16" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: What MLB Drafts have the position pitcher/infielder?
<|assistant|>
SELECT "mlb_draft" FROM "table1_11677100_16" WHERE "position"='Pitcher/Infielder';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11677100_16" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: What positions were drafted from Las Vegas, NV?
<|assistant|>
SELECT "position" FROM "table1_11677100_16" WHERE "hometown"='Las Vegas, NV';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11677100_17" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: What is the hometown of Bubba Starling?
<|assistant|>
SELECT "hometown" FROM "table1_11677100_17" WHERE "player"='Bubba Starling';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11677100_17" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: How many schools did Bubba Starling attend?
<|assistant|>
SELECT COUNT("school") FROM "table1_11677100_17" WHERE "player"='Bubba Starling';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11677100_5" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: What was the hometown of the player who attended Athens Drive High School?
<|assistant|>
SELECT "hometown" FROM "table1_11677100_5" WHERE "school"='Athens Drive High School';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11677100_5" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: What school did Pat Osborn attend?
<|assistant|>
SELECT "school" FROM "table1_11677100_5" WHERE "player"='Pat Osborn';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11677100_5" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: What is Josh Hamilton's hometown?
<|assistant|>
SELECT "hometown" FROM "table1_11677100_5" WHERE "player"='Josh Hamilton';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1995_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: What school does Kerry Wood play for?
<|assistant|>
SELECT "school" FROM "1995_team" WHERE "player"='Kerry Wood';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1995_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: What's the position of the player from Germantown, TN?
<|assistant|>
SELECT "position" FROM "1995_team" WHERE "hometown"='Germantown, TN';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1995_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: What player goes to Torrey Pines High School?
<|assistant|>
SELECT "player" FROM "1995_team" WHERE "school"='Torrey Pines High School';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1995_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: What position does Kerry Wood play in?
<|assistant|>
SELECT "position" FROM "1995_team" WHERE "player"='Kerry Wood';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1995_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: What's Shion Newton's MLB draft result?
<|assistant|>
SELECT "mlb_draft" FROM "1995_team" WHERE "player"='Shion Newton';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11677100_18" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: What is the hometown of the pitcher who's school was Saint Joseph Regional High School?
<|assistant|>
SELECT "hometown" FROM "table1_11677100_18" WHERE "position"='Pitcher' AND "school"='Saint Joseph Regional High School';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11677100_18" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: What is the school of the player from Lake Charles, LA?
<|assistant|>
SELECT "school" FROM "table1_11677100_18" WHERE "hometown"='Lake Charles, LA';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11677100_18" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: Where was mlb draft for the player who's school was Carl Albert High School?
<|assistant|>
SELECT "mlb_draft" FROM "table1_11677100_18" WHERE "school"='Carl Albert High School';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11677100_18" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: What school did the player attend who's hometown was Montvale, NJ?
<|assistant|>
SELECT "school" FROM "table1_11677100_18" WHERE "hometown"='Montvale, NJ';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11677100_18" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: What is the school for the player who's hometown was Irvine, CA?
<|assistant|>
SELECT "school" FROM "table1_11677100_18" WHERE "hometown"='Irvine, CA';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11677100_4" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: How many positions did the player from Spring High School play?
<|assistant|>
SELECT COUNT("position") FROM "table1_11677100_4" WHERE "school"='Spring High School';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11677100_4" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: What player is from Spring, Tx?
<|assistant|>
SELECT "player" FROM "table1_11677100_4" WHERE "hometown"='Spring, TX';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11677100_4" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: What town is Brighton High School in?
<|assistant|>
SELECT "hometown" FROM "table1_11677100_4" WHERE "school"='Brighton High School';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11677100_7" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: The catcher went to what school?
<|assistant|>
SELECT "school" FROM "table1_11677100_7" WHERE "position"='Catcher';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11677100_7" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: How many schools did Mike Jones attend?
<|assistant|>
SELECT COUNT("school") FROM "table1_11677100_7" WHERE "player"='Mike Jones';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: What is the postion of the player listed from Dooly County High School?
<|assistant|>
SELECT "position" FROM "2012_team" WHERE "school"='Dooly County High School';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: What player represented Vista Murrieta High School?
<|assistant|>
SELECT "player" FROM "2012_team" WHERE "school"='Vista Murrieta High School';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: What was the position of the player from Butler High School?
<|assistant|>
SELECT "position" FROM "2012_team" WHERE "school"='Butler High School';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: What position belonged to the player from Paramus, New Jersey?
<|assistant|>
SELECT "position" FROM "2012_team" WHERE "hometown"='Paramus, New Jersey';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: What town is Muscle Shoals High School located in?
<|assistant|>
SELECT "hometown" FROM "2012_team" WHERE "school"='Muscle Shoals High School';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11677100_8" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"mlb_draft" text
);
Question: What pick was the player from Apopka, FL in the 2002 MLB draft
<|assistant|>
SELECT "mlb_draft" FROM "table1_11677100_8" WHERE "hometown"='Apopka, FL';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: WHAT SCHOOL DID THE PLAYER FROM SOUTH CAROLINA ATTEND?
<|assistant|>
SELECT "school" FROM "2010_team" WHERE "college"='South Carolina';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: WHAT IS THE HOMETOWN OF TONY STEWARD?
<|assistant|>
SELECT "hometown" FROM "2010_team" WHERE "player"='Tony Steward';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: WHAT POSITION DOES THE PLAYER FROM SOUTH POINTE HIGH SCHOOL PLAY?
<|assistant|>
SELECT "position" FROM "2010_team" WHERE "school"='South Pointe High School';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: HOW MANY PLAYERS PLAY FOR OREGON?
<|assistant|>
SELECT COUNT("player") FROM "2010_team" WHERE "college"='Oregon';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: WHAT SCHOOL DOES HA'SEAN CLINTON-DIX BELONG TO?
<|assistant|>
SELECT "school" FROM "2010_team" WHERE "player"='Ha''Sean Clinton-Dix';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: How many players are from Delray Beach, Florida?
<|assistant|>
SELECT COUNT("player") FROM "2012_team" WHERE "hometown"='Delray Beach, Florida';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: How many schools did Derrick Green attend?
<|assistant|>
SELECT COUNT("school") FROM "2012_team" WHERE "player"='Derrick Green';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: What is the hometown of the player who attended American Heritage School?
<|assistant|>
SELECT "hometown" FROM "2012_team" WHERE "school"='American Heritage School';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: How many positions does Greg Bryant play?
<|assistant|>
SELECT COUNT("position") FROM "2012_team" WHERE "player"='Greg Bryant';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: How many schools did Derrick Green attend?
<|assistant|>
SELECT COUNT("school") FROM "2012_team" WHERE "player"='Derrick Green';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: Which college has the player Rushel Shell?
<|assistant|>
SELECT "college" FROM "2011_team" WHERE "player"='Rushel Shell';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: Which players attend Stanford college?
<|assistant|>
SELECT "player" FROM "2011_team" WHERE "college"='Stanford';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: Which school is in the hometown of Aledo, Texas?
<|assistant|>
SELECT "school" FROM "2011_team" WHERE "hometown"='Aledo, Texas';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: Zach Banner is a player at which school?
<|assistant|>
SELECT "school" FROM "2011_team" WHERE "player"='Zach Banner';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: What position is associated with the hometown of Olney, Maryland?
<|assistant|>
SELECT COUNT("position") FROM "2011_team" WHERE "hometown"='Olney, Maryland';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: Which college does the player John Theus associate with?
<|assistant|>
SELECT "college" FROM "2011_team" WHERE "player"='John Theus';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: What player's hometown is Abilene, Texas?
<|assistant|>
SELECT "player" FROM "2010_team" WHERE "hometown"='Abilene, Texas';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: How many players are from Indianapolis, Indiana?
<|assistant|>
SELECT COUNT("player") FROM "2010_team" WHERE "hometown"='Indianapolis, Indiana';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: What position is Charone Peake?
<|assistant|>
SELECT "position" FROM "2010_team" WHERE "player"='Charone Peake';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: Running back Aaron Green went to Nebraska and what high school?
<|assistant|>
SELECT "school" FROM "2010_team" WHERE "position"='Running back' AND "college"='Nebraska';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: What player's hometown is Roebuck, South Carolina?
<|assistant|>
SELECT "player" FROM "2010_team" WHERE "hometown"='Roebuck, South Carolina';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: what are all the positions of players who's hometown is concord, california
<|assistant|>
SELECT "position" FROM "2012_team" WHERE "hometown"='Concord, California';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: who are all the players for st. thomas aquinas high school
<|assistant|>
SELECT "player" FROM "2012_team" WHERE "school"='St. Thomas Aquinas High School';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: who are all the players for mission viejo high school
<|assistant|>
SELECT "player" FROM "2012_team" WHERE "school"='Mission Viejo High School';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: What is the hometown of the players for de la salle high school
<|assistant|>
SELECT "hometown" FROM "2012_team" WHERE "school"='De La Salle High School';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: who are all the players for armwood high school
<|assistant|>
SELECT "player" FROM "2012_team" WHERE "school"='Armwood High School';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: What is the hometown of the players for placer, california
<|assistant|>
SELECT "school" FROM "2012_team" WHERE "hometown"='Placer, California';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "boys_basketball_players_and_coaches_of_t" (
"year" text,
"player" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
Question: What is the nba draft for the player from the hometown of virginia beach, va?
<|assistant|>
SELECT "nba_draft" FROM "boys_basketball_players_and_coaches_of_t" WHERE "hometown"='Virginia Beach, VA';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "boys_basketball_players_and_coaches_of_t" (
"year" text,
"player" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
Question: what is the college for the player who's school is camden high school?
<|assistant|>
SELECT "college" FROM "boys_basketball_players_and_coaches_of_t" WHERE "school"='Camden High School';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "boys_basketball_players_and_coaches_of_t" (
"year" text,
"player" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
Question: what is the year for player is derrick favors?
<|assistant|>
SELECT "year" FROM "boys_basketball_players_and_coaches_of_t" WHERE "player"='Derrick Favors';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "boys_basketball_players_and_coaches_of_t" (
"year" text,
"player" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
Question: how many times was the player felipe lopez?
<|assistant|>
SELECT COUNT("nba_draft") FROM "boys_basketball_players_and_coaches_of_t" WHERE "player"='Felipe Lopez';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "boys_basketball_players_and_coaches_of_t" (
"year" text,
"player" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
Question: what is the college for the player damon bailey?
<|assistant|>
SELECT "college" FROM "boys_basketball_players_and_coaches_of_t" WHERE "player"='Damon Bailey';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "boys_basketball_players_and_coaches_of_t" (
"year" text,
"player" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
Question: what is the player who's college is listed as direct to nba, school is st. vincent – st. mary high school and the year is 2001-2002?
<|assistant|>
SELECT "player" FROM "boys_basketball_players_and_coaches_of_t" WHERE "college"='Direct to NBA' AND "school"='St. Vincent – St. Mary High School' AND "year"='2001-2002';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: Which hometown has the college Louisiana State?
<|assistant|>
SELECT "hometown" FROM "2012_team" WHERE "college"='Louisiana State';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: Which college is present in the hometown of Crete, Illinois?
<|assistant|>
SELECT "college" FROM "2012_team" WHERE "hometown"='Crete, Illinois';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: Which school has the player Thomas Tyner?
<|assistant|>
SELECT "school" FROM "2012_team" WHERE "player"='Thomas Tyner';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: Which school is located in the hometown of Centerville, Ohio?
<|assistant|>
SELECT "school" FROM "2012_team" WHERE "hometown"='Centerville, Ohio';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: What player is from Ohio State college?
<|assistant|>
SELECT "player" FROM "2012_team" WHERE "college"='Ohio State';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2012_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: Which school is home to player Thomas Tyner?
<|assistant|>
SELECT "school" FROM "2012_team" WHERE "player"='Thomas Tyner';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: Where is scott starr from?
<|assistant|>
SELECT "hometown" FROM "2011_team" WHERE "player"='Scott Starr';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: Where is lincoln high school located?
<|assistant|>
SELECT "hometown" FROM "2011_team" WHERE "school"='Lincoln High School';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: Where is Shaq Thompson from?
<|assistant|>
SELECT "hometown" FROM "2011_team" WHERE "player"='Shaq Thompson';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: Where did Darius Hamilton go?
<|assistant|>
SELECT "school" FROM "2011_team" WHERE "player"='Darius Hamilton';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_team" (
"player" text,
"position" text,
"school" text,
"hometown" text,
"college" text
);
Question: Where is Norco HIgh School?
<|assistant|>
SELECT "hometown" FROM "2011_team" WHERE "school"='Norco High School';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
Question: What is the height of the player that went to ohio state?
<|assistant|>
SELECT "height" FROM "2011_boys_team" WHERE "college"='Ohio State';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
Question: Name the total number of nba drafts that went to east side high school
<|assistant|>
SELECT COUNT("nba_draft") FROM "2011_boys_team" WHERE "school"='East Side High School';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
Question: Name the numbers of the nba draft where the player went to kentucky
<|assistant|>
SELECT "nba_draft" FROM "2011_boys_team" WHERE "college"='Kentucky';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cbs_era_1979_2000" (
"year" real,
"network" text,
"lap_by_lap" text,
"color_commentator_s" text,
"pit_reporters" text,
"host" text,
"ratings" text,
"viewers" text
);
Question: What was the rating in 1997?
<|assistant|>
SELECT "ratings" FROM "cbs_era_1979_2000" WHERE "year"=1997;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cbs_era_1979_2000" (
"year" real,
"network" text,
"lap_by_lap" text,
"color_commentator_s" text,
"pit_reporters" text,
"host" text,
"ratings" text,
"viewers" text
);
Question: Who narrated the lap-by-lap to a 13.4 million audience?
<|assistant|>
SELECT "lap_by_lap" FROM "cbs_era_1979_2000" WHERE "viewers"='13.4 million';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "subdivisions" (
"year" real,
"b_tzow" text,
"schwante" text,
"vehlefanz" text,
"neu_vehlefanz" real,
"marwitz" text,
"b_renklau" text,
"eichst_dt" real
);
Question: What was the number for Bötzow where Vehlefanz is 1.800?
<|assistant|>
SELECT "b_tzow" FROM "subdivisions" WHERE "vehlefanz"='1.800';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "subdivisions" (
"year" real,
"b_tzow" text,
"schwante" text,
"vehlefanz" text,
"neu_vehlefanz" real,
"marwitz" text,
"b_renklau" text,
"eichst_dt" real
);
Question: What was the number for Vehlefanz where Bärenklau is 1.288?
<|assistant|>
SELECT "vehlefanz" FROM "subdivisions" WHERE "b_renklau"='1.288';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "subdivisions" (
"year" real,
"b_tzow" text,
"schwante" text,
"vehlefanz" text,
"neu_vehlefanz" real,
"marwitz" text,
"b_renklau" text,
"eichst_dt" real
);
Question: What was the number for Schwante where Bärenklau is 1.270?
<|assistant|>
SELECT "schwante" FROM "subdivisions" WHERE "b_renklau"='1.270';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "subdivisions" (
"year" real,
"b_tzow" text,
"schwante" text,
"vehlefanz" text,
"neu_vehlefanz" real,
"marwitz" text,
"b_renklau" text,
"eichst_dt" real
);
Question: How many years where Neu-Vehlefanz had a number of 365?
<|assistant|>
SELECT COUNT("year") FROM "subdivisions" WHERE "neu_vehlefanz"=365;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "subdivisions" (
"year" real,
"b_tzow" text,
"schwante" text,
"vehlefanz" text,
"neu_vehlefanz" real,
"marwitz" text,
"b_renklau" text,
"eichst_dt" real
);
Question: How many times did Neu-Vehlefanz occur when Schwante had 2.043?
<|assistant|>
SELECT COUNT("neu_vehlefanz") FROM "subdivisions" WHERE "schwante"='2.043';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "subdivisions" (
"year" real,
"b_tzow" text,
"schwante" text,
"vehlefanz" text,
"neu_vehlefanz" real,
"marwitz" text,
"b_renklau" text,
"eichst_dt" real
);
Question: How many years where Eichstädt had a number of 939?
<|assistant|>
SELECT COUNT("year") FROM "subdivisions" WHERE "eichst_dt"=939;<|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,
"replaced_by" text,
"date_of_appointment" text
);
Question: How many have been replaced where the appointment date is 10 December 2007 and the manner of departure is quit?
<|assistant|>
SELECT COUNT("replaced_by") FROM "managerial_changes" WHERE "date_of_appointment"='10 December 2007' AND "manner_of_departure"='Quit';<|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,
"replaced_by" text,
"date_of_appointment" text
);
Question: What is the date of vacancy for 10 december 2007 when quit?
<|assistant|>
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "date_of_appointment"='10 December 2007' AND "manner_of_departure"='Quit';<|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,
"replaced_by" text,
"date_of_appointment" text
);
Question: How many manners of departure did peter voets have?
<|assistant|>
SELECT COUNT("manner_of_departure") FROM "managerial_changes" WHERE "outgoing_manager"='Peter Voets';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11703336_1" (
"calculator" text,
"cpu" text,
"ram" text,
"display_size" text,
"programming_languages" text,
"link_abilities" text,
"year_released" text,
"predecessors" text,
"successors" text
);
Question: What is the link abilities when the predecessors is ti-85?
<|assistant|>
SELECT "link_abilities" FROM "table1_11703336_1" WHERE "predecessors"='TI-85';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11703336_1" (
"calculator" text,
"cpu" text,
"ram" text,
"display_size" text,
"programming_languages" text,
"link_abilities" text,
"year_released" text,
"predecessors" text,
"successors" text
);
Question: What is the cpu of the calculator released in 1993?
<|assistant|>
SELECT "cpu" FROM "table1_11703336_1" WHERE "year_released"='1993';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11703336_1" (
"calculator" text,
"cpu" text,
"ram" text,
"display_size" text,
"programming_languages" text,
"link_abilities" text,
"year_released" text,
"predecessors" text,
"successors" text
);
Question: what is the display size for the calculator released in 1997?
<|assistant|>
SELECT "display_size" FROM "table1_11703336_1" WHERE "year_released"='1997';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11703336_1" (
"calculator" text,
"cpu" text,
"ram" text,
"display_size" text,
"programming_languages" text,
"link_abilities" text,
"year_released" text,
"predecessors" text,
"successors" text
);
Question: what is the display size for the calculator ti-82?
<|assistant|>
SELECT "display_size" FROM "table1_11703336_1" WHERE "calculator"='TI-82';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11703336_1" (
"calculator" text,
"cpu" text,
"ram" text,
"display_size" text,
"programming_languages" text,
"link_abilities" text,
"year_released" text,
"predecessors" text,
"successors" text
);
Question: what is the cpu for the calculator with 28 kb of ram and display size 128×64 pixels 21×8 characters?
<|assistant|>
SELECT "cpu" FROM "table1_11703336_1" WHERE "ram"='28 KB of RAM' AND "display_size"='128×64 pixels 21×8 characters';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11715748_2" (
"series_num" real,
"season_num" real,
"title" text,
"director_s" text,
"writer_s" text,
"original_airdate" text
);
Question: How many series has the title "interior loft"?
<|assistant|>
SELECT COUNT("series_num") FROM "table1_11715748_2" WHERE "title"='\"Interior Loft\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11715748_2" (
"series_num" real,
"season_num" real,
"title" text,
"director_s" text,
"writer_s" text,
"original_airdate" text
);
Question: Who was the dirctor for season 13?
<|assistant|>
SELECT "director_s" FROM "table1_11715748_2" WHERE "season_num"=13;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11715748_2" (
"series_num" real,
"season_num" real,
"title" text,
"director_s" text,
"writer_s" text,
"original_airdate" text
);
Question: Who was the director for the title, "funhouse"?
<|assistant|>
SELECT "director_s" FROM "table1_11715748_2" WHERE "title"='\"Funhouse\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11694832_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 title of the show that had a production code of 3T5764?
<|assistant|>
SELECT "title" FROM "table1_11694832_1" WHERE "production_code"='3T5764';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11694832_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 first series number that Adele Lim wrote?
<|assistant|>
SELECT MIN("no_in_series") FROM "table1_11694832_1" WHERE "written_by"='Adele Lim';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11694832_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: How many millions of U.S. viewers watched the show with a production code of 3T5769?
<|assistant|>
SELECT "u_s_viewers_millions" FROM "table1_11694832_1" WHERE "production_code"='3T5769';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11694832_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: When was the show first aired that was viewed by 3.57 million U.S. viewers?
<|assistant|>
SELECT "original_air_date" FROM "table1_11694832_1" WHERE "u_s_viewers_millions"='3.57';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11694832_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: Who directed the show that was viewed by 2.06 million U.S. people?
<|assistant|>
SELECT "directed_by" FROM "table1_11694832_1" WHERE "u_s_viewers_millions"='2.06';<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.