text
stringlengths
147
1.06k
source
dict
### INSTRUCTION Name the number of players for field goals being 25 and blocks is 6 ### INPUT CREATE TABLE table_23184448_4 (player VARCHAR, field_goals VARCHAR, blocks VARCHAR) ### OUTPUT SELECT COUNT(player) FROM table_23184448_4 WHERE field_goals = 25 AND blocks = 6
{ "input": "CREATE TABLE table_23184448_4 (player VARCHAR, field_goals VARCHAR, blocks VARCHAR)", "instruction": "Name the number of players for field goals being 25 and blocks is 6", "output": "SELECT COUNT(player) FROM table_23184448_4 WHERE field_goals = 25 AND blocks = 6" }
### INSTRUCTION What are the numbers of episodes that were broadcast on September 1, 2003 ### INPUT CREATE TABLE table_17481974_1 (episode__number VARCHAR, original_airdate VARCHAR) ### OUTPUT SELECT episode__number FROM table_17481974_1 WHERE original_airdate = "September 1, 2003"
{ "input": "CREATE TABLE table_17481974_1 (episode__number VARCHAR, original_airdate VARCHAR)", "instruction": "What are the numbers of episodes that were broadcast on September 1, 2003", "output": "SELECT episode__number FROM table_17481974_1 WHERE original_airdate = \"September 1, 2003\"" }
### INSTRUCTION Employment ( salaries & wages) of 64%, and a Occupational pensions of 6% has what working tax credit? ### INPUT CREATE TABLE table_name_20 (working_tax_credit VARCHAR, occupational_pensions VARCHAR, employment___salaries_ VARCHAR, _wages_ VARCHAR) ### OUTPUT SELECT working_tax_credit FROM table_name_20 WHERE employment___salaries_ & _wages_ = "64%" AND occupational_pensions = "6%"
{ "input": "CREATE TABLE table_name_20 (working_tax_credit VARCHAR, occupational_pensions VARCHAR, employment___salaries_ VARCHAR, _wages_ VARCHAR)", "instruction": "Employment ( salaries & wages) of 64%, and a Occupational pensions of 6% has what working tax credit?", "output": "SELECT working_tax_credit FROM table_name_20 WHERE employment___salaries_ & _wages_ = \"64%\" AND occupational_pensions = \"6%\"" }
### INSTRUCTION Find the names of customers who never ordered product Latte. ### INPUT CREATE TABLE order_items (order_id VARCHAR, product_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_details VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR) ### OUTPUT SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE t4.product_details = 'Latte'
{ "input": "CREATE TABLE order_items (order_id VARCHAR, product_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_details VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR)", "instruction": "Find the names of customers who never ordered product Latte.", "output": "SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE t4.product_details = 'Latte'" }
### INSTRUCTION Find the first names of professors who are not playing Canoeing or Kayaking. ### INPUT CREATE TABLE faculty (lname VARCHAR, rank VARCHAR); CREATE TABLE activity (activity_name VARCHAR); CREATE TABLE Faculty_participates_in (facID VARCHAR, actid VARCHAR); CREATE TABLE Faculty (lname VARCHAR, facID VARCHAR) ### OUTPUT SELECT lname FROM faculty WHERE rank = 'Professor' EXCEPT SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking'
{ "input": "CREATE TABLE faculty (lname VARCHAR, rank VARCHAR); CREATE TABLE activity (activity_name VARCHAR); CREATE TABLE Faculty_participates_in (facID VARCHAR, actid VARCHAR); CREATE TABLE Faculty (lname VARCHAR, facID VARCHAR)", "instruction": "Find the first names of professors who are not playing Canoeing or Kayaking.", "output": "SELECT lname FROM faculty WHERE rank = 'Professor' EXCEPT SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking'" }
### INSTRUCTION What is the worst score for the dance that has Apolo Anton Ohno as the best dancer, and where his best score is larger than 30? ### INPUT CREATE TABLE table_name_23 (worst_score INTEGER, best_dancer VARCHAR, best_score VARCHAR) ### OUTPUT SELECT SUM(worst_score) FROM table_name_23 WHERE best_dancer = "apolo anton ohno" AND best_score > 30
{ "input": "CREATE TABLE table_name_23 (worst_score INTEGER, best_dancer VARCHAR, best_score VARCHAR)", "instruction": "What is the worst score for the dance that has Apolo Anton Ohno as the best dancer, and where his best score is larger than 30?", "output": "SELECT SUM(worst_score) FROM table_name_23 WHERE best_dancer = \"apolo anton ohno\" AND best_score > 30" }
### INSTRUCTION How much Enrollment has a School of fort wayne homestead? ### INPUT CREATE TABLE table_name_5 (enrollment INTEGER, school VARCHAR) ### OUTPUT SELECT SUM(enrollment) FROM table_name_5 WHERE school = "fort wayne homestead"
{ "input": "CREATE TABLE table_name_5 (enrollment INTEGER, school VARCHAR)", "instruction": "How much Enrollment has a School of fort wayne homestead?", "output": "SELECT SUM(enrollment) FROM table_name_5 WHERE school = \"fort wayne homestead\"" }
### INSTRUCTION What is the 3rd ratio for tag number 1386-000-017 and input splines of 26? ### INPUT CREATE TABLE table_1310499_1 (input_splines VARCHAR, tag_id VARCHAR) ### OUTPUT SELECT 3 AS rd FROM table_1310499_1 WHERE input_splines = 26 AND tag_id = "1386-000-017"
{ "input": "CREATE TABLE table_1310499_1 (input_splines VARCHAR, tag_id VARCHAR)", "instruction": "What is the 3rd ratio for tag number 1386-000-017 and input splines of 26?", "output": "SELECT 3 AS rd FROM table_1310499_1 WHERE input_splines = 26 AND tag_id = \"1386-000-017\"" }
### INSTRUCTION What is the Total, when To Par is less than 14, when Finish is T12, and when Player is "Julius Boros"? ### INPUT CREATE TABLE table_name_13 (total VARCHAR, player VARCHAR, to_par VARCHAR, finish VARCHAR) ### OUTPUT SELECT total FROM table_name_13 WHERE to_par < 14 AND finish = "t12" AND player = "julius boros"
{ "input": "CREATE TABLE table_name_13 (total VARCHAR, player VARCHAR, to_par VARCHAR, finish VARCHAR)", "instruction": "What is the Total, when To Par is less than 14, when Finish is T12, and when Player is \"Julius Boros\"?", "output": "SELECT total FROM table_name_13 WHERE to_par < 14 AND finish = \"t12\" AND player = \"julius boros\"" }
### INSTRUCTION Show first name and id for all customers with at least 2 accounts. ### INPUT CREATE TABLE Customers (customer_first_name VARCHAR, customer_id VARCHAR); CREATE TABLE Accounts (customer_id VARCHAR) ### OUTPUT SELECT T2.customer_first_name, T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) >= 2
{ "input": "CREATE TABLE Customers (customer_first_name VARCHAR, customer_id VARCHAR); CREATE TABLE Accounts (customer_id VARCHAR)", "instruction": "Show first name and id for all customers with at least 2 accounts.", "output": "SELECT T2.customer_first_name, T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) >= 2" }
### INSTRUCTION what country is john nielsen from ### INPUT CREATE TABLE table_name_10 (country VARCHAR, driver VARCHAR) ### OUTPUT SELECT country FROM table_name_10 WHERE driver = "john nielsen"
{ "input": "CREATE TABLE table_name_10 (country VARCHAR, driver VARCHAR)", "instruction": "what country is john nielsen from", "output": "SELECT country FROM table_name_10 WHERE driver = \"john nielsen\"" }
### INSTRUCTION What is the result of the hypo-meeting before 2010? ### INPUT CREATE TABLE table_name_49 (result VARCHAR, year VARCHAR, tournament VARCHAR) ### OUTPUT SELECT result FROM table_name_49 WHERE year < 2010 AND tournament = "hypo-meeting"
{ "input": "CREATE TABLE table_name_49 (result VARCHAR, year VARCHAR, tournament VARCHAR)", "instruction": "What is the result of the hypo-meeting before 2010?", "output": "SELECT result FROM table_name_49 WHERE year < 2010 AND tournament = \"hypo-meeting\"" }
### INSTRUCTION What movie did Vijayalaxmi Co-star in and Shakeel Badayuni write the lyrics? ### INPUT CREATE TABLE table_2528382_5 (movie_album VARCHAR, co_stars VARCHAR, lyricist VARCHAR) ### OUTPUT SELECT movie_album FROM table_2528382_5 WHERE co_stars = "VijayaLaxmi" AND lyricist = "Shakeel Badayuni"
{ "input": "CREATE TABLE table_2528382_5 (movie_album VARCHAR, co_stars VARCHAR, lyricist VARCHAR)", "instruction": "What movie did Vijayalaxmi Co-star in and Shakeel Badayuni write the lyrics?", "output": "SELECT movie_album FROM table_2528382_5 WHERE co_stars = \"VijayaLaxmi\" AND lyricist = \"Shakeel Badayuni\"" }
### INSTRUCTION find the rank, company names, market values of the companies in the banking industry order by their sales and profits in billion. ### INPUT CREATE TABLE company (rank VARCHAR, company VARCHAR, market_value VARCHAR, main_industry VARCHAR, sales_billion VARCHAR, profits_billion VARCHAR) ### OUTPUT SELECT rank, company, market_value FROM company WHERE main_industry = 'Banking' ORDER BY sales_billion, profits_billion
{ "input": "CREATE TABLE company (rank VARCHAR, company VARCHAR, market_value VARCHAR, main_industry VARCHAR, sales_billion VARCHAR, profits_billion VARCHAR)", "instruction": "find the rank, company names, market values of the companies in the banking industry order by their sales and profits in billion.", "output": "SELECT rank, company, market_value FROM company WHERE main_industry = 'Banking' ORDER BY sales_billion, profits_billion" }
### INSTRUCTION Which average Crowd has a Home team of south melbourne? ### INPUT CREATE TABLE table_name_72 (crowd INTEGER, home_team VARCHAR) ### OUTPUT SELECT AVG(crowd) FROM table_name_72 WHERE home_team = "south melbourne"
{ "input": "CREATE TABLE table_name_72 (crowd INTEGER, home_team VARCHAR)", "instruction": "Which average Crowd has a Home team of south melbourne?", "output": "SELECT AVG(crowd) FROM table_name_72 WHERE home_team = \"south melbourne\"" }
### INSTRUCTION Which Event resulted in a Win for Opponent, Shane Ott? ### INPUT CREATE TABLE table_name_4 (event VARCHAR, res VARCHAR, opponent VARCHAR) ### OUTPUT SELECT event FROM table_name_4 WHERE res = "win" AND opponent = "shane ott"
{ "input": "CREATE TABLE table_name_4 (event VARCHAR, res VARCHAR, opponent VARCHAR)", "instruction": "Which Event resulted in a Win for Opponent, Shane Ott?", "output": "SELECT event FROM table_name_4 WHERE res = \"win\" AND opponent = \"shane ott\"" }
### INSTRUCTION What is the semester which most student registered in? Show both the name and the id. ### INPUT CREATE TABLE Student_Enrolment (semester_id VARCHAR); CREATE TABLE Semesters (semester_name VARCHAR, semester_id VARCHAR) ### OUTPUT SELECT T1.semester_name, T1.semester_id FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id = T2.semester_id GROUP BY T1.semester_id ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE Student_Enrolment (semester_id VARCHAR); CREATE TABLE Semesters (semester_name VARCHAR, semester_id VARCHAR)", "instruction": "What is the semester which most student registered in? Show both the name and the id.", "output": "SELECT T1.semester_name, T1.semester_id FROM Semesters AS T1 JOIN Student_Enrolment AS T2 ON T1.semester_id = T2.semester_id GROUP BY T1.semester_id ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION Find the id of users who are followed by Mary or Susan. ### INPUT CREATE TABLE follows (f1 VARCHAR, f2 VARCHAR); CREATE TABLE user_profiles (uid VARCHAR, name VARCHAR) ### OUTPUT SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = "Mary" OR T1.name = "Susan"
{ "input": "CREATE TABLE follows (f1 VARCHAR, f2 VARCHAR); CREATE TABLE user_profiles (uid VARCHAR, name VARCHAR)", "instruction": "Find the id of users who are followed by Mary or Susan.", "output": "SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = \"Mary\" OR T1.name = \"Susan\"" }
### INSTRUCTION When aaron brooks (6) had the highest amount of assists what is the date? ### INPUT CREATE TABLE table_17288825_6 (date VARCHAR, high_assists VARCHAR) ### OUTPUT SELECT date FROM table_17288825_6 WHERE high_assists = "Aaron Brooks (6)"
{ "input": "CREATE TABLE table_17288825_6 (date VARCHAR, high_assists VARCHAR)", "instruction": "When aaron brooks (6) had the highest amount of assists what is the date?", "output": "SELECT date FROM table_17288825_6 WHERE high_assists = \"Aaron Brooks (6)\"" }
### INSTRUCTION What is the population when the area is 4,575? ### INPUT CREATE TABLE table_name_8 (population VARCHAR, area VARCHAR) ### OUTPUT SELECT population FROM table_name_8 WHERE area = "4,575"
{ "input": "CREATE TABLE table_name_8 (population VARCHAR, area VARCHAR)", "instruction": "What is the population when the area is 4,575?", "output": "SELECT population FROM table_name_8 WHERE area = \"4,575\"" }
### INSTRUCTION Name the location for abraham baldwin agricultural college ### INPUT CREATE TABLE table_16734640_1 (location VARCHAR, institution VARCHAR) ### OUTPUT SELECT location FROM table_16734640_1 WHERE institution = "Abraham Baldwin Agricultural College"
{ "input": "CREATE TABLE table_16734640_1 (location VARCHAR, institution VARCHAR)", "instruction": "Name the location for abraham baldwin agricultural college", "output": "SELECT location FROM table_16734640_1 WHERE institution = \"Abraham Baldwin Agricultural College\"" }
### INSTRUCTION what is the city with the height (ft) more than 328.1, rank higher than 56, a height (m) of 103 and floors less than 28? ### INPUT CREATE TABLE table_name_14 (city VARCHAR, floors VARCHAR, height__m_ VARCHAR, height__ft_ VARCHAR, rank VARCHAR) ### OUTPUT SELECT city FROM table_name_14 WHERE height__ft_ > 328.1 AND rank > 56 AND height__m_ = 103 AND floors < 28
{ "input": "CREATE TABLE table_name_14 (city VARCHAR, floors VARCHAR, height__m_ VARCHAR, height__ft_ VARCHAR, rank VARCHAR)", "instruction": "what is the city with the height (ft) more than 328.1, rank higher than 56, a height (m) of 103 and floors less than 28?", "output": "SELECT city FROM table_name_14 WHERE height__ft_ > 328.1 AND rank > 56 AND height__m_ = 103 AND floors < 28" }
### INSTRUCTION Who is the color commentator when brian engblom is ice level reporters? ### INPUT CREATE TABLE table_22485543_1 (color_commentator_s_ VARCHAR, ice_level_reporters VARCHAR) ### OUTPUT SELECT color_commentator_s_ FROM table_22485543_1 WHERE ice_level_reporters = "Brian Engblom"
{ "input": "CREATE TABLE table_22485543_1 (color_commentator_s_ VARCHAR, ice_level_reporters VARCHAR)", "instruction": "Who is the color commentator when brian engblom is ice level reporters?", "output": "SELECT color_commentator_s_ FROM table_22485543_1 WHERE ice_level_reporters = \"Brian Engblom\"" }
### INSTRUCTION What Championship had a winning score of 69-71-67-68=275? ### INPUT CREATE TABLE table_name_9 (championship VARCHAR, winning_score VARCHAR) ### OUTPUT SELECT championship FROM table_name_9 WHERE winning_score = 69 - 71 - 67 - 68 = 275
{ "input": "CREATE TABLE table_name_9 (championship VARCHAR, winning_score VARCHAR)", "instruction": "What Championship had a winning score of 69-71-67-68=275?", "output": "SELECT championship FROM table_name_9 WHERE winning_score = 69 - 71 - 67 - 68 = 275" }
### INSTRUCTION How many teachers does the student named MADLOCK RAY have? ### INPUT CREATE TABLE teachers (classroom VARCHAR); CREATE TABLE list (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR) ### OUTPUT SELECT COUNT(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = "MADLOCK" AND T1.lastname = "RAY"
{ "input": "CREATE TABLE teachers (classroom VARCHAR); CREATE TABLE list (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)", "instruction": "How many teachers does the student named MADLOCK RAY have?", "output": "SELECT COUNT(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = \"MADLOCK\" AND T1.lastname = \"RAY\"" }
### INSTRUCTION What is the Rank that has a Venue of bellerive oval , hobart, and a Margin of 115 runs? ### INPUT CREATE TABLE table_name_31 (rank VARCHAR, venue VARCHAR, margin VARCHAR) ### OUTPUT SELECT rank FROM table_name_31 WHERE venue = "bellerive oval , hobart" AND margin = "115 runs"
{ "input": "CREATE TABLE table_name_31 (rank VARCHAR, venue VARCHAR, margin VARCHAR)", "instruction": "What is the Rank that has a Venue of bellerive oval , hobart, and a Margin of 115 runs?", "output": "SELECT rank FROM table_name_31 WHERE venue = \"bellerive oval , hobart\" AND margin = \"115 runs\"" }
### INSTRUCTION When is the first season there were 14.57 million U.S viewers? ### INPUT CREATE TABLE table_11664625_2 (no_in_season INTEGER, us_viewers__millions_ VARCHAR) ### OUTPUT SELECT MIN(no_in_season) FROM table_11664625_2 WHERE us_viewers__millions_ = "14.57"
{ "input": "CREATE TABLE table_11664625_2 (no_in_season INTEGER, us_viewers__millions_ VARCHAR)", "instruction": "When is the first season there were 14.57 million U.S viewers?", "output": "SELECT MIN(no_in_season) FROM table_11664625_2 WHERE us_viewers__millions_ = \"14.57\"" }
### INSTRUCTION What was the decile of Samuel Marsden Collegiate School in Whitby, when it had a roll higher than 163? ### INPUT CREATE TABLE table_name_55 (decile VARCHAR, roll VARCHAR, area VARCHAR, name VARCHAR) ### OUTPUT SELECT COUNT(decile) FROM table_name_55 WHERE area = "whitby" AND name = "samuel marsden collegiate school" AND roll > 163
{ "input": "CREATE TABLE table_name_55 (decile VARCHAR, roll VARCHAR, area VARCHAR, name VARCHAR)", "instruction": "What was the decile of Samuel Marsden Collegiate School in Whitby, when it had a roll higher than 163?", "output": "SELECT COUNT(decile) FROM table_name_55 WHERE area = \"whitby\" AND name = \"samuel marsden collegiate school\" AND roll > 163" }
### INSTRUCTION What is Event, when Round is "1", when Location is "New Town, North Dakota , United States" and when Time is "4:12"? ### INPUT CREATE TABLE table_name_9 (event VARCHAR, time VARCHAR, round VARCHAR, location VARCHAR) ### OUTPUT SELECT event FROM table_name_9 WHERE round = 1 AND location = "new town, north dakota , united states" AND time = "4:12"
{ "input": "CREATE TABLE table_name_9 (event VARCHAR, time VARCHAR, round VARCHAR, location VARCHAR)", "instruction": "What is Event, when Round is \"1\", when Location is \"New Town, North Dakota , United States\" and when Time is \"4:12\"?", "output": "SELECT event FROM table_name_9 WHERE round = 1 AND location = \"new town, north dakota , united states\" AND time = \"4:12\"" }
### INSTRUCTION What was the date of birth of the member of the United States House of Representatives that began their term on April 24, 1902? ### INPUT CREATE TABLE table_name_66 (date_of_birth VARCHAR, begin_date VARCHAR) ### OUTPUT SELECT date_of_birth FROM table_name_66 WHERE begin_date = "april 24, 1902"
{ "input": "CREATE TABLE table_name_66 (date_of_birth VARCHAR, begin_date VARCHAR)", "instruction": "What was the date of birth of the member of the United States House of Representatives that began their term on April 24, 1902?", "output": "SELECT date_of_birth FROM table_name_66 WHERE begin_date = \"april 24, 1902\"" }
### INSTRUCTION Title of the angry brigade involves which lowest year? ### INPUT CREATE TABLE table_name_49 (year INTEGER, title VARCHAR) ### OUTPUT SELECT MIN(year) FROM table_name_49 WHERE title = "the angry brigade"
{ "input": "CREATE TABLE table_name_49 (year INTEGER, title VARCHAR)", "instruction": "Title of the angry brigade involves which lowest year?", "output": "SELECT MIN(year) FROM table_name_49 WHERE title = \"the angry brigade\"" }
### INSTRUCTION What is the accreditation level of the network brand Movistar? ### INPUT CREATE TABLE table_name_76 (accreditation_level VARCHAR, network_brand_name VARCHAR) ### OUTPUT SELECT accreditation_level FROM table_name_76 WHERE network_brand_name = "movistar"
{ "input": "CREATE TABLE table_name_76 (accreditation_level VARCHAR, network_brand_name VARCHAR)", "instruction": "What is the accreditation level of the network brand Movistar?", "output": "SELECT accreditation_level FROM table_name_76 WHERE network_brand_name = \"movistar\"" }
### INSTRUCTION Name the broadcast day and timings for tv saitama ### INPUT CREATE TABLE table_21076286_2 (broadcast_day_and_timings__in_jst__ VARCHAR, broadcast_network VARCHAR) ### OUTPUT SELECT broadcast_day_and_timings__in_jst__ FROM table_21076286_2 WHERE broadcast_network = "TV Saitama"
{ "input": "CREATE TABLE table_21076286_2 (broadcast_day_and_timings__in_jst__ VARCHAR, broadcast_network VARCHAR)", "instruction": "Name the broadcast day and timings for tv saitama", "output": "SELECT broadcast_day_and_timings__in_jst__ FROM table_21076286_2 WHERE broadcast_network = \"TV Saitama\"" }
### INSTRUCTION What result has a Score of 1–0, and a Competition of 2014 fifa world cup qualification? ### INPUT CREATE TABLE table_name_47 (result VARCHAR, score VARCHAR, competition VARCHAR) ### OUTPUT SELECT result FROM table_name_47 WHERE score = "1–0" AND competition = "2014 fifa world cup qualification"
{ "input": "CREATE TABLE table_name_47 (result VARCHAR, score VARCHAR, competition VARCHAR)", "instruction": "What result has a Score of 1–0, and a Competition of 2014 fifa world cup qualification?", "output": "SELECT result FROM table_name_47 WHERE score = \"1–0\" AND competition = \"2014 fifa world cup qualification\"" }
### INSTRUCTION How many export volume of goods/services values are associated with GDP at constant prices values of 3.072? ### INPUT CREATE TABLE table_30133_1 (export_volume_of_goods_and_services__percent_change_ VARCHAR, gdp_at_constant_prices__thb_trillions_ VARCHAR) ### OUTPUT SELECT COUNT(export_volume_of_goods_and_services__percent_change_) FROM table_30133_1 WHERE gdp_at_constant_prices__thb_trillions_ = "3.072"
{ "input": "CREATE TABLE table_30133_1 (export_volume_of_goods_and_services__percent_change_ VARCHAR, gdp_at_constant_prices__thb_trillions_ VARCHAR)", "instruction": "How many export volume of goods/services values are associated with GDP at constant prices values of 3.072?", "output": "SELECT COUNT(export_volume_of_goods_and_services__percent_change_) FROM table_30133_1 WHERE gdp_at_constant_prices__thb_trillions_ = \"3.072\"" }
### INSTRUCTION Who was the visiting team at Raymond James Stadium? ### INPUT CREATE TABLE table_name_36 (visiting_team VARCHAR, stadium VARCHAR) ### OUTPUT SELECT visiting_team FROM table_name_36 WHERE stadium = "raymond james stadium"
{ "input": "CREATE TABLE table_name_36 (visiting_team VARCHAR, stadium VARCHAR)", "instruction": "Who was the visiting team at Raymond James Stadium?", "output": "SELECT visiting_team FROM table_name_36 WHERE stadium = \"raymond james stadium\"" }
### INSTRUCTION Find the id and name of the staff who has been assigned for the shortest period. ### INPUT CREATE TABLE Staff_Department_Assignments (staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_name VARCHAR) ### OUTPUT SELECT T1.staff_id, T1.staff_name FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id ORDER BY date_assigned_to - date_assigned_from LIMIT 1
{ "input": "CREATE TABLE Staff_Department_Assignments (staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_name VARCHAR)", "instruction": "Find the id and name of the staff who has been assigned for the shortest period.", "output": "SELECT T1.staff_id, T1.staff_name FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id ORDER BY date_assigned_to - date_assigned_from LIMIT 1" }
### INSTRUCTION what is the location when the year is less than 1998 and the international captain is david graham? ### INPUT CREATE TABLE table_name_21 (location VARCHAR, year VARCHAR, international_captain VARCHAR) ### OUTPUT SELECT location FROM table_name_21 WHERE year < 1998 AND international_captain = "david graham"
{ "input": "CREATE TABLE table_name_21 (location VARCHAR, year VARCHAR, international_captain VARCHAR)", "instruction": "what is the location when the year is less than 1998 and the international captain is david graham?", "output": "SELECT location FROM table_name_21 WHERE year < 1998 AND international_captain = \"david graham\"" }
### INSTRUCTION List the name of tracks belongs to genre Rock and whose media type is MPEG audio file. ### INPUT CREATE TABLE genres (id VARCHAR, name VARCHAR); CREATE TABLE tracks (name VARCHAR, genre_id VARCHAR, media_type_id VARCHAR); CREATE TABLE media_types (id VARCHAR, name VARCHAR) ### OUTPUT SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = "Rock" AND T3.name = "MPEG audio file"
{ "input": "CREATE TABLE genres (id VARCHAR, name VARCHAR); CREATE TABLE tracks (name VARCHAR, genre_id VARCHAR, media_type_id VARCHAR); CREATE TABLE media_types (id VARCHAR, name VARCHAR)", "instruction": "List the name of tracks belongs to genre Rock and whose media type is MPEG audio file.", "output": "SELECT T2.name FROM genres AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id JOIN media_types AS T3 ON T3.id = T2.media_type_id WHERE T1.name = \"Rock\" AND T3.name = \"MPEG audio file\"" }
### INSTRUCTION How many floors were there with a building rank of less than 3 and a height of 300 / 985 m (ft)? ### INPUT CREATE TABLE table_name_3 (floors VARCHAR, rank VARCHAR, height VARCHAR, _m__ft_ VARCHAR) ### OUTPUT SELECT COUNT(floors) FROM table_name_3 WHERE height * _m__ft_ = "300 / 985" AND rank < 3
{ "input": "CREATE TABLE table_name_3 (floors VARCHAR, rank VARCHAR, height VARCHAR, _m__ft_ VARCHAR)", "instruction": "How many floors were there with a building rank of less than 3 and a height of 300 / 985 m (ft)?", "output": "SELECT COUNT(floors) FROM table_name_3 WHERE height * _m__ft_ = \"300 / 985\" AND rank < 3" }
### INSTRUCTION Name the total number of language of films for méga-plex taschereau imax ### INPUT CREATE TABLE table_2461720_1 (language_of_films VARCHAR, theatre_name VARCHAR) ### OUTPUT SELECT COUNT(language_of_films) FROM table_2461720_1 WHERE theatre_name = "Méga-Plex Taschereau IMAX"
{ "input": "CREATE TABLE table_2461720_1 (language_of_films VARCHAR, theatre_name VARCHAR)", "instruction": "Name the total number of language of films for méga-plex taschereau imax", "output": "SELECT COUNT(language_of_films) FROM table_2461720_1 WHERE theatre_name = \"Méga-Plex Taschereau IMAX\"" }
### INSTRUCTION Show the name, average attendance, total attendance for stadiums where no accidents happened. ### INPUT CREATE TABLE stadium (name VARCHAR, average_attendance VARCHAR, total_attendance VARCHAR, id VARCHAR); CREATE TABLE stadium (name VARCHAR, average_attendance VARCHAR, total_attendance VARCHAR); CREATE TABLE game (stadium_id VARCHAR, id VARCHAR); CREATE TABLE injury_accident (game_id VARCHAR) ### OUTPUT SELECT name, average_attendance, total_attendance FROM stadium EXCEPT SELECT T2.name, T2.average_attendance, T2.total_attendance FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id
{ "input": "CREATE TABLE stadium (name VARCHAR, average_attendance VARCHAR, total_attendance VARCHAR, id VARCHAR); CREATE TABLE stadium (name VARCHAR, average_attendance VARCHAR, total_attendance VARCHAR); CREATE TABLE game (stadium_id VARCHAR, id VARCHAR); CREATE TABLE injury_accident (game_id VARCHAR)", "instruction": "Show the name, average attendance, total attendance for stadiums where no accidents happened.", "output": "SELECT name, average_attendance, total_attendance FROM stadium EXCEPT SELECT T2.name, T2.average_attendance, T2.total_attendance FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id" }
### INSTRUCTION What is the time in a heat smaller than 5, in Lane 5, for Vietnam? ### INPUT CREATE TABLE table_name_88 (time VARCHAR, nationality VARCHAR, heat VARCHAR, lane VARCHAR) ### OUTPUT SELECT time FROM table_name_88 WHERE heat < 5 AND lane = 5 AND nationality = "vietnam"
{ "input": "CREATE TABLE table_name_88 (time VARCHAR, nationality VARCHAR, heat VARCHAR, lane VARCHAR)", "instruction": "What is the time in a heat smaller than 5, in Lane 5, for Vietnam?", "output": "SELECT time FROM table_name_88 WHERE heat < 5 AND lane = 5 AND nationality = \"vietnam\"" }
### INSTRUCTION Which area 2006 km² has a city of sopot, and an area 1996 km² smaller than 17.31? ### INPUT CREATE TABLE table_name_22 (area_2006_km² INTEGER, city VARCHAR, area_1996_km² VARCHAR) ### OUTPUT SELECT MAX(area_2006_km²) FROM table_name_22 WHERE city = "sopot" AND area_1996_km² < 17.31
{ "input": "CREATE TABLE table_name_22 (area_2006_km² INTEGER, city VARCHAR, area_1996_km² VARCHAR)", "instruction": "Which area 2006 km² has a city of sopot, and an area 1996 km² smaller than 17.31?", "output": "SELECT MAX(area_2006_km²) FROM table_name_22 WHERE city = \"sopot\" AND area_1996_km² < 17.31" }
### INSTRUCTION Show the dates of performances with attending members whose roles are "Violin". ### INPUT CREATE TABLE performance (Date VARCHAR, Performance_ID VARCHAR); CREATE TABLE member (Member_ID VARCHAR, Role VARCHAR); CREATE TABLE member_attendance (Member_ID VARCHAR, Performance_ID VARCHAR) ### OUTPUT SELECT T3.Date FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID WHERE T2.Role = "Violin"
{ "input": "CREATE TABLE performance (Date VARCHAR, Performance_ID VARCHAR); CREATE TABLE member (Member_ID VARCHAR, Role VARCHAR); CREATE TABLE member_attendance (Member_ID VARCHAR, Performance_ID VARCHAR)", "instruction": "Show the dates of performances with attending members whose roles are \"Violin\".", "output": "SELECT T3.Date FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID WHERE T2.Role = \"Violin\"" }
### INSTRUCTION what date has the class of non-championship f2 as well as a driver name josé froilán gonzález that has a position larger than 2? ### INPUT CREATE TABLE table_name_27 (date VARCHAR, position VARCHAR, class VARCHAR, driver VARCHAR) ### OUTPUT SELECT date FROM table_name_27 WHERE class = "non-championship f2" AND driver = "josé froilán gonzález" AND position > 2
{ "input": "CREATE TABLE table_name_27 (date VARCHAR, position VARCHAR, class VARCHAR, driver VARCHAR)", "instruction": "what date has the class of non-championship f2 as well as a driver name josé froilán gonzález that has a position larger than 2?", "output": "SELECT date FROM table_name_27 WHERE class = \"non-championship f2\" AND driver = \"josé froilán gonzález\" AND position > 2" }
### INSTRUCTION what is the owner of the callsign wliw ### INPUT CREATE TABLE table_1979203_1 (owner VARCHAR, callsign VARCHAR) ### OUTPUT SELECT owner FROM table_1979203_1 WHERE callsign = "WLIW"
{ "input": "CREATE TABLE table_1979203_1 (owner VARCHAR, callsign VARCHAR)", "instruction": "what is the owner of the callsign wliw", "output": "SELECT owner FROM table_1979203_1 WHERE callsign = \"WLIW\"" }
### INSTRUCTION Find the first names of all professors in the Accounting department who is teaching some course and the class room. ### INPUT CREATE TABLE CLASS (class_room VARCHAR, prof_num VARCHAR); CREATE TABLE professor (emp_num VARCHAR, dept_code VARCHAR); CREATE TABLE department (dept_code VARCHAR, dept_name VARCHAR); CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR) ### OUTPUT SELECT T2.emp_fname, T1.class_room FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN professor AS T3 ON T2.emp_num = T3.emp_num JOIN department AS T4 ON T4.dept_code = T3.dept_code WHERE T4.dept_name = 'Accounting'
{ "input": "CREATE TABLE CLASS (class_room VARCHAR, prof_num VARCHAR); CREATE TABLE professor (emp_num VARCHAR, dept_code VARCHAR); CREATE TABLE department (dept_code VARCHAR, dept_name VARCHAR); CREATE TABLE employee (emp_fname VARCHAR, emp_num VARCHAR)", "instruction": "Find the first names of all professors in the Accounting department who is teaching some course and the class room.", "output": "SELECT T2.emp_fname, T1.class_room FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN professor AS T3 ON T2.emp_num = T3.emp_num JOIN department AS T4 ON T4.dept_code = T3.dept_code WHERE T4.dept_name = 'Accounting'" }
### INSTRUCTION Which province is Villa Bisonó in? ### INPUT CREATE TABLE table_22447251_2 (province VARCHAR, _community VARCHAR, hometown VARCHAR) ### OUTPUT SELECT province, _community FROM table_22447251_2 WHERE hometown = "Villa Bisonó"
{ "input": "CREATE TABLE table_22447251_2 (province VARCHAR, _community VARCHAR, hometown VARCHAR)", "instruction": "Which province is Villa Bisonó in?", "output": "SELECT province, _community FROM table_22447251_2 WHERE hometown = \"Villa Bisonó\"" }
### INSTRUCTION Reported Offenses larger than 216, and a U.S. Rate smaller than 3274, and a Texas Rate smaller than 2688.9, and a Crime of violent crime has what killeen rate? ### INPUT CREATE TABLE table_name_8 (killeen_rate INTEGER, crime VARCHAR, texas_rate VARCHAR, reported_offenses VARCHAR, us_rate VARCHAR) ### OUTPUT SELECT SUM(killeen_rate) FROM table_name_8 WHERE reported_offenses > 216 AND us_rate < 3274 AND texas_rate < 2688.9 AND crime = "violent crime"
{ "input": "CREATE TABLE table_name_8 (killeen_rate INTEGER, crime VARCHAR, texas_rate VARCHAR, reported_offenses VARCHAR, us_rate VARCHAR)", "instruction": "Reported Offenses larger than 216, and a U.S. Rate smaller than 3274, and a Texas Rate smaller than 2688.9, and a Crime of violent crime has what killeen rate?", "output": "SELECT SUM(killeen_rate) FROM table_name_8 WHERE reported_offenses > 216 AND us_rate < 3274 AND texas_rate < 2688.9 AND crime = \"violent crime\"" }
### INSTRUCTION how many points for with points against being 177 ### INPUT CREATE TABLE table_14058433_5 (points_for VARCHAR, points_against VARCHAR) ### OUTPUT SELECT COUNT(points_for) FROM table_14058433_5 WHERE points_against = "177"
{ "input": "CREATE TABLE table_14058433_5 (points_for VARCHAR, points_against VARCHAR)", "instruction": " how many points for with points against being 177", "output": "SELECT COUNT(points_for) FROM table_14058433_5 WHERE points_against = \"177\"" }
### INSTRUCTION Tell me the year for defensive tackle and college of lsu ### INPUT CREATE TABLE table_name_13 (year VARCHAR, position VARCHAR, college VARCHAR) ### OUTPUT SELECT year FROM table_name_13 WHERE position = "defensive tackle" AND college = "lsu"
{ "input": "CREATE TABLE table_name_13 (year VARCHAR, position VARCHAR, college VARCHAR)", "instruction": "Tell me the year for defensive tackle and college of lsu", "output": "SELECT year FROM table_name_13 WHERE position = \"defensive tackle\" AND college = \"lsu\"" }
### INSTRUCTION What is the undecided percentage of the poll from Suffolk University with Murray at 11%? ### INPUT CREATE TABLE table_name_80 (undecided VARCHAR, source VARCHAR, murray VARCHAR) ### OUTPUT SELECT undecided FROM table_name_80 WHERE source = "suffolk university" AND murray = "11%"
{ "input": "CREATE TABLE table_name_80 (undecided VARCHAR, source VARCHAR, murray VARCHAR)", "instruction": "What is the undecided percentage of the poll from Suffolk University with Murray at 11%?", "output": "SELECT undecided FROM table_name_80 WHERE source = \"suffolk university\" AND murray = \"11%\"" }
### INSTRUCTION Opened prior to 1877 only 2.44km from Wellington, when did this station close? ### INPUT CREATE TABLE table_name_6 (closed VARCHAR, opened VARCHAR, distance_from_wellington VARCHAR) ### OUTPUT SELECT closed FROM table_name_6 WHERE opened < 1877 AND distance_from_wellington = "2.44km"
{ "input": "CREATE TABLE table_name_6 (closed VARCHAR, opened VARCHAR, distance_from_wellington VARCHAR)", "instruction": "Opened prior to 1877 only 2.44km from Wellington, when did this station close?", "output": "SELECT closed FROM table_name_6 WHERE opened < 1877 AND distance_from_wellington = \"2.44km\"" }
### INSTRUCTION What is the height for rank greater than 10 in Tameer Tower? ### INPUT CREATE TABLE table_name_77 (height_m__ft_ VARCHAR, rank VARCHAR, name VARCHAR) ### OUTPUT SELECT height_m__ft_ FROM table_name_77 WHERE rank > 10 AND name = "tameer tower"
{ "input": "CREATE TABLE table_name_77 (height_m__ft_ VARCHAR, rank VARCHAR, name VARCHAR)", "instruction": "What is the height for rank greater than 10 in Tameer Tower?", "output": "SELECT height_m__ft_ FROM table_name_77 WHERE rank > 10 AND name = \"tameer tower\"" }
### INSTRUCTION What is the Opponent in the final with an outcome of winner on 14-may-2007? ### INPUT CREATE TABLE table_name_92 (opponent_in_the_final VARCHAR, outcome VARCHAR, date VARCHAR) ### OUTPUT SELECT opponent_in_the_final FROM table_name_92 WHERE outcome = "winner" AND date = "14-may-2007"
{ "input": "CREATE TABLE table_name_92 (opponent_in_the_final VARCHAR, outcome VARCHAR, date VARCHAR)", "instruction": "What is the Opponent in the final with an outcome of winner on 14-may-2007?", "output": "SELECT opponent_in_the_final FROM table_name_92 WHERE outcome = \"winner\" AND date = \"14-may-2007\"" }
### INSTRUCTION What is the average Poles, when Wins is 0, when Position is "nc", and when Season is before 2004? ### INPUT CREATE TABLE table_name_65 (poles INTEGER, season VARCHAR, wins VARCHAR, position VARCHAR) ### OUTPUT SELECT AVG(poles) FROM table_name_65 WHERE wins = 0 AND position = "nc" AND season < 2004
{ "input": "CREATE TABLE table_name_65 (poles INTEGER, season VARCHAR, wins VARCHAR, position VARCHAR)", "instruction": "What is the average Poles, when Wins is 0, when Position is \"nc\", and when Season is before 2004?", "output": "SELECT AVG(poles) FROM table_name_65 WHERE wins = 0 AND position = \"nc\" AND season < 2004" }
### INSTRUCTION What is Lawson Little's Money ($) amount? ### INPUT CREATE TABLE table_name_30 (money___$__ VARCHAR, player VARCHAR) ### OUTPUT SELECT money___$__ FROM table_name_30 WHERE player = "lawson little"
{ "input": "CREATE TABLE table_name_30 (money___$__ VARCHAR, player VARCHAR)", "instruction": "What is Lawson Little's Money ($) amount?", "output": "SELECT money___$__ FROM table_name_30 WHERE player = \"lawson little\"" }
### INSTRUCTION What is the lowest FA Cup Goals, when Total Goals is greater than 0, when League Goals is "4", when FA Cup Apps is "1", and when League Cup Goals is greater than 0? ### INPUT CREATE TABLE table_name_10 (fa_cup_goals INTEGER, league_cup_goals VARCHAR, fa_cup_apps VARCHAR, total_goals VARCHAR, league_goals VARCHAR) ### OUTPUT SELECT MIN(fa_cup_goals) FROM table_name_10 WHERE total_goals > 0 AND league_goals = 4 AND fa_cup_apps = "1" AND league_cup_goals > 0
{ "input": "CREATE TABLE table_name_10 (fa_cup_goals INTEGER, league_cup_goals VARCHAR, fa_cup_apps VARCHAR, total_goals VARCHAR, league_goals VARCHAR)", "instruction": "What is the lowest FA Cup Goals, when Total Goals is greater than 0, when League Goals is \"4\", when FA Cup Apps is \"1\", and when League Cup Goals is greater than 0?", "output": "SELECT MIN(fa_cup_goals) FROM table_name_10 WHERE total_goals > 0 AND league_goals = 4 AND fa_cup_apps = \"1\" AND league_cup_goals > 0" }
### INSTRUCTION How many different roles are there in the club "Bootup Baltimore"? ### INPUT CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (position VARCHAR, clubid VARCHAR) ### OUTPUT SELECT COUNT(DISTINCT t2.position) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid WHERE t1.clubname = "Bootup Baltimore"
{ "input": "CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (position VARCHAR, clubid VARCHAR)", "instruction": "How many different roles are there in the club \"Bootup Baltimore\"?", "output": "SELECT COUNT(DISTINCT t2.position) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid WHERE t1.clubname = \"Bootup Baltimore\"" }
### INSTRUCTION Which state had an average of less than 8.67, a swimsuit score of 8.27, an evening gown score of 8.78, and an interview number of 8.52? ### INPUT CREATE TABLE table_name_70 (state VARCHAR, interview VARCHAR, evening_gown VARCHAR, average VARCHAR, swimsuit VARCHAR) ### OUTPUT SELECT state FROM table_name_70 WHERE average < 8.67 AND swimsuit = 8.27 AND evening_gown = 8.78 AND interview = 8.52
{ "input": "CREATE TABLE table_name_70 (state VARCHAR, interview VARCHAR, evening_gown VARCHAR, average VARCHAR, swimsuit VARCHAR)", "instruction": "Which state had an average of less than 8.67, a swimsuit score of 8.27, an evening gown score of 8.78, and an interview number of 8.52?", "output": "SELECT state FROM table_name_70 WHERE average < 8.67 AND swimsuit = 8.27 AND evening_gown = 8.78 AND interview = 8.52" }
### INSTRUCTION What are the country names, area and population which has both roller coasters with speed higher ### INPUT CREATE TABLE country (name VARCHAR, area VARCHAR, population VARCHAR, Country_ID VARCHAR); CREATE TABLE roller_coaster (Country_ID VARCHAR, speed INTEGER) ### OUTPUT SELECT T1.name, T1.area, T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID WHERE T2.speed > 60 INTERSECT SELECT T1.name, T1.area, T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID WHERE T2.speed < 55
{ "input": "CREATE TABLE country (name VARCHAR, area VARCHAR, population VARCHAR, Country_ID VARCHAR); CREATE TABLE roller_coaster (Country_ID VARCHAR, speed INTEGER)", "instruction": "What are the country names, area and population which has both roller coasters with speed higher", "output": "SELECT T1.name, T1.area, T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID WHERE T2.speed > 60 INTERSECT SELECT T1.name, T1.area, T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID WHERE T2.speed < 55" }
### INSTRUCTION Who are enrolled in 2 degree programs in one semester? List the first name, middle name and last name and the id. ### INPUT CREATE TABLE Students (first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, student_id VARCHAR); CREATE TABLE Student_Enrolment (student_id VARCHAR) ### OUTPUT SELECT T1.first_name, T1.middle_name, T1.last_name, T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) = 2
{ "input": "CREATE TABLE Students (first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, student_id VARCHAR); CREATE TABLE Student_Enrolment (student_id VARCHAR)", "instruction": "Who are enrolled in 2 degree programs in one semester? List the first name, middle name and last name and the id.", "output": "SELECT T1.first_name, T1.middle_name, T1.last_name, T1.student_id FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) = 2" }
### INSTRUCTION What was the Venue of the San Francisco 49ers Home game with a Result of 30-10? ### INPUT CREATE TABLE table_name_89 (venue VARCHAR, home_team VARCHAR, result VARCHAR) ### OUTPUT SELECT venue FROM table_name_89 WHERE home_team = "san francisco 49ers" AND result = "30-10"
{ "input": "CREATE TABLE table_name_89 (venue VARCHAR, home_team VARCHAR, result VARCHAR)", "instruction": "What was the Venue of the San Francisco 49ers Home game with a Result of 30-10?", "output": "SELECT venue FROM table_name_89 WHERE home_team = \"san francisco 49ers\" AND result = \"30-10\"" }
### INSTRUCTION What is the total number of games with more than 18 loses, a Total League, and more than 317 draws? ### INPUT CREATE TABLE table_name_26 (total_games VARCHAR, draw VARCHAR, loss VARCHAR, league VARCHAR) ### OUTPUT SELECT COUNT(total_games) FROM table_name_26 WHERE loss > 18 AND league = "total" AND draw > 317
{ "input": "CREATE TABLE table_name_26 (total_games VARCHAR, draw VARCHAR, loss VARCHAR, league VARCHAR)", "instruction": "What is the total number of games with more than 18 loses, a Total League, and more than 317 draws?", "output": "SELECT COUNT(total_games) FROM table_name_26 WHERE loss > 18 AND league = \"total\" AND draw > 317" }
### INSTRUCTION What instrument did the musician with last name "Heilo" use in the song "Badlands"? ### INPUT CREATE TABLE Songs (SongId VARCHAR, songid VARCHAR, title VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR); CREATE TABLE Band (id VARCHAR, lastname VARCHAR); CREATE TABLE Instruments (instrument VARCHAR, songid VARCHAR, bandmateid VARCHAR) ### OUTPUT SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = "Heilo" AND T3.title = "Badlands"
{ "input": "CREATE TABLE Songs (SongId VARCHAR, songid VARCHAR, title VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR); CREATE TABLE Band (id VARCHAR, lastname VARCHAR); CREATE TABLE Instruments (instrument VARCHAR, songid VARCHAR, bandmateid VARCHAR)", "instruction": "What instrument did the musician with last name \"Heilo\" use in the song \"Badlands\"?", "output": "SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = \"Heilo\" AND T3.title = \"Badlands\"" }
### INSTRUCTION What Object Type has a 21h01m37.7s Right Ascension (J2000) and 6995 or greater NGC? ### INPUT CREATE TABLE table_name_81 (object_type VARCHAR, ngc_number VARCHAR, right_ascension___j2000__ VARCHAR) ### OUTPUT SELECT object_type FROM table_name_81 WHERE ngc_number > 6995 AND right_ascension___j2000__ = "21h01m37.7s"
{ "input": "CREATE TABLE table_name_81 (object_type VARCHAR, ngc_number VARCHAR, right_ascension___j2000__ VARCHAR)", "instruction": "What Object Type has a 21h01m37.7s Right Ascension (J2000) and 6995 or greater NGC?", "output": "SELECT object_type FROM table_name_81 WHERE ngc_number > 6995 AND right_ascension___j2000__ = \"21h01m37.7s\"" }
### INSTRUCTION What is the lowest Top-10 when the Top-25 is 6, and a Tournament of u.s. open, and a Cut made larger than 9? ### INPUT CREATE TABLE table_name_44 (top_10 INTEGER, cuts_made VARCHAR, top_25 VARCHAR, tournament VARCHAR) ### OUTPUT SELECT MIN(top_10) FROM table_name_44 WHERE top_25 = 6 AND tournament = "u.s. open" AND cuts_made > 9
{ "input": "CREATE TABLE table_name_44 (top_10 INTEGER, cuts_made VARCHAR, top_25 VARCHAR, tournament VARCHAR)", "instruction": "What is the lowest Top-10 when the Top-25 is 6, and a Tournament of u.s. open, and a Cut made larger than 9?", "output": "SELECT MIN(top_10) FROM table_name_44 WHERE top_25 = 6 AND tournament = \"u.s. open\" AND cuts_made > 9" }
### INSTRUCTION How many tourists visited the country that had 2.5 million tourists in 2011? ### INPUT CREATE TABLE table_name_38 (international_tourist_arrivals__2012_ VARCHAR, international_tourist_arrivals__2011_ VARCHAR) ### OUTPUT SELECT international_tourist_arrivals__2012_ FROM table_name_38 WHERE international_tourist_arrivals__2011_ = "2.5 million"
{ "input": "CREATE TABLE table_name_38 (international_tourist_arrivals__2012_ VARCHAR, international_tourist_arrivals__2011_ VARCHAR)", "instruction": "How many tourists visited the country that had 2.5 million tourists in 2011?", "output": "SELECT international_tourist_arrivals__2012_ FROM table_name_38 WHERE international_tourist_arrivals__2011_ = \"2.5 million\"" }
### INSTRUCTION What is the mean number of events where the rank is 1 and there are more than 3 wins? ### INPUT CREATE TABLE table_name_50 (events INTEGER, rank VARCHAR, wins VARCHAR) ### OUTPUT SELECT AVG(events) FROM table_name_50 WHERE rank = 1 AND wins > 3
{ "input": "CREATE TABLE table_name_50 (events INTEGER, rank VARCHAR, wins VARCHAR)", "instruction": "What is the mean number of events where the rank is 1 and there are more than 3 wins?", "output": "SELECT AVG(events) FROM table_name_50 WHERE rank = 1 AND wins > 3" }
### INSTRUCTION who is the champion when the year is earlier than 2012, the runner-up (average in final) is steve beaton (97.16)? ### INPUT CREATE TABLE table_name_25 (champion VARCHAR, year VARCHAR, runner_up__average_in_final_ VARCHAR) ### OUTPUT SELECT champion FROM table_name_25 WHERE year < 2012 AND runner_up__average_in_final_ = "steve beaton (97.16)"
{ "input": "CREATE TABLE table_name_25 (champion VARCHAR, year VARCHAR, runner_up__average_in_final_ VARCHAR)", "instruction": "who is the champion when the year is earlier than 2012, the runner-up (average in final) is steve beaton (97.16)?", "output": "SELECT champion FROM table_name_25 WHERE year < 2012 AND runner_up__average_in_final_ = \"steve beaton (97.16)\"" }
### INSTRUCTION How many people attended the game on january 10 with a Score of 3 – 2? ### INPUT CREATE TABLE table_name_96 (attendance VARCHAR, score VARCHAR, date VARCHAR) ### OUTPUT SELECT COUNT(attendance) FROM table_name_96 WHERE score = "3 – 2" AND date = "january 10"
{ "input": "CREATE TABLE table_name_96 (attendance VARCHAR, score VARCHAR, date VARCHAR)", "instruction": "How many people attended the game on january 10 with a Score of 3 – 2?", "output": "SELECT COUNT(attendance) FROM table_name_96 WHERE score = \"3 – 2\" AND date = \"january 10\"" }
### INSTRUCTION Tell me the outgoing manager for resigned and replaced by manolo villanova for real zaragoza ### INPUT CREATE TABLE table_name_29 (outgoing_manager VARCHAR, replaced_by VARCHAR, manner_of_departure VARCHAR, team VARCHAR) ### OUTPUT SELECT outgoing_manager FROM table_name_29 WHERE manner_of_departure = "resigned" AND team = "real zaragoza" AND replaced_by = "manolo villanova"
{ "input": "CREATE TABLE table_name_29 (outgoing_manager VARCHAR, replaced_by VARCHAR, manner_of_departure VARCHAR, team VARCHAR)", "instruction": "Tell me the outgoing manager for resigned and replaced by manolo villanova for real zaragoza", "output": "SELECT outgoing_manager FROM table_name_29 WHERE manner_of_departure = \"resigned\" AND team = \"real zaragoza\" AND replaced_by = \"manolo villanova\"" }
### INSTRUCTION Name the metrical equivalence for linha ### INPUT CREATE TABLE table_26538461_2 (metrical_equivalence VARCHAR, portuguese_name VARCHAR) ### OUTPUT SELECT metrical_equivalence FROM table_26538461_2 WHERE portuguese_name = "Linha"
{ "input": "CREATE TABLE table_26538461_2 (metrical_equivalence VARCHAR, portuguese_name VARCHAR)", "instruction": "Name the metrical equivalence for linha", "output": "SELECT metrical_equivalence FROM table_26538461_2 WHERE portuguese_name = \"Linha\"" }
### INSTRUCTION What is the title for david campbell mulford? ### INPUT CREATE TABLE table_name_90 (title VARCHAR, name VARCHAR) ### OUTPUT SELECT title FROM table_name_90 WHERE name = "david campbell mulford"
{ "input": "CREATE TABLE table_name_90 (title VARCHAR, name VARCHAR)", "instruction": "What is the title for david campbell mulford?", "output": "SELECT title FROM table_name_90 WHERE name = \"david campbell mulford\"" }
### INSTRUCTION Name the original air date for 7 1-07 ### INPUT CREATE TABLE table_24222929_4 (original_airdate VARCHAR, episode_number_production_number VARCHAR) ### OUTPUT SELECT original_airdate FROM table_24222929_4 WHERE episode_number_production_number = "7 1-07"
{ "input": "CREATE TABLE table_24222929_4 (original_airdate VARCHAR, episode_number_production_number VARCHAR)", "instruction": "Name the original air date for 7 1-07", "output": "SELECT original_airdate FROM table_24222929_4 WHERE episode_number_production_number = \"7 1-07\"" }
### INSTRUCTION How many engines were built with a cylinder size of 20 ½” x 26”, firebox is belpaire and valve gear is from Stephenson? ### INPUT CREATE TABLE table_25695027_1 (number_built VARCHAR, valve_gear VARCHAR, cylinder_size VARCHAR, firebox VARCHAR) ### OUTPUT SELECT number_built FROM table_25695027_1 WHERE cylinder_size = "20 ½” x 26”" AND firebox = "Belpaire" AND valve_gear = "Stephenson"
{ "input": "CREATE TABLE table_25695027_1 (number_built VARCHAR, valve_gear VARCHAR, cylinder_size VARCHAR, firebox VARCHAR)", "instruction": "How many engines were built with a cylinder size of 20 ½” x 26”, firebox is belpaire and valve gear is from Stephenson?", "output": "SELECT number_built FROM table_25695027_1 WHERE cylinder_size = \"20 ½” x 26”\" AND firebox = \"Belpaire\" AND valve_gear = \"Stephenson\"" }
### INSTRUCTION What is Fleet Number(s), when Quantity Preserved is "0", when Quantity Made is 1, and when Class is "Z"? ### INPUT CREATE TABLE table_name_95 (fleet_number_s_ VARCHAR, class VARCHAR, quantity_preserved VARCHAR, quantity_made VARCHAR) ### OUTPUT SELECT fleet_number_s_ FROM table_name_95 WHERE quantity_preserved = "0" AND quantity_made = "1" AND class = "z"
{ "input": "CREATE TABLE table_name_95 (fleet_number_s_ VARCHAR, class VARCHAR, quantity_preserved VARCHAR, quantity_made VARCHAR)", "instruction": "What is Fleet Number(s), when Quantity Preserved is \"0\", when Quantity Made is 1, and when Class is \"Z\"?", "output": "SELECT fleet_number_s_ FROM table_name_95 WHERE quantity_preserved = \"0\" AND quantity_made = \"1\" AND class = \"z\"" }
### INSTRUCTION Who was the home team that had a replay of Tie Number and played against the Bolton Wanderers? ### INPUT CREATE TABLE table_name_81 (home_team VARCHAR, tie_no VARCHAR, away_team VARCHAR) ### OUTPUT SELECT home_team FROM table_name_81 WHERE tie_no = "replay" AND away_team = "bolton wanderers"
{ "input": "CREATE TABLE table_name_81 (home_team VARCHAR, tie_no VARCHAR, away_team VARCHAR)", "instruction": "Who was the home team that had a replay of Tie Number and played against the Bolton Wanderers?", "output": "SELECT home_team FROM table_name_81 WHERE tie_no = \"replay\" AND away_team = \"bolton wanderers\"" }
### INSTRUCTION What is the listed crowd when hawthorn is away? ### INPUT CREATE TABLE table_name_72 (crowd VARCHAR, away_team VARCHAR) ### OUTPUT SELECT COUNT(crowd) FROM table_name_72 WHERE away_team = "hawthorn"
{ "input": "CREATE TABLE table_name_72 (crowd VARCHAR, away_team VARCHAR)", "instruction": "What is the listed crowd when hawthorn is away?", "output": "SELECT COUNT(crowd) FROM table_name_72 WHERE away_team = \"hawthorn\"" }
### INSTRUCTION Which Date has a Road Team of new york, and a Result of 79-75? ### INPUT CREATE TABLE table_name_42 (date VARCHAR, road_team VARCHAR, result VARCHAR) ### OUTPUT SELECT date FROM table_name_42 WHERE road_team = "new york" AND result = "79-75"
{ "input": "CREATE TABLE table_name_42 (date VARCHAR, road_team VARCHAR, result VARCHAR)", "instruction": "Which Date has a Road Team of new york, and a Result of 79-75?", "output": "SELECT date FROM table_name_42 WHERE road_team = \"new york\" AND result = \"79-75\"" }
### INSTRUCTION List the tournament that kent state won? ### INPUT CREATE TABLE table_24348134_3 (conference VARCHAR, tournament_winner VARCHAR) ### OUTPUT SELECT conference AS Tournament FROM table_24348134_3 WHERE tournament_winner = "Kent State"
{ "input": "CREATE TABLE table_24348134_3 (conference VARCHAR, tournament_winner VARCHAR)", "instruction": "List the tournament that kent state won?", "output": "SELECT conference AS Tournament FROM table_24348134_3 WHERE tournament_winner = \"Kent State\"" }
### INSTRUCTION Name the least field goals for chantel hilliard ### INPUT CREATE TABLE table_23183195_5 (field_goals INTEGER, player VARCHAR) ### OUTPUT SELECT MIN(field_goals) FROM table_23183195_5 WHERE player = "Chantel Hilliard"
{ "input": "CREATE TABLE table_23183195_5 (field_goals INTEGER, player VARCHAR)", "instruction": "Name the least field goals for chantel hilliard", "output": "SELECT MIN(field_goals) FROM table_23183195_5 WHERE player = \"Chantel Hilliard\"" }
### INSTRUCTION Which is the smallest Total produced with a model of FM H-15-44? ### INPUT CREATE TABLE table_name_68 (total_produced INTEGER, model VARCHAR) ### OUTPUT SELECT MIN(total_produced) FROM table_name_68 WHERE model = "fm h-15-44"
{ "input": "CREATE TABLE table_name_68 (total_produced INTEGER, model VARCHAR)", "instruction": "Which is the smallest Total produced with a model of FM H-15-44?", "output": "SELECT MIN(total_produced) FROM table_name_68 WHERE model = \"fm h-15-44\"" }
### INSTRUCTION What's the change over previous year as a whole in the period in which the change over same quarter the previous year was up 2.8%? ### INPUT CREATE TABLE table_171748_3 (change_over_previous_year_as_a_whole VARCHAR, change_over_same_quarter_the_previous_year VARCHAR) ### OUTPUT SELECT change_over_previous_year_as_a_whole FROM table_171748_3 WHERE change_over_same_quarter_the_previous_year = "Up 2.8%"
{ "input": "CREATE TABLE table_171748_3 (change_over_previous_year_as_a_whole VARCHAR, change_over_same_quarter_the_previous_year VARCHAR)", "instruction": "What's the change over previous year as a whole in the period in which the change over same quarter the previous year was up 2.8%?", "output": "SELECT change_over_previous_year_as_a_whole FROM table_171748_3 WHERE change_over_same_quarter_the_previous_year = \"Up 2.8%\"" }
### INSTRUCTION What city of license/market has an owned since before 2011,and a affiliation of abc and channel (tv/rf) of 9 (22)? ### INPUT CREATE TABLE table_name_75 (city_of_license__market VARCHAR, channel___tv___rf__ VARCHAR, owned_since VARCHAR, affiliation VARCHAR) ### OUTPUT SELECT city_of_license__market FROM table_name_75 WHERE owned_since < 2011 AND affiliation = "abc" AND channel___tv___rf__ = "9 (22)"
{ "input": "CREATE TABLE table_name_75 (city_of_license__market VARCHAR, channel___tv___rf__ VARCHAR, owned_since VARCHAR, affiliation VARCHAR)", "instruction": "What city of license/market has an owned since before 2011,and a affiliation of abc and channel (tv/rf) of 9 (22)?", "output": "SELECT city_of_license__market FROM table_name_75 WHERE owned_since < 2011 AND affiliation = \"abc\" AND channel___tv___rf__ = \"9 (22)\"" }
### INSTRUCTION How many different genres appear for the Jimi Hendrix Experience? ### INPUT CREATE TABLE table_26488540_1 (genre VARCHAR, artist VARCHAR) ### OUTPUT SELECT COUNT(genre) FROM table_26488540_1 WHERE artist = "The Jimi Hendrix Experience"
{ "input": "CREATE TABLE table_26488540_1 (genre VARCHAR, artist VARCHAR)", "instruction": "How many different genres appear for the Jimi Hendrix Experience?", "output": "SELECT COUNT(genre) FROM table_26488540_1 WHERE artist = \"The Jimi Hendrix Experience\"" }
### INSTRUCTION What is the interaction type of the enzyme named 'ALA synthase' and the medicine named 'Aripiprazole'? ### INPUT CREATE TABLE enzyme (id VARCHAR, name VARCHAR); CREATE TABLE medicine (id VARCHAR, name VARCHAR); CREATE TABLE medicine_enzyme_interaction (interaction_type VARCHAR, medicine_id VARCHAR, enzyme_id VARCHAR) ### OUTPUT SELECT T1.interaction_type FROM medicine_enzyme_interaction AS T1 JOIN medicine AS T2 ON T1.medicine_id = T2.id JOIN enzyme AS T3 ON T1.enzyme_id = T3.id WHERE T3.name = 'ALA synthase' AND T2.name = 'Aripiprazole'
{ "input": "CREATE TABLE enzyme (id VARCHAR, name VARCHAR); CREATE TABLE medicine (id VARCHAR, name VARCHAR); CREATE TABLE medicine_enzyme_interaction (interaction_type VARCHAR, medicine_id VARCHAR, enzyme_id VARCHAR)", "instruction": "What is the interaction type of the enzyme named 'ALA synthase' and the medicine named 'Aripiprazole'?", "output": "SELECT T1.interaction_type FROM medicine_enzyme_interaction AS T1 JOIN medicine AS T2 ON T1.medicine_id = T2.id JOIN enzyme AS T3 ON T1.enzyme_id = T3.id WHERE T3.name = 'ALA synthase' AND T2.name = 'Aripiprazole'" }
### INSTRUCTION Which vocal type is the most frequently appearring type? ### INPUT CREATE TABLE vocals (TYPE VARCHAR) ### OUTPUT SELECT TYPE FROM vocals GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE vocals (TYPE VARCHAR)", "instruction": "Which vocal type is the most frequently appearring type?", "output": "SELECT TYPE FROM vocals GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What are the first and last name of the president of the club "Bootup Baltimore"? ### INPUT CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR, position VARCHAR) ### OUTPUT SELECT t3.fname, t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Bootup Baltimore" AND t2.position = "President"
{ "input": "CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR, position VARCHAR)", "instruction": "What are the first and last name of the president of the club \"Bootup Baltimore\"?", "output": "SELECT t3.fname, t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Bootup Baltimore\" AND t2.position = \"President\"" }
### INSTRUCTION Which Office has a Party of rep, and a Representative of brian bosma? ### INPUT CREATE TABLE table_name_9 (office VARCHAR, party VARCHAR, representative VARCHAR) ### OUTPUT SELECT office FROM table_name_9 WHERE party = "rep" AND representative = "brian bosma"
{ "input": "CREATE TABLE table_name_9 (office VARCHAR, party VARCHAR, representative VARCHAR)", "instruction": "Which Office has a Party of rep, and a Representative of brian bosma?", "output": "SELECT office FROM table_name_9 WHERE party = \"rep\" AND representative = \"brian bosma\"" }
### INSTRUCTION Name the date for 2004 afc asian cup qualifier ### INPUT CREATE TABLE table_name_23 (date VARCHAR, competition VARCHAR) ### OUTPUT SELECT date FROM table_name_23 WHERE competition = "2004 afc asian cup qualifier"
{ "input": "CREATE TABLE table_name_23 (date VARCHAR, competition VARCHAR)", "instruction": "Name the date for 2004 afc asian cup qualifier", "output": "SELECT date FROM table_name_23 WHERE competition = \"2004 afc asian cup qualifier\"" }
### INSTRUCTION What are the names of body builders? ### INPUT CREATE TABLE body_builder (People_ID VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR) ### OUTPUT SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID
{ "input": "CREATE TABLE body_builder (People_ID VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)", "instruction": "What are the names of body builders?", "output": "SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID" }
### INSTRUCTION what is the sum of the wkts when the ovrs were bigger than 2 and econ was bigger than 7.84? ### INPUT CREATE TABLE table_name_46 (wkts INTEGER, ovrs VARCHAR, econ VARCHAR) ### OUTPUT SELECT SUM(wkts) FROM table_name_46 WHERE ovrs > 2 AND econ > 7.84
{ "input": "CREATE TABLE table_name_46 (wkts INTEGER, ovrs VARCHAR, econ VARCHAR)", "instruction": "what is the sum of the wkts when the ovrs were bigger than 2 and econ was bigger than 7.84?", "output": "SELECT SUM(wkts) FROM table_name_46 WHERE ovrs > 2 AND econ > 7.84" }
### INSTRUCTION What are the average net yards that have 9 as the touchdowns, 145 as the attempts, and yards per attempt greater than 4.8? ### INPUT CREATE TABLE table_name_87 (net_yards INTEGER, yards_per_attempt VARCHAR, touchdowns VARCHAR, attempts VARCHAR) ### OUTPUT SELECT AVG(net_yards) FROM table_name_87 WHERE touchdowns = 9 AND attempts = 145 AND yards_per_attempt > 4.8
{ "input": "CREATE TABLE table_name_87 (net_yards INTEGER, yards_per_attempt VARCHAR, touchdowns VARCHAR, attempts VARCHAR)", "instruction": "What are the average net yards that have 9 as the touchdowns, 145 as the attempts, and yards per attempt greater than 4.8?", "output": "SELECT AVG(net_yards) FROM table_name_87 WHERE touchdowns = 9 AND attempts = 145 AND yards_per_attempt > 4.8" }
### INSTRUCTION What is the largest roll with Years 1–8, a Name of dorie school, and a Decile larger than 9? ### INPUT CREATE TABLE table_name_49 (roll INTEGER, decile VARCHAR, years VARCHAR, name VARCHAR) ### OUTPUT SELECT MAX(roll) FROM table_name_49 WHERE years = "1–8" AND name = "dorie school" AND decile > 9
{ "input": "CREATE TABLE table_name_49 (roll INTEGER, decile VARCHAR, years VARCHAR, name VARCHAR)", "instruction": "What is the largest roll with Years 1–8, a Name of dorie school, and a Decile larger than 9?", "output": "SELECT MAX(roll) FROM table_name_49 WHERE years = \"1–8\" AND name = \"dorie school\" AND decile > 9" }
### INSTRUCTION what is the average league cup goals when the league cup apps is 4, league goals is less than 4, fa cup apps is 1 and total apps is 35? ### INPUT CREATE TABLE table_name_98 (league_cup_goals INTEGER, total_apps VARCHAR, fa_cup_apps VARCHAR, league_cup_apps VARCHAR, league_goals VARCHAR) ### OUTPUT SELECT AVG(league_cup_goals) FROM table_name_98 WHERE league_cup_apps = 4 AND league_goals < 4 AND fa_cup_apps = "1" AND total_apps = "35"
{ "input": "CREATE TABLE table_name_98 (league_cup_goals INTEGER, total_apps VARCHAR, fa_cup_apps VARCHAR, league_cup_apps VARCHAR, league_goals VARCHAR)", "instruction": "what is the average league cup goals when the league cup apps is 4, league goals is less than 4, fa cup apps is 1 and total apps is 35?", "output": "SELECT AVG(league_cup_goals) FROM table_name_98 WHERE league_cup_apps = 4 AND league_goals < 4 AND fa_cup_apps = \"1\" AND total_apps = \"35\"" }
### INSTRUCTION What time is MDT when EDT is set and PDT is 6:00 a.m.? ### INPUT CREATE TABLE table_name_58 (mdt___6_utc_ VARCHAR, edt___4_utc_ VARCHAR, pdt___7_utc_ VARCHAR) ### OUTPUT SELECT mdt___6_utc_ FROM table_name_58 WHERE edt___4_utc_ = "set" AND pdt___7_utc_ = "6:00 a.m."
{ "input": "CREATE TABLE table_name_58 (mdt___6_utc_ VARCHAR, edt___4_utc_ VARCHAR, pdt___7_utc_ VARCHAR)", "instruction": "What time is MDT when EDT is set and PDT is 6:00 a.m.?", "output": "SELECT mdt___6_utc_ FROM table_name_58 WHERE edt___4_utc_ = \"set\" AND pdt___7_utc_ = \"6:00 a.m.\"" }
### INSTRUCTION What Car Model has the Manufacturer of Saab, and Driver Dean Randle? ### INPUT CREATE TABLE table_name_35 (car_model VARCHAR, manufacturer VARCHAR, driver VARCHAR) ### OUTPUT SELECT car_model FROM table_name_35 WHERE manufacturer = "saab" AND driver = "dean randle"
{ "input": "CREATE TABLE table_name_35 (car_model VARCHAR, manufacturer VARCHAR, driver VARCHAR)", "instruction": "What Car Model has the Manufacturer of Saab, and Driver Dean Randle?", "output": "SELECT car_model FROM table_name_35 WHERE manufacturer = \"saab\" AND driver = \"dean randle\"" }
### INSTRUCTION For each user, find their name and the number of reviews written by them. ### INPUT CREATE TABLE useracct (name VARCHAR, u_id VARCHAR); CREATE TABLE review (u_id VARCHAR) ### OUTPUT SELECT T1.name, COUNT(*) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id
{ "input": "CREATE TABLE useracct (name VARCHAR, u_id VARCHAR); CREATE TABLE review (u_id VARCHAR)", "instruction": "For each user, find their name and the number of reviews written by them.", "output": "SELECT T1.name, COUNT(*) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id" }