text
stringlengths
147
1.06k
source
dict
### INSTRUCTION what are all the playoffs for u.s. open cup in 1st round ### INPUT CREATE TABLE table_1046170_5 (playoffs VARCHAR, us_open_cup VARCHAR) ### OUTPUT SELECT playoffs FROM table_1046170_5 WHERE us_open_cup = "1st Round"
{ "input": "CREATE TABLE table_1046170_5 (playoffs VARCHAR, us_open_cup VARCHAR)", "instruction": "what are all the playoffs for u.s. open cup in 1st round", "output": "SELECT playoffs FROM table_1046170_5 WHERE us_open_cup = \"1st Round\"" }
### INSTRUCTION Show distinct types of artworks that are nominated in festivals in 2007. ### INPUT CREATE TABLE nomination (Artwork_ID VARCHAR, Festival_ID VARCHAR); CREATE TABLE festival_detail (Festival_ID VARCHAR, Year VARCHAR); CREATE TABLE artwork (Type VARCHAR, Artwork_ID VARCHAR) ### OUTPUT SELECT DISTINCT T2.Type FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID WHERE T3.Year = 2007
{ "input": "CREATE TABLE nomination (Artwork_ID VARCHAR, Festival_ID VARCHAR); CREATE TABLE festival_detail (Festival_ID VARCHAR, Year VARCHAR); CREATE TABLE artwork (Type VARCHAR, Artwork_ID VARCHAR)", "instruction": "Show distinct types of artworks that are nominated in festivals in 2007.", "output": "SELECT DISTINCT T2.Type FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID WHERE T3.Year = 2007" }
### INSTRUCTION Which Asian countries have a population that is larger than any country in Africa? ### INPUT CREATE TABLE country (Name VARCHAR, Continent VARCHAR, population INTEGER) ### OUTPUT SELECT Name FROM country WHERE Continent = "Asia" AND population > (SELECT MAX(population) FROM country WHERE Continent = "Africa")
{ "input": "CREATE TABLE country (Name VARCHAR, Continent VARCHAR, population INTEGER)", "instruction": "Which Asian countries have a population that is larger than any country in Africa?", "output": "SELECT Name FROM country WHERE Continent = \"Asia\" AND population > (SELECT MAX(population) FROM country WHERE Continent = \"Africa\")" }
### INSTRUCTION What is the sum of Agricultural panels that have an Industrial and Commercial Panel smaller than 0? ### INPUT CREATE TABLE table_name_46 (agricultural_panel INTEGER, industrial_and_commercial_panel INTEGER) ### OUTPUT SELECT SUM(agricultural_panel) FROM table_name_46 WHERE industrial_and_commercial_panel < 0
{ "input": "CREATE TABLE table_name_46 (agricultural_panel INTEGER, industrial_and_commercial_panel INTEGER)", "instruction": "What is the sum of Agricultural panels that have an Industrial and Commercial Panel smaller than 0?", "output": "SELECT SUM(agricultural_panel) FROM table_name_46 WHERE industrial_and_commercial_panel < 0" }
### INSTRUCTION What is Agricultural Use (m 3 /p/yr)(in %), when Per Capita Withdrawal (m 3 /p/yr) is greater than 923, and when Domestic Use (m 3 /p/yr)(in %) is 73(7%)? ### INPUT CREATE TABLE table_name_7 (agricultural_use__m_3__p_yr__in__percentage_ VARCHAR, per_capita_withdrawal__m_3__p_yr_ VARCHAR, domestic_use__m_3__p_yr__in__percentage_ VARCHAR) ### OUTPUT SELECT agricultural_use__m_3__p_yr__in__percentage_ FROM table_name_7 WHERE per_capita_withdrawal__m_3__p_yr_ > 923 AND domestic_use__m_3__p_yr__in__percentage_ = "73(7%)"
{ "input": "CREATE TABLE table_name_7 (agricultural_use__m_3__p_yr__in__percentage_ VARCHAR, per_capita_withdrawal__m_3__p_yr_ VARCHAR, domestic_use__m_3__p_yr__in__percentage_ VARCHAR)", "instruction": "What is Agricultural Use (m 3 /p/yr)(in %), when Per Capita Withdrawal (m 3 /p/yr) is greater than 923, and when Domestic Use (m 3 /p/yr)(in %) is 73(7%)?", "output": "SELECT agricultural_use__m_3__p_yr__in__percentage_ FROM table_name_7 WHERE per_capita_withdrawal__m_3__p_yr_ > 923 AND domestic_use__m_3__p_yr__in__percentage_ = \"73(7%)\"" }
### INSTRUCTION What is the average number of silver medals for rank 2 and more than 1 bronze medal? ### INPUT CREATE TABLE table_name_15 (silver INTEGER, rank VARCHAR, bronze VARCHAR) ### OUTPUT SELECT AVG(silver) FROM table_name_15 WHERE rank = 2 AND bronze > 1
{ "input": "CREATE TABLE table_name_15 (silver INTEGER, rank VARCHAR, bronze VARCHAR)", "instruction": "What is the average number of silver medals for rank 2 and more than 1 bronze medal?", "output": "SELECT AVG(silver) FROM table_name_15 WHERE rank = 2 AND bronze > 1" }
### INSTRUCTION What's the total enrollment of public schools located in Buffalo, New York that were founded after 1846? ### INPUT CREATE TABLE table_name_62 (enrollment INTEGER, founded VARCHAR, location VARCHAR, affiliation VARCHAR) ### OUTPUT SELECT SUM(enrollment) FROM table_name_62 WHERE location = "buffalo, new york" AND affiliation = "public" AND founded > 1846
{ "input": "CREATE TABLE table_name_62 (enrollment INTEGER, founded VARCHAR, location VARCHAR, affiliation VARCHAR)", "instruction": "What's the total enrollment of public schools located in Buffalo, New York that were founded after 1846?", "output": "SELECT SUM(enrollment) FROM table_name_62 WHERE location = \"buffalo, new york\" AND affiliation = \"public\" AND founded > 1846" }
### INSTRUCTION Name the tournament when margin of victory is 3 strokes and winning score is 71-66-70-67=274 ### INPUT CREATE TABLE table_1569625_1 (tournament VARCHAR, margin_of_victory VARCHAR, winning_score VARCHAR) ### OUTPUT SELECT tournament FROM table_1569625_1 WHERE margin_of_victory = "3 strokes" AND winning_score = 71 - 66 - 70 - 67 = 274
{ "input": "CREATE TABLE table_1569625_1 (tournament VARCHAR, margin_of_victory VARCHAR, winning_score VARCHAR)", "instruction": "Name the tournament when margin of victory is 3 strokes and winning score is 71-66-70-67=274", "output": "SELECT tournament FROM table_1569625_1 WHERE margin_of_victory = \"3 strokes\" AND winning_score = 71 - 66 - 70 - 67 = 274" }
### INSTRUCTION Which Constellation has an Apparent magnitude larger that 7.7, and an NGC number of 7777 ### INPUT CREATE TABLE table_name_60 (constellation VARCHAR, apparent_magnitude VARCHAR, ngc_number VARCHAR) ### OUTPUT SELECT constellation FROM table_name_60 WHERE apparent_magnitude > 7.7 AND ngc_number = 7777
{ "input": "CREATE TABLE table_name_60 (constellation VARCHAR, apparent_magnitude VARCHAR, ngc_number VARCHAR)", "instruction": "Which Constellation has an Apparent magnitude larger that 7.7, and an NGC number of 7777", "output": "SELECT constellation FROM table_name_60 WHERE apparent_magnitude > 7.7 AND ngc_number = 7777" }
### INSTRUCTION Which home team plays at victoria park? ### INPUT CREATE TABLE table_name_46 (home_team VARCHAR, venue VARCHAR) ### OUTPUT SELECT home_team FROM table_name_46 WHERE venue = "victoria park"
{ "input": "CREATE TABLE table_name_46 (home_team VARCHAR, venue VARCHAR)", "instruction": "Which home team plays at victoria park?", "output": "SELECT home_team FROM table_name_46 WHERE venue = \"victoria park\"" }
### INSTRUCTION What's the reserved number for constituency number 108? ### INPUT CREATE TABLE table_name_43 (reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR) ### OUTPUT SELECT reserved_for___sc___st__none_ FROM table_name_43 WHERE constituency_number = "108"
{ "input": "CREATE TABLE table_name_43 (reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)", "instruction": "What's the reserved number for constituency number 108?", "output": "SELECT reserved_for___sc___st__none_ FROM table_name_43 WHERE constituency_number = \"108\"" }
### INSTRUCTION Find the names and total checking and savings balances of accounts whose savings balance is higher than the average savings balance. ### INPUT CREATE TABLE checking (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER); CREATE TABLE accounts (name VARCHAR, custid VARCHAR) ### OUTPUT SELECT T1.name, T2.balance + T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance > (SELECT AVG(balance) FROM savings)
{ "input": "CREATE TABLE checking (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)", "instruction": "Find the names and total checking and savings balances of accounts whose savings balance is higher than the average savings balance.", "output": "SELECT T1.name, T2.balance + T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance > (SELECT AVG(balance) FROM savings)" }
### INSTRUCTION What was the score for Footscray when they were the away team? ### INPUT CREATE TABLE table_name_66 (away_team VARCHAR) ### OUTPUT SELECT away_team AS score FROM table_name_66 WHERE away_team = "footscray"
{ "input": "CREATE TABLE table_name_66 (away_team VARCHAR)", "instruction": "What was the score for Footscray when they were the away team?", "output": "SELECT away_team AS score FROM table_name_66 WHERE away_team = \"footscray\"" }
### INSTRUCTION Which Opponents have a Surface of hard, and an Outcome of runner-up, and a Partner of jarmila gajdošová? ### INPUT CREATE TABLE table_name_80 (opponents VARCHAR, partner VARCHAR, surface VARCHAR, outcome VARCHAR) ### OUTPUT SELECT opponents FROM table_name_80 WHERE surface = "hard" AND outcome = "runner-up" AND partner = "jarmila gajdošová"
{ "input": "CREATE TABLE table_name_80 (opponents VARCHAR, partner VARCHAR, surface VARCHAR, outcome VARCHAR)", "instruction": "Which Opponents have a Surface of hard, and an Outcome of runner-up, and a Partner of jarmila gajdošová?", "output": "SELECT opponents FROM table_name_80 WHERE surface = \"hard\" AND outcome = \"runner-up\" AND partner = \"jarmila gajdošová\"" }
### INSTRUCTION Which Altitude (mslm) is the highest one that has a City of legnano, and a Population larger than 59492? ### INPUT CREATE TABLE table_name_47 (altitude__mslm_ INTEGER, city VARCHAR, population VARCHAR) ### OUTPUT SELECT MAX(altitude__mslm_) FROM table_name_47 WHERE city = "legnano" AND population > 59492
{ "input": "CREATE TABLE table_name_47 (altitude__mslm_ INTEGER, city VARCHAR, population VARCHAR)", "instruction": "Which Altitude (mslm) is the highest one that has a City of legnano, and a Population larger than 59492?", "output": "SELECT MAX(altitude__mslm_) FROM table_name_47 WHERE city = \"legnano\" AND population > 59492" }
### INSTRUCTION What is the earliest year when the composition is 99.99% silver and the issue price is $94.95? ### INPUT CREATE TABLE table_name_66 (year INTEGER, composition VARCHAR, issue_price VARCHAR) ### OUTPUT SELECT MIN(year) FROM table_name_66 WHERE composition = "99.99% silver" AND issue_price = "$94.95"
{ "input": "CREATE TABLE table_name_66 (year INTEGER, composition VARCHAR, issue_price VARCHAR)", "instruction": "What is the earliest year when the composition is 99.99% silver and the issue price is $94.95?", "output": "SELECT MIN(year) FROM table_name_66 WHERE composition = \"99.99% silver\" AND issue_price = \"$94.95\"" }
### INSTRUCTION How many international tourist arrivals were in Senegal in 2011? ### INPUT CREATE TABLE table_14752049_2 (international_tourist_arrivals__2011_ VARCHAR, country VARCHAR) ### OUTPUT SELECT international_tourist_arrivals__2011_ FROM table_14752049_2 WHERE country = "Senegal"
{ "input": "CREATE TABLE table_14752049_2 (international_tourist_arrivals__2011_ VARCHAR, country VARCHAR)", "instruction": "How many international tourist arrivals were in Senegal in 2011?", "output": "SELECT international_tourist_arrivals__2011_ FROM table_14752049_2 WHERE country = \"Senegal\"" }
### INSTRUCTION Show the names of students who have a grade higher than 5 and have at least 2 friends. ### INPUT CREATE TABLE Friend (student_id VARCHAR); CREATE TABLE Highschooler (name VARCHAR, id VARCHAR, grade INTEGER) ### OUTPUT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.grade > 5 GROUP BY T1.student_id HAVING COUNT(*) >= 2
{ "input": "CREATE TABLE Friend (student_id VARCHAR); CREATE TABLE Highschooler (name VARCHAR, id VARCHAR, grade INTEGER)", "instruction": "Show the names of students who have a grade higher than 5 and have at least 2 friends.", "output": "SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.grade > 5 GROUP BY T1.student_id HAVING COUNT(*) >= 2" }
### INSTRUCTION Which Partial thromboplastin time has a Prothrombin time of prolonged and a Condition of factor v deficiency? ### INPUT CREATE TABLE table_name_76 (partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR, condition VARCHAR) ### OUTPUT SELECT partial_thromboplastin_time FROM table_name_76 WHERE prothrombin_time = "prolonged" AND condition = "factor v deficiency"
{ "input": "CREATE TABLE table_name_76 (partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR, condition VARCHAR)", "instruction": "Which Partial thromboplastin time has a Prothrombin time of prolonged and a Condition of factor v deficiency?", "output": "SELECT partial_thromboplastin_time FROM table_name_76 WHERE prothrombin_time = \"prolonged\" AND condition = \"factor v deficiency\"" }
### INSTRUCTION Find the movies with the highest average rating. Return the movie titles and average rating. ### INPUT CREATE TABLE Rating (stars INTEGER, mID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR) ### OUTPUT SELECT T2.title, AVG(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY AVG(T1.stars) DESC LIMIT 1
{ "input": "CREATE TABLE Rating (stars INTEGER, mID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR)", "instruction": "Find the movies with the highest average rating. Return the movie titles and average rating.", "output": "SELECT T2.title, AVG(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY AVG(T1.stars) DESC LIMIT 1" }
### INSTRUCTION What are the staff ids and genders of all staffs whose job title is Department Manager? ### INPUT CREATE TABLE staff_department_assignments (staff_id VARCHAR, job_title_code VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_gender VARCHAR) ### OUTPUT SELECT T1.staff_id, T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = "Department Manager"
{ "input": "CREATE TABLE staff_department_assignments (staff_id VARCHAR, job_title_code VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_gender VARCHAR)", "instruction": "What are the staff ids and genders of all staffs whose job title is Department Manager?", "output": "SELECT T1.staff_id, T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = \"Department Manager\"" }
### INSTRUCTION What is the smallest total for a rank below 4, 0 silver medals, and 2 gold medals? ### INPUT CREATE TABLE table_name_85 (total INTEGER, gold VARCHAR, rank VARCHAR, silver VARCHAR) ### OUTPUT SELECT MIN(total) FROM table_name_85 WHERE rank < 4 AND silver > 0 AND gold < 2
{ "input": "CREATE TABLE table_name_85 (total INTEGER, gold VARCHAR, rank VARCHAR, silver VARCHAR)", "instruction": "What is the smallest total for a rank below 4, 0 silver medals, and 2 gold medals?", "output": "SELECT MIN(total) FROM table_name_85 WHERE rank < 4 AND silver > 0 AND gold < 2" }
### INSTRUCTION What is the lowest money ($) that has t8 as the place, with a to par greater than 19? ### INPUT CREATE TABLE table_name_75 (money___ INTEGER, place VARCHAR, to_par VARCHAR) ### OUTPUT SELECT MIN(money___) AS $__ FROM table_name_75 WHERE place = "t8" AND to_par > 19
{ "input": "CREATE TABLE table_name_75 (money___ INTEGER, place VARCHAR, to_par VARCHAR)", "instruction": "What is the lowest money ($) that has t8 as the place, with a to par greater than 19?", "output": "SELECT MIN(money___) AS $__ FROM table_name_75 WHERE place = \"t8\" AND to_par > 19" }
### INSTRUCTION Which Model number has a Front Side Bus of 100mhz, a L2-Cache of 64kib and a Multiplier of 8.5×? ### INPUT CREATE TABLE table_name_98 (model_number VARCHAR, multiplier VARCHAR, front_side_bus VARCHAR, l2_cache VARCHAR) ### OUTPUT SELECT model_number FROM table_name_98 WHERE front_side_bus = "100mhz" AND l2_cache = "64kib" AND multiplier = "8.5×"
{ "input": "CREATE TABLE table_name_98 (model_number VARCHAR, multiplier VARCHAR, front_side_bus VARCHAR, l2_cache VARCHAR)", "instruction": "Which Model number has a Front Side Bus of 100mhz, a L2-Cache of 64kib and a Multiplier of 8.5×?", "output": "SELECT model_number FROM table_name_98 WHERE front_side_bus = \"100mhz\" AND l2_cache = \"64kib\" AND multiplier = \"8.5×\"" }
### INSTRUCTION How many goals have a Lokomotiv Plovdiv club and goals against larger than 58? ### INPUT CREATE TABLE table_name_80 (goals_for VARCHAR, club VARCHAR, goals_against VARCHAR) ### OUTPUT SELECT COUNT(goals_for) FROM table_name_80 WHERE club = "lokomotiv plovdiv" AND goals_against > 58
{ "input": "CREATE TABLE table_name_80 (goals_for VARCHAR, club VARCHAR, goals_against VARCHAR)", "instruction": "How many goals have a Lokomotiv Plovdiv club and goals against larger than 58?", "output": "SELECT COUNT(goals_for) FROM table_name_80 WHERE club = \"lokomotiv plovdiv\" AND goals_against > 58" }
### INSTRUCTION Which date has an Opera usage percentage of 5.1% and Internet Explorer usage of 59.5%? ### INPUT CREATE TABLE table_name_64 (date VARCHAR, opera VARCHAR, internet_explorer VARCHAR) ### OUTPUT SELECT date FROM table_name_64 WHERE opera = "5.1%" AND internet_explorer = "59.5%"
{ "input": "CREATE TABLE table_name_64 (date VARCHAR, opera VARCHAR, internet_explorer VARCHAR)", "instruction": "Which date has an Opera usage percentage of 5.1% and Internet Explorer usage of 59.5%?", "output": "SELECT date FROM table_name_64 WHERE opera = \"5.1%\" AND internet_explorer = \"59.5%\"" }
### INSTRUCTION What was the final score of the game at the astrodome? ### INPUT CREATE TABLE table_name_74 (final_score VARCHAR, stadium VARCHAR) ### OUTPUT SELECT final_score FROM table_name_74 WHERE stadium = "astrodome"
{ "input": "CREATE TABLE table_name_74 (final_score VARCHAR, stadium VARCHAR)", "instruction": "What was the final score of the game at the astrodome?", "output": "SELECT final_score FROM table_name_74 WHERE stadium = \"astrodome\"" }
### INSTRUCTION Opponent of chicago bulls had what location? ### INPUT CREATE TABLE table_name_83 (location VARCHAR, opponent VARCHAR) ### OUTPUT SELECT location FROM table_name_83 WHERE opponent = "chicago bulls"
{ "input": "CREATE TABLE table_name_83 (location VARCHAR, opponent VARCHAR)", "instruction": "Opponent of chicago bulls had what location?", "output": "SELECT location FROM table_name_83 WHERE opponent = \"chicago bulls\"" }
### INSTRUCTION What is the type for a vessel with a listed unit of naval base swinoujscie (auxiliary squadron)? ### INPUT CREATE TABLE table_name_49 (type VARCHAR, unit VARCHAR) ### OUTPUT SELECT type FROM table_name_49 WHERE unit = "naval base swinoujscie (auxiliary squadron)"
{ "input": "CREATE TABLE table_name_49 (type VARCHAR, unit VARCHAR)", "instruction": "What is the type for a vessel with a listed unit of naval base swinoujscie (auxiliary squadron)?", "output": "SELECT type FROM table_name_49 WHERE unit = \"naval base swinoujscie (auxiliary squadron)\"" }
### INSTRUCTION Name the successor for vacant and december 3, 1862 ### INPUT CREATE TABLE table_2417330_4 (successor VARCHAR, reason_for_change VARCHAR, date_successor_seated VARCHAR) ### OUTPUT SELECT successor FROM table_2417330_4 WHERE reason_for_change = "Vacant" AND date_successor_seated = "December 3, 1862"
{ "input": "CREATE TABLE table_2417330_4 (successor VARCHAR, reason_for_change VARCHAR, date_successor_seated VARCHAR)", "instruction": "Name the successor for vacant and december 3, 1862", "output": "SELECT successor FROM table_2417330_4 WHERE reason_for_change = \"Vacant\" AND date_successor_seated = \"December 3, 1862\"" }
### INSTRUCTION When the round of 32 was n/a and quarterfinal was did not advance, what was the round of 16? ### INPUT CREATE TABLE table_name_75 (round_of_16 VARCHAR, quarterfinal VARCHAR, round_of_32 VARCHAR) ### OUTPUT SELECT round_of_16 FROM table_name_75 WHERE quarterfinal = "did not advance" AND round_of_32 = "n/a"
{ "input": "CREATE TABLE table_name_75 (round_of_16 VARCHAR, quarterfinal VARCHAR, round_of_32 VARCHAR)", "instruction": "When the round of 32 was n/a and quarterfinal was did not advance, what was the round of 16?", "output": "SELECT round_of_16 FROM table_name_75 WHERE quarterfinal = \"did not advance\" AND round_of_32 = \"n/a\"" }
### INSTRUCTION What is the chassis of rahel frey's volkswagen engine? ### INPUT CREATE TABLE table_name_74 (chassis VARCHAR, engine VARCHAR, driver VARCHAR) ### OUTPUT SELECT chassis FROM table_name_74 WHERE engine = "volkswagen" AND driver = "rahel frey"
{ "input": "CREATE TABLE table_name_74 (chassis VARCHAR, engine VARCHAR, driver VARCHAR)", "instruction": "What is the chassis of rahel frey's volkswagen engine?", "output": "SELECT chassis FROM table_name_74 WHERE engine = \"volkswagen\" AND driver = \"rahel frey\"" }
### INSTRUCTION Name the high assists for american airlines center 19,585 ### INPUT CREATE TABLE table_22871239_8 (high_assists VARCHAR, location_attendance VARCHAR) ### OUTPUT SELECT high_assists FROM table_22871239_8 WHERE location_attendance = "American Airlines Center 19,585"
{ "input": "CREATE TABLE table_22871239_8 (high_assists VARCHAR, location_attendance VARCHAR)", "instruction": "Name the high assists for american airlines center 19,585", "output": "SELECT high_assists FROM table_22871239_8 WHERE location_attendance = \"American Airlines Center 19,585\"" }
### INSTRUCTION When gordon (27) had high points, what was the number of high assists? ### INPUT CREATE TABLE table_11960610_10 (high_assists VARCHAR, high_points VARCHAR) ### OUTPUT SELECT COUNT(high_assists) FROM table_11960610_10 WHERE high_points = "Gordon (27)"
{ "input": "CREATE TABLE table_11960610_10 (high_assists VARCHAR, high_points VARCHAR)", "instruction": "When gordon (27) had high points, what was the number of high assists?", "output": "SELECT COUNT(high_assists) FROM table_11960610_10 WHERE high_points = \"Gordon (27)\"" }
### INSTRUCTION Which Average Cards a game has a Season of 2004/2005, and a Red Cards larger than 3? ### INPUT CREATE TABLE table_name_22 (average_cards_a_game INTEGER, season VARCHAR, red_cards VARCHAR) ### OUTPUT SELECT MIN(average_cards_a_game) FROM table_name_22 WHERE season = "2004/2005" AND red_cards > 3
{ "input": "CREATE TABLE table_name_22 (average_cards_a_game INTEGER, season VARCHAR, red_cards VARCHAR)", "instruction": "Which Average Cards a game has a Season of 2004/2005, and a Red Cards larger than 3?", "output": "SELECT MIN(average_cards_a_game) FROM table_name_22 WHERE season = \"2004/2005\" AND red_cards > 3" }
### INSTRUCTION What is High Rebounds, when High Assists is "Jason Kidd (13)"? ### INPUT CREATE TABLE table_name_50 (high_rebounds VARCHAR, high_assists VARCHAR) ### OUTPUT SELECT high_rebounds FROM table_name_50 WHERE high_assists = "jason kidd (13)"
{ "input": "CREATE TABLE table_name_50 (high_rebounds VARCHAR, high_assists VARCHAR)", "instruction": "What is High Rebounds, when High Assists is \"Jason Kidd (13)\"?", "output": "SELECT high_rebounds FROM table_name_50 WHERE high_assists = \"jason kidd (13)\"" }
### INSTRUCTION What is the name of the nurse has the most appointments? ### INPUT CREATE TABLE nurse (name VARCHAR, employeeid VARCHAR); CREATE TABLE appointment (prepnurse VARCHAR) ### OUTPUT SELECT T1.name FROM nurse AS T1 JOIN appointment AS T2 ON T1.employeeid = T2.prepnurse GROUP BY T1.employeeid ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE nurse (name VARCHAR, employeeid VARCHAR); CREATE TABLE appointment (prepnurse VARCHAR)", "instruction": "What is the name of the nurse has the most appointments?", "output": "SELECT T1.name FROM nurse AS T1 JOIN appointment AS T2 ON T1.employeeid = T2.prepnurse GROUP BY T1.employeeid ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION Which country and state does staff with first name as Janessa and last name as Sawayn lived? ### INPUT CREATE TABLE Addresses (country VARCHAR, state_province_county VARCHAR, address_id VARCHAR); CREATE TABLE Staff (staff_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR) ### OUTPUT SELECT T1.country, T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn"
{ "input": "CREATE TABLE Addresses (country VARCHAR, state_province_county VARCHAR, address_id VARCHAR); CREATE TABLE Staff (staff_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR)", "instruction": "Which country and state does staff with first name as Janessa and last name as Sawayn lived?", "output": "SELECT T1.country, T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = \"Janessa\" AND T2.last_name = \"Sawayn\"" }
### INSTRUCTION What is the total engine capacity of the a4 transmission, which has an urban mpg-US greater than 19, an mpg-us extra-urban greater than 38.6, and an aveo model? ### INPUT CREATE TABLE table_name_50 (engine_capacity VARCHAR, model VARCHAR, mpg_us_extra_urban VARCHAR, transmission VARCHAR, mpg_us_urban VARCHAR) ### OUTPUT SELECT COUNT(engine_capacity) FROM table_name_50 WHERE transmission = "a4" AND mpg_us_urban > 19 AND mpg_us_extra_urban > 38.6 AND model = "aveo"
{ "input": "CREATE TABLE table_name_50 (engine_capacity VARCHAR, model VARCHAR, mpg_us_extra_urban VARCHAR, transmission VARCHAR, mpg_us_urban VARCHAR)", "instruction": "What is the total engine capacity of the a4 transmission, which has an urban mpg-US greater than 19, an mpg-us extra-urban greater than 38.6, and an aveo model?", "output": "SELECT COUNT(engine_capacity) FROM table_name_50 WHERE transmission = \"a4\" AND mpg_us_urban > 19 AND mpg_us_extra_urban > 38.6 AND model = \"aveo\"" }
### INSTRUCTION What is the longitude of Carmenta Farra in 1994? ### INPUT CREATE TABLE table_name_74 (longitude VARCHAR, year_named VARCHAR, name VARCHAR) ### OUTPUT SELECT longitude FROM table_name_74 WHERE year_named = 1994 AND name = "carmenta farra"
{ "input": "CREATE TABLE table_name_74 (longitude VARCHAR, year_named VARCHAR, name VARCHAR)", "instruction": "What is the longitude of Carmenta Farra in 1994?", "output": "SELECT longitude FROM table_name_74 WHERE year_named = 1994 AND name = \"carmenta farra\"" }
### INSTRUCTION Name the Company which has a Price in USD of free / negotiable? ### INPUT CREATE TABLE table_name_69 (company VARCHAR, price_in_usd VARCHAR) ### OUTPUT SELECT company FROM table_name_69 WHERE price_in_usd = "free / negotiable"
{ "input": "CREATE TABLE table_name_69 (company VARCHAR, price_in_usd VARCHAR)", "instruction": "Name the Company which has a Price in USD of free / negotiable?", "output": "SELECT company FROM table_name_69 WHERE price_in_usd = \"free / negotiable\"" }
### INSTRUCTION what's the vineyard surface (2010) with grand cru being bienvenues-bâtard-montrachet ### INPUT CREATE TABLE table_13981938_1 (vineyard_surface__2010_ VARCHAR, grand_cru VARCHAR) ### OUTPUT SELECT vineyard_surface__2010_ FROM table_13981938_1 WHERE grand_cru = "Bienvenues-Bâtard-Montrachet"
{ "input": "CREATE TABLE table_13981938_1 (vineyard_surface__2010_ VARCHAR, grand_cru VARCHAR)", "instruction": "what's the vineyard surface (2010) with grand cru being bienvenues-bâtard-montrachet", "output": "SELECT vineyard_surface__2010_ FROM table_13981938_1 WHERE grand_cru = \"Bienvenues-Bâtard-Montrachet\"" }
### INSTRUCTION How many opponents led to an exactly 7-0 record? ### INPUT CREATE TABLE table_21034801_1 (opponent VARCHAR, record VARCHAR) ### OUTPUT SELECT COUNT(opponent) FROM table_21034801_1 WHERE record = "7-0"
{ "input": "CREATE TABLE table_21034801_1 (opponent VARCHAR, record VARCHAR)", "instruction": "How many opponents led to an exactly 7-0 record?", "output": "SELECT COUNT(opponent) FROM table_21034801_1 WHERE record = \"7-0\"" }
### INSTRUCTION Home result of 1–0, and a Away result of 0–1 involves what club? ### INPUT CREATE TABLE table_name_56 (club VARCHAR, home_result VARCHAR, away_result VARCHAR) ### OUTPUT SELECT club FROM table_name_56 WHERE home_result = "1–0" AND away_result = "0–1"
{ "input": "CREATE TABLE table_name_56 (club VARCHAR, home_result VARCHAR, away_result VARCHAR)", "instruction": "Home result of 1–0, and a Away result of 0–1 involves what club?", "output": "SELECT club FROM table_name_56 WHERE home_result = \"1–0\" AND away_result = \"0–1\"" }
### INSTRUCTION How many times was country considered when starky % was 20.96% ### INPUT CREATE TABLE table_19681738_1 (county VARCHAR, starky__percentage VARCHAR) ### OUTPUT SELECT COUNT(county) FROM table_19681738_1 WHERE starky__percentage = "20.96%"
{ "input": "CREATE TABLE table_19681738_1 (county VARCHAR, starky__percentage VARCHAR)", "instruction": "How many times was country considered when starky % was 20.96%", "output": "SELECT COUNT(county) FROM table_19681738_1 WHERE starky__percentage = \"20.96%\"" }
### INSTRUCTION List directors and producers when the celebrities involved were Bill Turnbull and Louise Minchin. ### INPUT CREATE TABLE table_24725951_1 (directed_and_produced_by VARCHAR, celebrities VARCHAR) ### OUTPUT SELECT directed_and_produced_by FROM table_24725951_1 WHERE celebrities = "Bill Turnbull and Louise Minchin"
{ "input": "CREATE TABLE table_24725951_1 (directed_and_produced_by VARCHAR, celebrities VARCHAR)", "instruction": "List directors and producers when the celebrities involved were Bill Turnbull and Louise Minchin.", "output": "SELECT directed_and_produced_by FROM table_24725951_1 WHERE celebrities = \"Bill Turnbull and Louise Minchin\"" }
### INSTRUCTION what is the highest qualifying rank where the competition is olympic trials, the final-rank is 4 and qualifying score is 15.100? ### INPUT CREATE TABLE table_13114949_3 (qualifying_rank INTEGER, qualifying_score VARCHAR, competition VARCHAR, final_rank VARCHAR) ### OUTPUT SELECT MAX(qualifying_rank) FROM table_13114949_3 WHERE competition = "Olympic Trials" AND final_rank = "4" AND qualifying_score = "15.100"
{ "input": "CREATE TABLE table_13114949_3 (qualifying_rank INTEGER, qualifying_score VARCHAR, competition VARCHAR, final_rank VARCHAR)", "instruction": "what is the highest qualifying rank where the competition is olympic trials, the final-rank is 4 and qualifying score is 15.100?", "output": "SELECT MAX(qualifying_rank) FROM table_13114949_3 WHERE competition = \"Olympic Trials\" AND final_rank = \"4\" AND qualifying_score = \"15.100\"" }
### INSTRUCTION What were highest points received from someone using a zabel-wsp with a position greater than 7? ### INPUT CREATE TABLE table_name_15 (points INTEGER, equipment VARCHAR, position VARCHAR) ### OUTPUT SELECT MAX(points) FROM table_name_15 WHERE equipment = "zabel-wsp" AND position > 7
{ "input": "CREATE TABLE table_name_15 (points INTEGER, equipment VARCHAR, position VARCHAR)", "instruction": "What were highest points received from someone using a zabel-wsp with a position greater than 7?", "output": "SELECT MAX(points) FROM table_name_15 WHERE equipment = \"zabel-wsp\" AND position > 7" }
### INSTRUCTION List the names of the dogs of the rarest breed and the treatment dates of them. ### INPUT CREATE TABLE Dogs (name VARCHAR, dog_id VARCHAR, breed_code VARCHAR); CREATE TABLE Treatments (date_of_treatment VARCHAR, dog_id VARCHAR); CREATE TABLE Dogs (breed_code VARCHAR) ### OUTPUT SELECT T1.name, T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id WHERE T1.breed_code = (SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY COUNT(*) LIMIT 1)
{ "input": "CREATE TABLE Dogs (name VARCHAR, dog_id VARCHAR, breed_code VARCHAR); CREATE TABLE Treatments (date_of_treatment VARCHAR, dog_id VARCHAR); CREATE TABLE Dogs (breed_code VARCHAR)", "instruction": "List the names of the dogs of the rarest breed and the treatment dates of them.", "output": "SELECT T1.name, T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id WHERE T1.breed_code = (SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY COUNT(*) LIMIT 1)" }
### INSTRUCTION How many regular season titles did Kansas receive when they received fewer than 2 tournament titles and more than 0 total titles? ### INPUT CREATE TABLE table_name_25 (Regular VARCHAR, team VARCHAR, tournament VARCHAR, total VARCHAR) ### OUTPUT SELECT Regular AS season FROM table_name_25 WHERE tournament < 2 AND total > 0 AND team = "kansas"
{ "input": "CREATE TABLE table_name_25 (Regular VARCHAR, team VARCHAR, tournament VARCHAR, total VARCHAR)", "instruction": "How many regular season titles did Kansas receive when they received fewer than 2 tournament titles and more than 0 total titles?", "output": "SELECT Regular AS season FROM table_name_25 WHERE tournament < 2 AND total > 0 AND team = \"kansas\"" }
### INSTRUCTION Who was the mountain classification winner in the stage won by Alessandro Ballan? ### INPUT CREATE TABLE table_22917458_15 (mountains_classification_klasyfikacja_górska VARCHAR, winner VARCHAR) ### OUTPUT SELECT mountains_classification_klasyfikacja_górska FROM table_22917458_15 WHERE winner = "Alessandro Ballan"
{ "input": "CREATE TABLE table_22917458_15 (mountains_classification_klasyfikacja_górska VARCHAR, winner VARCHAR)", "instruction": "Who was the mountain classification winner in the stage won by Alessandro Ballan?", "output": "SELECT mountains_classification_klasyfikacja_górska FROM table_22917458_15 WHERE winner = \"Alessandro Ballan\"" }
### INSTRUCTION What is the maximum and minimum grade point of students who live in NYC? ### INPUT CREATE TABLE ENROLLED_IN (Grade VARCHAR, StuID VARCHAR); CREATE TABLE STUDENT (city_code VARCHAR, StuID VARCHAR); CREATE TABLE GRADECONVERSION (gradepoint INTEGER, lettergrade VARCHAR) ### OUTPUT SELECT MAX(T2.gradepoint), MIN(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.city_code = "NYC"
{ "input": "CREATE TABLE ENROLLED_IN (Grade VARCHAR, StuID VARCHAR); CREATE TABLE STUDENT (city_code VARCHAR, StuID VARCHAR); CREATE TABLE GRADECONVERSION (gradepoint INTEGER, lettergrade VARCHAR)", "instruction": "What is the maximum and minimum grade point of students who live in NYC?", "output": "SELECT MAX(T2.gradepoint), MIN(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.city_code = \"NYC\"" }
### INSTRUCTION Which Frequency MHz that has a ERP W larger than 205, and a Call sign of k230ap? ### INPUT CREATE TABLE table_name_52 (frequency_mhz INTEGER, erp_w VARCHAR, call_sign VARCHAR) ### OUTPUT SELECT MAX(frequency_mhz) FROM table_name_52 WHERE erp_w > 205 AND call_sign = "k230ap"
{ "input": "CREATE TABLE table_name_52 (frequency_mhz INTEGER, erp_w VARCHAR, call_sign VARCHAR)", "instruction": "Which Frequency MHz that has a ERP W larger than 205, and a Call sign of k230ap?", "output": "SELECT MAX(frequency_mhz) FROM table_name_52 WHERE erp_w > 205 AND call_sign = \"k230ap\"" }
### INSTRUCTION What is the total kills of the perpetrators with height more than 1.84. ### INPUT CREATE TABLE people (People_ID VARCHAR, Height INTEGER); CREATE TABLE perpetrator (Killed INTEGER, People_ID VARCHAR) ### OUTPUT SELECT SUM(T2.Killed) FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 1.84
{ "input": "CREATE TABLE people (People_ID VARCHAR, Height INTEGER); CREATE TABLE perpetrator (Killed INTEGER, People_ID VARCHAR)", "instruction": "What is the total kills of the perpetrators with height more than 1.84.", "output": "SELECT SUM(T2.Killed) FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 1.84" }
### INSTRUCTION How many Silver medals did the Nation with a Rank of less than 1 receive? ### INPUT CREATE TABLE table_name_37 (silver INTEGER, rank INTEGER) ### OUTPUT SELECT AVG(silver) FROM table_name_37 WHERE rank < 1
{ "input": "CREATE TABLE table_name_37 (silver INTEGER, rank INTEGER)", "instruction": "How many Silver medals did the Nation with a Rank of less than 1 receive?", "output": "SELECT AVG(silver) FROM table_name_37 WHERE rank < 1" }
### INSTRUCTION What was the pick# for Lorenzo Freeman as defensive tackle? ### INPUT CREATE TABLE table_name_97 (pick__number VARCHAR, position VARCHAR, player VARCHAR) ### OUTPUT SELECT pick__number FROM table_name_97 WHERE position = "defensive tackle" AND player = "lorenzo freeman"
{ "input": "CREATE TABLE table_name_97 (pick__number VARCHAR, position VARCHAR, player VARCHAR)", "instruction": "What was the pick# for Lorenzo Freeman as defensive tackle?", "output": "SELECT pick__number FROM table_name_97 WHERE position = \"defensive tackle\" AND player = \"lorenzo freeman\"" }
### INSTRUCTION What is the category Anuya Bhagvath was nominated for at vijay award? ### INPUT CREATE TABLE table_name_39 (ceremony VARCHAR, name VARCHAR, award VARCHAR, outcome VARCHAR) ### OUTPUT SELECT ceremony FROM table_name_39 WHERE award = "vijay award" AND outcome = "nominated" AND name = "anuya bhagvath"
{ "input": "CREATE TABLE table_name_39 (ceremony VARCHAR, name VARCHAR, award VARCHAR, outcome VARCHAR)", "instruction": "What is the category Anuya Bhagvath was nominated for at vijay award?", "output": "SELECT ceremony FROM table_name_39 WHERE award = \"vijay award\" AND outcome = \"nominated\" AND name = \"anuya bhagvath\"" }
### INSTRUCTION What is Pronunciation Spelled Free, when Pronunciation Spelled Checked is "ɑ"? ### INPUT CREATE TABLE table_name_24 (pronunciation_spelled_free VARCHAR, pronunciation_spelled_checked VARCHAR) ### OUTPUT SELECT pronunciation_spelled_free FROM table_name_24 WHERE pronunciation_spelled_checked = "ɑ"
{ "input": "CREATE TABLE table_name_24 (pronunciation_spelled_free VARCHAR, pronunciation_spelled_checked VARCHAR)", "instruction": "What is Pronunciation Spelled Free, when Pronunciation Spelled Checked is \"ɑ\"?", "output": "SELECT pronunciation_spelled_free FROM table_name_24 WHERE pronunciation_spelled_checked = \"ɑ\"" }
### INSTRUCTION Name the number of conference tournament for james madison ### INPUT CREATE TABLE table_22849575_6 (conference VARCHAR, tournament_winner VARCHAR) ### OUTPUT SELECT COUNT(conference) AS Tournament FROM table_22849575_6 WHERE tournament_winner = "James Madison"
{ "input": "CREATE TABLE table_22849575_6 (conference VARCHAR, tournament_winner VARCHAR)", "instruction": "Name the number of conference tournament for james madison", "output": "SELECT COUNT(conference) AS Tournament FROM table_22849575_6 WHERE tournament_winner = \"James Madison\"" }
### INSTRUCTION Which Date has a Location/Attendance of verizon center 7,448? ### INPUT CREATE TABLE table_name_15 (date VARCHAR, location_attendance VARCHAR) ### OUTPUT SELECT date FROM table_name_15 WHERE location_attendance = "verizon center 7,448"
{ "input": "CREATE TABLE table_name_15 (date VARCHAR, location_attendance VARCHAR)", "instruction": "Which Date has a Location/Attendance of verizon center 7,448?", "output": "SELECT date FROM table_name_15 WHERE location_attendance = \"verizon center 7,448\"" }
### INSTRUCTION What is the total number of round picks from the Morris Brown School? ### INPUT CREATE TABLE table_name_59 (round VARCHAR, school VARCHAR) ### OUTPUT SELECT COUNT(round) FROM table_name_59 WHERE school = "morris brown"
{ "input": "CREATE TABLE table_name_59 (round VARCHAR, school VARCHAR)", "instruction": "What is the total number of round picks from the Morris Brown School?", "output": "SELECT COUNT(round) FROM table_name_59 WHERE school = \"morris brown\"" }
### INSTRUCTION How many 5K wins did Emily Chebet, who had more than 2 total, have? ### INPUT ### OUTPUT SELECT COUNT(*) AS '5k wins' FROM table_name_80 WHERE runner = "emily chebet" AND total > 2
{ "input": "", "instruction": "How many 5K wins did Emily Chebet, who had more than 2 total, have?", "output": "SELECT COUNT(*) AS '5k wins' FROM table_name_80 WHERE runner = \"emily chebet\" AND total > 2" }
### INSTRUCTION When 68-292-68-292 is the ignition timing how many graphicals is it? ### INPUT CREATE TABLE table_22915134_2 (graphical VARCHAR, ignition_timing VARCHAR) ### OUTPUT SELECT COUNT(graphical) FROM table_22915134_2 WHERE ignition_timing = "68-292-68-292"
{ "input": "CREATE TABLE table_22915134_2 (graphical VARCHAR, ignition_timing VARCHAR)", "instruction": "When 68-292-68-292 is the ignition timing how many graphicals is it?", "output": "SELECT COUNT(graphical) FROM table_22915134_2 WHERE ignition_timing = \"68-292-68-292\"" }
### INSTRUCTION Which team played on April 1? ### INPUT CREATE TABLE table_13619053_9 (team VARCHAR, date VARCHAR) ### OUTPUT SELECT team FROM table_13619053_9 WHERE date = "April 1"
{ "input": "CREATE TABLE table_13619053_9 (team VARCHAR, date VARCHAR)", "instruction": "Which team played on April 1?", "output": "SELECT team FROM table_13619053_9 WHERE date = \"April 1\"" }
### INSTRUCTION What was actor Teresa Graves's series before the year 1993? ### INPUT CREATE TABLE table_name_82 (series VARCHAR, year VARCHAR, actor VARCHAR) ### OUTPUT SELECT series FROM table_name_82 WHERE year < 1993 AND actor = "teresa graves"
{ "input": "CREATE TABLE table_name_82 (series VARCHAR, year VARCHAR, actor VARCHAR)", "instruction": "What was actor Teresa Graves's series before the year 1993?", "output": "SELECT series FROM table_name_82 WHERE year < 1993 AND actor = \"teresa graves\"" }
### INSTRUCTION What is the lenth (miles) of endpoints westlake/macarthur park to wilshire/western? ### INPUT CREATE TABLE table_1817879_2 (length__miles_ VARCHAR, endpoints VARCHAR) ### OUTPUT SELECT length__miles_ FROM table_1817879_2 WHERE endpoints = "Westlake/MacArthur Park to Wilshire/Western"
{ "input": "CREATE TABLE table_1817879_2 (length__miles_ VARCHAR, endpoints VARCHAR)", "instruction": "What is the lenth (miles) of endpoints westlake/macarthur park to wilshire/western?", "output": "SELECT length__miles_ FROM table_1817879_2 WHERE endpoints = \"Westlake/MacArthur Park to Wilshire/Western\"" }
### INSTRUCTION What is the opening date of the musical at the adelphi theatre? ### INPUT CREATE TABLE table_name_6 (opening_date VARCHAR, classification VARCHAR, theatre VARCHAR) ### OUTPUT SELECT opening_date FROM table_name_6 WHERE classification = "musical" AND theatre = "adelphi theatre"
{ "input": "CREATE TABLE table_name_6 (opening_date VARCHAR, classification VARCHAR, theatre VARCHAR)", "instruction": "What is the opening date of the musical at the adelphi theatre?", "output": "SELECT opening_date FROM table_name_6 WHERE classification = \"musical\" AND theatre = \"adelphi theatre\"" }
### INSTRUCTION When is the appointment date for outgoing manager Petrik Sander? ### INPUT CREATE TABLE table_name_60 (date_of_appointment VARCHAR, outgoing_manager VARCHAR) ### OUTPUT SELECT date_of_appointment FROM table_name_60 WHERE outgoing_manager = "petrik sander"
{ "input": "CREATE TABLE table_name_60 (date_of_appointment VARCHAR, outgoing_manager VARCHAR)", "instruction": "When is the appointment date for outgoing manager Petrik Sander?", "output": "SELECT date_of_appointment FROM table_name_60 WHERE outgoing_manager = \"petrik sander\"" }
### INSTRUCTION What was the record on March 22? ### INPUT CREATE TABLE table_name_58 (record VARCHAR, date VARCHAR) ### OUTPUT SELECT record FROM table_name_58 WHERE date = "march 22"
{ "input": "CREATE TABLE table_name_58 (record VARCHAR, date VARCHAR)", "instruction": "What was the record on March 22?", "output": "SELECT record FROM table_name_58 WHERE date = \"march 22\"" }
### INSTRUCTION what is the ship types delivered when the total vessels built for usmc is 13 ships for usmc (plus 37 more for usn)? ### INPUT CREATE TABLE table_name_21 (ship_types_delivered VARCHAR, total_vessels_built_for_usmc VARCHAR) ### OUTPUT SELECT ship_types_delivered FROM table_name_21 WHERE total_vessels_built_for_usmc = "13 ships for usmc (plus 37 more for usn)"
{ "input": "CREATE TABLE table_name_21 (ship_types_delivered VARCHAR, total_vessels_built_for_usmc VARCHAR)", "instruction": "what is the ship types delivered when the total vessels built for usmc is 13 ships for usmc (plus 37 more for usn)?", "output": "SELECT ship_types_delivered FROM table_name_21 WHERE total_vessels_built_for_usmc = \"13 ships for usmc (plus 37 more for usn)\"" }
### INSTRUCTION Who was the team swash when the team guest captain was gail porter? ### INPUT CREATE TABLE table_25816476_2 (team_swash VARCHAR, team_guest_captain VARCHAR) ### OUTPUT SELECT team_swash FROM table_25816476_2 WHERE team_guest_captain = "Gail Porter"
{ "input": "CREATE TABLE table_25816476_2 (team_swash VARCHAR, team_guest_captain VARCHAR)", "instruction": "Who was the team swash when the team guest captain was gail porter?", "output": "SELECT team_swash FROM table_25816476_2 WHERE team_guest_captain = \"Gail Porter\"" }
### INSTRUCTION Which rider had less than 342 points in no more than 76 rides in 7 matches with more than 2 bonus points? ### INPUT CREATE TABLE table_name_37 (rider VARCHAR, bonus_pts VARCHAR, matches VARCHAR, total_points VARCHAR, rides VARCHAR) ### OUTPUT SELECT rider FROM table_name_37 WHERE total_points < 342 AND rides < 76 AND matches = 7 AND bonus_pts > 2
{ "input": "CREATE TABLE table_name_37 (rider VARCHAR, bonus_pts VARCHAR, matches VARCHAR, total_points VARCHAR, rides VARCHAR)", "instruction": "Which rider had less than 342 points in no more than 76 rides in 7 matches with more than 2 bonus points?", "output": "SELECT rider FROM table_name_37 WHERE total_points < 342 AND rides < 76 AND matches = 7 AND bonus_pts > 2" }
### INSTRUCTION what is the sum of the member when the saros is more than 127, gamma is less than 1.1508 and the magnitude is 0.742? ### INPUT CREATE TABLE table_name_11 (member INTEGER, magnitude VARCHAR, saros VARCHAR, gamma VARCHAR) ### OUTPUT SELECT SUM(member) FROM table_name_11 WHERE saros > 127 AND gamma < 1.1508 AND magnitude = 0.742
{ "input": "CREATE TABLE table_name_11 (member INTEGER, magnitude VARCHAR, saros VARCHAR, gamma VARCHAR)", "instruction": "what is the sum of the member when the saros is more than 127, gamma is less than 1.1508 and the magnitude is 0.742?", "output": "SELECT SUM(member) FROM table_name_11 WHERE saros > 127 AND gamma < 1.1508 AND magnitude = 0.742" }
### INSTRUCTION What time was the event k-1 the challenge 1999? ### INPUT CREATE TABLE table_name_1 (time VARCHAR, event VARCHAR) ### OUTPUT SELECT time FROM table_name_1 WHERE event = "k-1 the challenge 1999"
{ "input": "CREATE TABLE table_name_1 (time VARCHAR, event VARCHAR)", "instruction": "What time was the event k-1 the challenge 1999?", "output": "SELECT time FROM table_name_1 WHERE event = \"k-1 the challenge 1999\"" }
### INSTRUCTION Show the album names, ids and the number of tracks for each album. ### INPUT CREATE TABLE ALBUM (Title VARCHAR, AlbumId VARCHAR); CREATE TABLE TRACK (AlbumID VARCHAR, AlbumId VARCHAR) ### OUTPUT SELECT T1.Title, T2.AlbumID, COUNT(*) FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId GROUP BY T2.AlbumID
{ "input": "CREATE TABLE ALBUM (Title VARCHAR, AlbumId VARCHAR); CREATE TABLE TRACK (AlbumID VARCHAR, AlbumId VARCHAR)", "instruction": "Show the album names, ids and the number of tracks for each album.", "output": "SELECT T1.Title, T2.AlbumID, COUNT(*) FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId GROUP BY T2.AlbumID" }
### INSTRUCTION What's the exposure fusion of Panoramaplus x4? ### INPUT CREATE TABLE table_name_38 (exposure_fusion VARCHAR, name VARCHAR) ### OUTPUT SELECT exposure_fusion FROM table_name_38 WHERE name = "panoramaplus x4"
{ "input": "CREATE TABLE table_name_38 (exposure_fusion VARCHAR, name VARCHAR)", "instruction": "What's the exposure fusion of Panoramaplus x4?", "output": "SELECT exposure_fusion FROM table_name_38 WHERE name = \"panoramaplus x4\"" }
### INSTRUCTION Show the names of products that are in at least two events in ascending alphabetical order of product name. ### INPUT CREATE TABLE Products (Product_Name VARCHAR, Product_ID VARCHAR); CREATE TABLE Products_in_Events (Product_ID VARCHAR) ### OUTPUT SELECT T1.Product_Name FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name HAVING COUNT(*) >= 2 ORDER BY T1.Product_Name
{ "input": "CREATE TABLE Products (Product_Name VARCHAR, Product_ID VARCHAR); CREATE TABLE Products_in_Events (Product_ID VARCHAR)", "instruction": "Show the names of products that are in at least two events in ascending alphabetical order of product name.", "output": "SELECT T1.Product_Name FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name HAVING COUNT(*) >= 2 ORDER BY T1.Product_Name" }
### INSTRUCTION How many countries had a per capita withdrawal (m 3 /p/yr) of 372? ### INPUT CREATE TABLE table_15909409_2 (country VARCHAR, per_capita_withdrawal__m_3__p_yr_ VARCHAR) ### OUTPUT SELECT COUNT(country) FROM table_15909409_2 WHERE per_capita_withdrawal__m_3__p_yr_ = 372
{ "input": "CREATE TABLE table_15909409_2 (country VARCHAR, per_capita_withdrawal__m_3__p_yr_ VARCHAR)", "instruction": "How many countries had a per capita withdrawal (m 3 /p/yr) of 372?", "output": "SELECT COUNT(country) FROM table_15909409_2 WHERE per_capita_withdrawal__m_3__p_yr_ = 372" }
### INSTRUCTION Find the average age of students living in each dorm and the name of dorm. ### INPUT CREATE TABLE dorm (dorm_name VARCHAR, dormid VARCHAR); CREATE TABLE student (age INTEGER, stuid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR) ### OUTPUT SELECT AVG(T1.age), T3.dorm_name FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid GROUP BY T3.dorm_name
{ "input": "CREATE TABLE dorm (dorm_name VARCHAR, dormid VARCHAR); CREATE TABLE student (age INTEGER, stuid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR)", "instruction": "Find the average age of students living in each dorm and the name of dorm.", "output": "SELECT AVG(T1.age), T3.dorm_name FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid GROUP BY T3.dorm_name" }
### INSTRUCTION Who held the Intergiro classificaiton when the Trofeo Fast Team is gb-mg maglificio? ### INPUT CREATE TABLE table_name_29 (intergiro_classification VARCHAR, trofeo_fast_team VARCHAR) ### OUTPUT SELECT intergiro_classification FROM table_name_29 WHERE trofeo_fast_team = "gb-mg maglificio"
{ "input": "CREATE TABLE table_name_29 (intergiro_classification VARCHAR, trofeo_fast_team VARCHAR)", "instruction": "Who held the Intergiro classificaiton when the Trofeo Fast Team is gb-mg maglificio?", "output": "SELECT intergiro_classification FROM table_name_29 WHERE trofeo_fast_team = \"gb-mg maglificio\"" }
### INSTRUCTION Name the lowest Seats 2010 which has Seats 2005 smaller than 9, and a Governorate of al muthanna governorate, and an In/de-creased by larger than 2? ### INPUT CREATE TABLE table_name_46 (seats_2010 INTEGER, in_de_creased_by VARCHAR, seats_2005 VARCHAR, governorate VARCHAR) ### OUTPUT SELECT MIN(seats_2010) FROM table_name_46 WHERE seats_2005 < 9 AND governorate = "al muthanna governorate" AND in_de_creased_by > 2
{ "input": "CREATE TABLE table_name_46 (seats_2010 INTEGER, in_de_creased_by VARCHAR, seats_2005 VARCHAR, governorate VARCHAR)", "instruction": "Name the lowest Seats 2010 which has Seats 2005 smaller than 9, and a Governorate of al muthanna governorate, and an In/de-creased by larger than 2?", "output": "SELECT MIN(seats_2010) FROM table_name_46 WHERE seats_2005 < 9 AND governorate = \"al muthanna governorate\" AND in_de_creased_by > 2" }
### INSTRUCTION Which method was used in the welterweight class with a preliminary card? ### INPUT CREATE TABLE table_name_58 (method VARCHAR, weight_class VARCHAR, card VARCHAR) ### OUTPUT SELECT method FROM table_name_58 WHERE weight_class = "welterweight" AND card = "preliminary"
{ "input": "CREATE TABLE table_name_58 (method VARCHAR, weight_class VARCHAR, card VARCHAR)", "instruction": "Which method was used in the welterweight class with a preliminary card?", "output": "SELECT method FROM table_name_58 WHERE weight_class = \"welterweight\" AND card = \"preliminary\"" }
### INSTRUCTION How many pre-race analysis occur when Allen Bestwick does the lap-by-lap? ### INPUT CREATE TABLE table_10716893_3 (pre_race_analyst VARCHAR, lap_by_lap VARCHAR) ### OUTPUT SELECT COUNT(pre_race_analyst) FROM table_10716893_3 WHERE lap_by_lap = "Allen Bestwick"
{ "input": "CREATE TABLE table_10716893_3 (pre_race_analyst VARCHAR, lap_by_lap VARCHAR)", "instruction": "How many pre-race analysis occur when Allen Bestwick does the lap-by-lap?", "output": "SELECT COUNT(pre_race_analyst) FROM table_10716893_3 WHERE lap_by_lap = \"Allen Bestwick\"" }
### INSTRUCTION What is the car number that has less than 369 laps for a Dodge with more than 49 points? ### INPUT CREATE TABLE table_name_62 (car__number INTEGER, points VARCHAR, laps VARCHAR, make VARCHAR) ### OUTPUT SELECT SUM(car__number) FROM table_name_62 WHERE laps < 369 AND make = "dodge" AND points > 49
{ "input": "CREATE TABLE table_name_62 (car__number INTEGER, points VARCHAR, laps VARCHAR, make VARCHAR)", "instruction": "What is the car number that has less than 369 laps for a Dodge with more than 49 points?", "output": "SELECT SUM(car__number) FROM table_name_62 WHERE laps < 369 AND make = \"dodge\" AND points > 49" }
### INSTRUCTION I want the lowest Gold for silver being 2 and electronic sports ### INPUT CREATE TABLE table_name_98 (gold INTEGER, silver VARCHAR, sport VARCHAR) ### OUTPUT SELECT MIN(gold) FROM table_name_98 WHERE silver = 2 AND sport = "electronic sports"
{ "input": "CREATE TABLE table_name_98 (gold INTEGER, silver VARCHAR, sport VARCHAR)", "instruction": "I want the lowest Gold for silver being 2 and electronic sports", "output": "SELECT MIN(gold) FROM table_name_98 WHERE silver = 2 AND sport = \"electronic sports\"" }
### INSTRUCTION On which date did the Indians have a record of 67-58 ### INPUT CREATE TABLE table_name_92 (date VARCHAR, record VARCHAR) ### OUTPUT SELECT date FROM table_name_92 WHERE record = "67-58"
{ "input": "CREATE TABLE table_name_92 (date VARCHAR, record VARCHAR)", "instruction": "On which date did the Indians have a record of 67-58", "output": "SELECT date FROM table_name_92 WHERE record = \"67-58\"" }
### INSTRUCTION Who did the high rebounds in the game where Larry Hughes (21) did the high ponts? ### INPUT CREATE TABLE table_23248869_6 (high_rebounds VARCHAR, high_points VARCHAR) ### OUTPUT SELECT high_rebounds FROM table_23248869_6 WHERE high_points = "Larry Hughes (21)"
{ "input": "CREATE TABLE table_23248869_6 (high_rebounds VARCHAR, high_points VARCHAR)", "instruction": "Who did the high rebounds in the game where Larry Hughes (21) did the high ponts?", "output": "SELECT high_rebounds FROM table_23248869_6 WHERE high_points = \"Larry Hughes (21)\"" }
### INSTRUCTION What race number had sail number AUS 98888? ### INPUT CREATE TABLE table_20854943_2 (race_number VARCHAR, sail_number VARCHAR) ### OUTPUT SELECT race_number FROM table_20854943_2 WHERE sail_number = "AUS 98888"
{ "input": "CREATE TABLE table_20854943_2 (race_number VARCHAR, sail_number VARCHAR)", "instruction": "What race number had sail number AUS 98888?", "output": "SELECT race_number FROM table_20854943_2 WHERE sail_number = \"AUS 98888\"" }
### INSTRUCTION Which gymnast had a balance beam larger than 8.687, had a total less than 38.049, had a floor exercise less than 9.462, and a vault less than 9.275? ### INPUT CREATE TABLE table_name_91 (gymnast VARCHAR, vault VARCHAR, floor_exercise VARCHAR, balance_beam VARCHAR, total VARCHAR) ### OUTPUT SELECT gymnast FROM table_name_91 WHERE balance_beam > 8.687 AND total < 38.049 AND floor_exercise < 9.462 AND vault < 9.275
{ "input": "CREATE TABLE table_name_91 (gymnast VARCHAR, vault VARCHAR, floor_exercise VARCHAR, balance_beam VARCHAR, total VARCHAR)", "instruction": "Which gymnast had a balance beam larger than 8.687, had a total less than 38.049, had a floor exercise less than 9.462, and a vault less than 9.275?", "output": "SELECT gymnast FROM table_name_91 WHERE balance_beam > 8.687 AND total < 38.049 AND floor_exercise < 9.462 AND vault < 9.275" }
### INSTRUCTION what is the highest ANSI code with a latitude more than 47.623288 and a geo id more than 3805508060 with land (sqmi) more than 35.66 and a longitude less than -102.054248 ### INPUT CREATE TABLE table_name_98 (ansi_code INTEGER, longitude VARCHAR, land___sqmi__ VARCHAR, latitude VARCHAR, geo_id VARCHAR) ### OUTPUT SELECT MAX(ansi_code) FROM table_name_98 WHERE latitude > 47.623288 AND geo_id > 3805508060 AND land___sqmi__ > 35.66 AND longitude < -102.054248
{ "input": "CREATE TABLE table_name_98 (ansi_code INTEGER, longitude VARCHAR, land___sqmi__ VARCHAR, latitude VARCHAR, geo_id VARCHAR)", "instruction": "what is the highest ANSI code with a latitude more than 47.623288 and a geo id more than 3805508060 with land (sqmi) more than 35.66 and a longitude less than -102.054248", "output": "SELECT MAX(ansi_code) FROM table_name_98 WHERE latitude > 47.623288 AND geo_id > 3805508060 AND land___sqmi__ > 35.66 AND longitude < -102.054248" }
### INSTRUCTION Who's in the high assists with a w 97–94 (ot) score? ### INPUT CREATE TABLE table_27721131_2 (high_assists VARCHAR, score VARCHAR) ### OUTPUT SELECT high_assists FROM table_27721131_2 WHERE score = "W 97–94 (OT)"
{ "input": "CREATE TABLE table_27721131_2 (high_assists VARCHAR, score VARCHAR)", "instruction": "Who's in the high assists with a w 97–94 (ot) score?", "output": "SELECT high_assists FROM table_27721131_2 WHERE score = \"W 97–94 (OT)\"" }
### INSTRUCTION What competition was played on 2 June 1992? ### INPUT CREATE TABLE table_name_4 (competition VARCHAR, date VARCHAR) ### OUTPUT SELECT competition FROM table_name_4 WHERE date = "2 june 1992"
{ "input": "CREATE TABLE table_name_4 (competition VARCHAR, date VARCHAR)", "instruction": "What competition was played on 2 June 1992?", "output": "SELECT competition FROM table_name_4 WHERE date = \"2 june 1992\"" }
### INSTRUCTION Which city is the headquarter of the store named "Blackville" in? ### INPUT CREATE TABLE store (store_id VARCHAR, store_name VARCHAR); CREATE TABLE district (headquartered_city VARCHAR, district_id VARCHAR); CREATE TABLE store_district (store_id VARCHAR, district_id VARCHAR) ### OUTPUT SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.store_name = "Blackville"
{ "input": "CREATE TABLE store (store_id VARCHAR, store_name VARCHAR); CREATE TABLE district (headquartered_city VARCHAR, district_id VARCHAR); CREATE TABLE store_district (store_id VARCHAR, district_id VARCHAR)", "instruction": "Which city is the headquarter of the store named \"Blackville\" in?", "output": "SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.store_name = \"Blackville\"" }
### INSTRUCTION What is the power of b-b wheel arrangement, built in 1952? ### INPUT CREATE TABLE table_name_88 (power_output VARCHAR, wheel_arrangement VARCHAR, build_date VARCHAR) ### OUTPUT SELECT power_output FROM table_name_88 WHERE wheel_arrangement = "b-b" AND build_date = "1952"
{ "input": "CREATE TABLE table_name_88 (power_output VARCHAR, wheel_arrangement VARCHAR, build_date VARCHAR)", "instruction": "What is the power of b-b wheel arrangement, built in 1952?", "output": "SELECT power_output FROM table_name_88 WHERE wheel_arrangement = \"b-b\" AND build_date = \"1952\"" }
### INSTRUCTION Which 1997's accompanying 1991 was a when the tournament was the australian open? ### INPUT CREATE TABLE table_name_57 (tournament VARCHAR) ### OUTPUT SELECT 1997 FROM table_name_57 WHERE 1991 = "a" AND tournament = "australian open"
{ "input": "CREATE TABLE table_name_57 (tournament VARCHAR)", "instruction": "Which 1997's accompanying 1991 was a when the tournament was the australian open?", "output": "SELECT 1997 FROM table_name_57 WHERE 1991 = \"a\" AND tournament = \"australian open\"" }
### INSTRUCTION how many laps have a time/retired of +1 lap and mark blundell is the driver? ### INPUT CREATE TABLE table_name_85 (laps INTEGER, time_retired VARCHAR, driver VARCHAR) ### OUTPUT SELECT AVG(laps) FROM table_name_85 WHERE time_retired = "+1 lap" AND driver = "mark blundell"
{ "input": "CREATE TABLE table_name_85 (laps INTEGER, time_retired VARCHAR, driver VARCHAR)", "instruction": "how many laps have a time/retired of +1 lap and mark blundell is the driver?", "output": "SELECT AVG(laps) FROM table_name_85 WHERE time_retired = \"+1 lap\" AND driver = \"mark blundell\"" }
### INSTRUCTION Show the name of each party and the corresponding number of delegates from that party. ### INPUT CREATE TABLE election (Party VARCHAR); CREATE TABLE party (Party VARCHAR, Party_ID VARCHAR) ### OUTPUT SELECT T2.Party, COUNT(*) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party
{ "input": "CREATE TABLE election (Party VARCHAR); CREATE TABLE party (Party VARCHAR, Party_ID VARCHAR)", "instruction": "Show the name of each party and the corresponding number of delegates from that party.", "output": "SELECT T2.Party, COUNT(*) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T1.Party" }
### INSTRUCTION What is the margin of victory in the race where Justin Rose was the runner-up? ### INPUT CREATE TABLE table_name_48 (margin_of_victory VARCHAR, runner_s__up VARCHAR) ### OUTPUT SELECT margin_of_victory FROM table_name_48 WHERE runner_s__up = "justin rose"
{ "input": "CREATE TABLE table_name_48 (margin_of_victory VARCHAR, runner_s__up VARCHAR)", "instruction": "What is the margin of victory in the race where Justin Rose was the runner-up?", "output": "SELECT margin_of_victory FROM table_name_48 WHERE runner_s__up = \"justin rose\"" }
### INSTRUCTION What are all the policy types of the customer named "Dayana Robel"? ### INPUT CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE available_policies (policy_type_code VARCHAR, policy_id VARCHAR); CREATE TABLE customers_policies (customer_id VARCHAR, policy_id VARCHAR) ### OUTPUT SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = "Dayana Robel"
{ "input": "CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE available_policies (policy_type_code VARCHAR, policy_id VARCHAR); CREATE TABLE customers_policies (customer_id VARCHAR, policy_id VARCHAR)", "instruction": "What are all the policy types of the customer named \"Dayana Robel\"?", "output": "SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = \"Dayana Robel\"" }
### INSTRUCTION In how many districts was the democratic incumbent elected in 1974? ### INPUT CREATE TABLE table_1341568_34 (district VARCHAR, party VARCHAR, elected VARCHAR) ### OUTPUT SELECT COUNT(district) FROM table_1341568_34 WHERE party = "Democratic" AND elected = 1974
{ "input": "CREATE TABLE table_1341568_34 (district VARCHAR, party VARCHAR, elected VARCHAR)", "instruction": "In how many districts was the democratic incumbent elected in 1974? ", "output": "SELECT COUNT(district) FROM table_1341568_34 WHERE party = \"Democratic\" AND elected = 1974" }