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