text
stringlengths
147
1.06k
source
dict
### INSTRUCTION What are all the songs in albums under label "Universal Music Group"? ### INPUT CREATE TABLE songs (title VARCHAR, songid VARCHAR); CREATE TABLE albums (aid VARCHAR); CREATE TABLE tracklists (albumid VARCHAR, songid VARCHAR) ### OUTPUT SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE t1.label = "Universal Music Group"
{ "input": "CREATE TABLE songs (title VARCHAR, songid VARCHAR); CREATE TABLE albums (aid VARCHAR); CREATE TABLE tracklists (albumid VARCHAR, songid VARCHAR)", "instruction": "What are all the songs in albums under label \"Universal Music Group\"?", "output": "SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE t1.label = \"Universal Music Group\"" }
### INSTRUCTION Name the number of team for 35 runs margin and india winner ### INPUT CREATE TABLE table_1594772_2 (team__b_ VARCHAR, margin VARCHAR, winner VARCHAR) ### OUTPUT SELECT COUNT(team__b_) FROM table_1594772_2 WHERE margin = "35 runs" AND winner = "India"
{ "input": "CREATE TABLE table_1594772_2 (team__b_ VARCHAR, margin VARCHAR, winner VARCHAR)", "instruction": "Name the number of team for 35 runs margin and india winner", "output": "SELECT COUNT(team__b_) FROM table_1594772_2 WHERE margin = \"35 runs\" AND winner = \"India\"" }
### INSTRUCTION Which player scored the most points and how many were scored on November 6? ### INPUT CREATE TABLE table_27744844_5 (high_points VARCHAR, date VARCHAR) ### OUTPUT SELECT high_points FROM table_27744844_5 WHERE date = "November 6"
{ "input": "CREATE TABLE table_27744844_5 (high_points VARCHAR, date VARCHAR)", "instruction": "Which player scored the most points and how many were scored on November 6?", "output": "SELECT high_points FROM table_27744844_5 WHERE date = \"November 6\"" }
### INSTRUCTION Which Elevator has a Title of bishop of palestrina? ### INPUT CREATE TABLE table_name_29 (elevator VARCHAR, title VARCHAR) ### OUTPUT SELECT elevator FROM table_name_29 WHERE title = "bishop of palestrina"
{ "input": "CREATE TABLE table_name_29 (elevator VARCHAR, title VARCHAR)", "instruction": "Which Elevator has a Title of bishop of palestrina?", "output": "SELECT elevator FROM table_name_29 WHERE title = \"bishop of palestrina\"" }
### INSTRUCTION What is the Frequency at the Market/Rank of Burlington - Plattsburgh , Vermont - New York /143? ### INPUT CREATE TABLE table_10333757_1 (frequency VARCHAR, market_rank VARCHAR) ### OUTPUT SELECT COUNT(frequency) FROM table_10333757_1 WHERE market_rank = "Burlington - Plattsburgh , Vermont - New York /143"
{ "input": "CREATE TABLE table_10333757_1 (frequency VARCHAR, market_rank VARCHAR)", "instruction": "What is the Frequency at the Market/Rank of Burlington - Plattsburgh , Vermont - New York /143?", "output": "SELECT COUNT(frequency) FROM table_10333757_1 WHERE market_rank = \"Burlington - Plattsburgh , Vermont - New York /143\"" }
### INSTRUCTION Who was in Academic & University Affairs when Andrew Langille was in local affairs? ### INPUT CREATE TABLE table_name_72 (academic_ VARCHAR, _university_affairs VARCHAR, local_affairs VARCHAR) ### OUTPUT SELECT academic_ & _university_affairs FROM table_name_72 WHERE local_affairs = "andrew langille"
{ "input": "CREATE TABLE table_name_72 (academic_ VARCHAR, _university_affairs VARCHAR, local_affairs VARCHAR)", "instruction": "Who was in Academic & University Affairs when Andrew Langille was in local affairs?", "output": "SELECT academic_ & _university_affairs FROM table_name_72 WHERE local_affairs = \"andrew langille\"" }
### INSTRUCTION What's the United States team that played for the Grizzlies in 1995-1996? ### INPUT CREATE TABLE table_name_51 (school_club_team VARCHAR, nationality VARCHAR, years_for_grizzlies VARCHAR) ### OUTPUT SELECT school_club_team FROM table_name_51 WHERE nationality = "united states" AND years_for_grizzlies = "1995-1996"
{ "input": "CREATE TABLE table_name_51 (school_club_team VARCHAR, nationality VARCHAR, years_for_grizzlies VARCHAR)", "instruction": "What's the United States team that played for the Grizzlies in 1995-1996?", "output": "SELECT school_club_team FROM table_name_51 WHERE nationality = \"united states\" AND years_for_grizzlies = \"1995-1996\"" }
### INSTRUCTION What is the average number of golds for teams with 1 bronze, less than 3 silver, and a total over 2? ### INPUT CREATE TABLE table_name_55 (gold INTEGER, silver VARCHAR, bronze VARCHAR, total VARCHAR) ### OUTPUT SELECT AVG(gold) FROM table_name_55 WHERE bronze = 1 AND total > 2 AND silver < 3
{ "input": "CREATE TABLE table_name_55 (gold INTEGER, silver VARCHAR, bronze VARCHAR, total VARCHAR)", "instruction": "What is the average number of golds for teams with 1 bronze, less than 3 silver, and a total over 2?", "output": "SELECT AVG(gold) FROM table_name_55 WHERE bronze = 1 AND total > 2 AND silver < 3" }
### INSTRUCTION What's the average Year with an Issue Price (Proof) of $49.95, and Artist of W.H.J. Blakemore? ### INPUT CREATE TABLE table_name_19 (year INTEGER, issue_price__proof_ VARCHAR, artist VARCHAR) ### OUTPUT SELECT AVG(year) FROM table_name_19 WHERE issue_price__proof_ = "$49.95" AND artist = "w.h.j. blakemore"
{ "input": "CREATE TABLE table_name_19 (year INTEGER, issue_price__proof_ VARCHAR, artist VARCHAR)", "instruction": "What's the average Year with an Issue Price (Proof) of $49.95, and Artist of W.H.J. Blakemore?", "output": "SELECT AVG(year) FROM table_name_19 WHERE issue_price__proof_ = \"$49.95\" AND artist = \"w.h.j. blakemore\"" }
### INSTRUCTION How many are in the Green Party with a Fine Gael of less than 4 and a Fianna Fail of less than 2 in Athy? ### INPUT CREATE TABLE table_name_41 (green_party INTEGER, town VARCHAR, fine_gael VARCHAR, fianna_fáil VARCHAR) ### OUTPUT SELECT SUM(green_party) FROM table_name_41 WHERE fine_gael < 4 AND fianna_fáil < 2 AND town = "athy"
{ "input": "CREATE TABLE table_name_41 (green_party INTEGER, town VARCHAR, fine_gael VARCHAR, fianna_fáil VARCHAR)", "instruction": "How many are in the Green Party with a Fine Gael of less than 4 and a Fianna Fail of less than 2 in Athy?", "output": "SELECT SUM(green_party) FROM table_name_41 WHERE fine_gael < 4 AND fianna_fáil < 2 AND town = \"athy\"" }
### INSTRUCTION What is the average public debt % of GDP in 2013 Q1 of the country with a member slate sorted by GDP of Czech Republic and a GDP per capita in PPP US dollars in 2012 greater than 27,191? ### INPUT CREATE TABLE table_name_7 (public_debt__percentage_of_gdp__2013_q1_ INTEGER, member_state_sorted_by_gdp VARCHAR, gdp_per_capita_in_ppp_us$__2012_ VARCHAR) ### OUTPUT SELECT AVG(public_debt__percentage_of_gdp__2013_q1_) FROM table_name_7 WHERE member_state_sorted_by_gdp = "czech republic" AND gdp_per_capita_in_ppp_us$__2012_ > 27 OFFSET 191
{ "input": "CREATE TABLE table_name_7 (public_debt__percentage_of_gdp__2013_q1_ INTEGER, member_state_sorted_by_gdp VARCHAR, gdp_per_capita_in_ppp_us$__2012_ VARCHAR)", "instruction": "What is the average public debt % of GDP in 2013 Q1 of the country with a member slate sorted by GDP of Czech Republic and a GDP per capita in PPP US dollars in 2012 greater than 27,191?", "output": "SELECT AVG(public_debt__percentage_of_gdp__2013_q1_) FROM table_name_7 WHERE member_state_sorted_by_gdp = \"czech republic\" AND gdp_per_capita_in_ppp_us$__2012_ > 27 OFFSET 191" }
### INSTRUCTION What is the event where the opponent was Chris Barden? ### INPUT CREATE TABLE table_name_12 (event VARCHAR, opponent VARCHAR) ### OUTPUT SELECT event FROM table_name_12 WHERE opponent = "chris barden"
{ "input": "CREATE TABLE table_name_12 (event VARCHAR, opponent VARCHAR)", "instruction": "What is the event where the opponent was Chris Barden?", "output": "SELECT event FROM table_name_12 WHERE opponent = \"chris barden\"" }
### INSTRUCTION What event was Rob Vine riding? ### INPUT CREATE TABLE table_name_56 (event VARCHAR, rider VARCHAR) ### OUTPUT SELECT event FROM table_name_56 WHERE rider = "rob vine"
{ "input": "CREATE TABLE table_name_56 (event VARCHAR, rider VARCHAR)", "instruction": "What event was Rob Vine riding?", "output": "SELECT event FROM table_name_56 WHERE rider = \"rob vine\"" }
### INSTRUCTION Find the first names of professors who are teaching more than one class. ### INPUT CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR); CREATE TABLE CLASS (prof_num VARCHAR) ### OUTPUT SELECT T2.emp_fname FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num GROUP BY T1.prof_num HAVING COUNT(*) > 1
{ "input": "CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR); CREATE TABLE CLASS (prof_num VARCHAR)", "instruction": "Find the first names of professors who are teaching more than one class.", "output": "SELECT T2.emp_fname FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num GROUP BY T1.prof_num HAVING COUNT(*) > 1" }
### INSTRUCTION How many wins were in the PGA Championship when there were more than 10 events? ### INPUT CREATE TABLE table_name_55 (wins VARCHAR, tournament VARCHAR, events VARCHAR) ### OUTPUT SELECT COUNT(wins) FROM table_name_55 WHERE tournament = "pga championship" AND events > 10
{ "input": "CREATE TABLE table_name_55 (wins VARCHAR, tournament VARCHAR, events VARCHAR)", "instruction": "How many wins were in the PGA Championship when there were more than 10 events?", "output": "SELECT COUNT(wins) FROM table_name_55 WHERE tournament = \"pga championship\" AND events > 10" }
### INSTRUCTION What are the goals for a lost of Involuntary suspension of Season (hurricane Rita)? ### INPUT CREATE TABLE table_name_44 (goals_for VARCHAR, lost VARCHAR) ### OUTPUT SELECT goals_for FROM table_name_44 WHERE lost = "involuntary suspension of season (hurricane rita)"
{ "input": "CREATE TABLE table_name_44 (goals_for VARCHAR, lost VARCHAR)", "instruction": "What are the goals for a lost of Involuntary suspension of Season (hurricane Rita)?", "output": "SELECT goals_for FROM table_name_44 WHERE lost = \"involuntary suspension of season (hurricane rita)\"" }
### INSTRUCTION What Motion Picture after 2003 had Viola Davis nominated for Best Supporting Actress? ### INPUT CREATE TABLE table_name_70 (motion_picture VARCHAR, award VARCHAR, actor VARCHAR, year VARCHAR, result VARCHAR) ### OUTPUT SELECT motion_picture FROM table_name_70 WHERE year > 2003 AND result = "nominated" AND actor = "viola davis" AND award = "best supporting actress"
{ "input": "CREATE TABLE table_name_70 (motion_picture VARCHAR, award VARCHAR, actor VARCHAR, year VARCHAR, result VARCHAR)", "instruction": "What Motion Picture after 2003 had Viola Davis nominated for Best Supporting Actress?", "output": "SELECT motion_picture FROM table_name_70 WHERE year > 2003 AND result = \"nominated\" AND actor = \"viola davis\" AND award = \"best supporting actress\"" }
### INSTRUCTION What To par has a Country of united states, and a Score of 67-66-78-77=288? ### INPUT CREATE TABLE table_name_52 (to_par VARCHAR, country VARCHAR, score VARCHAR) ### OUTPUT SELECT to_par FROM table_name_52 WHERE country = "united states" AND score = 67 - 66 - 78 - 77 = 288
{ "input": "CREATE TABLE table_name_52 (to_par VARCHAR, country VARCHAR, score VARCHAR)", "instruction": "What To par has a Country of united states, and a Score of 67-66-78-77=288?", "output": "SELECT to_par FROM table_name_52 WHERE country = \"united states\" AND score = 67 - 66 - 78 - 77 = 288" }
### INSTRUCTION How many different kinds of reports are there for races that Juan Manuel Fangio won? ### INPUT CREATE TABLE table_1140111_5 (report VARCHAR, winning_driver VARCHAR) ### OUTPUT SELECT COUNT(report) FROM table_1140111_5 WHERE winning_driver = "Juan Manuel Fangio"
{ "input": "CREATE TABLE table_1140111_5 (report VARCHAR, winning_driver VARCHAR)", "instruction": "How many different kinds of reports are there for races that Juan Manuel Fangio won?", "output": "SELECT COUNT(report) FROM table_1140111_5 WHERE winning_driver = \"Juan Manuel Fangio\"" }
### INSTRUCTION Name the difference for when drawn is larger than 2.0 ### INPUT CREATE TABLE table_15400878_1 (difference VARCHAR, drawn INTEGER) ### OUTPUT SELECT difference FROM table_15400878_1 WHERE drawn > 2.0
{ "input": "CREATE TABLE table_15400878_1 (difference VARCHAR, drawn INTEGER)", "instruction": "Name the difference for when drawn is larger than 2.0", "output": "SELECT difference FROM table_15400878_1 WHERE drawn > 2.0" }
### INSTRUCTION What was the average speed (mph) for the racer who finished in 1:45:00? ### INPUT CREATE TABLE table_17802778_1 (average_speed__mph_ VARCHAR, race_time VARCHAR) ### OUTPUT SELECT average_speed__mph_ FROM table_17802778_1 WHERE race_time = "1:45:00"
{ "input": "CREATE TABLE table_17802778_1 (average_speed__mph_ VARCHAR, race_time VARCHAR)", "instruction": "What was the average speed (mph) for the racer who finished in 1:45:00?", "output": "SELECT average_speed__mph_ FROM table_17802778_1 WHERE race_time = \"1:45:00\"" }
### INSTRUCTION Show the names of people, and dates and venues of debates they are on the negative side, ordered in ascending alphabetical order of name. ### INPUT CREATE TABLE people (Name VARCHAR, People_ID VARCHAR); CREATE TABLE debate (Date VARCHAR, Venue VARCHAR, Debate_ID VARCHAR); CREATE TABLE debate_people (Debate_ID VARCHAR, Negative VARCHAR) ### OUTPUT SELECT T3.Name, T2.Date, T2.Venue FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Negative = T3.People_ID ORDER BY T3.Name
{ "input": "CREATE TABLE people (Name VARCHAR, People_ID VARCHAR); CREATE TABLE debate (Date VARCHAR, Venue VARCHAR, Debate_ID VARCHAR); CREATE TABLE debate_people (Debate_ID VARCHAR, Negative VARCHAR)", "instruction": "Show the names of people, and dates and venues of debates they are on the negative side, ordered in ascending alphabetical order of name.", "output": "SELECT T3.Name, T2.Date, T2.Venue FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Negative = T3.People_ID ORDER BY T3.Name" }
### INSTRUCTION How many winning constructor catagories are there when Mark Webber had the fastest lap? ### INPUT CREATE TABLE table_26258348_4 (winning_constructor VARCHAR, fastest_lap VARCHAR) ### OUTPUT SELECT COUNT(winning_constructor) FROM table_26258348_4 WHERE fastest_lap = "Mark Webber"
{ "input": "CREATE TABLE table_26258348_4 (winning_constructor VARCHAR, fastest_lap VARCHAR)", "instruction": "How many winning constructor catagories are there when Mark Webber had the fastest lap? ", "output": "SELECT COUNT(winning_constructor) FROM table_26258348_4 WHERE fastest_lap = \"Mark Webber\"" }
### INSTRUCTION What is the area when the poor law union is skibbereen and the townland is knockmore? ### INPUT CREATE TABLE table_30121075_1 (area__acres__ VARCHAR, poor_law_union VARCHAR, townland VARCHAR) ### OUTPUT SELECT area__acres__ FROM table_30121075_1 WHERE poor_law_union = "Skibbereen" AND townland = "Knockmore"
{ "input": "CREATE TABLE table_30121075_1 (area__acres__ VARCHAR, poor_law_union VARCHAR, townland VARCHAR)", "instruction": "What is the area when the poor law union is skibbereen and the townland is knockmore?", "output": "SELECT area__acres__ FROM table_30121075_1 WHERE poor_law_union = \"Skibbereen\" AND townland = \"Knockmore\"" }
### INSTRUCTION What is the highest crude death rate when deaths are 3 433 and average population is greater than 298? ### INPUT CREATE TABLE table_name_16 (crude_death_rate__per_1000_ INTEGER, deaths VARCHAR, average_population__x_1000_ VARCHAR) ### OUTPUT SELECT MAX(crude_death_rate__per_1000_) FROM table_name_16 WHERE deaths = "3 433" AND average_population__x_1000_ > 298
{ "input": "CREATE TABLE table_name_16 (crude_death_rate__per_1000_ INTEGER, deaths VARCHAR, average_population__x_1000_ VARCHAR)", "instruction": "What is the highest crude death rate when deaths are 3 433 and average population is greater than 298?", "output": "SELECT MAX(crude_death_rate__per_1000_) FROM table_name_16 WHERE deaths = \"3 433\" AND average_population__x_1000_ > 298" }
### INSTRUCTION What is the name of the player with a To par of –4? ### INPUT CREATE TABLE table_name_41 (player VARCHAR, to_par VARCHAR) ### OUTPUT SELECT player FROM table_name_41 WHERE to_par = "–4"
{ "input": "CREATE TABLE table_name_41 (player VARCHAR, to_par VARCHAR)", "instruction": "What is the name of the player with a To par of –4?", "output": "SELECT player FROM table_name_41 WHERE to_par = \"–4\"" }
### INSTRUCTION What is the smallest finish time for a race where start was less than 3, buick was the manufacturer, and the race was held after 1978? ### INPUT CREATE TABLE table_name_45 (finish INTEGER, start VARCHAR, year VARCHAR, manufacturer VARCHAR) ### OUTPUT SELECT MIN(finish) FROM table_name_45 WHERE year > 1978 AND manufacturer = "buick" AND start < 3
{ "input": "CREATE TABLE table_name_45 (finish INTEGER, start VARCHAR, year VARCHAR, manufacturer VARCHAR)", "instruction": "What is the smallest finish time for a race where start was less than 3, buick was the manufacturer, and the race was held after 1978?", "output": "SELECT MIN(finish) FROM table_name_45 WHERE year > 1978 AND manufacturer = \"buick\" AND start < 3" }
### INSTRUCTION What circuit did Rupert Keegan win in round 8? ### INPUT CREATE TABLE table_name_21 (circuit VARCHAR, winning_driver VARCHAR, round VARCHAR) ### OUTPUT SELECT circuit FROM table_name_21 WHERE winning_driver = "rupert keegan" AND round = 8
{ "input": "CREATE TABLE table_name_21 (circuit VARCHAR, winning_driver VARCHAR, round VARCHAR)", "instruction": "What circuit did Rupert Keegan win in round 8?", "output": "SELECT circuit FROM table_name_21 WHERE winning_driver = \"rupert keegan\" AND round = 8" }
### INSTRUCTION what is the mexico stat where mañana es para siempre is love never dies ### INPUT CREATE TABLE table_18498743_1 (mexico VARCHAR, mañana_es_para_siempre VARCHAR) ### OUTPUT SELECT mexico FROM table_18498743_1 WHERE mañana_es_para_siempre = "Love Never Dies"
{ "input": "CREATE TABLE table_18498743_1 (mexico VARCHAR, mañana_es_para_siempre VARCHAR)", "instruction": "what is the mexico stat where mañana es para siempre is love never dies", "output": "SELECT mexico FROM table_18498743_1 WHERE mañana_es_para_siempre = \"Love Never Dies\"" }
### INSTRUCTION What is the most silver medals a team with 3 total medals and less than 1 bronze has? ### INPUT CREATE TABLE table_name_13 (silver INTEGER, total VARCHAR, bronze VARCHAR) ### OUTPUT SELECT MAX(silver) FROM table_name_13 WHERE total = 3 AND bronze < 1
{ "input": "CREATE TABLE table_name_13 (silver INTEGER, total VARCHAR, bronze VARCHAR)", "instruction": "What is the most silver medals a team with 3 total medals and less than 1 bronze has?", "output": "SELECT MAX(silver) FROM table_name_13 WHERE total = 3 AND bronze < 1" }
### INSTRUCTION What was the highest number of against when the difference was 58 and the total played was more than 22? ### INPUT CREATE TABLE table_name_62 (against INTEGER, difference VARCHAR, played VARCHAR) ### OUTPUT SELECT MAX(against) FROM table_name_62 WHERE difference = "58" AND played > 22
{ "input": "CREATE TABLE table_name_62 (against INTEGER, difference VARCHAR, played VARCHAR)", "instruction": "What was the highest number of against when the difference was 58 and the total played was more than 22?", "output": "SELECT MAX(against) FROM table_name_62 WHERE difference = \"58\" AND played > 22" }
### INSTRUCTION Who was the Driver, when the Chassis was Bugatti T51, and when the Entrant was Automobiles Ettore Bugatti? ### INPUT CREATE TABLE table_name_87 (driver VARCHAR, chassis VARCHAR, entrant VARCHAR) ### OUTPUT SELECT driver FROM table_name_87 WHERE chassis = "bugatti t51" AND entrant = "automobiles ettore bugatti"
{ "input": "CREATE TABLE table_name_87 (driver VARCHAR, chassis VARCHAR, entrant VARCHAR)", "instruction": "Who was the Driver, when the Chassis was Bugatti T51, and when the Entrant was Automobiles Ettore Bugatti?", "output": "SELECT driver FROM table_name_87 WHERE chassis = \"bugatti t51\" AND entrant = \"automobiles ettore bugatti\"" }
### INSTRUCTION Find the first name and age of students who are living in the dorms that do not have amenity TV Lounge. ### INPUT CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR); CREATE TABLE student (fname VARCHAR, age VARCHAR, stuid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE dorm_amenity (amenid VARCHAR, amenity_name VARCHAR) ### OUTPUT SELECT T1.fname, T1.age FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE NOT T2.dormid IN (SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid = T4.amenid WHERE T4.amenity_name = 'TV Lounge')
{ "input": "CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR); CREATE TABLE student (fname VARCHAR, age VARCHAR, stuid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE dorm_amenity (amenid VARCHAR, amenity_name VARCHAR)", "instruction": "Find the first name and age of students who are living in the dorms that do not have amenity TV Lounge.", "output": "SELECT T1.fname, T1.age FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE NOT T2.dormid IN (SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid = T4.amenid WHERE T4.amenity_name = 'TV Lounge')" }
### INSTRUCTION Which report includes Bobby Unser as the Pole Position and Rick Mears as the Winning driver? ### INPUT CREATE TABLE table_name_33 (report VARCHAR, pole_position VARCHAR, winning_driver VARCHAR) ### OUTPUT SELECT report FROM table_name_33 WHERE pole_position = "bobby unser" AND winning_driver = "rick mears"
{ "input": "CREATE TABLE table_name_33 (report VARCHAR, pole_position VARCHAR, winning_driver VARCHAR)", "instruction": "Which report includes Bobby Unser as the Pole Position and Rick Mears as the Winning driver?", "output": "SELECT report FROM table_name_33 WHERE pole_position = \"bobby unser\" AND winning_driver = \"rick mears\"" }
### INSTRUCTION How many years have a Surface of clay, and a Score of 4 : 0? ### INPUT CREATE TABLE table_name_45 (year VARCHAR, surface VARCHAR, score VARCHAR) ### OUTPUT SELECT COUNT(year) FROM table_name_45 WHERE surface = "clay" AND score = "4 : 0"
{ "input": "CREATE TABLE table_name_45 (year VARCHAR, surface VARCHAR, score VARCHAR)", "instruction": "How many years have a Surface of clay, and a Score of 4 : 0?", "output": "SELECT COUNT(year) FROM table_name_45 WHERE surface = \"clay\" AND score = \"4 : 0\"" }
### INSTRUCTION What is the name and the average gpa of department whose students have the highest average gpa? ### INPUT CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR); CREATE TABLE student (stu_gpa INTEGER, dept_code VARCHAR) ### OUTPUT SELECT T2.dept_name, AVG(T1.stu_gpa) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY AVG(T1.stu_gpa) DESC LIMIT 1
{ "input": "CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR); CREATE TABLE student (stu_gpa INTEGER, dept_code VARCHAR)", "instruction": "What is the name and the average gpa of department whose students have the highest average gpa?", "output": "SELECT T2.dept_name, AVG(T1.stu_gpa) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY AVG(T1.stu_gpa) DESC LIMIT 1" }
### INSTRUCTION What is the name and country for the artist with most number of exhibitions? ### INPUT CREATE TABLE exhibition (artist_id VARCHAR); CREATE TABLE artist (name VARCHAR, country VARCHAR, artist_id VARCHAR) ### OUTPUT SELECT T2.name, T2.country FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id GROUP BY T1.artist_id ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE exhibition (artist_id VARCHAR); CREATE TABLE artist (name VARCHAR, country VARCHAR, artist_id VARCHAR)", "instruction": "What is the name and country for the artist with most number of exhibitions?", "output": "SELECT T2.name, T2.country FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id GROUP BY T1.artist_id ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What is the total number of purchases for members with level 6? ### INPUT CREATE TABLE member (member_id VARCHAR, level VARCHAR); CREATE TABLE purchase (member_id VARCHAR) ### OUTPUT SELECT COUNT(*) FROM purchase AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T2.level = 6
{ "input": "CREATE TABLE member (member_id VARCHAR, level VARCHAR); CREATE TABLE purchase (member_id VARCHAR)", "instruction": "What is the total number of purchases for members with level 6?", "output": "SELECT COUNT(*) FROM purchase AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T2.level = 6" }
### INSTRUCTION Which Score has a January larger than 21, and Points of 63? ### INPUT CREATE TABLE table_name_18 (score VARCHAR, january VARCHAR, points VARCHAR) ### OUTPUT SELECT score FROM table_name_18 WHERE january > 21 AND points = 63
{ "input": "CREATE TABLE table_name_18 (score VARCHAR, january VARCHAR, points VARCHAR)", "instruction": "Which Score has a January larger than 21, and Points of 63?", "output": "SELECT score FROM table_name_18 WHERE january > 21 AND points = 63" }
### INSTRUCTION Which episode had a share 16-19 of 23,22%? ### INPUT CREATE TABLE table_29773532_21 (episode INTEGER, share_16_39 VARCHAR) ### OUTPUT SELECT MAX(episode) FROM table_29773532_21 WHERE share_16_39 = "23,22%"
{ "input": "CREATE TABLE table_29773532_21 (episode INTEGER, share_16_39 VARCHAR)", "instruction": "Which episode had a share 16-19 of 23,22%?", "output": "SELECT MAX(episode) FROM table_29773532_21 WHERE share_16_39 = \"23,22%\"" }
### INSTRUCTION Which League that has a Open Cup of 1st round, and a Year of 2009? ### INPUT CREATE TABLE table_name_99 (league VARCHAR, open_cup VARCHAR, year VARCHAR) ### OUTPUT SELECT league FROM table_name_99 WHERE open_cup = "1st round" AND year = 2009
{ "input": "CREATE TABLE table_name_99 (league VARCHAR, open_cup VARCHAR, year VARCHAR)", "instruction": "Which League that has a Open Cup of 1st round, and a Year of 2009?", "output": "SELECT league FROM table_name_99 WHERE open_cup = \"1st round\" AND year = 2009" }
### INSTRUCTION Find all the policy type codes associated with the customer "Dayana Robel" ### INPUT CREATE TABLE customers (customer_id VARCHAR, customer_details VARCHAR); CREATE TABLE policies (customer_id VARCHAR) ### OUTPUT SELECT policy_type_code FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t2.customer_details = "Dayana Robel"
{ "input": "CREATE TABLE customers (customer_id VARCHAR, customer_details VARCHAR); CREATE TABLE policies (customer_id VARCHAR)", "instruction": "Find all the policy type codes associated with the customer \"Dayana Robel\"", "output": "SELECT policy_type_code FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t2.customer_details = \"Dayana Robel\"" }
### INSTRUCTION The 2002 African Cup of Nations was held on what date? ### INPUT CREATE TABLE table_name_20 (date VARCHAR, competition VARCHAR) ### OUTPUT SELECT date FROM table_name_20 WHERE competition = "2002 african cup of nations"
{ "input": "CREATE TABLE table_name_20 (date VARCHAR, competition VARCHAR)", "instruction": "The 2002 African Cup of Nations was held on what date?", "output": "SELECT date FROM table_name_20 WHERE competition = \"2002 african cup of nations\"" }
### INSTRUCTION Show the times used by climbers to climb mountains in Country Uganda. ### INPUT CREATE TABLE mountain (Mountain_ID VARCHAR, Country VARCHAR); CREATE TABLE climber (Time VARCHAR, Mountain_ID VARCHAR) ### OUTPUT SELECT T1.Time FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID WHERE T2.Country = "Uganda"
{ "input": "CREATE TABLE mountain (Mountain_ID VARCHAR, Country VARCHAR); CREATE TABLE climber (Time VARCHAR, Mountain_ID VARCHAR)", "instruction": "Show the times used by climbers to climb mountains in Country Uganda.", "output": "SELECT T1.Time FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID WHERE T2.Country = \"Uganda\"" }
### INSTRUCTION What office has (none) as the socialist labor ticket, and stanley h. fuld as the liberal ticket? ### INPUT CREATE TABLE table_name_8 (office VARCHAR, socialist_labor_ticket VARCHAR, liberal_ticket VARCHAR) ### OUTPUT SELECT office FROM table_name_8 WHERE socialist_labor_ticket = "(none)" AND liberal_ticket = "stanley h. fuld"
{ "input": "CREATE TABLE table_name_8 (office VARCHAR, socialist_labor_ticket VARCHAR, liberal_ticket VARCHAR)", "instruction": "What office has (none) as the socialist labor ticket, and stanley h. fuld as the liberal ticket?", "output": "SELECT office FROM table_name_8 WHERE socialist_labor_ticket = \"(none)\" AND liberal_ticket = \"stanley h. fuld\"" }
### INSTRUCTION What was the average money for United States when Lanny Wadkins played? ### INPUT CREATE TABLE table_name_94 (money___ INTEGER, country VARCHAR, player VARCHAR) ### OUTPUT SELECT AVG(money___) AS $__ FROM table_name_94 WHERE country = "united states" AND player = "lanny wadkins"
{ "input": "CREATE TABLE table_name_94 (money___ INTEGER, country VARCHAR, player VARCHAR)", "instruction": "What was the average money for United States when Lanny Wadkins played?", "output": "SELECT AVG(money___) AS $__ FROM table_name_94 WHERE country = \"united states\" AND player = \"lanny wadkins\"" }
### INSTRUCTION When Tujunga is moderate, what is La Crescenta-Montrose? ### INPUT CREATE TABLE table_name_71 (la_crescenta__montrose VARCHAR, tujunga VARCHAR) ### OUTPUT SELECT la_crescenta__montrose FROM table_name_71 WHERE tujunga = "moderate"
{ "input": "CREATE TABLE table_name_71 (la_crescenta__montrose VARCHAR, tujunga VARCHAR)", "instruction": "When Tujunga is moderate, what is La Crescenta-Montrose?", "output": "SELECT la_crescenta__montrose FROM table_name_71 WHERE tujunga = \"moderate\"" }
### INSTRUCTION Name the title for marion burns leading lady and role of john mason ### INPUT CREATE TABLE table_name_89 (title VARCHAR, leading_lady VARCHAR, role VARCHAR) ### OUTPUT SELECT title FROM table_name_89 WHERE leading_lady = "marion burns" AND role = "john mason"
{ "input": "CREATE TABLE table_name_89 (title VARCHAR, leading_lady VARCHAR, role VARCHAR)", "instruction": "Name the title for marion burns leading lady and role of john mason", "output": "SELECT title FROM table_name_89 WHERE leading_lady = \"marion burns\" AND role = \"john mason\"" }
### INSTRUCTION Which vocal type did the musician with last name "Heilo" played in the song with title "Der Kapitan"? ### INPUT CREATE TABLE band (id VARCHAR, lastname VARCHAR); CREATE TABLE vocals (songid VARCHAR, bandmate VARCHAR); CREATE TABLE songs (songid VARCHAR, title VARCHAR) ### OUTPUT SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.lastname = "Heilo" AND T2.title = "Der Kapitan"
{ "input": "CREATE TABLE band (id VARCHAR, lastname VARCHAR); CREATE TABLE vocals (songid VARCHAR, bandmate VARCHAR); CREATE TABLE songs (songid VARCHAR, title VARCHAR)", "instruction": "Which vocal type did the musician with last name \"Heilo\" played in the song with title \"Der Kapitan\"?", "output": "SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.lastname = \"Heilo\" AND T2.title = \"Der Kapitan\"" }
### INSTRUCTION how many points did the argentinos juniors team score during the 1986-87 season? ### INPUT CREATE TABLE table_14489821_1 (team VARCHAR) ### OUTPUT SELECT 1986 AS _87 FROM table_14489821_1 WHERE team = "Argentinos Juniors"
{ "input": "CREATE TABLE table_14489821_1 (team VARCHAR)", "instruction": "how many points did the argentinos juniors team score during the 1986-87 season?", "output": "SELECT 1986 AS _87 FROM table_14489821_1 WHERE team = \"Argentinos Juniors\"" }
### INSTRUCTION Please show the most common publication date. ### INPUT CREATE TABLE publication (Publication_Date VARCHAR) ### OUTPUT SELECT Publication_Date FROM publication GROUP BY Publication_Date ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE publication (Publication_Date VARCHAR)", "instruction": "Please show the most common publication date.", "output": "SELECT Publication_Date FROM publication GROUP BY Publication_Date ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What is the last match with a resigned manner of departure and a round 1 date of vacancy? ### INPUT CREATE TABLE table_name_96 (last_match VARCHAR, manner_of_departure VARCHAR, date_of_vacancy VARCHAR) ### OUTPUT SELECT last_match FROM table_name_96 WHERE manner_of_departure = "resigned" AND date_of_vacancy = "round 1"
{ "input": "CREATE TABLE table_name_96 (last_match VARCHAR, manner_of_departure VARCHAR, date_of_vacancy VARCHAR)", "instruction": "What is the last match with a resigned manner of departure and a round 1 date of vacancy?", "output": "SELECT last_match FROM table_name_96 WHERE manner_of_departure = \"resigned\" AND date_of_vacancy = \"round 1\"" }
### INSTRUCTION What position does Cody Ceci play? ### INPUT CREATE TABLE table_11803648_21 (position VARCHAR, player VARCHAR) ### OUTPUT SELECT position FROM table_11803648_21 WHERE player = "Cody Ceci"
{ "input": "CREATE TABLE table_11803648_21 (position VARCHAR, player VARCHAR)", "instruction": "What position does Cody Ceci play?", "output": "SELECT position FROM table_11803648_21 WHERE player = \"Cody Ceci\"" }
### INSTRUCTION If the prime minister is Palmer, Geoffrey Geoffrey Palmer, what is the end date of (final) term? ### INPUT CREATE TABLE table_25182437_1 (end_date_of__final__term VARCHAR, prime_minister VARCHAR) ### OUTPUT SELECT end_date_of__final__term FROM table_25182437_1 WHERE prime_minister = "Palmer, Geoffrey Geoffrey Palmer"
{ "input": "CREATE TABLE table_25182437_1 (end_date_of__final__term VARCHAR, prime_minister VARCHAR)", "instruction": "If the prime minister is Palmer, Geoffrey Geoffrey Palmer, what is the end date of (final) term?", "output": "SELECT end_date_of__final__term FROM table_25182437_1 WHERE prime_minister = \"Palmer, Geoffrey Geoffrey Palmer\"" }
### INSTRUCTION What campus had more than 400 total enrollment but more than 200 full time enrollment in year 1956? ### INPUT CREATE TABLE enrollments (campus VARCHAR, year VARCHAR); CREATE TABLE campuses (id VARCHAR) ### OUTPUT SELECT T1.campus FROM campuses AS t1 JOIN enrollments AS t2 ON t1.id = t2.campus WHERE t2.year = 1956 AND totalenrollment_ay > 400 AND FTE_AY > 200
{ "input": "CREATE TABLE enrollments (campus VARCHAR, year VARCHAR); CREATE TABLE campuses (id VARCHAR)", "instruction": "What campus had more than 400 total enrollment but more than 200 full time enrollment in year 1956?", "output": "SELECT T1.campus FROM campuses AS t1 JOIN enrollments AS t2 ON t1.id = t2.campus WHERE t2.year = 1956 AND totalenrollment_ay > 400 AND FTE_AY > 200" }
### INSTRUCTION What is the record at Arrowhead Pond of Anaheim, when the loss was Bryzgalov (10–11–1)? ### INPUT CREATE TABLE table_name_53 (record VARCHAR, arena VARCHAR, loss VARCHAR) ### OUTPUT SELECT record FROM table_name_53 WHERE arena = "arrowhead pond of anaheim" AND loss = "bryzgalov (10–11–1)"
{ "input": "CREATE TABLE table_name_53 (record VARCHAR, arena VARCHAR, loss VARCHAR)", "instruction": "What is the record at Arrowhead Pond of Anaheim, when the loss was Bryzgalov (10–11–1)?", "output": "SELECT record FROM table_name_53 WHERE arena = \"arrowhead pond of anaheim\" AND loss = \"bryzgalov (10–11–1)\"" }
### INSTRUCTION find the full name of employees who report to Nancy Edwards? ### INPUT CREATE TABLE employees (id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, reports_to VARCHAR) ### OUTPUT SELECT T2.first_name, T2.last_name FROM employees AS T1 JOIN employees AS T2 ON T1.id = T2.reports_to WHERE T1.first_name = "Nancy" AND T1.last_name = "Edwards"
{ "input": "CREATE TABLE employees (id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, reports_to VARCHAR)", "instruction": "find the full name of employees who report to Nancy Edwards?", "output": "SELECT T2.first_name, T2.last_name FROM employees AS T1 JOIN employees AS T2 ON T1.id = T2.reports_to WHERE T1.first_name = \"Nancy\" AND T1.last_name = \"Edwards\"" }
### INSTRUCTION How many candidates were in the election featuring brooks hays (d) unopposed? ### INPUT CREATE TABLE table_1342256_5 (first_elected VARCHAR, candidates VARCHAR) ### OUTPUT SELECT COUNT(first_elected) FROM table_1342256_5 WHERE candidates = "Brooks Hays (D) Unopposed"
{ "input": "CREATE TABLE table_1342256_5 (first_elected VARCHAR, candidates VARCHAR)", "instruction": "How many candidates were in the election featuring brooks hays (d) unopposed?", "output": "SELECT COUNT(first_elected) FROM table_1342256_5 WHERE candidates = \"Brooks Hays (D) Unopposed\"" }
### INSTRUCTION Return the distinct name of customers whose order status is Pending, in the order of customer id. ### INPUT CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_status_code VARCHAR) ### OUTPUT SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = "Pending" ORDER BY T2.customer_id
{ "input": "CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_status_code VARCHAR)", "instruction": "Return the distinct name of customers whose order status is Pending, in the order of customer id.", "output": "SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status_code = \"Pending\" ORDER BY T2.customer_id" }
### INSTRUCTION What was the rank of the rider whose ascent time was 43:24 before the year 2002? ### INPUT CREATE TABLE table_name_87 (rank VARCHAR, year VARCHAR, ascent_time VARCHAR) ### OUTPUT SELECT COUNT(rank) FROM table_name_87 WHERE year < 2002 AND ascent_time = "43:24"
{ "input": "CREATE TABLE table_name_87 (rank VARCHAR, year VARCHAR, ascent_time VARCHAR)", "instruction": "What was the rank of the rider whose ascent time was 43:24 before the year 2002?", "output": "SELECT COUNT(rank) FROM table_name_87 WHERE year < 2002 AND ascent_time = \"43:24\"" }
### INSTRUCTION What is the Name of the Multiple Type museum in Anchorage? ### INPUT CREATE TABLE table_name_54 (name VARCHAR, town_city VARCHAR, type VARCHAR) ### OUTPUT SELECT name FROM table_name_54 WHERE town_city = "anchorage" AND type = "multiple"
{ "input": "CREATE TABLE table_name_54 (name VARCHAR, town_city VARCHAR, type VARCHAR)", "instruction": "What is the Name of the Multiple Type museum in Anchorage?", "output": "SELECT name FROM table_name_54 WHERE town_city = \"anchorage\" AND type = \"multiple\"" }
### INSTRUCTION What is the lowest height in feet for the building located in platz der einheit 1, gallus, that was built after 1961 with a height less than 130 meters? ### INPUT CREATE TABLE table_name_62 (height__ft_ INTEGER, height__m_ VARCHAR, year_built VARCHAR, location VARCHAR) ### OUTPUT SELECT MIN(height__ft_) FROM table_name_62 WHERE year_built > 1961 AND location = "platz der einheit 1, gallus" AND height__m_ < 130
{ "input": "CREATE TABLE table_name_62 (height__ft_ INTEGER, height__m_ VARCHAR, year_built VARCHAR, location VARCHAR)", "instruction": "What is the lowest height in feet for the building located in platz der einheit 1, gallus, that was built after 1961 with a height less than 130 meters?", "output": "SELECT MIN(height__ft_) FROM table_name_62 WHERE year_built > 1961 AND location = \"platz der einheit 1, gallus\" AND height__m_ < 130" }
### INSTRUCTION What is the Event, when Year is 2002, and when Competition is European Indoor Championships? ### INPUT CREATE TABLE table_name_6 (event VARCHAR, year VARCHAR, competition VARCHAR) ### OUTPUT SELECT event FROM table_name_6 WHERE year = 2002 AND competition = "european indoor championships"
{ "input": "CREATE TABLE table_name_6 (event VARCHAR, year VARCHAR, competition VARCHAR)", "instruction": "What is the Event, when Year is 2002, and when Competition is European Indoor Championships?", "output": "SELECT event FROM table_name_6 WHERE year = 2002 AND competition = \"european indoor championships\"" }
### INSTRUCTION Which state contains the University of Iowa in the mideast region? ### INPUT CREATE TABLE table_name_67 (state VARCHAR, region VARCHAR, host VARCHAR) ### OUTPUT SELECT state FROM table_name_67 WHERE region = "mideast" AND host = "university of iowa"
{ "input": "CREATE TABLE table_name_67 (state VARCHAR, region VARCHAR, host VARCHAR)", "instruction": "Which state contains the University of Iowa in the mideast region?", "output": "SELECT state FROM table_name_67 WHERE region = \"mideast\" AND host = \"university of iowa\"" }
### INSTRUCTION What number of Fatalities did the Epicenter Māzandarān have? ### INPUT CREATE TABLE table_name_79 (fatalities VARCHAR, epicenter VARCHAR) ### OUTPUT SELECT fatalities FROM table_name_79 WHERE epicenter = "māzandarān"
{ "input": "CREATE TABLE table_name_79 (fatalities VARCHAR, epicenter VARCHAR)", "instruction": "What number of Fatalities did the Epicenter Māzandarān have?", "output": "SELECT fatalities FROM table_name_79 WHERE epicenter = \"māzandarān\"" }
### INSTRUCTION What kind of Replaced has a Manner of departure of end of contract on dec. 16, 2008? ### INPUT CREATE TABLE table_name_49 (replaced_by VARCHAR, manner_of_departure VARCHAR, date_of_appointment VARCHAR) ### OUTPUT SELECT replaced_by FROM table_name_49 WHERE manner_of_departure = "end of contract" AND date_of_appointment = "dec. 16, 2008"
{ "input": "CREATE TABLE table_name_49 (replaced_by VARCHAR, manner_of_departure VARCHAR, date_of_appointment VARCHAR)", "instruction": "What kind of Replaced has a Manner of departure of end of contract on dec. 16, 2008?", "output": "SELECT replaced_by FROM table_name_49 WHERE manner_of_departure = \"end of contract\" AND date_of_appointment = \"dec. 16, 2008\"" }
### INSTRUCTION What are the names of tourist attraction that Alison visited but Rosalind did not visit? ### INPUT CREATE TABLE VISITS (Tourist_Attraction_ID VARCHAR, Tourist_ID VARCHAR); CREATE TABLE VISITORS (Tourist_Details VARCHAR, Tourist_ID VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR) ### OUTPUT SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = "Alison" EXCEPT SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = "Rosalind"
{ "input": "CREATE TABLE VISITS (Tourist_Attraction_ID VARCHAR, Tourist_ID VARCHAR); CREATE TABLE VISITORS (Tourist_Details VARCHAR, Tourist_ID VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR)", "instruction": "What are the names of tourist attraction that Alison visited but Rosalind did not visit?", "output": "SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = \"Alison\" EXCEPT SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = \"Rosalind\"" }
### INSTRUCTION Which WYSIWYG Editor has an Image attachment of yes, and a Calendar of plugin? ### INPUT CREATE TABLE table_name_75 (wysiwyg_editor VARCHAR, image_attachment VARCHAR, calendar VARCHAR) ### OUTPUT SELECT wysiwyg_editor FROM table_name_75 WHERE image_attachment = "yes" AND calendar = "plugin"
{ "input": "CREATE TABLE table_name_75 (wysiwyg_editor VARCHAR, image_attachment VARCHAR, calendar VARCHAR)", "instruction": "Which WYSIWYG Editor has an Image attachment of yes, and a Calendar of plugin?", "output": "SELECT wysiwyg_editor FROM table_name_75 WHERE image_attachment = \"yes\" AND calendar = \"plugin\"" }
### INSTRUCTION Which Location has an Event of king of the cage: flash point? ### INPUT CREATE TABLE table_name_16 (location VARCHAR, event VARCHAR) ### OUTPUT SELECT location FROM table_name_16 WHERE event = "king of the cage: flash point"
{ "input": "CREATE TABLE table_name_16 (location VARCHAR, event VARCHAR)", "instruction": "Which Location has an Event of king of the cage: flash point?", "output": "SELECT location FROM table_name_16 WHERE event = \"king of the cage: flash point\"" }
### INSTRUCTION What district is Mac Collins an incumbent in? ### INPUT CREATE TABLE table_1341472_12 (district VARCHAR, incumbent VARCHAR) ### OUTPUT SELECT district FROM table_1341472_12 WHERE incumbent = "Mac Collins"
{ "input": "CREATE TABLE table_1341472_12 (district VARCHAR, incumbent VARCHAR)", "instruction": "What district is Mac Collins an incumbent in?", "output": "SELECT district FROM table_1341472_12 WHERE incumbent = \"Mac Collins\"" }
### INSTRUCTION What is the winning score for the B.C. Open 1 tournament? ### INPUT CREATE TABLE table_name_40 (winning_score VARCHAR, tournament VARCHAR) ### OUTPUT SELECT winning_score FROM table_name_40 WHERE tournament = "b.c. open 1"
{ "input": "CREATE TABLE table_name_40 (winning_score VARCHAR, tournament VARCHAR)", "instruction": "What is the winning score for the B.C. Open 1 tournament?", "output": "SELECT winning_score FROM table_name_40 WHERE tournament = \"b.c. open 1\"" }
### INSTRUCTION List all losses with average goals of 1.21. ### INPUT CREATE TABLE table_17366952_1 (lost VARCHAR, goal_average_1 VARCHAR) ### OUTPUT SELECT lost FROM table_17366952_1 WHERE goal_average_1 = "1.21"
{ "input": "CREATE TABLE table_17366952_1 (lost VARCHAR, goal_average_1 VARCHAR)", "instruction": "List all losses with average goals of 1.21.", "output": "SELECT lost FROM table_17366952_1 WHERE goal_average_1 = \"1.21\"" }
### INSTRUCTION Name the Silver that has a Total smaller than 2, and a Nation of south korea? ### INPUT CREATE TABLE table_name_49 (silver INTEGER, total VARCHAR, nation VARCHAR) ### OUTPUT SELECT AVG(silver) FROM table_name_49 WHERE total < 2 AND nation = "south korea"
{ "input": "CREATE TABLE table_name_49 (silver INTEGER, total VARCHAR, nation VARCHAR)", "instruction": "Name the Silver that has a Total smaller than 2, and a Nation of south korea?", "output": "SELECT AVG(silver) FROM table_name_49 WHERE total < 2 AND nation = \"south korea\"" }
### INSTRUCTION Please show the team that has the most number of technicians. ### INPUT CREATE TABLE technician (Team VARCHAR) ### OUTPUT SELECT Team FROM technician GROUP BY Team ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE technician (Team VARCHAR)", "instruction": "Please show the team that has the most number of technicians.", "output": "SELECT Team FROM technician GROUP BY Team ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION Find the government form name and total population for each government form whose average life expectancy is longer than 72. ### INPUT CREATE TABLE country (GovernmentForm VARCHAR, Population INTEGER, LifeExpectancy INTEGER) ### OUTPUT SELECT SUM(Population), GovernmentForm FROM country GROUP BY GovernmentForm HAVING AVG(LifeExpectancy) > 72
{ "input": "CREATE TABLE country (GovernmentForm VARCHAR, Population INTEGER, LifeExpectancy INTEGER)", "instruction": "Find the government form name and total population for each government form whose average life expectancy is longer than 72.", "output": "SELECT SUM(Population), GovernmentForm FROM country GROUP BY GovernmentForm HAVING AVG(LifeExpectancy) > 72" }
### INSTRUCTION What is the number of floors when the r Rank larger than 41, and a City of parel? ### INPUT CREATE TABLE table_name_72 (floors VARCHAR, rank VARCHAR, city VARCHAR) ### OUTPUT SELECT floors FROM table_name_72 WHERE rank > 41 AND city = "parel"
{ "input": "CREATE TABLE table_name_72 (floors VARCHAR, rank VARCHAR, city VARCHAR)", "instruction": "What is the number of floors when the r Rank larger than 41, and a City of parel?", "output": "SELECT floors FROM table_name_72 WHERE rank > 41 AND city = \"parel\"" }
### INSTRUCTION What is the theme, date, and attendance for the exhibition in year 2004? ### INPUT CREATE TABLE exhibition_record (date VARCHAR, attendance VARCHAR, exhibition_id VARCHAR); CREATE TABLE exhibition (theme VARCHAR, exhibition_id VARCHAR, year VARCHAR) ### OUTPUT SELECT T2.theme, T1.date, T1.attendance FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T2.year = 2004
{ "input": "CREATE TABLE exhibition_record (date VARCHAR, attendance VARCHAR, exhibition_id VARCHAR); CREATE TABLE exhibition (theme VARCHAR, exhibition_id VARCHAR, year VARCHAR)", "instruction": "What is the theme, date, and attendance for the exhibition in year 2004?", "output": "SELECT T2.theme, T1.date, T1.attendance FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T2.year = 2004" }
### INSTRUCTION What role was nominated at the Sydney Film Festival? ### INPUT CREATE TABLE table_name_56 (role VARCHAR, festival_organization VARCHAR) ### OUTPUT SELECT role FROM table_name_56 WHERE festival_organization = "sydney film festival"
{ "input": "CREATE TABLE table_name_56 (role VARCHAR, festival_organization VARCHAR)", "instruction": "What role was nominated at the Sydney Film Festival?", "output": "SELECT role FROM table_name_56 WHERE festival_organization = \"sydney film festival\"" }
### INSTRUCTION What is Driver Howden Ganley's Time/Retired? ### INPUT CREATE TABLE table_name_75 (time_retired VARCHAR, driver VARCHAR) ### OUTPUT SELECT time_retired FROM table_name_75 WHERE driver = "howden ganley"
{ "input": "CREATE TABLE table_name_75 (time_retired VARCHAR, driver VARCHAR)", "instruction": "What is Driver Howden Ganley's Time/Retired?", "output": "SELECT time_retired FROM table_name_75 WHERE driver = \"howden ganley\"" }
### INSTRUCTION What was the time of the car having a constructor of Renault, which went 40 laps? ### INPUT CREATE TABLE table_name_96 (time_retired VARCHAR, constructor VARCHAR, laps VARCHAR) ### OUTPUT SELECT time_retired FROM table_name_96 WHERE constructor = "renault" AND laps = "40"
{ "input": "CREATE TABLE table_name_96 (time_retired VARCHAR, constructor VARCHAR, laps VARCHAR)", "instruction": "What was the time of the car having a constructor of Renault, which went 40 laps?", "output": "SELECT time_retired FROM table_name_96 WHERE constructor = \"renault\" AND laps = \"40\"" }
### INSTRUCTION How many figures are given for total number of South Asians in 2001 for the area where they were 4.4% of population in 2011? ### INPUT CREATE TABLE table_1717824_1 (south_asians_2001 VARCHAR, _percentage_2011 VARCHAR) ### OUTPUT SELECT COUNT(south_asians_2001) FROM table_1717824_1 WHERE _percentage_2011 = "4.4%"
{ "input": "CREATE TABLE table_1717824_1 (south_asians_2001 VARCHAR, _percentage_2011 VARCHAR)", "instruction": "How many figures are given for total number of South Asians in 2001 for the area where they were 4.4% of population in 2011?", "output": "SELECT COUNT(south_asians_2001) FROM table_1717824_1 WHERE _percentage_2011 = \"4.4%\"" }
### INSTRUCTION How many Matches have Balls smaller than 224, and an Average larger than 38.25, and an S/Rate larger than 139.09? ### INPUT CREATE TABLE table_name_87 (matches INTEGER, s_rate VARCHAR, balls VARCHAR, average VARCHAR) ### OUTPUT SELECT SUM(matches) FROM table_name_87 WHERE balls < 224 AND average > 38.25 AND s_rate > 139.09
{ "input": "CREATE TABLE table_name_87 (matches INTEGER, s_rate VARCHAR, balls VARCHAR, average VARCHAR)", "instruction": "How many Matches have Balls smaller than 224, and an Average larger than 38.25, and an S/Rate larger than 139.09?", "output": "SELECT SUM(matches) FROM table_name_87 WHERE balls < 224 AND average > 38.25 AND s_rate > 139.09" }
### INSTRUCTION Find the abbreviation and country of the airline that has fewest number of flights? ### INPUT CREATE TABLE FLIGHTS (Airline VARCHAR); CREATE TABLE AIRLINES (Abbreviation VARCHAR, Country VARCHAR, Airline VARCHAR, uid VARCHAR) ### OUTPUT SELECT T1.Abbreviation, T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY COUNT(*) LIMIT 1
{ "input": "CREATE TABLE FLIGHTS (Airline VARCHAR); CREATE TABLE AIRLINES (Abbreviation VARCHAR, Country VARCHAR, Airline VARCHAR, uid VARCHAR)", "instruction": "Find the abbreviation and country of the airline that has fewest number of flights?", "output": "SELECT T1.Abbreviation, T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY COUNT(*) LIMIT 1" }
### INSTRUCTION What are the names and descriptions of the products that are of 'Cutlery' type and have daily hire cost lower than 20? ### INPUT CREATE TABLE products_for_hire (product_name VARCHAR, product_description VARCHAR, product_type_code VARCHAR, daily_hire_cost VARCHAR) ### OUTPUT SELECT product_name, product_description FROM products_for_hire WHERE product_type_code = 'Cutlery' AND daily_hire_cost < 20
{ "input": "CREATE TABLE products_for_hire (product_name VARCHAR, product_description VARCHAR, product_type_code VARCHAR, daily_hire_cost VARCHAR)", "instruction": "What are the names and descriptions of the products that are of 'Cutlery' type and have daily hire cost lower than 20?", "output": "SELECT product_name, product_description FROM products_for_hire WHERE product_type_code = 'Cutlery' AND daily_hire_cost < 20" }
### INSTRUCTION What is the alignment that predicts an alignment of the linuxbinary link? ### INPUT CREATE TABLE table_name_27 (_ VARCHAR, alignment_alignment VARCHAR, link VARCHAR) ### OUTPUT SELECT alignment_alignment AS :_predicts_an_alignment_, _ FROM table_name_27 WHERE link = "linuxbinary"
{ "input": "CREATE TABLE table_name_27 (_ VARCHAR, alignment_alignment VARCHAR, link VARCHAR)", "instruction": "What is the alignment that predicts an alignment of the linuxbinary link?", "output": "SELECT alignment_alignment AS :_predicts_an_alignment_, _ FROM table_name_27 WHERE link = \"linuxbinary\"" }
### INSTRUCTION What is the total number of areas that are called Nanqiao District? ### INPUT CREATE TABLE table_1982739_2 (area VARCHAR, english_name VARCHAR) ### OUTPUT SELECT COUNT(area) FROM table_1982739_2 WHERE english_name = "Nanqiao District"
{ "input": "CREATE TABLE table_1982739_2 (area VARCHAR, english_name VARCHAR)", "instruction": "What is the total number of areas that are called Nanqiao District?", "output": "SELECT COUNT(area) FROM table_1982739_2 WHERE english_name = \"Nanqiao District\"" }
### INSTRUCTION Tell me the highest week for metropolitan stadium for attendance more than 47,644 ### INPUT CREATE TABLE table_name_80 (week INTEGER, venue VARCHAR, attendance VARCHAR) ### OUTPUT SELECT MAX(week) FROM table_name_80 WHERE venue = "metropolitan stadium" AND attendance > 47 OFFSET 644
{ "input": "CREATE TABLE table_name_80 (week INTEGER, venue VARCHAR, attendance VARCHAR)", "instruction": "Tell me the highest week for metropolitan stadium for attendance more than 47,644", "output": "SELECT MAX(week) FROM table_name_80 WHERE venue = \"metropolitan stadium\" AND attendance > 47 OFFSET 644" }
### INSTRUCTION What's the part 3 of the verb with part 4 gelopen? ### INPUT CREATE TABLE table_1745843_7 (part_3 VARCHAR, part_4 VARCHAR) ### OUTPUT SELECT part_3 FROM table_1745843_7 WHERE part_4 = "gelopen"
{ "input": "CREATE TABLE table_1745843_7 (part_3 VARCHAR, part_4 VARCHAR)", "instruction": "What's the part 3 of the verb with part 4 gelopen?", "output": "SELECT part_3 FROM table_1745843_7 WHERE part_4 = \"gelopen\"" }
### INSTRUCTION Return the ids of all products that were ordered more than three times or supplied more than 80000. ### INPUT CREATE TABLE Order_Items (product_id VARCHAR, total_amount_purchased INTEGER); CREATE TABLE Product_Suppliers (product_id VARCHAR, total_amount_purchased INTEGER) ### OUTPUT SELECT product_id FROM Order_Items GROUP BY product_id HAVING COUNT(*) > 3 UNION SELECT product_id FROM Product_Suppliers GROUP BY product_id HAVING SUM(total_amount_purchased) > 80000
{ "input": "CREATE TABLE Order_Items (product_id VARCHAR, total_amount_purchased INTEGER); CREATE TABLE Product_Suppliers (product_id VARCHAR, total_amount_purchased INTEGER)", "instruction": "Return the ids of all products that were ordered more than three times or supplied more than 80000.", "output": "SELECT product_id FROM Order_Items GROUP BY product_id HAVING COUNT(*) > 3 UNION SELECT product_id FROM Product_Suppliers GROUP BY product_id HAVING SUM(total_amount_purchased) > 80000" }
### INSTRUCTION When the completion schedule is 2016 for the state of jammu & kashmir, what is the smallest S.no.? ### INPUT CREATE TABLE table_name_9 (sno INTEGER, state VARCHAR, completion_schedule VARCHAR) ### OUTPUT SELECT MIN(sno) FROM table_name_9 WHERE state = "jammu & kashmir" AND completion_schedule = "2016"
{ "input": "CREATE TABLE table_name_9 (sno INTEGER, state VARCHAR, completion_schedule VARCHAR)", "instruction": "When the completion schedule is 2016 for the state of jammu & kashmir, what is the smallest S.no.?", "output": "SELECT MIN(sno) FROM table_name_9 WHERE state = \"jammu & kashmir\" AND completion_schedule = \"2016\"" }
### INSTRUCTION what is the year when tournaments played is less than 2, cuts made is 1 and earnings ($) is less than 10,547? ### INPUT CREATE TABLE table_name_89 (year INTEGER, earnings___$__ VARCHAR, tournaments_played VARCHAR, cuts_made VARCHAR) ### OUTPUT SELECT SUM(year) FROM table_name_89 WHERE tournaments_played < 2 AND cuts_made = 1 AND earnings___$__ < 10 OFFSET 547
{ "input": "CREATE TABLE table_name_89 (year INTEGER, earnings___$__ VARCHAR, tournaments_played VARCHAR, cuts_made VARCHAR)", "instruction": "what is the year when tournaments played is less than 2, cuts made is 1 and earnings ($) is less than 10,547?", "output": "SELECT SUM(year) FROM table_name_89 WHERE tournaments_played < 2 AND cuts_made = 1 AND earnings___$__ < 10 OFFSET 547" }
### INSTRUCTION What was the language for the movie "Late Bloomers"? ### INPUT CREATE TABLE table_22034853_1 (language_s_ VARCHAR, film_title_used_in_nomination VARCHAR) ### OUTPUT SELECT language_s_ FROM table_22034853_1 WHERE film_title_used_in_nomination = "Late Bloomers"
{ "input": "CREATE TABLE table_22034853_1 (language_s_ VARCHAR, film_title_used_in_nomination VARCHAR)", "instruction": "What was the language for the movie \"Late Bloomers\"?", "output": "SELECT language_s_ FROM table_22034853_1 WHERE film_title_used_in_nomination = \"Late Bloomers\"" }
### INSTRUCTION For the tournament ending with a margin of victory of 6 strokes, what was the winning score? ### INPUT CREATE TABLE table_name_90 (winning_score VARCHAR, margin_of_victory VARCHAR) ### OUTPUT SELECT winning_score FROM table_name_90 WHERE margin_of_victory = "6 strokes"
{ "input": "CREATE TABLE table_name_90 (winning_score VARCHAR, margin_of_victory VARCHAR)", "instruction": "For the tournament ending with a margin of victory of 6 strokes, what was the winning score?", "output": "SELECT winning_score FROM table_name_90 WHERE margin_of_victory = \"6 strokes\"" }
### INSTRUCTION What is the title of the episode/s written by Michael Gans & Richard Register? ### INPUT CREATE TABLE table_23399481_4 (title VARCHAR, written_by VARCHAR) ### OUTPUT SELECT title FROM table_23399481_4 WHERE written_by = "Michael Gans & Richard Register"
{ "input": "CREATE TABLE table_23399481_4 (title VARCHAR, written_by VARCHAR)", "instruction": "What is the title of the episode/s written by Michael Gans & Richard Register?", "output": "SELECT title FROM table_23399481_4 WHERE written_by = \"Michael Gans & Richard Register\"" }
### INSTRUCTION What is lead for the Election Results polling firm and has a PSOE of 39.6% 175? ### INPUT CREATE TABLE table_name_8 (lead VARCHAR, polling_firm VARCHAR, psoe VARCHAR) ### OUTPUT SELECT lead FROM table_name_8 WHERE polling_firm = "election results" AND psoe = "39.6% 175"
{ "input": "CREATE TABLE table_name_8 (lead VARCHAR, polling_firm VARCHAR, psoe VARCHAR)", "instruction": "What is lead for the Election Results polling firm and has a PSOE of 39.6% 175?", "output": "SELECT lead FROM table_name_8 WHERE polling_firm = \"election results\" AND psoe = \"39.6% 175\"" }
### INSTRUCTION What was the outcome in games where the score was 7-5, 2-6, [6-10]? ### INPUT CREATE TABLE table_2259502_2 (outcome VARCHAR, score VARCHAR) ### OUTPUT SELECT outcome FROM table_2259502_2 WHERE score = "7-5, 2-6, [6-10]"
{ "input": "CREATE TABLE table_2259502_2 (outcome VARCHAR, score VARCHAR)", "instruction": "What was the outcome in games where the score was 7-5, 2-6, [6-10]?", "output": "SELECT outcome FROM table_2259502_2 WHERE score = \"7-5, 2-6, [6-10]\"" }
### INSTRUCTION How many episodes are there for the three darts challenge with Sharon Osbourne? ### INPUT CREATE TABLE table_26733129_1 (episode_number INTEGER, three_darts_challenge VARCHAR) ### OUTPUT SELECT MAX(episode_number) FROM table_26733129_1 WHERE three_darts_challenge = "Sharon Osbourne"
{ "input": "CREATE TABLE table_26733129_1 (episode_number INTEGER, three_darts_challenge VARCHAR)", "instruction": "How many episodes are there for the three darts challenge with Sharon Osbourne?", "output": "SELECT MAX(episode_number) FROM table_26733129_1 WHERE three_darts_challenge = \"Sharon Osbourne\"" }
### INSTRUCTION which Oberliga Baden-Württemberg has a Season of 1991-92? ### INPUT CREATE TABLE table_name_41 (oberliga_baden_württemberg VARCHAR, season VARCHAR) ### OUTPUT SELECT oberliga_baden_württemberg FROM table_name_41 WHERE season = "1991-92"
{ "input": "CREATE TABLE table_name_41 (oberliga_baden_württemberg VARCHAR, season VARCHAR)", "instruction": "which Oberliga Baden-Württemberg has a Season of 1991-92?", "output": "SELECT oberliga_baden_württemberg FROM table_name_41 WHERE season = \"1991-92\"" }
### INSTRUCTION What is the issue price of a Year 2000 coin by artist John Mardon of the Included in Steam Buggy mintage. ### INPUT CREATE TABLE table_name_46 (issue_price VARCHAR, mintage VARCHAR, artist VARCHAR, year VARCHAR) ### OUTPUT SELECT issue_price FROM table_name_46 WHERE artist = "john mardon" AND year = 2000 AND mintage = "included in steam buggy"
{ "input": "CREATE TABLE table_name_46 (issue_price VARCHAR, mintage VARCHAR, artist VARCHAR, year VARCHAR)", "instruction": "What is the issue price of a Year 2000 coin by artist John Mardon of the Included in Steam Buggy mintage.", "output": "SELECT issue_price FROM table_name_46 WHERE artist = \"john mardon\" AND year = 2000 AND mintage = \"included in steam buggy\"" }
### INSTRUCTION Tell me the date for dinah pfizenmaier anna zaja and winner ### INPUT CREATE TABLE table_name_46 (date VARCHAR, outcome VARCHAR, opponents VARCHAR) ### OUTPUT SELECT date FROM table_name_46 WHERE outcome = "winner" AND opponents = "dinah pfizenmaier anna zaja"
{ "input": "CREATE TABLE table_name_46 (date VARCHAR, outcome VARCHAR, opponents VARCHAR)", "instruction": "Tell me the date for dinah pfizenmaier anna zaja and winner", "output": "SELECT date FROM table_name_46 WHERE outcome = \"winner\" AND opponents = \"dinah pfizenmaier anna zaja\"" }