text
stringlengths
147
1.06k
source
dict
### INSTRUCTION For edition is 2011 europe/africa group iiib and surface where score is 6–4, 6–1 please specify all the surface ### INPUT CREATE TABLE table_27877656_7 (surface VARCHAR, score VARCHAR, edition VARCHAR) ### OUTPUT SELECT surface FROM table_27877656_7 WHERE score = "6–4, 6–1" AND edition = "2011 Europe/Africa Group IIIB"
{ "input": "CREATE TABLE table_27877656_7 (surface VARCHAR, score VARCHAR, edition VARCHAR)", "instruction": "For edition is 2011 europe/africa group iiib and surface where score is 6–4, 6–1 please specify all the surface", "output": "SELECT surface FROM table_27877656_7 WHERE score = \"6–4, 6–1\" AND edition = \"2011 Europe/Africa Group IIIB\"" }
### INSTRUCTION Who was against the opponents, mădălina gojnea monica niculescu? ### INPUT CREATE TABLE table_name_94 (against VARCHAR, opponents VARCHAR) ### OUTPUT SELECT against FROM table_name_94 WHERE opponents = "mădălina gojnea monica niculescu"
{ "input": "CREATE TABLE table_name_94 (against VARCHAR, opponents VARCHAR)", "instruction": "Who was against the opponents, mădălina gojnea monica niculescu?", "output": "SELECT against FROM table_name_94 WHERE opponents = \"mădălina gojnea monica niculescu\"" }
### INSTRUCTION What is the first name of students enrolled in class ACCT-211 and got grade C? ### INPUT CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE student (stu_fname VARCHAR, stu_num VARCHAR); CREATE TABLE enroll (class_code VARCHAR, stu_num VARCHAR, enroll_grade VARCHAR) ### OUTPUT SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num WHERE T1.crs_code = 'ACCT-211' AND T2.enroll_grade = 'C'
{ "input": "CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE student (stu_fname VARCHAR, stu_num VARCHAR); CREATE TABLE enroll (class_code VARCHAR, stu_num VARCHAR, enroll_grade VARCHAR)", "instruction": "What is the first name of students enrolled in class ACCT-211 and got grade C?", "output": "SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num WHERE T1.crs_code = 'ACCT-211' AND T2.enroll_grade = 'C'" }
### INSTRUCTION What date was the circuit, snetterton, when riki christodoulou had the fastest lap? ### INPUT CREATE TABLE table_name_10 (date VARCHAR, circuit VARCHAR, fastest_lap VARCHAR) ### OUTPUT SELECT date FROM table_name_10 WHERE circuit = "snetterton" AND fastest_lap = "riki christodoulou"
{ "input": "CREATE TABLE table_name_10 (date VARCHAR, circuit VARCHAR, fastest_lap VARCHAR)", "instruction": "What date was the circuit, snetterton, when riki christodoulou had the fastest lap?", "output": "SELECT date FROM table_name_10 WHERE circuit = \"snetterton\" AND fastest_lap = \"riki christodoulou\"" }
### INSTRUCTION What event had a win, record of 8-1 and n/a round? ### INPUT CREATE TABLE table_name_98 (event VARCHAR, record VARCHAR, res VARCHAR, round VARCHAR) ### OUTPUT SELECT event FROM table_name_98 WHERE res = "win" AND round = "n/a" AND record = "8-1"
{ "input": "CREATE TABLE table_name_98 (event VARCHAR, record VARCHAR, res VARCHAR, round VARCHAR)", "instruction": "What event had a win, record of 8-1 and n/a round?", "output": "SELECT event FROM table_name_98 WHERE res = \"win\" AND round = \"n/a\" AND record = \"8-1\"" }
### INSTRUCTION Who was the opponent at the Football League Trophy competition? ### INPUT CREATE TABLE table_name_84 (opponents VARCHAR, competition VARCHAR) ### OUTPUT SELECT opponents FROM table_name_84 WHERE competition = "football league trophy"
{ "input": "CREATE TABLE table_name_84 (opponents VARCHAR, competition VARCHAR)", "instruction": "Who was the opponent at the Football League Trophy competition?", "output": "SELECT opponents FROM table_name_84 WHERE competition = \"football league trophy\"" }
### INSTRUCTION What is the percentage of others when McCain is at 57.7% ### INPUT CREATE TABLE table_20573232_1 (others_percentage VARCHAR, mccain_percentage VARCHAR) ### OUTPUT SELECT others_percentage FROM table_20573232_1 WHERE mccain_percentage = "57.7%"
{ "input": "CREATE TABLE table_20573232_1 (others_percentage VARCHAR, mccain_percentage VARCHAR)", "instruction": "What is the percentage of others when McCain is at 57.7%", "output": "SELECT others_percentage FROM table_20573232_1 WHERE mccain_percentage = \"57.7%\"" }
### INSTRUCTION What is score of the game played in place t8 with Byron Nelson playing? ### INPUT CREATE TABLE table_name_20 (score VARCHAR, place VARCHAR, player VARCHAR) ### OUTPUT SELECT score FROM table_name_20 WHERE place = "t8" AND player = "byron nelson"
{ "input": "CREATE TABLE table_name_20 (score VARCHAR, place VARCHAR, player VARCHAR)", "instruction": "What is score of the game played in place t8 with Byron Nelson playing?", "output": "SELECT score FROM table_name_20 WHERE place = \"t8\" AND player = \"byron nelson\"" }
### INSTRUCTION Find the id of the customers who have order status both "On Road" and "Shipped". ### INPUT CREATE TABLE customers (customer_id VARCHAR); CREATE TABLE orders (customer_id VARCHAR, order_status VARCHAR) ### OUTPUT SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "On Road" INTERSECT SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "Shipped"
{ "input": "CREATE TABLE customers (customer_id VARCHAR); CREATE TABLE orders (customer_id VARCHAR, order_status VARCHAR)", "instruction": "Find the id of the customers who have order status both \"On Road\" and \"Shipped\".", "output": "SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"On Road\" INTERSECT SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"Shipped\"" }
### INSTRUCTION Who was the away team at Victoria Park? ### INPUT CREATE TABLE table_name_52 (away_team VARCHAR, venue VARCHAR) ### OUTPUT SELECT away_team FROM table_name_52 WHERE venue = "victoria park"
{ "input": "CREATE TABLE table_name_52 (away_team VARCHAR, venue VARCHAR)", "instruction": "Who was the away team at Victoria Park?", "output": "SELECT away_team FROM table_name_52 WHERE venue = \"victoria park\"" }
### INSTRUCTION Name the total number of golden tickets being rosen shingle creek resort ### INPUT CREATE TABLE table_22897967_1 (golden_tickets VARCHAR, callback_venue VARCHAR) ### OUTPUT SELECT COUNT(golden_tickets) FROM table_22897967_1 WHERE callback_venue = "Rosen Shingle Creek Resort"
{ "input": "CREATE TABLE table_22897967_1 (golden_tickets VARCHAR, callback_venue VARCHAR)", "instruction": "Name the total number of golden tickets being rosen shingle creek resort", "output": "SELECT COUNT(golden_tickets) FROM table_22897967_1 WHERE callback_venue = \"Rosen Shingle Creek Resort\"" }
### INSTRUCTION Which Team has a Pick # of 148? ### INPUT CREATE TABLE table_name_59 (team_from VARCHAR, pick__number VARCHAR) ### OUTPUT SELECT team_from FROM table_name_59 WHERE pick__number = 148
{ "input": "CREATE TABLE table_name_59 (team_from VARCHAR, pick__number VARCHAR)", "instruction": "Which Team has a Pick # of 148?", "output": "SELECT team_from FROM table_name_59 WHERE pick__number = 148" }
### INSTRUCTION Give me the names of customers who have placed orders between 2009-01-01 and 2010-01-01. ### INPUT CREATE TABLE orders (customer_id VARCHAR, date_order_placed VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR) ### OUTPUT SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.date_order_placed >= "2009-01-01" AND T2.date_order_placed <= "2010-01-01"
{ "input": "CREATE TABLE orders (customer_id VARCHAR, date_order_placed VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR)", "instruction": "Give me the names of customers who have placed orders between 2009-01-01 and 2010-01-01.", "output": "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.date_order_placed >= \"2009-01-01\" AND T2.date_order_placed <= \"2010-01-01\"" }
### INSTRUCTION What title has lt as the series, ben hardaway as the director, with 6612 as the production num.? ### INPUT CREATE TABLE table_name_66 (title VARCHAR, production_num VARCHAR, series VARCHAR, director VARCHAR) ### OUTPUT SELECT title FROM table_name_66 WHERE series = "lt" AND director = "ben hardaway" AND production_num = "6612"
{ "input": "CREATE TABLE table_name_66 (title VARCHAR, production_num VARCHAR, series VARCHAR, director VARCHAR)", "instruction": "What title has lt as the series, ben hardaway as the director, with 6612 as the production num.?", "output": "SELECT title FROM table_name_66 WHERE series = \"lt\" AND director = \"ben hardaway\" AND production_num = \"6612\"" }
### INSTRUCTION Where is the first day cover cancellation for the 3 April 2008 IIHF World Championships, Quebec City stamp? ### INPUT CREATE TABLE table_11900773_6 (first_day_cover_cancellation VARCHAR, date_of_issue VARCHAR, theme VARCHAR) ### OUTPUT SELECT first_day_cover_cancellation FROM table_11900773_6 WHERE date_of_issue = "3 April 2008" AND theme = "IIHF World Championships, Quebec City"
{ "input": "CREATE TABLE table_11900773_6 (first_day_cover_cancellation VARCHAR, date_of_issue VARCHAR, theme VARCHAR)", "instruction": "Where is the first day cover cancellation for the 3 April 2008 IIHF World Championships, Quebec City stamp?", "output": "SELECT first_day_cover_cancellation FROM table_11900773_6 WHERE date_of_issue = \"3 April 2008\" AND theme = \"IIHF World Championships, Quebec City\"" }
### INSTRUCTION List singer names and number of concerts for each singer. ### INPUT CREATE TABLE singer_in_concert (singer_id VARCHAR); CREATE TABLE singer (name VARCHAR, singer_id VARCHAR) ### OUTPUT SELECT T2.name, COUNT(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id GROUP BY T2.singer_id
{ "input": "CREATE TABLE singer_in_concert (singer_id VARCHAR); CREATE TABLE singer (name VARCHAR, singer_id VARCHAR)", "instruction": "List singer names and number of concerts for each singer.", "output": "SELECT T2.name, COUNT(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id GROUP BY T2.singer_id" }
### INSTRUCTION What is the digital of Virgin [analogue]? ### INPUT CREATE TABLE table_name_24 (digital VARCHAR, provider VARCHAR) ### OUTPUT SELECT digital FROM table_name_24 WHERE provider = "virgin [analogue]"
{ "input": "CREATE TABLE table_name_24 (digital VARCHAR, provider VARCHAR)", "instruction": "What is the digital of Virgin [analogue]?", "output": "SELECT digital FROM table_name_24 WHERE provider = \"virgin [analogue]\"" }
### INSTRUCTION How many games did team iurbentia bilbao have with rebounds higher than 212? ### INPUT CREATE TABLE table_name_27 (games INTEGER, team VARCHAR, rebounds VARCHAR) ### OUTPUT SELECT SUM(games) FROM table_name_27 WHERE team = "iurbentia bilbao" AND rebounds > 212
{ "input": "CREATE TABLE table_name_27 (games INTEGER, team VARCHAR, rebounds VARCHAR)", "instruction": "How many games did team iurbentia bilbao have with rebounds higher than 212?", "output": "SELECT SUM(games) FROM table_name_27 WHERE team = \"iurbentia bilbao\" AND rebounds > 212" }
### INSTRUCTION What is the name of each camera lens and the number of photos taken by it? Order the result by the count of photos. ### INPUT CREATE TABLE photos (camera_lens_id VARCHAR); CREATE TABLE camera_lens (name VARCHAR, id VARCHAR) ### OUTPUT SELECT T1.name, COUNT(*) FROM camera_lens AS T1 JOIN photos AS T2 ON T1.id = T2.camera_lens_id GROUP BY T1.id ORDER BY COUNT(*)
{ "input": "CREATE TABLE photos (camera_lens_id VARCHAR); CREATE TABLE camera_lens (name VARCHAR, id VARCHAR)", "instruction": "What is the name of each camera lens and the number of photos taken by it? Order the result by the count of photos.", "output": "SELECT T1.name, COUNT(*) FROM camera_lens AS T1 JOIN photos AS T2 ON T1.id = T2.camera_lens_id GROUP BY T1.id ORDER BY COUNT(*)" }
### INSTRUCTION Which country's material was concrete when the span metres were less than 270, span feet is more than 837, and the year opened was 1943? ### INPUT CREATE TABLE table_name_36 (country VARCHAR, year_opened VARCHAR, span_feet VARCHAR, material VARCHAR, span_metres VARCHAR) ### OUTPUT SELECT country FROM table_name_36 WHERE material = "concrete" AND span_metres < 270 AND span_feet > 837 AND year_opened = "1943"
{ "input": "CREATE TABLE table_name_36 (country VARCHAR, year_opened VARCHAR, span_feet VARCHAR, material VARCHAR, span_metres VARCHAR)", "instruction": "Which country's material was concrete when the span metres were less than 270, span feet is more than 837, and the year opened was 1943?", "output": "SELECT country FROM table_name_36 WHERE material = \"concrete\" AND span_metres < 270 AND span_feet > 837 AND year_opened = \"1943\"" }
### INSTRUCTION What team was the opponent at Mile High Stadium? ### INPUT CREATE TABLE table_13259009_2 (opponent VARCHAR, game_site VARCHAR) ### OUTPUT SELECT opponent FROM table_13259009_2 WHERE game_site = "Mile High Stadium"
{ "input": "CREATE TABLE table_13259009_2 (opponent VARCHAR, game_site VARCHAR)", "instruction": "What team was the opponent at Mile High Stadium?", "output": "SELECT opponent FROM table_13259009_2 WHERE game_site = \"Mile High Stadium\"" }
### INSTRUCTION Which Time has a Year larger than 1985, and a Place smaller than 2, and an Athlete of riochy sekiya? ### INPUT CREATE TABLE table_name_60 (time VARCHAR, athlete VARCHAR, year VARCHAR, place VARCHAR) ### OUTPUT SELECT time FROM table_name_60 WHERE year > 1985 AND place < 2 AND athlete = "riochy sekiya"
{ "input": "CREATE TABLE table_name_60 (time VARCHAR, athlete VARCHAR, year VARCHAR, place VARCHAR)", "instruction": "Which Time has a Year larger than 1985, and a Place smaller than 2, and an Athlete of riochy sekiya?", "output": "SELECT time FROM table_name_60 WHERE year > 1985 AND place < 2 AND athlete = \"riochy sekiya\"" }
### INSTRUCTION What director directed the role of shelby barret wyatt in 1935? ### INPUT CREATE TABLE table_name_14 (director VARCHAR, year VARCHAR, role VARCHAR) ### OUTPUT SELECT director FROM table_name_14 WHERE year = 1935 AND role = "shelby barret wyatt"
{ "input": "CREATE TABLE table_name_14 (director VARCHAR, year VARCHAR, role VARCHAR)", "instruction": "What director directed the role of shelby barret wyatt in 1935?", "output": "SELECT director FROM table_name_14 WHERE year = 1935 AND role = \"shelby barret wyatt\"" }
### INSTRUCTION Give me the product type, name and price for all the products supplied by supplier id 3. ### INPUT CREATE TABLE products (product_type_code VARCHAR, product_name VARCHAR, product_price VARCHAR, product_id VARCHAR); CREATE TABLE product_suppliers (product_id VARCHAR, supplier_id VARCHAR) ### OUTPUT SELECT T2.product_type_code, T2.product_name, T2.product_price FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 3
{ "input": "CREATE TABLE products (product_type_code VARCHAR, product_name VARCHAR, product_price VARCHAR, product_id VARCHAR); CREATE TABLE product_suppliers (product_id VARCHAR, supplier_id VARCHAR)", "instruction": "Give me the product type, name and price for all the products supplied by supplier id 3.", "output": "SELECT T2.product_type_code, T2.product_name, T2.product_price FROM product_suppliers AS T1 JOIN products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 3" }
### INSTRUCTION How many engineers did each staff contact? List both the contact staff name and number of engineers contacted. ### INPUT CREATE TABLE Engineer_Visits (contact_staff_id VARCHAR); CREATE TABLE Staff (staff_name VARCHAR, staff_id VARCHAR) ### OUTPUT SELECT T1.staff_name, COUNT(*) FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id GROUP BY T1.staff_name
{ "input": "CREATE TABLE Engineer_Visits (contact_staff_id VARCHAR); CREATE TABLE Staff (staff_name VARCHAR, staff_id VARCHAR)", "instruction": "How many engineers did each staff contact? List both the contact staff name and number of engineers contacted.", "output": "SELECT T1.staff_name, COUNT(*) FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id GROUP BY T1.staff_name" }
### INSTRUCTION How many churches have a wedding in year 2016? ### INPUT CREATE TABLE wedding (church_id VARCHAR, YEAR VARCHAR) ### OUTPUT SELECT COUNT(DISTINCT church_id) FROM wedding WHERE YEAR = 2016
{ "input": "CREATE TABLE wedding (church_id VARCHAR, YEAR VARCHAR)", "instruction": "How many churches have a wedding in year 2016?", "output": "SELECT COUNT(DISTINCT church_id) FROM wedding WHERE YEAR = 2016" }
### INSTRUCTION Find the name and ID of the product whose total order quantity is the largest. ### INPUT CREATE TABLE order_items (product_id VARCHAR, order_quantity INTEGER); CREATE TABLE products (product_details VARCHAR, product_id VARCHAR) ### OUTPUT SELECT t2.product_details, t2.product_id FROM order_items AS t1 JOIN products AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_id ORDER BY SUM(t1.order_quantity) LIMIT 1
{ "input": "CREATE TABLE order_items (product_id VARCHAR, order_quantity INTEGER); CREATE TABLE products (product_details VARCHAR, product_id VARCHAR)", "instruction": "Find the name and ID of the product whose total order quantity is the largest.", "output": "SELECT t2.product_details, t2.product_id FROM order_items AS t1 JOIN products AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_id ORDER BY SUM(t1.order_quantity) LIMIT 1" }
### INSTRUCTION Please show the themes of competitions with host cities having populations larger than 1000. ### INPUT CREATE TABLE city (City_ID VARCHAR, Population INTEGER); CREATE TABLE farm_competition (Theme VARCHAR, Host_city_ID VARCHAR) ### OUTPUT SELECT T2.Theme FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID WHERE T1.Population > 1000
{ "input": "CREATE TABLE city (City_ID VARCHAR, Population INTEGER); CREATE TABLE farm_competition (Theme VARCHAR, Host_city_ID VARCHAR)", "instruction": "Please show the themes of competitions with host cities having populations larger than 1000.", "output": "SELECT T2.Theme FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID WHERE T1.Population > 1000" }
### INSTRUCTION What is the Score with a Visitor of bucks, and a Leading scorer with maurice williams (25)? ### INPUT CREATE TABLE table_name_81 (score VARCHAR, visitor VARCHAR, leading_scorer VARCHAR) ### OUTPUT SELECT score FROM table_name_81 WHERE visitor = "bucks" AND leading_scorer = "maurice williams (25)"
{ "input": "CREATE TABLE table_name_81 (score VARCHAR, visitor VARCHAR, leading_scorer VARCHAR)", "instruction": "What is the Score with a Visitor of bucks, and a Leading scorer with maurice williams (25)?", "output": "SELECT score FROM table_name_81 WHERE visitor = \"bucks\" AND leading_scorer = \"maurice williams (25)\"" }
### INSTRUCTION What year has an issue price over 15.95, and a special notes from edmonton oilers gift set? ### INPUT CREATE TABLE table_name_10 (year VARCHAR, issue_price VARCHAR, special_notes VARCHAR) ### OUTPUT SELECT COUNT(year) FROM table_name_10 WHERE issue_price > 15.95 AND special_notes = "from edmonton oilers gift set"
{ "input": "CREATE TABLE table_name_10 (year VARCHAR, issue_price VARCHAR, special_notes VARCHAR)", "instruction": "What year has an issue price over 15.95, and a special notes from edmonton oilers gift set?", "output": "SELECT COUNT(year) FROM table_name_10 WHERE issue_price > 15.95 AND special_notes = \"from edmonton oilers gift set\"" }
### INSTRUCTION What is the Place of the Song by Artist Rosie Hunter with a Draw of 1 or larger? ### INPUT CREATE TABLE table_name_10 (place VARCHAR, artist VARCHAR, draw VARCHAR) ### OUTPUT SELECT COUNT(place) FROM table_name_10 WHERE artist = "rosie hunter" AND draw > 1
{ "input": "CREATE TABLE table_name_10 (place VARCHAR, artist VARCHAR, draw VARCHAR)", "instruction": "What is the Place of the Song by Artist Rosie Hunter with a Draw of 1 or larger?", "output": "SELECT COUNT(place) FROM table_name_10 WHERE artist = \"rosie hunter\" AND draw > 1" }
### INSTRUCTION What is the last name and office of the professor from the history department? ### INPUT CREATE TABLE department (dept_code VARCHAR, dept_name VARCHAR); CREATE TABLE employee (emp_lname VARCHAR, emp_num VARCHAR); CREATE TABLE professor (prof_office VARCHAR, emp_num VARCHAR, dept_code VARCHAR) ### OUTPUT SELECT T1.emp_lname, T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T3.dept_name = 'History'
{ "input": "CREATE TABLE department (dept_code VARCHAR, dept_name VARCHAR); CREATE TABLE employee (emp_lname VARCHAR, emp_num VARCHAR); CREATE TABLE professor (prof_office VARCHAR, emp_num VARCHAR, dept_code VARCHAR)", "instruction": "What is the last name and office of the professor from the history department?", "output": "SELECT T1.emp_lname, T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T2.dept_code = T3.dept_code WHERE T3.dept_name = 'History'" }
### INSTRUCTION Name the report for circuit of kyalami for south african republic trophy ### INPUT CREATE TABLE table_name_8 (report VARCHAR, circuit VARCHAR, race_name VARCHAR) ### OUTPUT SELECT report FROM table_name_8 WHERE circuit = "kyalami" AND race_name = "south african republic trophy"
{ "input": "CREATE TABLE table_name_8 (report VARCHAR, circuit VARCHAR, race_name VARCHAR)", "instruction": "Name the report for circuit of kyalami for south african republic trophy", "output": "SELECT report FROM table_name_8 WHERE circuit = \"kyalami\" AND race_name = \"south african republic trophy\"" }
### INSTRUCTION Which employee has showed up in most circulation history documents. List the employee's name and the number of drafts and copies. ### INPUT CREATE TABLE Circulation_History (Id VARCHAR); CREATE TABLE Employees (Id VARCHAR) ### OUTPUT SELECT Employees.employee_name, COUNT(*) FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id GROUP BY Circulation_History.document_id, Circulation_History.draft_number, Circulation_History.copy_number ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE Circulation_History (Id VARCHAR); CREATE TABLE Employees (Id VARCHAR)", "instruction": "Which employee has showed up in most circulation history documents. List the employee's name and the number of drafts and copies.", "output": "SELECT Employees.employee_name, COUNT(*) FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id GROUP BY Circulation_History.document_id, Circulation_History.draft_number, Circulation_History.copy_number ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION I want the total number of ties for win % more than 0 and tenure of 2001-2011 with lost more than 16 ### INPUT CREATE TABLE table_name_3 (ties VARCHAR, lost VARCHAR, win__percentage VARCHAR, tenure VARCHAR) ### OUTPUT SELECT COUNT(ties) FROM table_name_3 WHERE win__percentage > 0 AND tenure = "2001-2011" AND lost > 16
{ "input": "CREATE TABLE table_name_3 (ties VARCHAR, lost VARCHAR, win__percentage VARCHAR, tenure VARCHAR)", "instruction": "I want the total number of ties for win % more than 0 and tenure of 2001-2011 with lost more than 16", "output": "SELECT COUNT(ties) FROM table_name_3 WHERE win__percentage > 0 AND tenure = \"2001-2011\" AND lost > 16" }
### INSTRUCTION What did they do in the game when their record was 3-2-1? ### INPUT CREATE TABLE table_21058823_1 (result VARCHAR, record VARCHAR) ### OUTPUT SELECT result FROM table_21058823_1 WHERE record = "3-2-1"
{ "input": "CREATE TABLE table_21058823_1 (result VARCHAR, record VARCHAR)", "instruction": "What did they do in the game when their record was 3-2-1?", "output": "SELECT result FROM table_21058823_1 WHERE record = \"3-2-1\"" }
### INSTRUCTION Which Outcome has a Championship of us championships, and a Score in the final of 5–7, 6–1, 6–3, 6–3? ### INPUT CREATE TABLE table_name_61 (outcome VARCHAR, championship VARCHAR, score_in_the_final VARCHAR) ### OUTPUT SELECT outcome FROM table_name_61 WHERE championship = "us championships" AND score_in_the_final = "5–7, 6–1, 6–3, 6–3"
{ "input": "CREATE TABLE table_name_61 (outcome VARCHAR, championship VARCHAR, score_in_the_final VARCHAR)", "instruction": "Which Outcome has a Championship of us championships, and a Score in the final of 5–7, 6–1, 6–3, 6–3?", "output": "SELECT outcome FROM table_name_61 WHERE championship = \"us championships\" AND score_in_the_final = \"5–7, 6–1, 6–3, 6–3\"" }
### INSTRUCTION Tell me the average silver for total more than 1 with bronze of 2 for france and gold more than 0 ### INPUT CREATE TABLE table_name_62 (silver INTEGER, gold VARCHAR, nation VARCHAR, total VARCHAR, bronze VARCHAR) ### OUTPUT SELECT AVG(silver) FROM table_name_62 WHERE total > 1 AND bronze = 2 AND nation = "france" AND gold > 0
{ "input": "CREATE TABLE table_name_62 (silver INTEGER, gold VARCHAR, nation VARCHAR, total VARCHAR, bronze VARCHAR)", "instruction": "Tell me the average silver for total more than 1 with bronze of 2 for france and gold more than 0", "output": "SELECT AVG(silver) FROM table_name_62 WHERE total > 1 AND bronze = 2 AND nation = \"france\" AND gold > 0" }
### INSTRUCTION What is the Max Aggregate bandwidth with a HyperTransport of 2? ### INPUT CREATE TABLE table_name_17 (max_aggregate_bandwidth__bi_directional_ VARCHAR, hypertransport_version VARCHAR) ### OUTPUT SELECT max_aggregate_bandwidth__bi_directional_ FROM table_name_17 WHERE hypertransport_version = 2
{ "input": "CREATE TABLE table_name_17 (max_aggregate_bandwidth__bi_directional_ VARCHAR, hypertransport_version VARCHAR)", "instruction": "What is the Max Aggregate bandwidth with a HyperTransport of 2?", "output": "SELECT max_aggregate_bandwidth__bi_directional_ FROM table_name_17 WHERE hypertransport_version = 2" }
### INSTRUCTION How many entries for number in series when director is Bryan Cranston? ### INPUT CREATE TABLE table_26736040_1 (no_in_series VARCHAR, directed_by VARCHAR) ### OUTPUT SELECT COUNT(no_in_series) FROM table_26736040_1 WHERE directed_by = "Bryan Cranston"
{ "input": "CREATE TABLE table_26736040_1 (no_in_series VARCHAR, directed_by VARCHAR)", "instruction": "How many entries for number in series when director is Bryan Cranston?", "output": "SELECT COUNT(no_in_series) FROM table_26736040_1 WHERE directed_by = \"Bryan Cranston\"" }
### INSTRUCTION What is Authors, when Novelty is Gen Nov, when Location is South Africa, and when Name is Criocephalosaurus? ### INPUT CREATE TABLE table_name_90 (authors VARCHAR, name VARCHAR, novelty VARCHAR, location VARCHAR) ### OUTPUT SELECT authors FROM table_name_90 WHERE novelty = "gen nov" AND location = "south africa" AND name = "criocephalosaurus"
{ "input": "CREATE TABLE table_name_90 (authors VARCHAR, name VARCHAR, novelty VARCHAR, location VARCHAR)", "instruction": "What is Authors, when Novelty is Gen Nov, when Location is South Africa, and when Name is Criocephalosaurus?", "output": "SELECT authors FROM table_name_90 WHERE novelty = \"gen nov\" AND location = \"south africa\" AND name = \"criocephalosaurus\"" }
### INSTRUCTION How many points did Happy Valley score before game 14? ### INPUT CREATE TABLE table_name_89 (point VARCHAR, team VARCHAR, game VARCHAR) ### OUTPUT SELECT COUNT(point) FROM table_name_89 WHERE team = "happy valley" AND game < 14
{ "input": "CREATE TABLE table_name_89 (point VARCHAR, team VARCHAR, game VARCHAR)", "instruction": "How many points did Happy Valley score before game 14?", "output": "SELECT COUNT(point) FROM table_name_89 WHERE team = \"happy valley\" AND game < 14" }
### INSTRUCTION Which H/A/N has a score of 105*♠? ### INPUT CREATE TABLE table_name_13 (h_a_n VARCHAR, score VARCHAR) ### OUTPUT SELECT h_a_n FROM table_name_13 WHERE score = "105*♠"
{ "input": "CREATE TABLE table_name_13 (h_a_n VARCHAR, score VARCHAR)", "instruction": "Which H/A/N has a score of 105*♠?", "output": "SELECT h_a_n FROM table_name_13 WHERE score = \"105*♠\"" }
### INSTRUCTION What 20-29 was in season 2008? ### INPUT CREATE TABLE table_name_69 (season VARCHAR) ### OUTPUT SELECT 20 AS _29 FROM table_name_69 WHERE season = "2008"
{ "input": "CREATE TABLE table_name_69 (season VARCHAR)", "instruction": "What 20-29 was in season 2008?", "output": "SELECT 20 AS _29 FROM table_name_69 WHERE season = \"2008\"" }
### INSTRUCTION What week were there 56,023 people in attendance? ### INPUT CREATE TABLE table_name_29 (week VARCHAR, attendance VARCHAR) ### OUTPUT SELECT COUNT(week) FROM table_name_29 WHERE attendance = 56 OFFSET 023
{ "input": "CREATE TABLE table_name_29 (week VARCHAR, attendance VARCHAR)", "instruction": "What week were there 56,023 people in attendance?", "output": "SELECT COUNT(week) FROM table_name_29 WHERE attendance = 56 OFFSET 023" }
### INSTRUCTION what is -kah (atau tidak when basikal is basikal and language dialect is malay language (informal)? ### INPUT CREATE TABLE table_name_98 (_kah__atau_tidak_ VARCHAR, language_dialect VARCHAR) ### OUTPUT SELECT _kah__atau_tidak_ FROM table_name_98 WHERE "basikal" = "basikal" AND language_dialect = "malay language (informal)"
{ "input": "CREATE TABLE table_name_98 (_kah__atau_tidak_ VARCHAR, language_dialect VARCHAR)", "instruction": "what is -kah (atau tidak when basikal is basikal and language dialect is malay language (informal)?", "output": "SELECT _kah__atau_tidak_ FROM table_name_98 WHERE \"basikal\" = \"basikal\" AND language_dialect = \"malay language (informal)\"" }
### INSTRUCTION What is the total number for less than 8 bronze, the Netherlands nation, and is ranked less than 16? ### INPUT CREATE TABLE table_name_51 (total VARCHAR, rank VARCHAR, bronze VARCHAR, nation VARCHAR) ### OUTPUT SELECT COUNT(total) FROM table_name_51 WHERE bronze < 8 AND nation = "netherlands" AND rank < 16
{ "input": "CREATE TABLE table_name_51 (total VARCHAR, rank VARCHAR, bronze VARCHAR, nation VARCHAR)", "instruction": "What is the total number for less than 8 bronze, the Netherlands nation, and is ranked less than 16?", "output": "SELECT COUNT(total) FROM table_name_51 WHERE bronze < 8 AND nation = \"netherlands\" AND rank < 16" }
### INSTRUCTION What is the Political group for p. maelius capitolinus? ### INPUT CREATE TABLE table_name_58 (political_group VARCHAR, name VARCHAR) ### OUTPUT SELECT political_group FROM table_name_58 WHERE name = "p. maelius capitolinus"
{ "input": "CREATE TABLE table_name_58 (political_group VARCHAR, name VARCHAR)", "instruction": "What is the Political group for p. maelius capitolinus?", "output": "SELECT political_group FROM table_name_58 WHERE name = \"p. maelius capitolinus\"" }
### INSTRUCTION Where was the tourney when Louisville won the regular season? ### INPUT CREATE TABLE table_21269441_4 (tournament_venue__city_ VARCHAR, regular_season_winner VARCHAR) ### OUTPUT SELECT tournament_venue__city_ FROM table_21269441_4 WHERE regular_season_winner = "Louisville"
{ "input": "CREATE TABLE table_21269441_4 (tournament_venue__city_ VARCHAR, regular_season_winner VARCHAR)", "instruction": "Where was the tourney when Louisville won the regular season?", "output": "SELECT tournament_venue__city_ FROM table_21269441_4 WHERE regular_season_winner = \"Louisville\"" }
### INSTRUCTION Which Opponent has a Round of 3, a Time of n/a, and a Rules of n/a? ### INPUT CREATE TABLE table_name_38 (opponent VARCHAR, rules VARCHAR, round VARCHAR, time VARCHAR) ### OUTPUT SELECT opponent FROM table_name_38 WHERE round = "3" AND time = "n/a" AND rules = "n/a"
{ "input": "CREATE TABLE table_name_38 (opponent VARCHAR, rules VARCHAR, round VARCHAR, time VARCHAR)", "instruction": "Which Opponent has a Round of 3, a Time of n/a, and a Rules of n/a?", "output": "SELECT opponent FROM table_name_38 WHERE round = \"3\" AND time = \"n/a\" AND rules = \"n/a\"" }
### INSTRUCTION Name the most number for new england blazers ### INPUT CREATE TABLE table_16227492_1 (_number INTEGER, opponent VARCHAR) ### OUTPUT SELECT MAX(_number) FROM table_16227492_1 WHERE opponent = "New England Blazers"
{ "input": "CREATE TABLE table_16227492_1 (_number INTEGER, opponent VARCHAR)", "instruction": "Name the most number for new england blazers", "output": "SELECT MAX(_number) FROM table_16227492_1 WHERE opponent = \"New England Blazers\"" }
### INSTRUCTION What Round was the Winning Team Engstler Motorsport Maurer Motorsport? ### INPUT CREATE TABLE table_name_26 (round VARCHAR, winning_team VARCHAR) ### OUTPUT SELECT round FROM table_name_26 WHERE winning_team = "engstler motorsport maurer motorsport"
{ "input": "CREATE TABLE table_name_26 (round VARCHAR, winning_team VARCHAR)", "instruction": "What Round was the Winning Team Engstler Motorsport Maurer Motorsport?", "output": "SELECT round FROM table_name_26 WHERE winning_team = \"engstler motorsport maurer motorsport\"" }
### INSTRUCTION what is the lowest rank when the type is hydro, the name is grand rapids generating station and the capacity (mw) is more than 479? ### INPUT CREATE TABLE table_name_67 (rank INTEGER, capacity___mw__ VARCHAR, type VARCHAR, name VARCHAR) ### OUTPUT SELECT MIN(rank) FROM table_name_67 WHERE type = "hydro" AND name = "grand rapids generating station" AND capacity___mw__ > 479
{ "input": "CREATE TABLE table_name_67 (rank INTEGER, capacity___mw__ VARCHAR, type VARCHAR, name VARCHAR)", "instruction": "what is the lowest rank when the type is hydro, the name is grand rapids generating station and the capacity (mw) is more than 479?", "output": "SELECT MIN(rank) FROM table_name_67 WHERE type = \"hydro\" AND name = \"grand rapids generating station\" AND capacity___mw__ > 479" }
### INSTRUCTION What was the little league team from Kentucky when the little league team from Indiana and Wisconsin were Brownsburg LL Brownsburg and Merrill LL Merrill? ### INPUT CREATE TABLE table_18461045_1 (kentucky VARCHAR, indiana VARCHAR, wisconsin VARCHAR) ### OUTPUT SELECT kentucky FROM table_18461045_1 WHERE indiana = "Brownsburg LL Brownsburg" AND wisconsin = "Merrill LL Merrill"
{ "input": "CREATE TABLE table_18461045_1 (kentucky VARCHAR, indiana VARCHAR, wisconsin VARCHAR)", "instruction": "What was the little league team from Kentucky when the little league team from Indiana and Wisconsin were Brownsburg LL Brownsburg and Merrill LL Merrill?", "output": "SELECT kentucky FROM table_18461045_1 WHERE indiana = \"Brownsburg LL Brownsburg\" AND wisconsin = \"Merrill LL Merrill\"" }
### INSTRUCTION What award was won in the best sound category for the exorcist before 1998? ### INPUT CREATE TABLE table_name_85 (award VARCHAR, title VARCHAR, category VARCHAR, year VARCHAR, type VARCHAR) ### OUTPUT SELECT award FROM table_name_85 WHERE year < 1998 AND type = "won" AND category = "best sound" AND title = "the exorcist"
{ "input": "CREATE TABLE table_name_85 (award VARCHAR, title VARCHAR, category VARCHAR, year VARCHAR, type VARCHAR)", "instruction": "What award was won in the best sound category for the exorcist before 1998?", "output": "SELECT award FROM table_name_85 WHERE year < 1998 AND type = \"won\" AND category = \"best sound\" AND title = \"the exorcist\"" }
### INSTRUCTION What was the winning score when the margin of victory was a playoff for the Tournament of safeco classic? ### INPUT CREATE TABLE table_name_4 (winning_score VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR) ### OUTPUT SELECT winning_score FROM table_name_4 WHERE margin_of_victory = "playoff" AND tournament = "safeco classic"
{ "input": "CREATE TABLE table_name_4 (winning_score VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)", "instruction": "What was the winning score when the margin of victory was a playoff for the Tournament of safeco classic?", "output": "SELECT winning_score FROM table_name_4 WHERE margin_of_victory = \"playoff\" AND tournament = \"safeco classic\"" }
### INSTRUCTION What is the total number of Round, when College/Junior/Club Team (League) is "Kelowna Rockets ( WHL )"? ### INPUT CREATE TABLE table_name_83 (round VARCHAR, college_junior_club_team__league_ VARCHAR) ### OUTPUT SELECT COUNT(round) FROM table_name_83 WHERE college_junior_club_team__league_ = "kelowna rockets ( whl )"
{ "input": "CREATE TABLE table_name_83 (round VARCHAR, college_junior_club_team__league_ VARCHAR)", "instruction": "What is the total number of Round, when College/Junior/Club Team (League) is \"Kelowna Rockets ( WHL )\"?", "output": "SELECT COUNT(round) FROM table_name_83 WHERE college_junior_club_team__league_ = \"kelowna rockets ( whl )\"" }
### INSTRUCTION How many reservations for sc/st are there in constituency 191? ### INPUT CREATE TABLE table_29785324_4 (reservation_for_sc_st VARCHAR, constituency_no VARCHAR) ### OUTPUT SELECT COUNT(reservation_for_sc_st) FROM table_29785324_4 WHERE constituency_no = 191
{ "input": "CREATE TABLE table_29785324_4 (reservation_for_sc_st VARCHAR, constituency_no VARCHAR)", "instruction": "How many reservations for sc/st are there in constituency 191?", "output": "SELECT COUNT(reservation_for_sc_st) FROM table_29785324_4 WHERE constituency_no = 191" }
### INSTRUCTION Which Mac OSX had no haiku and a client that was dc++? ### INPUT CREATE TABLE table_name_98 (mac_os_x VARCHAR, haiku VARCHAR, client VARCHAR) ### OUTPUT SELECT mac_os_x FROM table_name_98 WHERE haiku = "no" AND client = "dc++"
{ "input": "CREATE TABLE table_name_98 (mac_os_x VARCHAR, haiku VARCHAR, client VARCHAR)", "instruction": "Which Mac OSX had no haiku and a client that was dc++?", "output": "SELECT mac_os_x FROM table_name_98 WHERE haiku = \"no\" AND client = \"dc++\"" }
### INSTRUCTION What country has a Youth (15-24) Literacy Rate Total of 99%, and a Youth Men of 98%? ### INPUT CREATE TABLE table_name_50 (country VARCHAR, youth__15_24__literacy_rate_total VARCHAR, youth_men VARCHAR) ### OUTPUT SELECT country FROM table_name_50 WHERE youth__15_24__literacy_rate_total = "99%" AND youth_men = "98%"
{ "input": "CREATE TABLE table_name_50 (country VARCHAR, youth__15_24__literacy_rate_total VARCHAR, youth_men VARCHAR)", "instruction": "What country has a Youth (15-24) Literacy Rate Total of 99%, and a Youth Men of 98%?", "output": "SELECT country FROM table_name_50 WHERE youth__15_24__literacy_rate_total = \"99%\" AND youth_men = \"98%\"" }
### INSTRUCTION What's the average goal ratio with Goals larger than 1, Games larger than 161, and a Debut in Europe smaller than 1985? ### INPUT CREATE TABLE table_name_71 (goal_ratio INTEGER, debut_in_europe VARCHAR, goals VARCHAR, games VARCHAR) ### OUTPUT SELECT AVG(goal_ratio) FROM table_name_71 WHERE goals > 1 AND games > 161 AND debut_in_europe < 1985
{ "input": "CREATE TABLE table_name_71 (goal_ratio INTEGER, debut_in_europe VARCHAR, goals VARCHAR, games VARCHAR)", "instruction": "What's the average goal ratio with Goals larger than 1, Games larger than 161, and a Debut in Europe smaller than 1985?", "output": "SELECT AVG(goal_ratio) FROM table_name_71 WHERE goals > 1 AND games > 161 AND debut_in_europe < 1985" }
### INSTRUCTION Please show the date of ceremony of the volumes that last more than 2 weeks on top. ### INPUT CREATE TABLE music_festival (Date_of_ceremony VARCHAR, Volume VARCHAR); CREATE TABLE volume (Volume_ID VARCHAR, Weeks_on_Top INTEGER) ### OUTPUT SELECT T1.Date_of_ceremony FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume = T2.Volume_ID WHERE T2.Weeks_on_Top > 2
{ "input": "CREATE TABLE music_festival (Date_of_ceremony VARCHAR, Volume VARCHAR); CREATE TABLE volume (Volume_ID VARCHAR, Weeks_on_Top INTEGER)", "instruction": "Please show the date of ceremony of the volumes that last more than 2 weeks on top.", "output": "SELECT T1.Date_of_ceremony FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume = T2.Volume_ID WHERE T2.Weeks_on_Top > 2" }
### INSTRUCTION Who won Miss Universe Philippines when the first runner-up was Danielle Castaño and Janina San Miguel won Binibining Pilipinas-World? ### INPUT CREATE TABLE table_name_82 (miss_universe_philippines VARCHAR, first_runner_up VARCHAR, binibining_pilipinas_world VARCHAR) ### OUTPUT SELECT miss_universe_philippines FROM table_name_82 WHERE first_runner_up = "danielle castaño" AND binibining_pilipinas_world = "janina san miguel"
{ "input": "CREATE TABLE table_name_82 (miss_universe_philippines VARCHAR, first_runner_up VARCHAR, binibining_pilipinas_world VARCHAR)", "instruction": "Who won Miss Universe Philippines when the first runner-up was Danielle Castaño and Janina San Miguel won Binibining Pilipinas-World?", "output": "SELECT miss_universe_philippines FROM table_name_82 WHERE first_runner_up = \"danielle castaño\" AND binibining_pilipinas_world = \"janina san miguel\"" }
### INSTRUCTION Which Railway has a Location of shildon, and an ObjectNumber of 1975-7022? ### INPUT CREATE TABLE table_name_58 (railway VARCHAR, location VARCHAR, objectnumber VARCHAR) ### OUTPUT SELECT railway FROM table_name_58 WHERE location = "shildon" AND objectnumber = "1975-7022"
{ "input": "CREATE TABLE table_name_58 (railway VARCHAR, location VARCHAR, objectnumber VARCHAR)", "instruction": "Which Railway has a Location of shildon, and an ObjectNumber of 1975-7022?", "output": "SELECT railway FROM table_name_58 WHERE location = \"shildon\" AND objectnumber = \"1975-7022\"" }
### INSTRUCTION Please list support, consider, and oppose rates for each candidate in ascending order by unsure rate. ### INPUT CREATE TABLE candidate (Support_rate VARCHAR, Consider_rate VARCHAR, Oppose_rate VARCHAR, unsure_rate VARCHAR) ### OUTPUT SELECT Support_rate, Consider_rate, Oppose_rate FROM candidate ORDER BY unsure_rate
{ "input": "CREATE TABLE candidate (Support_rate VARCHAR, Consider_rate VARCHAR, Oppose_rate VARCHAR, unsure_rate VARCHAR)", "instruction": "Please list support, consider, and oppose rates for each candidate in ascending order by unsure rate.", "output": "SELECT Support_rate, Consider_rate, Oppose_rate FROM candidate ORDER BY unsure_rate" }
### INSTRUCTION What is the famous for where the finished is 5th? ### INPUT CREATE TABLE table_14345690_5 (famous_for VARCHAR, finished VARCHAR) ### OUTPUT SELECT famous_for FROM table_14345690_5 WHERE finished = "5th"
{ "input": "CREATE TABLE table_14345690_5 (famous_for VARCHAR, finished VARCHAR)", "instruction": "What is the famous for where the finished is 5th?", "output": "SELECT famous_for FROM table_14345690_5 WHERE finished = \"5th\"" }
### INSTRUCTION Name the sum of population 1.1.2008 for tønsberg and population 1.1.2006 more than 45.447 ### INPUT CREATE TABLE table_name_62 (population_112008 INTEGER, urban_area VARCHAR, population_112006 VARCHAR) ### OUTPUT SELECT SUM(population_112008) FROM table_name_62 WHERE urban_area = "tønsberg" AND population_112006 > 45.447
{ "input": "CREATE TABLE table_name_62 (population_112008 INTEGER, urban_area VARCHAR, population_112006 VARCHAR)", "instruction": "Name the sum of population 1.1.2008 for tønsberg and population 1.1.2006 more than 45.447", "output": "SELECT SUM(population_112008) FROM table_name_62 WHERE urban_area = \"tønsberg\" AND population_112006 > 45.447" }
### INSTRUCTION How many countries does each continent have? List the continent id, continent name and the number of countries. ### INPUT CREATE TABLE COUNTRIES (Continent VARCHAR); CREATE TABLE CONTINENTS (ContId VARCHAR, Continent VARCHAR) ### OUTPUT SELECT T1.ContId, T1.Continent, COUNT(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId
{ "input": "CREATE TABLE COUNTRIES (Continent VARCHAR); CREATE TABLE CONTINENTS (ContId VARCHAR, Continent VARCHAR)", "instruction": "How many countries does each continent have? List the continent id, continent name and the number of countries.", "output": "SELECT T1.ContId, T1.Continent, COUNT(*) FROM CONTINENTS AS T1 JOIN COUNTRIES AS T2 ON T1.ContId = T2.Continent GROUP BY T1.ContId" }
### INSTRUCTION Which is the smallest evening gown score when the interview score was more than 9.164, the swimsuit stat was less than 9.35, and the average is less than 9.233? ### INPUT CREATE TABLE table_name_63 (evening_gown INTEGER, average VARCHAR, interview VARCHAR, swimsuit VARCHAR) ### OUTPUT SELECT MIN(evening_gown) FROM table_name_63 WHERE interview > 9.164 AND swimsuit < 9.35 AND average < 9.233
{ "input": "CREATE TABLE table_name_63 (evening_gown INTEGER, average VARCHAR, interview VARCHAR, swimsuit VARCHAR)", "instruction": "Which is the smallest evening gown score when the interview score was more than 9.164, the swimsuit stat was less than 9.35, and the average is less than 9.233?", "output": "SELECT MIN(evening_gown) FROM table_name_63 WHERE interview > 9.164 AND swimsuit < 9.35 AND average < 9.233" }
### INSTRUCTION Who were the opponents on grass when playing with Mark Woodforde, and the outcome of winner, and a year greater than 1996? ### INPUT CREATE TABLE table_name_61 (opponents VARCHAR, year VARCHAR, outcome VARCHAR, surface VARCHAR, partner VARCHAR) ### OUTPUT SELECT opponents FROM table_name_61 WHERE surface = "grass" AND partner = "mark woodforde" AND outcome = "winner" AND year > 1996
{ "input": "CREATE TABLE table_name_61 (opponents VARCHAR, year VARCHAR, outcome VARCHAR, surface VARCHAR, partner VARCHAR)", "instruction": "Who were the opponents on grass when playing with Mark Woodforde, and the outcome of winner, and a year greater than 1996?", "output": "SELECT opponents FROM table_name_61 WHERE surface = \"grass\" AND partner = \"mark woodforde\" AND outcome = \"winner\" AND year > 1996" }
### INSTRUCTION What instrumental has tkven-i as the genitive? ### INPUT CREATE TABLE table_name_42 (instrumental VARCHAR, genitive VARCHAR) ### OUTPUT SELECT instrumental FROM table_name_42 WHERE genitive = "tkven-i"
{ "input": "CREATE TABLE table_name_42 (instrumental VARCHAR, genitive VARCHAR)", "instruction": "What instrumental has tkven-i as the genitive?", "output": "SELECT instrumental FROM table_name_42 WHERE genitive = \"tkven-i\"" }
### INSTRUCTION What country does david gilford play for? ### INPUT CREATE TABLE table_name_90 (country VARCHAR, player VARCHAR) ### OUTPUT SELECT country FROM table_name_90 WHERE player = "david gilford"
{ "input": "CREATE TABLE table_name_90 (country VARCHAR, player VARCHAR)", "instruction": "What country does david gilford play for?", "output": "SELECT country FROM table_name_90 WHERE player = \"david gilford\"" }
### INSTRUCTION What is the lowest number of sheep and goats after 1931, with fewer than 2518 cows and more than 2604.8 horses? ### INPUT CREATE TABLE table_name_42 (sheep_and_goats INTEGER, total_horses VARCHAR, year VARCHAR, cows VARCHAR) ### OUTPUT SELECT MIN(sheep_and_goats) FROM table_name_42 WHERE year > 1931 AND cows < 2518 AND total_horses > 2604.8
{ "input": "CREATE TABLE table_name_42 (sheep_and_goats INTEGER, total_horses VARCHAR, year VARCHAR, cows VARCHAR)", "instruction": "What is the lowest number of sheep and goats after 1931, with fewer than 2518 cows and more than 2604.8 horses?", "output": "SELECT MIN(sheep_and_goats) FROM table_name_42 WHERE year > 1931 AND cows < 2518 AND total_horses > 2604.8" }
### INSTRUCTION How many years have an accolade of 50 best albums of the year, with #3 as the rank? ### INPUT CREATE TABLE table_name_6 (year INTEGER, accolade VARCHAR, rank VARCHAR) ### OUTPUT SELECT SUM(year) FROM table_name_6 WHERE accolade = "50 best albums of the year" AND rank = "#3"
{ "input": "CREATE TABLE table_name_6 (year INTEGER, accolade VARCHAR, rank VARCHAR)", "instruction": "How many years have an accolade of 50 best albums of the year, with #3 as the rank?", "output": "SELECT SUM(year) FROM table_name_6 WHERE accolade = \"50 best albums of the year\" AND rank = \"#3\"" }
### INSTRUCTION What is the minimum total ATMs with new private sector banks as the bank type, and the on-site ATMs are greater than 1883? ### INPUT CREATE TABLE table_name_42 (total_atms INTEGER, bank_type VARCHAR, on_site_atms VARCHAR) ### OUTPUT SELECT MIN(total_atms) FROM table_name_42 WHERE bank_type = "new private sector banks" AND on_site_atms > 1883
{ "input": "CREATE TABLE table_name_42 (total_atms INTEGER, bank_type VARCHAR, on_site_atms VARCHAR)", "instruction": "What is the minimum total ATMs with new private sector banks as the bank type, and the on-site ATMs are greater than 1883?", "output": "SELECT MIN(total_atms) FROM table_name_42 WHERE bank_type = \"new private sector banks\" AND on_site_atms > 1883" }
### INSTRUCTION WHAT CHAMPION HAD RICHMOND RIVER COURSE ON JUNE 13? ### INPUT CREATE TABLE table_name_39 (champion VARCHAR, course VARCHAR, date VARCHAR) ### OUTPUT SELECT champion FROM table_name_39 WHERE course = "richmond river" AND date = "june 13"
{ "input": "CREATE TABLE table_name_39 (champion VARCHAR, course VARCHAR, date VARCHAR)", "instruction": "WHAT CHAMPION HAD RICHMOND RIVER COURSE ON JUNE 13?", "output": "SELECT champion FROM table_name_39 WHERE course = \"richmond river\" AND date = \"june 13\"" }
### INSTRUCTION Show the id and details of the investor that has the largest number of transactions. ### INPUT CREATE TABLE TRANSACTIONS (investor_id VARCHAR); CREATE TABLE INVESTORS (Investor_details VARCHAR, investor_id VARCHAR) ### OUTPUT SELECT T2.investor_id, T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE TRANSACTIONS (investor_id VARCHAR); CREATE TABLE INVESTORS (Investor_details VARCHAR, investor_id VARCHAR)", "instruction": "Show the id and details of the investor that has the largest number of transactions.", "output": "SELECT T2.investor_id, T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION How many points did kiefer-bos-castrol honda have? ### INPUT CREATE TABLE table_16710541_2 (pts VARCHAR, team VARCHAR) ### OUTPUT SELECT pts FROM table_16710541_2 WHERE team = "Kiefer-Bos-Castrol Honda"
{ "input": "CREATE TABLE table_16710541_2 (pts VARCHAR, team VARCHAR)", "instruction": "How many points did kiefer-bos-castrol honda have?", "output": "SELECT pts FROM table_16710541_2 WHERE team = \"Kiefer-Bos-Castrol Honda\"" }
### INSTRUCTION What's the position listed for the east carolina team? ### INPUT CREATE TABLE table_name_81 (position VARCHAR, school_club_team VARCHAR) ### OUTPUT SELECT position FROM table_name_81 WHERE school_club_team = "east carolina"
{ "input": "CREATE TABLE table_name_81 (position VARCHAR, school_club_team VARCHAR)", "instruction": "What's the position listed for the east carolina team?", "output": "SELECT position FROM table_name_81 WHERE school_club_team = \"east carolina\"" }
### INSTRUCTION Which party does Tom Luken belong to? ### INPUT CREATE TABLE table_1341577_36 (party VARCHAR, incumbent VARCHAR) ### OUTPUT SELECT party FROM table_1341577_36 WHERE incumbent = "Tom Luken"
{ "input": "CREATE TABLE table_1341577_36 (party VARCHAR, incumbent VARCHAR)", "instruction": "Which party does Tom Luken belong to?", "output": "SELECT party FROM table_1341577_36 WHERE incumbent = \"Tom Luken\"" }
### INSTRUCTION Which Eruptions have a Location of pacific ring of fire, and a Volcanic Explosivity Index of 6, and a Country of peru? ### INPUT CREATE TABLE table_name_51 (eruptions VARCHAR, country VARCHAR, location VARCHAR, volcanic_explosivity_index VARCHAR) ### OUTPUT SELECT eruptions FROM table_name_51 WHERE location = "pacific ring of fire" AND volcanic_explosivity_index = "6" AND country = "peru"
{ "input": "CREATE TABLE table_name_51 (eruptions VARCHAR, country VARCHAR, location VARCHAR, volcanic_explosivity_index VARCHAR)", "instruction": "Which Eruptions have a Location of pacific ring of fire, and a Volcanic Explosivity Index of 6, and a Country of peru?", "output": "SELECT eruptions FROM table_name_51 WHERE location = \"pacific ring of fire\" AND volcanic_explosivity_index = \"6\" AND country = \"peru\"" }
### INSTRUCTION How many destinations have a weekly frequency and are named AC Express? ### INPUT CREATE TABLE table_21716139_1 (destination VARCHAR, frequency VARCHAR, train_name VARCHAR) ### OUTPUT SELECT COUNT(destination) FROM table_21716139_1 WHERE frequency = "Weekly" AND train_name = "AC Express"
{ "input": "CREATE TABLE table_21716139_1 (destination VARCHAR, frequency VARCHAR, train_name VARCHAR)", "instruction": "How many destinations have a weekly frequency and are named AC Express?", "output": "SELECT COUNT(destination) FROM table_21716139_1 WHERE frequency = \"Weekly\" AND train_name = \"AC Express\"" }
### INSTRUCTION What is Player, when Place is "T5", and when Score is "69-72=141"? ### INPUT CREATE TABLE table_name_88 (player VARCHAR, place VARCHAR, score VARCHAR) ### OUTPUT SELECT player FROM table_name_88 WHERE place = "t5" AND score = 69 - 72 = 141
{ "input": "CREATE TABLE table_name_88 (player VARCHAR, place VARCHAR, score VARCHAR)", "instruction": "What is Player, when Place is \"T5\", and when Score is \"69-72=141\"?", "output": "SELECT player FROM table_name_88 WHERE place = \"t5\" AND score = 69 - 72 = 141" }
### INSTRUCTION What was the average attendance when the opponent was at Philadelphia Eagles and the week was later than week 6? ### INPUT CREATE TABLE table_name_34 (attendance INTEGER, week VARCHAR, opponent VARCHAR) ### OUTPUT SELECT AVG(attendance) FROM table_name_34 WHERE week > 6 AND opponent = "at philadelphia eagles"
{ "input": "CREATE TABLE table_name_34 (attendance INTEGER, week VARCHAR, opponent VARCHAR)", "instruction": "What was the average attendance when the opponent was at Philadelphia Eagles and the week was later than week 6?", "output": "SELECT AVG(attendance) FROM table_name_34 WHERE week > 6 AND opponent = \"at philadelphia eagles\"" }
### INSTRUCTION How many shows did team David consist of vernon kay and dara ó briain ### INPUT CREATE TABLE table_23575917_8 (episode VARCHAR, davids_team VARCHAR) ### OUTPUT SELECT COUNT(episode) FROM table_23575917_8 WHERE davids_team = "Vernon Kay and Dara Ó Briain"
{ "input": "CREATE TABLE table_23575917_8 (episode VARCHAR, davids_team VARCHAR)", "instruction": "How many shows did team David consist of vernon kay and dara ó briain", "output": "SELECT COUNT(episode) FROM table_23575917_8 WHERE davids_team = \"Vernon Kay and Dara Ó Briain\"" }
### INSTRUCTION Who had pole position for the races in Braselton, Georgia where Victor Carbone had fastest lap? ### INPUT CREATE TABLE table_25773116_2 (pole_position VARCHAR, fastest_lap VARCHAR, location VARCHAR) ### OUTPUT SELECT pole_position FROM table_25773116_2 WHERE fastest_lap = "Victor Carbone" AND location = "Braselton, Georgia"
{ "input": "CREATE TABLE table_25773116_2 (pole_position VARCHAR, fastest_lap VARCHAR, location VARCHAR)", "instruction": "Who had pole position for the races in Braselton, Georgia where Victor Carbone had fastest lap?", "output": "SELECT pole_position FROM table_25773116_2 WHERE fastest_lap = \"Victor Carbone\" AND location = \"Braselton, Georgia\"" }
### INSTRUCTION What is the average Goals/Games for Rummenigge, Karl-Heinz, with Goals less than 162? ### INPUT CREATE TABLE table_name_66 (games VARCHAR, goals INTEGER, name VARCHAR) ### OUTPUT SELECT AVG(goals) / games FROM table_name_66 WHERE name = "rummenigge, karl-heinz" AND goals < 162
{ "input": "CREATE TABLE table_name_66 (games VARCHAR, goals INTEGER, name VARCHAR)", "instruction": "What is the average Goals/Games for Rummenigge, Karl-Heinz, with Goals less than 162?", "output": "SELECT AVG(goals) / games FROM table_name_66 WHERE name = \"rummenigge, karl-heinz\" AND goals < 162" }
### INSTRUCTION If the poverty rate is 12.9%, what is the market income per capita? ### INPUT CREATE TABLE table_22815568_6 (market_income_per_capita VARCHAR, poverty_rate VARCHAR) ### OUTPUT SELECT market_income_per_capita FROM table_22815568_6 WHERE poverty_rate = "12.9%"
{ "input": "CREATE TABLE table_22815568_6 (market_income_per_capita VARCHAR, poverty_rate VARCHAR)", "instruction": "If the poverty rate is 12.9%, what is the market income per capita?", "output": "SELECT market_income_per_capita FROM table_22815568_6 WHERE poverty_rate = \"12.9%\"" }
### INSTRUCTION What is Beyer Peacock's SR number with a SECR number of 769? ### INPUT CREATE TABLE table_name_10 (sr_no INTEGER, builder VARCHAR, secr_no VARCHAR) ### OUTPUT SELECT AVG(sr_no) FROM table_name_10 WHERE builder = "beyer peacock" AND secr_no = 769
{ "input": "CREATE TABLE table_name_10 (sr_no INTEGER, builder VARCHAR, secr_no VARCHAR)", "instruction": "What is Beyer Peacock's SR number with a SECR number of 769?", "output": "SELECT AVG(sr_no) FROM table_name_10 WHERE builder = \"beyer peacock\" AND secr_no = 769" }
### INSTRUCTION Who was the away team when Brighton & Hove Albion was home? ### INPUT CREATE TABLE table_name_95 (away_team VARCHAR, home_team VARCHAR) ### OUTPUT SELECT away_team FROM table_name_95 WHERE home_team = "brighton & hove albion"
{ "input": "CREATE TABLE table_name_95 (away_team VARCHAR, home_team VARCHAR)", "instruction": "Who was the away team when Brighton & Hove Albion was home?", "output": "SELECT away_team FROM table_name_95 WHERE home_team = \"brighton & hove albion\"" }
### INSTRUCTION Who was the winning driver driving the winning car March - Honda 86j, with the winning team Team Nova? ### INPUT CREATE TABLE table_name_84 (winning_driver VARCHAR, winning_car VARCHAR, winning_team VARCHAR) ### OUTPUT SELECT winning_driver FROM table_name_84 WHERE winning_car = "march - honda 86j" AND winning_team = "team nova"
{ "input": "CREATE TABLE table_name_84 (winning_driver VARCHAR, winning_car VARCHAR, winning_team VARCHAR)", "instruction": "Who was the winning driver driving the winning car March - Honda 86j, with the winning team Team Nova?", "output": "SELECT winning_driver FROM table_name_84 WHERE winning_car = \"march - honda 86j\" AND winning_team = \"team nova\"" }
### INSTRUCTION What's the Japanese title when the Romaji Title was Atsu-Hime? ### INPUT CREATE TABLE table_name_24 (japanese_title VARCHAR, romaji_title VARCHAR) ### OUTPUT SELECT japanese_title FROM table_name_24 WHERE romaji_title = "atsu-hime"
{ "input": "CREATE TABLE table_name_24 (japanese_title VARCHAR, romaji_title VARCHAR)", "instruction": "What's the Japanese title when the Romaji Title was Atsu-Hime?", "output": "SELECT japanese_title FROM table_name_24 WHERE romaji_title = \"atsu-hime\"" }
### INSTRUCTION What Country had a Score of 71-67=138? ### INPUT CREATE TABLE table_name_76 (country VARCHAR, score VARCHAR) ### OUTPUT SELECT country FROM table_name_76 WHERE score = 71 - 67 = 138
{ "input": "CREATE TABLE table_name_76 (country VARCHAR, score VARCHAR)", "instruction": "What Country had a Score of 71-67=138?", "output": "SELECT country FROM table_name_76 WHERE score = 71 - 67 = 138" }
### INSTRUCTION Which Sub-Parish (Sogn) was built before 1883 in the Parish (Prestegjeld) of jostedal parish and is located in the Church of Gaupne? ### INPUT CREATE TABLE table_name_66 (sub_parish__sogn_ VARCHAR, location_of_the_church VARCHAR, year_built VARCHAR, parish__prestegjeld_ VARCHAR) ### OUTPUT SELECT sub_parish__sogn_ FROM table_name_66 WHERE year_built < 1883 AND parish__prestegjeld_ = "jostedal parish" AND location_of_the_church = "gaupne"
{ "input": "CREATE TABLE table_name_66 (sub_parish__sogn_ VARCHAR, location_of_the_church VARCHAR, year_built VARCHAR, parish__prestegjeld_ VARCHAR)", "instruction": "Which Sub-Parish (Sogn) was built before 1883 in the Parish (Prestegjeld) of jostedal parish and is located in the Church of Gaupne?", "output": "SELECT sub_parish__sogn_ FROM table_name_66 WHERE year_built < 1883 AND parish__prestegjeld_ = \"jostedal parish\" AND location_of_the_church = \"gaupne\"" }
### INSTRUCTION What was the total number of matches that had an outcome of Winner, a partner of John Lloyd, and a clay surface? ### INPUT CREATE TABLE table_2151643_3 (opponents VARCHAR, surface VARCHAR, outcome VARCHAR, partner VARCHAR) ### OUTPUT SELECT COUNT(opponents) FROM table_2151643_3 WHERE outcome = "Winner" AND partner = "John Lloyd" AND surface = "Clay"
{ "input": "CREATE TABLE table_2151643_3 (opponents VARCHAR, surface VARCHAR, outcome VARCHAR, partner VARCHAR)", "instruction": "What was the total number of matches that had an outcome of Winner, a partner of John Lloyd, and a clay surface?", "output": "SELECT COUNT(opponents) FROM table_2151643_3 WHERE outcome = \"Winner\" AND partner = \"John Lloyd\" AND surface = \"Clay\"" }
### INSTRUCTION Where is the company with estimated revenue of 33.3 billion headquartered? ### INPUT CREATE TABLE table_21926985_2 (headquarters_city VARCHAR, revenue__$billions__2012_estimate VARCHAR) ### OUTPUT SELECT headquarters_city FROM table_21926985_2 WHERE revenue__$billions__2012_estimate = "33.3"
{ "input": "CREATE TABLE table_21926985_2 (headquarters_city VARCHAR, revenue__$billions__2012_estimate VARCHAR)", "instruction": "Where is the company with estimated revenue of 33.3 billion headquartered?", "output": "SELECT headquarters_city FROM table_21926985_2 WHERE revenue__$billions__2012_estimate = \"33.3\"" }
### INSTRUCTION What are the Notes when the Method is decision? ### INPUT CREATE TABLE table_name_74 (notes VARCHAR, method VARCHAR) ### OUTPUT SELECT notes FROM table_name_74 WHERE method = "decision"
{ "input": "CREATE TABLE table_name_74 (notes VARCHAR, method VARCHAR)", "instruction": "What are the Notes when the Method is decision?", "output": "SELECT notes FROM table_name_74 WHERE method = \"decision\"" }
### INSTRUCTION What are the names of workshop groups in which services with product name "film" are performed? ### INPUT CREATE TABLE Services (Workshop_Group_ID VARCHAR, Product_Name VARCHAR); CREATE TABLE Drama_Workshop_Groups (Store_Phone VARCHAR, Store_Email_Address VARCHAR, Workshop_Group_ID VARCHAR) ### OUTPUT SELECT T1.Store_Phone, T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T2.Product_Name = "film"
{ "input": "CREATE TABLE Services (Workshop_Group_ID VARCHAR, Product_Name VARCHAR); CREATE TABLE Drama_Workshop_Groups (Store_Phone VARCHAR, Store_Email_Address VARCHAR, Workshop_Group_ID VARCHAR)", "instruction": "What are the names of workshop groups in which services with product name \"film\" are performed?", "output": "SELECT T1.Store_Phone, T1.Store_Email_Address FROM Drama_Workshop_Groups AS T1 JOIN Services AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T2.Product_Name = \"film\"" }
### INSTRUCTION What rank has an annual interchange less than 1.99 million, an annual entry/exit less than 13.835 million, and more than 13.772 million total passengers? ### INPUT CREATE TABLE table_name_83 (rank VARCHAR, total_passengers__millions__2011_12 VARCHAR, annual_interchanges__millions__2011_12 VARCHAR, annual_entry_exit__millions__2011_12 VARCHAR) ### OUTPUT SELECT rank FROM table_name_83 WHERE annual_interchanges__millions__2011_12 < 1.99 AND annual_entry_exit__millions__2011_12 < 13.835 AND total_passengers__millions__2011_12 > 13.772
{ "input": "CREATE TABLE table_name_83 (rank VARCHAR, total_passengers__millions__2011_12 VARCHAR, annual_interchanges__millions__2011_12 VARCHAR, annual_entry_exit__millions__2011_12 VARCHAR)", "instruction": "What rank has an annual interchange less than 1.99 million, an annual entry/exit less than 13.835 million, and more than 13.772 million total passengers?", "output": "SELECT rank FROM table_name_83 WHERE annual_interchanges__millions__2011_12 < 1.99 AND annual_entry_exit__millions__2011_12 < 13.835 AND total_passengers__millions__2011_12 > 13.772" }
### INSTRUCTION What is the average total when gold is 0, bronze is 0, and silver is smaller than 1? ### INPUT CREATE TABLE table_name_54 (total INTEGER, silver VARCHAR, gold VARCHAR, bronze VARCHAR) ### OUTPUT SELECT AVG(total) FROM table_name_54 WHERE gold = 0 AND bronze = 0 AND silver < 1
{ "input": "CREATE TABLE table_name_54 (total INTEGER, silver VARCHAR, gold VARCHAR, bronze VARCHAR)", "instruction": "What is the average total when gold is 0, bronze is 0, and silver is smaller than 1?", "output": "SELECT AVG(total) FROM table_name_54 WHERE gold = 0 AND bronze = 0 AND silver < 1" }