text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
For player Wally Johnson, with goals larger than 0, the debut year later than 1904, and games greater than 136, what were the years at club?
### INPUT
CREATE TABLE table_name_5 (years_at_club VARCHAR, player VARCHAR, games VARCHAR, goals VARCHAR, debut_year VARCHAR)
### OUTPUT
SELECT years_at_club FROM table_name_5 WHERE goals > 0 AND debut_year > 1904 AND games > 136 AND player = "wally johnson" | {
"input": "CREATE TABLE table_name_5 (years_at_club VARCHAR, player VARCHAR, games VARCHAR, goals VARCHAR, debut_year VARCHAR)",
"instruction": "For player Wally Johnson, with goals larger than 0, the debut year later than 1904, and games greater than 136, what were the years at club?",
"output": "SELECT years_at_club FROM table_name_5 WHERE goals > 0 AND debut_year > 1904 AND games > 136 AND player = \"wally johnson\""
} |
### INSTRUCTION
What is the average age of the dogs who have gone through any treatments?
### INPUT
CREATE TABLE Dogs (age INTEGER, dog_id VARCHAR); CREATE TABLE Treatments (age INTEGER, dog_id VARCHAR)
### OUTPUT
SELECT AVG(age) FROM Dogs WHERE dog_id IN (SELECT dog_id FROM Treatments) | {
"input": "CREATE TABLE Dogs (age INTEGER, dog_id VARCHAR); CREATE TABLE Treatments (age INTEGER, dog_id VARCHAR)",
"instruction": "What is the average age of the dogs who have gone through any treatments?",
"output": "SELECT AVG(age) FROM Dogs WHERE dog_id IN (SELECT dog_id FROM Treatments)"
} |
### INSTRUCTION
How many members of "Bootup Baltimore" are older than 18?
### INPUT
CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (stuid VARCHAR, age VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR)
### OUTPUT
SELECT COUNT(*) 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 t3.age > 18 | {
"input": "CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (stuid VARCHAR, age VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR)",
"instruction": "How many members of \"Bootup Baltimore\" are older than 18?",
"output": "SELECT COUNT(*) 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 t3.age > 18"
} |
### INSTRUCTION
What is the most stolen ends?
### INPUT
CREATE TABLE table_29704430_1 (stolen_ends INTEGER)
### OUTPUT
SELECT MAX(stolen_ends) FROM table_29704430_1 | {
"input": "CREATE TABLE table_29704430_1 (stolen_ends INTEGER)",
"instruction": "What is the most stolen ends?",
"output": "SELECT MAX(stolen_ends) FROM table_29704430_1"
} |
### INSTRUCTION
What player is from Scotland and has a score of 74-70=144?
### INPUT
CREATE TABLE table_name_90 (player VARCHAR, country VARCHAR, score VARCHAR)
### OUTPUT
SELECT player FROM table_name_90 WHERE score = 74 - 70 = 144 AND country = "scotland" | {
"input": "CREATE TABLE table_name_90 (player VARCHAR, country VARCHAR, score VARCHAR)",
"instruction": "What player is from Scotland and has a score of 74-70=144?",
"output": "SELECT player FROM table_name_90 WHERE score = 74 - 70 = 144 AND country = \"scotland\""
} |
### INSTRUCTION
What engine what in the vehicle when adt champion racing ranked in 1st place?
### INPUT
CREATE TABLE table_name_21 (engine VARCHAR, rank VARCHAR, entrant VARCHAR)
### OUTPUT
SELECT engine FROM table_name_21 WHERE rank = "1st" AND entrant = "adt champion racing" | {
"input": "CREATE TABLE table_name_21 (engine VARCHAR, rank VARCHAR, entrant VARCHAR)",
"instruction": "What engine what in the vehicle when adt champion racing ranked in 1st place?",
"output": "SELECT engine FROM table_name_21 WHERE rank = \"1st\" AND entrant = \"adt champion racing\""
} |
### INSTRUCTION
What is the monounsaturated fat with a smoke point of °c (), a total fat of 100g, 11g of polyunsaturated fat, and 14g of saturated fat?
### INPUT
CREATE TABLE table_name_85 (monounsaturated_fat VARCHAR, saturated_fat VARCHAR, polyunsaturated_fat VARCHAR, smoke_point VARCHAR, total_fat VARCHAR)
### OUTPUT
SELECT monounsaturated_fat FROM table_name_85 WHERE smoke_point = "°c ()" AND total_fat = "100g" AND polyunsaturated_fat = "11g" AND saturated_fat = "14g" | {
"input": "CREATE TABLE table_name_85 (monounsaturated_fat VARCHAR, saturated_fat VARCHAR, polyunsaturated_fat VARCHAR, smoke_point VARCHAR, total_fat VARCHAR)",
"instruction": "What is the monounsaturated fat with a smoke point of °c (), a total fat of 100g, 11g of polyunsaturated fat, and 14g of saturated fat?",
"output": "SELECT monounsaturated_fat FROM table_name_85 WHERE smoke_point = \"°c ()\" AND total_fat = \"100g\" AND polyunsaturated_fat = \"11g\" AND saturated_fat = \"14g\""
} |
### INSTRUCTION
Where is NCAA division ii Franklin Pierce University located at?
### INPUT
CREATE TABLE table_name_54 (location VARCHAR, classification VARCHAR, institution VARCHAR)
### OUTPUT
SELECT location FROM table_name_54 WHERE classification = "ncaa division ii" AND institution = "franklin pierce university" | {
"input": "CREATE TABLE table_name_54 (location VARCHAR, classification VARCHAR, institution VARCHAR)",
"instruction": "Where is NCAA division ii Franklin Pierce University located at?",
"output": "SELECT location FROM table_name_54 WHERE classification = \"ncaa division ii\" AND institution = \"franklin pierce university\""
} |
### INSTRUCTION
How many to par has the winning score of 69-66-68=203.
### INPUT
CREATE TABLE table_19630743_2 (to_par VARCHAR, winning_score VARCHAR)
### OUTPUT
SELECT to_par FROM table_19630743_2 WHERE winning_score = 69 - 66 - 68 = 203 | {
"input": "CREATE TABLE table_19630743_2 (to_par VARCHAR, winning_score VARCHAR)",
"instruction": "How many to par has the winning score of 69-66-68=203.",
"output": "SELECT to_par FROM table_19630743_2 WHERE winning_score = 69 - 66 - 68 = 203"
} |
### INSTRUCTION
Which Big (>500ha) has a Micro (10ha) larger than 940, and a Department of potosí, and a Total smaller than 16,240?
### INPUT
CREATE TABLE table_name_12 (big__ INTEGER, total VARCHAR, micro__10ha_ VARCHAR, department VARCHAR)
### OUTPUT
SELECT MAX(big__) > 500 AS ha_ FROM table_name_12 WHERE micro__10ha_ > 940 AND department = "potosí" AND total < 16 OFFSET 240 | {
"input": "CREATE TABLE table_name_12 (big__ INTEGER, total VARCHAR, micro__10ha_ VARCHAR, department VARCHAR)",
"instruction": "Which Big (>500ha) has a Micro (10ha) larger than 940, and a Department of potosí, and a Total smaller than 16,240?",
"output": "SELECT MAX(big__) > 500 AS ha_ FROM table_name_12 WHERE micro__10ha_ > 940 AND department = \"potosí\" AND total < 16 OFFSET 240"
} |
### INSTRUCTION
What year was the b n2t axle arrangement, which has a quantity of 31, manufactured?
### INPUT
CREATE TABLE table_name_74 (year_s__of_manufacture VARCHAR, quantity VARCHAR, axle_arrangement___uic__ VARCHAR)
### OUTPUT
SELECT year_s__of_manufacture FROM table_name_74 WHERE quantity = 31 AND axle_arrangement___uic__ = "b n2t" | {
"input": "CREATE TABLE table_name_74 (year_s__of_manufacture VARCHAR, quantity VARCHAR, axle_arrangement___uic__ VARCHAR)",
"instruction": "What year was the b n2t axle arrangement, which has a quantity of 31, manufactured?",
"output": "SELECT year_s__of_manufacture FROM table_name_74 WHERE quantity = 31 AND axle_arrangement___uic__ = \"b n2t\""
} |
### INSTRUCTION
What is the least attendance that has 3-5 as a record?
### INPUT
CREATE TABLE table_name_25 (attendance INTEGER, record VARCHAR)
### OUTPUT
SELECT MIN(attendance) FROM table_name_25 WHERE record = "3-5" | {
"input": "CREATE TABLE table_name_25 (attendance INTEGER, record VARCHAR)",
"instruction": "What is the least attendance that has 3-5 as a record?",
"output": "SELECT MIN(attendance) FROM table_name_25 WHERE record = \"3-5\""
} |
### INSTRUCTION
When 446004 is the production code who are the writers?
### INPUT
CREATE TABLE table_2409041_2 (written_by VARCHAR, production_code VARCHAR)
### OUTPUT
SELECT written_by FROM table_2409041_2 WHERE production_code = 446004 | {
"input": "CREATE TABLE table_2409041_2 (written_by VARCHAR, production_code VARCHAR)",
"instruction": "When 446004 is the production code who are the writers?",
"output": "SELECT written_by FROM table_2409041_2 WHERE production_code = 446004"
} |
### INSTRUCTION
What is the tournament on February 17, 2002?
### INPUT
CREATE TABLE table_name_21 (tournament VARCHAR, date VARCHAR)
### OUTPUT
SELECT tournament FROM table_name_21 WHERE date = "february 17, 2002" | {
"input": "CREATE TABLE table_name_21 (tournament VARCHAR, date VARCHAR)",
"instruction": "What is the tournament on February 17, 2002?",
"output": "SELECT tournament FROM table_name_21 WHERE date = \"february 17, 2002\""
} |
### INSTRUCTION
Which controller is NAND type 25nm mlc-het with sequential read/write MB/s of 270/210?
### INPUT
CREATE TABLE table_name_67 (controller VARCHAR, nand_type VARCHAR, seq_read_write_mb_s VARCHAR)
### OUTPUT
SELECT controller FROM table_name_67 WHERE nand_type = "25nm mlc-het" AND seq_read_write_mb_s = "270/210" | {
"input": "CREATE TABLE table_name_67 (controller VARCHAR, nand_type VARCHAR, seq_read_write_mb_s VARCHAR)",
"instruction": "Which controller is NAND type 25nm mlc-het with sequential read/write MB/s of 270/210?",
"output": "SELECT controller FROM table_name_67 WHERE nand_type = \"25nm mlc-het\" AND seq_read_write_mb_s = \"270/210\""
} |
### INSTRUCTION
Find the addresses of the course authors who teach the course with name "operating system" or "data structure".
### INPUT
CREATE TABLE Courses (author_id VARCHAR, course_name VARCHAR); CREATE TABLE Course_Authors_and_Tutors (address_line_1 VARCHAR, author_id VARCHAR)
### OUTPUT
SELECT T1.address_line_1 FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T2.course_name = "operating system" OR T2.course_name = "data structure" | {
"input": "CREATE TABLE Courses (author_id VARCHAR, course_name VARCHAR); CREATE TABLE Course_Authors_and_Tutors (address_line_1 VARCHAR, author_id VARCHAR)",
"instruction": "Find the addresses of the course authors who teach the course with name \"operating system\" or \"data structure\".",
"output": "SELECT T1.address_line_1 FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T2.course_name = \"operating system\" OR T2.course_name = \"data structure\""
} |
### INSTRUCTION
Which nationality has left wing as the position and college/junior/team is portland winterhawks (whl)?
### INPUT
CREATE TABLE table_2886617_3 (nationality VARCHAR, position VARCHAR, college_junior_club_team VARCHAR)
### OUTPUT
SELECT nationality FROM table_2886617_3 WHERE position = "Left Wing" AND college_junior_club_team = "Portland Winterhawks (WHL)" | {
"input": "CREATE TABLE table_2886617_3 (nationality VARCHAR, position VARCHAR, college_junior_club_team VARCHAR)",
"instruction": "Which nationality has left wing as the position and college/junior/team is portland winterhawks (whl)?",
"output": "SELECT nationality FROM table_2886617_3 WHERE position = \"Left Wing\" AND college_junior_club_team = \"Portland Winterhawks (WHL)\""
} |
### INSTRUCTION
Which Top-25 has a Top-5 larger than 9, and Wins smaller than 11?
### INPUT
CREATE TABLE table_name_71 (top_25 INTEGER, top_5 VARCHAR, wins VARCHAR)
### OUTPUT
SELECT SUM(top_25) FROM table_name_71 WHERE top_5 > 9 AND wins < 11 | {
"input": "CREATE TABLE table_name_71 (top_25 INTEGER, top_5 VARCHAR, wins VARCHAR)",
"instruction": "Which Top-25 has a Top-5 larger than 9, and Wins smaller than 11?",
"output": "SELECT SUM(top_25) FROM table_name_71 WHERE top_5 > 9 AND wins < 11"
} |
### INSTRUCTION
When Brett Lancaster won the general classification, who won the team calssification?
### INPUT
CREATE TABLE table_25055040_22 (team_classification VARCHAR, general_classification VARCHAR)
### OUTPUT
SELECT team_classification FROM table_25055040_22 WHERE general_classification = "Brett Lancaster" | {
"input": "CREATE TABLE table_25055040_22 (team_classification VARCHAR, general_classification VARCHAR)",
"instruction": "When Brett Lancaster won the general classification, who won the team calssification?",
"output": "SELECT team_classification FROM table_25055040_22 WHERE general_classification = \"Brett Lancaster\""
} |
### INSTRUCTION
What frame size has pcm 4 ch/16 bit/48khz as audio coding and dvcam as the format name and 4:1:1 as the color sampling?
### INPUT
CREATE TABLE table_name_44 (frame_size VARCHAR, color_sampling VARCHAR, audio_coding VARCHAR, format_name VARCHAR)
### OUTPUT
SELECT frame_size FROM table_name_44 WHERE audio_coding = "pcm 4 ch/16 bit/48khz" AND format_name = "dvcam" AND color_sampling = "4:1:1" | {
"input": "CREATE TABLE table_name_44 (frame_size VARCHAR, color_sampling VARCHAR, audio_coding VARCHAR, format_name VARCHAR)",
"instruction": "What frame size has pcm 4 ch/16 bit/48khz as audio coding and dvcam as the format name and 4:1:1 as the color sampling?",
"output": "SELECT frame_size FROM table_name_44 WHERE audio_coding = \"pcm 4 ch/16 bit/48khz\" AND format_name = \"dvcam\" AND color_sampling = \"4:1:1\""
} |
### INSTRUCTION
What title has rouben mamoulian directing after 1940 with linda darnell as the leading lady?
### INPUT
CREATE TABLE table_name_16 (title VARCHAR, leading_lady VARCHAR, director VARCHAR, year VARCHAR)
### OUTPUT
SELECT title FROM table_name_16 WHERE director = "rouben mamoulian" AND year > 1940 AND leading_lady = "linda darnell" | {
"input": "CREATE TABLE table_name_16 (title VARCHAR, leading_lady VARCHAR, director VARCHAR, year VARCHAR)",
"instruction": "What title has rouben mamoulian directing after 1940 with linda darnell as the leading lady?",
"output": "SELECT title FROM table_name_16 WHERE director = \"rouben mamoulian\" AND year > 1940 AND leading_lady = \"linda darnell\""
} |
### INSTRUCTION
How many total earnings are recorded when her best finish is t2 with a 71.25 scoring average?
### INPUT
CREATE TABLE table_14853156_2 (earnings___ VARCHAR, best_finish VARCHAR, scoring_average VARCHAR)
### OUTPUT
SELECT COUNT(earnings___) AS $__ FROM table_14853156_2 WHERE best_finish = "T2" AND scoring_average = "71.25" | {
"input": "CREATE TABLE table_14853156_2 (earnings___ VARCHAR, best_finish VARCHAR, scoring_average VARCHAR)",
"instruction": "How many total earnings are recorded when her best finish is t2 with a 71.25 scoring average?",
"output": "SELECT COUNT(earnings___) AS $__ FROM table_14853156_2 WHERE best_finish = \"T2\" AND scoring_average = \"71.25\""
} |
### INSTRUCTION
David James Elliott directed which episode number within the series?
### INPUT
CREATE TABLE table_228973_11 (no_in_series VARCHAR, directed_by VARCHAR)
### OUTPUT
SELECT no_in_series FROM table_228973_11 WHERE directed_by = "David James Elliott" | {
"input": "CREATE TABLE table_228973_11 (no_in_series VARCHAR, directed_by VARCHAR)",
"instruction": "David James Elliott directed which episode number within the series?",
"output": "SELECT no_in_series FROM table_228973_11 WHERE directed_by = \"David James Elliott\""
} |
### INSTRUCTION
What is the salary and name of the employee who has the most number of certificates on aircrafts with distance more than 5000?
### INPUT
CREATE TABLE Aircraft (aid VARCHAR, distance INTEGER); CREATE TABLE Employee (name VARCHAR, eid VARCHAR); CREATE TABLE Certificate (eid VARCHAR, aid VARCHAR)
### OUTPUT
SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.distance > 5000 GROUP BY T1.eid ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE Aircraft (aid VARCHAR, distance INTEGER); CREATE TABLE Employee (name VARCHAR, eid VARCHAR); CREATE TABLE Certificate (eid VARCHAR, aid VARCHAR)",
"instruction": "What is the salary and name of the employee who has the most number of certificates on aircrafts with distance more than 5000?",
"output": "SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.distance > 5000 GROUP BY T1.eid ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
WHAT IS THE Q1 POS WITH A 1:31.826 Q1 TIME, AND Q1 ORDER OF 7?
### INPUT
CREATE TABLE table_name_90 (q1_pos INTEGER, q1_time VARCHAR, q1_order VARCHAR)
### OUTPUT
SELECT MAX(q1_pos) FROM table_name_90 WHERE q1_time = "1:31.826" AND q1_order > 7 | {
"input": "CREATE TABLE table_name_90 (q1_pos INTEGER, q1_time VARCHAR, q1_order VARCHAR)",
"instruction": "WHAT IS THE Q1 POS WITH A 1:31.826 Q1 TIME, AND Q1 ORDER OF 7?",
"output": "SELECT MAX(q1_pos) FROM table_name_90 WHERE q1_time = \"1:31.826\" AND q1_order > 7"
} |
### INSTRUCTION
What is the total number of Laps when collision shows for time for Switzerland and less than 11 for grid?
### INPUT
CREATE TABLE table_name_39 (laps VARCHAR, grid VARCHAR, time VARCHAR, team VARCHAR)
### OUTPUT
SELECT COUNT(laps) FROM table_name_39 WHERE time = "collision" AND team = "switzerland" AND grid < 11 | {
"input": "CREATE TABLE table_name_39 (laps VARCHAR, grid VARCHAR, time VARCHAR, team VARCHAR)",
"instruction": "What is the total number of Laps when collision shows for time for Switzerland and less than 11 for grid?",
"output": "SELECT COUNT(laps) FROM table_name_39 WHERE time = \"collision\" AND team = \"switzerland\" AND grid < 11"
} |
### INSTRUCTION
What is the mean level number when the example name is lower snake and the approximate number is hus is less than 370?
### INPUT
CREATE TABLE table_name_42 (level INTEGER, example_name VARCHAR, number_of_hus__approximate_ VARCHAR)
### OUTPUT
SELECT AVG(level) FROM table_name_42 WHERE example_name = "lower snake" AND number_of_hus__approximate_ < 370 | {
"input": "CREATE TABLE table_name_42 (level INTEGER, example_name VARCHAR, number_of_hus__approximate_ VARCHAR)",
"instruction": "What is the mean level number when the example name is lower snake and the approximate number is hus is less than 370?",
"output": "SELECT AVG(level) FROM table_name_42 WHERE example_name = \"lower snake\" AND number_of_hus__approximate_ < 370"
} |
### INSTRUCTION
What is the sum of all mintage created by Pierre Leduc?
### INPUT
CREATE TABLE table_name_61 (mintage INTEGER, artist VARCHAR)
### OUTPUT
SELECT SUM(mintage) FROM table_name_61 WHERE artist = "pierre leduc" | {
"input": "CREATE TABLE table_name_61 (mintage INTEGER, artist VARCHAR)",
"instruction": "What is the sum of all mintage created by Pierre Leduc?",
"output": "SELECT SUM(mintage) FROM table_name_61 WHERE artist = \"pierre leduc\""
} |
### INSTRUCTION
List document id of documents status is done and document type is Paper and the document is shipped by shipping agent named USPS.
### INPUT
CREATE TABLE Ref_Shipping_Agents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR); CREATE TABLE Documents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR)
### OUTPUT
SELECT document_id FROM Documents WHERE document_status_code = "done" AND document_type_code = "Paper" INTERSECT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = "USPS" | {
"input": "CREATE TABLE Ref_Shipping_Agents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR); CREATE TABLE Documents (document_id VARCHAR, document_status_code VARCHAR, document_type_code VARCHAR)",
"instruction": "List document id of documents status is done and document type is Paper and the document is shipped by shipping agent named USPS.",
"output": "SELECT document_id FROM Documents WHERE document_status_code = \"done\" AND document_type_code = \"Paper\" INTERSECT SELECT document_id FROM Documents JOIN Ref_Shipping_Agents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Ref_Shipping_Agents.shipping_agent_name = \"USPS\""
} |
### INSTRUCTION
What is the round for a year earlier than 1987?
### INPUT
CREATE TABLE table_name_19 (round VARCHAR, year INTEGER)
### OUTPUT
SELECT round FROM table_name_19 WHERE year < 1987 | {
"input": "CREATE TABLE table_name_19 (round VARCHAR, year INTEGER)",
"instruction": "What is the round for a year earlier than 1987?",
"output": "SELECT round FROM table_name_19 WHERE year < 1987"
} |
### INSTRUCTION
What language is telemarket for you with a content of televendita?
### INPUT
CREATE TABLE table_name_59 (language VARCHAR, content VARCHAR, television_service VARCHAR)
### OUTPUT
SELECT language FROM table_name_59 WHERE content = "televendita" AND television_service = "telemarket for you" | {
"input": "CREATE TABLE table_name_59 (language VARCHAR, content VARCHAR, television_service VARCHAR)",
"instruction": "What language is telemarket for you with a content of televendita?",
"output": "SELECT language FROM table_name_59 WHERE content = \"televendita\" AND television_service = \"telemarket for you\""
} |
### INSTRUCTION
What is Claude Harmon's Place?
### INPUT
CREATE TABLE table_name_37 (place VARCHAR, player VARCHAR)
### OUTPUT
SELECT place FROM table_name_37 WHERE player = "claude harmon" | {
"input": "CREATE TABLE table_name_37 (place VARCHAR, player VARCHAR)",
"instruction": "What is Claude Harmon's Place?",
"output": "SELECT place FROM table_name_37 WHERE player = \"claude harmon\""
} |
### INSTRUCTION
Show all city with a branch opened in 2001 and a branch with more than 100 membership.
### INPUT
CREATE TABLE branch (city VARCHAR, open_year VARCHAR, membership_amount VARCHAR)
### OUTPUT
SELECT city FROM branch WHERE open_year = 2001 AND membership_amount > 100 | {
"input": "CREATE TABLE branch (city VARCHAR, open_year VARCHAR, membership_amount VARCHAR)",
"instruction": "Show all city with a branch opened in 2001 and a branch with more than 100 membership.",
"output": "SELECT city FROM branch WHERE open_year = 2001 AND membership_amount > 100"
} |
### INSTRUCTION
How many endowments does Mosaic Stadium have?
### INPUT
CREATE TABLE table_12896884_1 (endowment VARCHAR, football_stadium VARCHAR)
### OUTPUT
SELECT COUNT(endowment) FROM table_12896884_1 WHERE football_stadium = "Mosaic Stadium" | {
"input": "CREATE TABLE table_12896884_1 (endowment VARCHAR, football_stadium VARCHAR)",
"instruction": "How many endowments does Mosaic Stadium have?",
"output": "SELECT COUNT(endowment) FROM table_12896884_1 WHERE football_stadium = \"Mosaic Stadium\""
} |
### INSTRUCTION
What is Position in Table, when Replaced by is "José Pekerman"?
### INPUT
CREATE TABLE table_name_43 (position_in_table VARCHAR, replaced_by VARCHAR)
### OUTPUT
SELECT position_in_table FROM table_name_43 WHERE replaced_by = "josé pekerman" | {
"input": "CREATE TABLE table_name_43 (position_in_table VARCHAR, replaced_by VARCHAR)",
"instruction": "What is Position in Table, when Replaced by is \"José Pekerman\"?",
"output": "SELECT position_in_table FROM table_name_43 WHERE replaced_by = \"josé pekerman\""
} |
### INSTRUCTION
Which Lead has a Third of randy ferbey (skip), a Second of scott pfeifer, and a Season of 2009–10?
### INPUT
CREATE TABLE table_name_21 (lead VARCHAR, season VARCHAR, third VARCHAR, second VARCHAR)
### OUTPUT
SELECT lead FROM table_name_21 WHERE third = "randy ferbey (skip)" AND second = "scott pfeifer" AND season = "2009–10" | {
"input": "CREATE TABLE table_name_21 (lead VARCHAR, season VARCHAR, third VARCHAR, second VARCHAR)",
"instruction": "Which Lead has a Third of randy ferbey (skip), a Second of scott pfeifer, and a Season of 2009–10?",
"output": "SELECT lead FROM table_name_21 WHERE third = \"randy ferbey (skip)\" AND second = \"scott pfeifer\" AND season = \"2009–10\""
} |
### INSTRUCTION
What is the name of the museum that had no visitor yet?
### INPUT
CREATE TABLE visit (name VARCHAR, Museum_ID VARCHAR, museum_id VARCHAR); CREATE TABLE museum (name VARCHAR, Museum_ID VARCHAR, museum_id VARCHAR)
### OUTPUT
SELECT name FROM museum WHERE NOT Museum_ID IN (SELECT museum_id FROM visit) | {
"input": "CREATE TABLE visit (name VARCHAR, Museum_ID VARCHAR, museum_id VARCHAR); CREATE TABLE museum (name VARCHAR, Museum_ID VARCHAR, museum_id VARCHAR)",
"instruction": "What is the name of the museum that had no visitor yet?",
"output": "SELECT name FROM museum WHERE NOT Museum_ID IN (SELECT museum_id FROM visit)"
} |
### INSTRUCTION
What is the highest stage number for a year later than 1948, leader at the summit was group, and finish was Bagnères-De-Bigorre?
### INPUT
CREATE TABLE table_name_36 (stage INTEGER, finish VARCHAR, year VARCHAR, leader_at_the_summit VARCHAR)
### OUTPUT
SELECT MAX(stage) FROM table_name_36 WHERE year > 1948 AND leader_at_the_summit = "group" AND finish = "bagnères-de-bigorre" | {
"input": "CREATE TABLE table_name_36 (stage INTEGER, finish VARCHAR, year VARCHAR, leader_at_the_summit VARCHAR)",
"instruction": "What is the highest stage number for a year later than 1948, leader at the summit was group, and finish was Bagnères-De-Bigorre?",
"output": "SELECT MAX(stage) FROM table_name_36 WHERE year > 1948 AND leader_at_the_summit = \"group\" AND finish = \"bagnères-de-bigorre\""
} |
### INSTRUCTION
Which Round has a College of arizona?
### INPUT
CREATE TABLE table_name_26 (round INTEGER, college VARCHAR)
### OUTPUT
SELECT MIN(round) FROM table_name_26 WHERE college = "arizona" | {
"input": "CREATE TABLE table_name_26 (round INTEGER, college VARCHAR)",
"instruction": "Which Round has a College of arizona?",
"output": "SELECT MIN(round) FROM table_name_26 WHERE college = \"arizona\""
} |
### INSTRUCTION
Find the names of the customers who have order status both "On Road" and "Shipped".
### INPUT
CREATE TABLE orders (customer_id VARCHAR, order_status 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.order_status = "On Road" INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "Shipped" | {
"input": "CREATE TABLE orders (customer_id VARCHAR, order_status VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR)",
"instruction": "Find the names of the customers who have order status both \"On Road\" and \"Shipped\".",
"output": "SELECT T1.customer_name 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_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"Shipped\""
} |
### INSTRUCTION
When is the Opponent of new england patriots?
### INPUT
CREATE TABLE table_name_3 (time___et__ VARCHAR, opponent VARCHAR)
### OUTPUT
SELECT time___et__ FROM table_name_3 WHERE opponent = "new england patriots" | {
"input": "CREATE TABLE table_name_3 (time___et__ VARCHAR, opponent VARCHAR)",
"instruction": "When is the Opponent of new england patriots?",
"output": "SELECT time___et__ FROM table_name_3 WHERE opponent = \"new england patriots\""
} |
### INSTRUCTION
Who performed the song named "Le Pop"?
### INPUT
CREATE TABLE Band (firstname VARCHAR, lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR); CREATE TABLE Songs (SongId VARCHAR, Title VARCHAR)
### OUTPUT
SELECT T2.firstname, T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = "Le Pop" | {
"input": "CREATE TABLE Band (firstname VARCHAR, lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR); CREATE TABLE Songs (SongId VARCHAR, Title VARCHAR)",
"instruction": "Who performed the song named \"Le Pop\"?",
"output": "SELECT T2.firstname, T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T3.Title = \"Le Pop\""
} |
### INSTRUCTION
What is the fastest lap with pole position of gilles villeneuve?
### INPUT
CREATE TABLE table_1140077_2 (fastest_lap VARCHAR, pole_position VARCHAR)
### OUTPUT
SELECT fastest_lap FROM table_1140077_2 WHERE pole_position = "Gilles Villeneuve" | {
"input": "CREATE TABLE table_1140077_2 (fastest_lap VARCHAR, pole_position VARCHAR)",
"instruction": "What is the fastest lap with pole position of gilles villeneuve?",
"output": "SELECT fastest_lap FROM table_1140077_2 WHERE pole_position = \"Gilles Villeneuve\""
} |
### INSTRUCTION
What are the country code and first name of the players who won in both tourney WTA Championships and Australian Open?
### INPUT
CREATE TABLE matches (winner_id VARCHAR, tourney_name VARCHAR); CREATE TABLE players (country_code VARCHAR, first_name VARCHAR, player_id VARCHAR)
### OUTPUT
SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'WTA Championships' INTERSECT SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'Australian Open' | {
"input": "CREATE TABLE matches (winner_id VARCHAR, tourney_name VARCHAR); CREATE TABLE players (country_code VARCHAR, first_name VARCHAR, player_id VARCHAR)",
"instruction": "What are the country code and first name of the players who won in both tourney WTA Championships and Australian Open?",
"output": "SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'WTA Championships' INTERSECT SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'Australian Open'"
} |
### INSTRUCTION
What location and it's attendance was the game against the cavaliers?
### INPUT
CREATE TABLE table_23248910_6 (location_attendance VARCHAR, team VARCHAR)
### OUTPUT
SELECT location_attendance FROM table_23248910_6 WHERE team = "Cavaliers" | {
"input": "CREATE TABLE table_23248910_6 (location_attendance VARCHAR, team VARCHAR)",
"instruction": "What location and it's attendance was the game against the cavaliers?",
"output": "SELECT location_attendance FROM table_23248910_6 WHERE team = \"Cavaliers\""
} |
### INSTRUCTION
What is the Right Ascension with a Diffuse Nebula Object Type has a °42′30″ Declination and a NGC less than 6995?
### INPUT
CREATE TABLE table_name_14 (right_ascension___j2000__ VARCHAR, declination___j2000__ VARCHAR, ngc_number VARCHAR, object_type VARCHAR)
### OUTPUT
SELECT right_ascension___j2000__ FROM table_name_14 WHERE ngc_number < 6995 AND object_type = "diffuse nebula" AND declination___j2000__ = "°42′30″" | {
"input": "CREATE TABLE table_name_14 (right_ascension___j2000__ VARCHAR, declination___j2000__ VARCHAR, ngc_number VARCHAR, object_type VARCHAR)",
"instruction": "What is the Right Ascension with a Diffuse Nebula Object Type has a °42′30″ Declination and a NGC less than 6995?",
"output": "SELECT right_ascension___j2000__ FROM table_name_14 WHERE ngc_number < 6995 AND object_type = \"diffuse nebula\" AND declination___j2000__ = \"°42′30″\""
} |
### INSTRUCTION
Bandwidth (MB/s) smaller than 4800, and a Bus width (bits) smaller than 16 has what highest Clock rate (MHz)?
### INPUT
CREATE TABLE table_name_75 (clock_rate__mhz_ INTEGER, bandwidth__mb_s_ VARCHAR, bus_width__bits_ VARCHAR)
### OUTPUT
SELECT MAX(clock_rate__mhz_) FROM table_name_75 WHERE bandwidth__mb_s_ < 4800 AND bus_width__bits_ < 16 | {
"input": "CREATE TABLE table_name_75 (clock_rate__mhz_ INTEGER, bandwidth__mb_s_ VARCHAR, bus_width__bits_ VARCHAR)",
"instruction": "Bandwidth (MB/s) smaller than 4800, and a Bus width (bits) smaller than 16 has what highest Clock rate (MHz)?",
"output": "SELECT MAX(clock_rate__mhz_) FROM table_name_75 WHERE bandwidth__mb_s_ < 4800 AND bus_width__bits_ < 16"
} |
### INSTRUCTION
Which championship had the final opponents of nathalie dechy andy ram?
### INPUT
CREATE TABLE table_1729366_2 (championship VARCHAR, opponents_in_the_final VARCHAR)
### OUTPUT
SELECT championship FROM table_1729366_2 WHERE opponents_in_the_final = "Nathalie Dechy Andy Ram" | {
"input": "CREATE TABLE table_1729366_2 (championship VARCHAR, opponents_in_the_final VARCHAR)",
"instruction": "Which championship had the final opponents of nathalie dechy andy ram?",
"output": "SELECT championship FROM table_1729366_2 WHERE opponents_in_the_final = \"Nathalie Dechy Andy Ram\""
} |
### INSTRUCTION
What is the total in the case when there are more than 4 associate professors, 5 lecturers and fewer professors than 40?
### INPUT
CREATE TABLE table_name_33 (total VARCHAR, professors VARCHAR, associate_professors VARCHAR, lecturers VARCHAR)
### OUTPUT
SELECT COUNT(total) FROM table_name_33 WHERE associate_professors > 4 AND lecturers = 5 AND professors < 40 | {
"input": "CREATE TABLE table_name_33 (total VARCHAR, professors VARCHAR, associate_professors VARCHAR, lecturers VARCHAR)",
"instruction": "What is the total in the case when there are more than 4 associate professors, 5 lecturers and fewer professors than 40?",
"output": "SELECT COUNT(total) FROM table_name_33 WHERE associate_professors > 4 AND lecturers = 5 AND professors < 40"
} |
### INSTRUCTION
What is the least amount of freight carried when the super b capacity reached was February 26?
### INPUT
CREATE TABLE table_12791809_1 (freight_carried_s_tonne INTEGER, super_b_capacity_reached_ VARCHAR, _citation_needed_ VARCHAR)
### OUTPUT
SELECT MIN(freight_carried_s_tonne) FROM table_12791809_1 WHERE super_b_capacity_reached_[_citation_needed_] = "February 26" | {
"input": "CREATE TABLE table_12791809_1 (freight_carried_s_tonne INTEGER, super_b_capacity_reached_ VARCHAR, _citation_needed_ VARCHAR)",
"instruction": "What is the least amount of freight carried when the super b capacity reached was February 26?",
"output": "SELECT MIN(freight_carried_s_tonne) FROM table_12791809_1 WHERE super_b_capacity_reached_[_citation_needed_] = \"February 26\""
} |
### INSTRUCTION
What Country has the Play The Libation Bearers a Base of Mecklenburg?
### INPUT
CREATE TABLE table_name_52 (country VARCHAR, base VARCHAR, play VARCHAR)
### OUTPUT
SELECT country FROM table_name_52 WHERE base = "mecklenburg" AND play = "the libation bearers" | {
"input": "CREATE TABLE table_name_52 (country VARCHAR, base VARCHAR, play VARCHAR)",
"instruction": "What Country has the Play The Libation Bearers a Base of Mecklenburg?",
"output": "SELECT country FROM table_name_52 WHERE base = \"mecklenburg\" AND play = \"the libation bearers\""
} |
### INSTRUCTION
Find all students taught by OTHA MOYER. Output the first and last names of the students.
### INPUT
CREATE TABLE list (firstname VARCHAR, lastname VARCHAR, classroom VARCHAR); CREATE TABLE teachers (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)
### OUTPUT
SELECT T1.firstname, T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "OTHA" AND T2.lastname = "MOYER" | {
"input": "CREATE TABLE list (firstname VARCHAR, lastname VARCHAR, classroom VARCHAR); CREATE TABLE teachers (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)",
"instruction": "Find all students taught by OTHA MOYER. Output the first and last names of the students.",
"output": "SELECT T1.firstname, T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = \"OTHA\" AND T2.lastname = \"MOYER\""
} |
### INSTRUCTION
Which higher harmonics have a speed of 0.0821373?
### INPUT
CREATE TABLE table_name_36 (higher_harmonics VARCHAR, speed VARCHAR)
### OUTPUT
SELECT higher_harmonics FROM table_name_36 WHERE speed = "0.0821373" | {
"input": "CREATE TABLE table_name_36 (higher_harmonics VARCHAR, speed VARCHAR)",
"instruction": "Which higher harmonics have a speed of 0.0821373?",
"output": "SELECT higher_harmonics FROM table_name_36 WHERE speed = \"0.0821373\""
} |
### INSTRUCTION
When hittite old kingdom , minoan eruption is the ubaid period in mesopotamia what is the copper age?
### INPUT
CREATE TABLE table_23537091_1 (copper_age VARCHAR, ubaid_period_in_mesopotamia VARCHAR)
### OUTPUT
SELECT copper_age FROM table_23537091_1 WHERE ubaid_period_in_mesopotamia = "Hittite Old Kingdom , Minoan eruption" | {
"input": "CREATE TABLE table_23537091_1 (copper_age VARCHAR, ubaid_period_in_mesopotamia VARCHAR)",
"instruction": "When hittite old kingdom , minoan eruption is the ubaid period in mesopotamia what is the copper age?",
"output": "SELECT copper_age FROM table_23537091_1 WHERE ubaid_period_in_mesopotamia = \"Hittite Old Kingdom , Minoan eruption\""
} |
### INSTRUCTION
What was the starting date for the Minister for agriculture, fisheries and forestry that is in order number 25??
### INPUT
CREATE TABLE table_name_47 (term_start VARCHAR, title VARCHAR, order VARCHAR)
### OUTPUT
SELECT term_start FROM table_name_47 WHERE title = "minister for agriculture, fisheries and forestry" AND order = "25" | {
"input": "CREATE TABLE table_name_47 (term_start VARCHAR, title VARCHAR, order VARCHAR)",
"instruction": "What was the starting date for the Minister for agriculture, fisheries and forestry that is in order number 25??",
"output": "SELECT term_start FROM table_name_47 WHERE title = \"minister for agriculture, fisheries and forestry\" AND order = \"25\""
} |
### INSTRUCTION
What is the Population of the New Bandon Parish with an Area km 2 larger than 326.76?
### INPUT
CREATE TABLE table_name_97 (population INTEGER, area_km_2 VARCHAR, official_name VARCHAR)
### OUTPUT
SELECT MAX(population) FROM table_name_97 WHERE area_km_2 > 326.76 AND official_name = "new bandon" | {
"input": "CREATE TABLE table_name_97 (population INTEGER, area_km_2 VARCHAR, official_name VARCHAR)",
"instruction": "What is the Population of the New Bandon Parish with an Area km 2 larger than 326.76?",
"output": "SELECT MAX(population) FROM table_name_97 WHERE area_km_2 > 326.76 AND official_name = \"new bandon\""
} |
### INSTRUCTION
In what round did Al Unser win at Wisconsin State Fair Park Speedway?
### INPUT
CREATE TABLE table_22673872_1 (rnd INTEGER, winning_driver VARCHAR, track VARCHAR)
### OUTPUT
SELECT MIN(rnd) FROM table_22673872_1 WHERE winning_driver = "Al Unser" AND track = "Wisconsin State Fair Park Speedway" | {
"input": "CREATE TABLE table_22673872_1 (rnd INTEGER, winning_driver VARCHAR, track VARCHAR)",
"instruction": "In what round did Al Unser win at Wisconsin State Fair Park Speedway? ",
"output": "SELECT MIN(rnd) FROM table_22673872_1 WHERE winning_driver = \"Al Unser\" AND track = \"Wisconsin State Fair Park Speedway\""
} |
### INSTRUCTION
What is the highest Ranking Round Rank for Russia with a Final Rank over 11?
### INPUT
CREATE TABLE table_name_3 (ranking_round_rank INTEGER, nation VARCHAR, final_rank VARCHAR)
### OUTPUT
SELECT MAX(ranking_round_rank) FROM table_name_3 WHERE nation = "russia" AND final_rank > 11 | {
"input": "CREATE TABLE table_name_3 (ranking_round_rank INTEGER, nation VARCHAR, final_rank VARCHAR)",
"instruction": "What is the highest Ranking Round Rank for Russia with a Final Rank over 11?",
"output": "SELECT MAX(ranking_round_rank) FROM table_name_3 WHERE nation = \"russia\" AND final_rank > 11"
} |
### INSTRUCTION
What are the notes for the Mandarin Chinese program on CTV earlier than 2013?
### INPUT
CREATE TABLE table_name_40 (notes VARCHAR, network VARCHAR, year VARCHAR, language VARCHAR)
### OUTPUT
SELECT notes FROM table_name_40 WHERE year < 2013 AND language = "mandarin chinese" AND network = "ctv" | {
"input": "CREATE TABLE table_name_40 (notes VARCHAR, network VARCHAR, year VARCHAR, language VARCHAR)",
"instruction": "What are the notes for the Mandarin Chinese program on CTV earlier than 2013?",
"output": "SELECT notes FROM table_name_40 WHERE year < 2013 AND language = \"mandarin chinese\" AND network = \"ctv\""
} |
### INSTRUCTION
What is Opponent, when Location/Attendance is "Mellon Arena - 17,132"?
### INPUT
CREATE TABLE table_name_67 (opponent VARCHAR, location_attendance VARCHAR)
### OUTPUT
SELECT opponent FROM table_name_67 WHERE location_attendance = "mellon arena - 17,132" | {
"input": "CREATE TABLE table_name_67 (opponent VARCHAR, location_attendance VARCHAR)",
"instruction": "What is Opponent, when Location/Attendance is \"Mellon Arena - 17,132\"?",
"output": "SELECT opponent FROM table_name_67 WHERE location_attendance = \"mellon arena - 17,132\""
} |
### INSTRUCTION
Tell me the driver for grid less than 19 and Laps more than 59 with time/retired of +0.294
### INPUT
CREATE TABLE table_name_41 (driver VARCHAR, time_retired VARCHAR, grid VARCHAR, laps VARCHAR)
### OUTPUT
SELECT driver FROM table_name_41 WHERE grid < 19 AND laps > 59 AND time_retired = "+0.294" | {
"input": "CREATE TABLE table_name_41 (driver VARCHAR, time_retired VARCHAR, grid VARCHAR, laps VARCHAR)",
"instruction": "Tell me the driver for grid less than 19 and Laps more than 59 with time/retired of +0.294",
"output": "SELECT driver FROM table_name_41 WHERE grid < 19 AND laps > 59 AND time_retired = \"+0.294\""
} |
### INSTRUCTION
Where is the poll source when Hillary clinton was the democrat, john mccain was the republican, and the margin of error was less than 4.5 on May 2-7, 2007?
### INPUT
CREATE TABLE table_name_41 (poll_source VARCHAR, date VARCHAR, republican VARCHAR, democrat VARCHAR, margin_of_error VARCHAR)
### OUTPUT
SELECT poll_source FROM table_name_41 WHERE democrat = "hillary clinton" AND margin_of_error < 4.5 AND republican = "john mccain" AND date = "may 2-7, 2007" | {
"input": "CREATE TABLE table_name_41 (poll_source VARCHAR, date VARCHAR, republican VARCHAR, democrat VARCHAR, margin_of_error VARCHAR)",
"instruction": "Where is the poll source when Hillary clinton was the democrat, john mccain was the republican, and the margin of error was less than 4.5 on May 2-7, 2007?",
"output": "SELECT poll_source FROM table_name_41 WHERE democrat = \"hillary clinton\" AND margin_of_error < 4.5 AND republican = \"john mccain\" AND date = \"may 2-7, 2007\""
} |
### INSTRUCTION
What was the original airdate of the episode "The Cold Turkey", which was viewed by 3.73 million viewers?
### INPUT
CREATE TABLE table_17467578_1 (original_airdate VARCHAR, us_viewers__million_ VARCHAR)
### OUTPUT
SELECT original_airdate FROM table_17467578_1 WHERE us_viewers__million_ = "3.73" | {
"input": "CREATE TABLE table_17467578_1 (original_airdate VARCHAR, us_viewers__million_ VARCHAR)",
"instruction": "What was the original airdate of the episode \"The Cold Turkey\", which was viewed by 3.73 million viewers?",
"output": "SELECT original_airdate FROM table_17467578_1 WHERE us_viewers__million_ = \"3.73\""
} |
### INSTRUCTION
What is the Postion, when the Club/Team is Warroad Lakers, and when the Name is Roger Christian?
### INPUT
CREATE TABLE table_name_13 (position VARCHAR, club_team VARCHAR, name VARCHAR)
### OUTPUT
SELECT position FROM table_name_13 WHERE club_team = "warroad lakers" AND name = "roger christian" | {
"input": "CREATE TABLE table_name_13 (position VARCHAR, club_team VARCHAR, name VARCHAR)",
"instruction": "What is the Postion, when the Club/Team is Warroad Lakers, and when the Name is Roger Christian?",
"output": "SELECT position FROM table_name_13 WHERE club_team = \"warroad lakers\" AND name = \"roger christian\""
} |
### INSTRUCTION
Show the name and location of track with 1 race.
### INPUT
CREATE TABLE race (track_id VARCHAR); CREATE TABLE track (name VARCHAR, location VARCHAR, track_id VARCHAR)
### OUTPUT
SELECT T2.name, T2.location FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id HAVING COUNT(*) = 1 | {
"input": "CREATE TABLE race (track_id VARCHAR); CREATE TABLE track (name VARCHAR, location VARCHAR, track_id VARCHAR)",
"instruction": "Show the name and location of track with 1 race.",
"output": "SELECT T2.name, T2.location FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id HAVING COUNT(*) = 1"
} |
### INSTRUCTION
What type is the sorrento to sapri course with a distance of km (mi)?
### INPUT
CREATE TABLE table_name_23 (type VARCHAR, distance VARCHAR, course VARCHAR)
### OUTPUT
SELECT type FROM table_name_23 WHERE distance = "km (mi)" AND course = "sorrento to sapri" | {
"input": "CREATE TABLE table_name_23 (type VARCHAR, distance VARCHAR, course VARCHAR)",
"instruction": "What type is the sorrento to sapri course with a distance of km (mi)?",
"output": "SELECT type FROM table_name_23 WHERE distance = \"km (mi)\" AND course = \"sorrento to sapri\""
} |
### INSTRUCTION
Which analog channel has a digital channel of 4.1?
### INPUT
CREATE TABLE table_name_31 (analog_channel VARCHAR, digital_channel VARCHAR)
### OUTPUT
SELECT analog_channel FROM table_name_31 WHERE digital_channel = "4.1" | {
"input": "CREATE TABLE table_name_31 (analog_channel VARCHAR, digital_channel VARCHAR)",
"instruction": "Which analog channel has a digital channel of 4.1?",
"output": "SELECT analog_channel FROM table_name_31 WHERE digital_channel = \"4.1\""
} |
### INSTRUCTION
At what location was the March 17 race held?
### INPUT
CREATE TABLE table_29285076_2 (location VARCHAR, date VARCHAR)
### OUTPUT
SELECT location FROM table_29285076_2 WHERE date = "March 17" | {
"input": "CREATE TABLE table_29285076_2 (location VARCHAR, date VARCHAR)",
"instruction": "At what location was the March 17 race held?",
"output": "SELECT location FROM table_29285076_2 WHERE date = \"March 17\""
} |
### INSTRUCTION
What is the type when Rangers are the moving from?
### INPUT
CREATE TABLE table_name_40 (type VARCHAR, moving_from VARCHAR)
### OUTPUT
SELECT type FROM table_name_40 WHERE moving_from = "rangers" | {
"input": "CREATE TABLE table_name_40 (type VARCHAR, moving_from VARCHAR)",
"instruction": "What is the type when Rangers are the moving from?",
"output": "SELECT type FROM table_name_40 WHERE moving_from = \"rangers\""
} |
### INSTRUCTION
Which Award has a Group of césar awards, and a Result of nominated, and a Year larger than 2001, and a Film of 8 women (8 femmes)?
### INPUT
CREATE TABLE table_name_39 (award VARCHAR, film VARCHAR, year VARCHAR, group VARCHAR, result VARCHAR)
### OUTPUT
SELECT award FROM table_name_39 WHERE group = "césar awards" AND result = "nominated" AND year > 2001 AND film = "8 women (8 femmes)" | {
"input": "CREATE TABLE table_name_39 (award VARCHAR, film VARCHAR, year VARCHAR, group VARCHAR, result VARCHAR)",
"instruction": "Which Award has a Group of césar awards, and a Result of nominated, and a Year larger than 2001, and a Film of 8 women (8 femmes)?",
"output": "SELECT award FROM table_name_39 WHERE group = \"césar awards\" AND result = \"nominated\" AND year > 2001 AND film = \"8 women (8 femmes)\""
} |
### INSTRUCTION
When playing on grass who was the opponents in a year greater than 1993, and playing with Jonas Björkman?
### INPUT
CREATE TABLE table_name_10 (opponents VARCHAR, partner VARCHAR, surface VARCHAR, year VARCHAR)
### OUTPUT
SELECT opponents FROM table_name_10 WHERE surface = "grass" AND year > 1993 AND partner = "jonas björkman" | {
"input": "CREATE TABLE table_name_10 (opponents VARCHAR, partner VARCHAR, surface VARCHAR, year VARCHAR)",
"instruction": "When playing on grass who was the opponents in a year greater than 1993, and playing with Jonas Björkman?",
"output": "SELECT opponents FROM table_name_10 WHERE surface = \"grass\" AND year > 1993 AND partner = \"jonas björkman\""
} |
### INSTRUCTION
What is total population of Saint-Agapit (code 33045)?
### INPUT
CREATE TABLE table_name_99 (region INTEGER, name VARCHAR, code VARCHAR)
### OUTPUT
SELECT SUM(region) FROM table_name_99 WHERE name = "saint-agapit" AND code < 33045 | {
"input": "CREATE TABLE table_name_99 (region INTEGER, name VARCHAR, code VARCHAR)",
"instruction": "What is total population of Saint-Agapit (code 33045)?",
"output": "SELECT SUM(region) FROM table_name_99 WHERE name = \"saint-agapit\" AND code < 33045"
} |
### INSTRUCTION
What Entrepreneurs requested £60,000?
### INPUT
CREATE TABLE table_name_27 (entrepreneur_s_ VARCHAR, money_requested__£_ VARCHAR)
### OUTPUT
SELECT entrepreneur_s_ FROM table_name_27 WHERE money_requested__£_ = "60,000" | {
"input": "CREATE TABLE table_name_27 (entrepreneur_s_ VARCHAR, money_requested__£_ VARCHAR)",
"instruction": "What Entrepreneurs requested £60,000?",
"output": "SELECT entrepreneur_s_ FROM table_name_27 WHERE money_requested__£_ = \"60,000\""
} |
### INSTRUCTION
It has a FA Cup Goals smaller than 4, and a FA Cup Apps larger than 7, what is the total number of total apps?
### INPUT
CREATE TABLE table_name_6 (total_apps VARCHAR, fa_cup_goals VARCHAR, fa_cup_apps VARCHAR)
### OUTPUT
SELECT COUNT(total_apps) FROM table_name_6 WHERE fa_cup_goals < 4 AND fa_cup_apps > 7 | {
"input": "CREATE TABLE table_name_6 (total_apps VARCHAR, fa_cup_goals VARCHAR, fa_cup_apps VARCHAR)",
"instruction": "It has a FA Cup Goals smaller than 4, and a FA Cup Apps larger than 7, what is the total number of total apps?",
"output": "SELECT COUNT(total_apps) FROM table_name_6 WHERE fa_cup_goals < 4 AND fa_cup_apps > 7"
} |
### INSTRUCTION
what is the average water sqmi with a population (2010) more than 47 in the Brenna Township with Longitude less than -97.171507
### INPUT
CREATE TABLE table_name_8 (water__sqmi_ INTEGER, longitude VARCHAR, pop__2010_ VARCHAR, township VARCHAR)
### OUTPUT
SELECT AVG(water__sqmi_) FROM table_name_8 WHERE pop__2010_ > 47 AND township = "brenna" AND longitude < -97.171507 | {
"input": "CREATE TABLE table_name_8 (water__sqmi_ INTEGER, longitude VARCHAR, pop__2010_ VARCHAR, township VARCHAR)",
"instruction": "what is the average water sqmi with a population (2010) more than 47 in the Brenna Township with Longitude less than -97.171507",
"output": "SELECT AVG(water__sqmi_) FROM table_name_8 WHERE pop__2010_ > 47 AND township = \"brenna\" AND longitude < -97.171507"
} |
### INSTRUCTION
What was the delivery date when s2 (lst) type, s2 (frigate) type, c1-m type was delivered?
### INPUT
CREATE TABLE table_11552751_2 (ship_types_delivered VARCHAR)
### OUTPUT
SELECT 1 AS st_ship_delivery_date FROM table_11552751_2 WHERE ship_types_delivered = "S2 (LST) type, S2 (frigate) type, C1-M type" | {
"input": "CREATE TABLE table_11552751_2 (ship_types_delivered VARCHAR)",
"instruction": "What was the delivery date when s2 (lst) type, s2 (frigate) type, c1-m type was delivered?",
"output": "SELECT 1 AS st_ship_delivery_date FROM table_11552751_2 WHERE ship_types_delivered = \"S2 (LST) type, S2 (frigate) type, C1-M type\""
} |
### INSTRUCTION
What is Authors, when Novelty is Gen Et Sp Nov, and when Name is Lanthanocephalus?
### INPUT
CREATE TABLE table_name_13 (authors VARCHAR, novelty VARCHAR, name VARCHAR)
### OUTPUT
SELECT authors FROM table_name_13 WHERE novelty = "gen et sp nov" AND name = "lanthanocephalus" | {
"input": "CREATE TABLE table_name_13 (authors VARCHAR, novelty VARCHAR, name VARCHAR)",
"instruction": "What is Authors, when Novelty is Gen Et Sp Nov, and when Name is Lanthanocephalus?",
"output": "SELECT authors FROM table_name_13 WHERE novelty = \"gen et sp nov\" AND name = \"lanthanocephalus\""
} |
### INSTRUCTION
What is the name of the pregame host when the Play-by-play was by JP Dellacamera, earlier than 2009, and Color commentator(s) was Ty Keough?
### INPUT
CREATE TABLE table_name_67 (pregame_host VARCHAR, color_commentator_s_ VARCHAR, play_by_play VARCHAR, year VARCHAR)
### OUTPUT
SELECT pregame_host FROM table_name_67 WHERE play_by_play = "jp dellacamera" AND year < 2009 AND color_commentator_s_ = "ty keough" | {
"input": "CREATE TABLE table_name_67 (pregame_host VARCHAR, color_commentator_s_ VARCHAR, play_by_play VARCHAR, year VARCHAR)",
"instruction": "What is the name of the pregame host when the Play-by-play was by JP Dellacamera, earlier than 2009, and Color commentator(s) was Ty Keough?",
"output": "SELECT pregame_host FROM table_name_67 WHERE play_by_play = \"jp dellacamera\" AND year < 2009 AND color_commentator_s_ = \"ty keough\""
} |
### INSTRUCTION
What is donovan's surname?
### INPUT
CREATE TABLE table_name_12 (surname VARCHAR, first VARCHAR)
### OUTPUT
SELECT surname FROM table_name_12 WHERE first = "donovan" | {
"input": "CREATE TABLE table_name_12 (surname VARCHAR, first VARCHAR)",
"instruction": "What is donovan's surname?",
"output": "SELECT surname FROM table_name_12 WHERE first = \"donovan\""
} |
### INSTRUCTION
What division is Traktor Tashkent in 2005?
### INPUT
CREATE TABLE table_name_83 (division VARCHAR, team VARCHAR, season VARCHAR)
### OUTPUT
SELECT division FROM table_name_83 WHERE team = "traktor tashkent" AND season = "2005" | {
"input": "CREATE TABLE table_name_83 (division VARCHAR, team VARCHAR, season VARCHAR)",
"instruction": "What division is Traktor Tashkent in 2005?",
"output": "SELECT division FROM table_name_83 WHERE team = \"traktor tashkent\" AND season = \"2005\""
} |
### INSTRUCTION
List the names of customers who have once canceled the purchase of the product "food" (the item status is "Cancel").
### INPUT
CREATE TABLE orders (customer_id VARCHAR, order_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR); CREATE TABLE order_items (product_id VARCHAR, order_item_status VARCHAR, order_id VARCHAR)
### OUTPUT
SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T3.order_item_status = "Cancel" AND T4.product_name = "food" GROUP BY T1.customer_id HAVING COUNT(*) >= 1 | {
"input": "CREATE TABLE orders (customer_id VARCHAR, order_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR); CREATE TABLE order_items (product_id VARCHAR, order_item_status VARCHAR, order_id VARCHAR)",
"instruction": "List the names of customers who have once canceled the purchase of the product \"food\" (the item status is \"Cancel\").",
"output": "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T3.order_item_status = \"Cancel\" AND T4.product_name = \"food\" GROUP BY T1.customer_id HAVING COUNT(*) >= 1"
} |
### INSTRUCTION
Which sign has a red border and a warning sign?
### INPUT
CREATE TABLE table_name_68 (text_symbol VARCHAR, border VARCHAR, type_of_sign VARCHAR)
### OUTPUT
SELECT text_symbol FROM table_name_68 WHERE border = "red" AND type_of_sign = "warning" | {
"input": "CREATE TABLE table_name_68 (text_symbol VARCHAR, border VARCHAR, type_of_sign VARCHAR)",
"instruction": "Which sign has a red border and a warning sign?",
"output": "SELECT text_symbol FROM table_name_68 WHERE border = \"red\" AND type_of_sign = \"warning\""
} |
### INSTRUCTION
How many countries had a total freshwater withdrawal (km 3 /yr) where the agricultural use (m 3 /p/yr)(in %) was 428(62%)?
### INPUT
CREATE TABLE table_15909409_2 (total_freshwater_withdrawal__km_3__yr_ VARCHAR, agricultural_use__m_3__p_yr__in__percentage_ VARCHAR)
### OUTPUT
SELECT COUNT(total_freshwater_withdrawal__km_3__yr_) FROM table_15909409_2 WHERE agricultural_use__m_3__p_yr__in__percentage_ = "428(62%)" | {
"input": "CREATE TABLE table_15909409_2 (total_freshwater_withdrawal__km_3__yr_ VARCHAR, agricultural_use__m_3__p_yr__in__percentage_ VARCHAR)",
"instruction": "How many countries had a total freshwater withdrawal (km 3 /yr) where the agricultural use (m 3 /p/yr)(in %) was 428(62%)?",
"output": "SELECT COUNT(total_freshwater_withdrawal__km_3__yr_) FROM table_15909409_2 WHERE agricultural_use__m_3__p_yr__in__percentage_ = \"428(62%)\""
} |
### INSTRUCTION
There are communities listed that a percentage larger than 7.6 in 2001, but none of them has 2 seats listed in 2006.
### INPUT
CREATE TABLE table_name_7 (seats_2001 INTEGER, seats_2006 VARCHAR, _percentage_2001 VARCHAR)
### OUTPUT
SELECT SUM(seats_2001) FROM table_name_7 WHERE seats_2006 = 2 AND _percentage_2001 > 7.6 | {
"input": "CREATE TABLE table_name_7 (seats_2001 INTEGER, seats_2006 VARCHAR, _percentage_2001 VARCHAR)",
"instruction": "There are communities listed that a percentage larger than 7.6 in 2001, but none of them has 2 seats listed in 2006.",
"output": "SELECT SUM(seats_2001) FROM table_name_7 WHERE seats_2006 = 2 AND _percentage_2001 > 7.6"
} |
### INSTRUCTION
what is the average rank when the day 1 is less than 71 and the country is romania?
### INPUT
CREATE TABLE table_name_62 (rank INTEGER, day_1 VARCHAR, country VARCHAR)
### OUTPUT
SELECT AVG(rank) FROM table_name_62 WHERE day_1 < 71 AND country = "romania" | {
"input": "CREATE TABLE table_name_62 (rank INTEGER, day_1 VARCHAR, country VARCHAR)",
"instruction": "what is the average rank when the day 1 is less than 71 and the country is romania?",
"output": "SELECT AVG(rank) FROM table_name_62 WHERE day_1 < 71 AND country = \"romania\""
} |
### INSTRUCTION
List the count and id of each product in all the orders.
### INPUT
CREATE TABLE orders (order_id VARCHAR); CREATE TABLE order_items (order_id VARCHAR, product_id VARCHAR); CREATE TABLE products (product_id VARCHAR)
### OUTPUT
SELECT COUNT(*), T3.product_id FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id | {
"input": "CREATE TABLE orders (order_id VARCHAR); CREATE TABLE order_items (order_id VARCHAR, product_id VARCHAR); CREATE TABLE products (product_id VARCHAR)",
"instruction": "List the count and id of each product in all the orders.",
"output": "SELECT COUNT(*), T3.product_id FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id"
} |
### INSTRUCTION
Can you tell me the sum of Swing to gain that has Constituency of caithness, sutherland and easter ross?
### INPUT
CREATE TABLE table_name_48 (swing_to_gain INTEGER, constituency VARCHAR)
### OUTPUT
SELECT SUM(swing_to_gain) FROM table_name_48 WHERE constituency = "caithness, sutherland and easter ross" | {
"input": "CREATE TABLE table_name_48 (swing_to_gain INTEGER, constituency VARCHAR)",
"instruction": "Can you tell me the sum of Swing to gain that has Constituency of caithness, sutherland and easter ross?",
"output": "SELECT SUM(swing_to_gain) FROM table_name_48 WHERE constituency = \"caithness, sutherland and easter ross\""
} |
### INSTRUCTION
Return the different names of cities that are in Asia and for which Chinese is the official language.
### INPUT
CREATE TABLE country (Code VARCHAR, Continent VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, IsOfficial VARCHAR, Language VARCHAR); CREATE TABLE city (Name VARCHAR, CountryCode VARCHAR)
### OUTPUT
SELECT DISTINCT T3.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode JOIN city AS T3 ON T1.Code = T3.CountryCode WHERE T2.IsOfficial = 'T' AND T2.Language = 'Chinese' AND T1.Continent = "Asia" | {
"input": "CREATE TABLE country (Code VARCHAR, Continent VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, IsOfficial VARCHAR, Language VARCHAR); CREATE TABLE city (Name VARCHAR, CountryCode VARCHAR)",
"instruction": "Return the different names of cities that are in Asia and for which Chinese is the official language.",
"output": "SELECT DISTINCT T3.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode JOIN city AS T3 ON T1.Code = T3.CountryCode WHERE T2.IsOfficial = 'T' AND T2.Language = 'Chinese' AND T1.Continent = \"Asia\""
} |
### INSTRUCTION
Find the id of songs that are available in mp4 format and have resolution lower than 1000.
### INPUT
CREATE TABLE song (f_id VARCHAR, formats VARCHAR, resolution INTEGER); CREATE TABLE files (f_id VARCHAR, formats VARCHAR, resolution INTEGER)
### OUTPUT
SELECT f_id FROM files WHERE formats = "mp4" INTERSECT SELECT f_id FROM song WHERE resolution < 1000 | {
"input": "CREATE TABLE song (f_id VARCHAR, formats VARCHAR, resolution INTEGER); CREATE TABLE files (f_id VARCHAR, formats VARCHAR, resolution INTEGER)",
"instruction": "Find the id of songs that are available in mp4 format and have resolution lower than 1000.",
"output": "SELECT f_id FROM files WHERE formats = \"mp4\" INTERSECT SELECT f_id FROM song WHERE resolution < 1000"
} |
### INSTRUCTION
Which Score in the final has an Outcome of winner, and a Date of 3 august 2013?
### INPUT
CREATE TABLE table_name_31 (score_in_the_final VARCHAR, outcome VARCHAR, date VARCHAR)
### OUTPUT
SELECT score_in_the_final FROM table_name_31 WHERE outcome = "winner" AND date = "3 august 2013" | {
"input": "CREATE TABLE table_name_31 (score_in_the_final VARCHAR, outcome VARCHAR, date VARCHAR)",
"instruction": "Which Score in the final has an Outcome of winner, and a Date of 3 august 2013?",
"output": "SELECT score_in_the_final FROM table_name_31 WHERE outcome = \"winner\" AND date = \"3 august 2013\""
} |
### INSTRUCTION
What is Margin, when Match Date is Oct 17, 2007?
### INPUT
CREATE TABLE table_name_86 (margin VARCHAR, match_date VARCHAR)
### OUTPUT
SELECT margin FROM table_name_86 WHERE match_date = "oct 17, 2007" | {
"input": "CREATE TABLE table_name_86 (margin VARCHAR, match_date VARCHAR)",
"instruction": "What is Margin, when Match Date is Oct 17, 2007?",
"output": "SELECT margin FROM table_name_86 WHERE match_date = \"oct 17, 2007\""
} |
### INSTRUCTION
Which Electrics has an Engine of 175cc, bhp (kw), and a Model Name of d10 sports & bushman?
### INPUT
CREATE TABLE table_name_28 (electrics VARCHAR, engine VARCHAR, model_name VARCHAR)
### OUTPUT
SELECT electrics FROM table_name_28 WHERE engine = "175cc, bhp (kw)" AND model_name = "d10 sports & bushman" | {
"input": "CREATE TABLE table_name_28 (electrics VARCHAR, engine VARCHAR, model_name VARCHAR)",
"instruction": "Which Electrics has an Engine of 175cc, bhp (kw), and a Model Name of d10 sports & bushman?",
"output": "SELECT electrics FROM table_name_28 WHERE engine = \"175cc, bhp (kw)\" AND model_name = \"d10 sports & bushman\""
} |
### INSTRUCTION
Which Points has a Team of são paulo athletic, and a Position larger than 5?
### INPUT
CREATE TABLE table_name_15 (points INTEGER, team VARCHAR, position VARCHAR)
### OUTPUT
SELECT SUM(points) FROM table_name_15 WHERE team = "são paulo athletic" AND position > 5 | {
"input": "CREATE TABLE table_name_15 (points INTEGER, team VARCHAR, position VARCHAR)",
"instruction": "Which Points has a Team of são paulo athletic, and a Position larger than 5?",
"output": "SELECT SUM(points) FROM table_name_15 WHERE team = \"são paulo athletic\" AND position > 5"
} |
### INSTRUCTION
What is the highest K 2 O, when Na 2 O is greater than 1.87, when Fe 2 O 3 is greater than 0.07, when Objects is Ritual Disk, and when Al 2 O 3 is less than 0.62?
### INPUT
CREATE TABLE table_name_40 (k_2_o INTEGER, al_2_o_3 VARCHAR, objects VARCHAR, na_2_o VARCHAR, fe_2_o_3 VARCHAR)
### OUTPUT
SELECT MAX(k_2_o) FROM table_name_40 WHERE na_2_o > 1.87 AND fe_2_o_3 > 0.07 AND objects = "ritual disk" AND al_2_o_3 < 0.62 | {
"input": "CREATE TABLE table_name_40 (k_2_o INTEGER, al_2_o_3 VARCHAR, objects VARCHAR, na_2_o VARCHAR, fe_2_o_3 VARCHAR)",
"instruction": "What is the highest K 2 O, when Na 2 O is greater than 1.87, when Fe 2 O 3 is greater than 0.07, when Objects is Ritual Disk, and when Al 2 O 3 is less than 0.62?",
"output": "SELECT MAX(k_2_o) FROM table_name_40 WHERE na_2_o > 1.87 AND fe_2_o_3 > 0.07 AND objects = \"ritual disk\" AND al_2_o_3 < 0.62"
} |
### INSTRUCTION
How many games have more than 10 points and more than 2 draws?
### INPUT
CREATE TABLE table_name_13 (games VARCHAR, points VARCHAR, drawn VARCHAR)
### OUTPUT
SELECT COUNT(games) FROM table_name_13 WHERE points = 10 AND drawn > 2 | {
"input": "CREATE TABLE table_name_13 (games VARCHAR, points VARCHAR, drawn VARCHAR)",
"instruction": "How many games have more than 10 points and more than 2 draws?",
"output": "SELECT COUNT(games) FROM table_name_13 WHERE points = 10 AND drawn > 2"
} |
### INSTRUCTION
What is Category, when Result is "Nominated", when Award is "Drama Desk Award", and when Nominee is "Nathan Lane"?
### INPUT
CREATE TABLE table_name_95 (category VARCHAR, nominee VARCHAR, result VARCHAR, award VARCHAR)
### OUTPUT
SELECT category FROM table_name_95 WHERE result = "nominated" AND award = "drama desk award" AND nominee = "nathan lane" | {
"input": "CREATE TABLE table_name_95 (category VARCHAR, nominee VARCHAR, result VARCHAR, award VARCHAR)",
"instruction": "What is Category, when Result is \"Nominated\", when Award is \"Drama Desk Award\", and when Nominee is \"Nathan Lane\"?",
"output": "SELECT category FROM table_name_95 WHERE result = \"nominated\" AND award = \"drama desk award\" AND nominee = \"nathan lane\""
} |
### INSTRUCTION
Which Score has aN Outcome of winner on 4 november 1990?
### INPUT
CREATE TABLE table_name_66 (score VARCHAR, outcome VARCHAR, date VARCHAR)
### OUTPUT
SELECT score FROM table_name_66 WHERE outcome = "winner" AND date = "4 november 1990" | {
"input": "CREATE TABLE table_name_66 (score VARCHAR, outcome VARCHAR, date VARCHAR)",
"instruction": "Which Score has aN Outcome of winner on 4 november 1990?",
"output": "SELECT score FROM table_name_66 WHERE outcome = \"winner\" AND date = \"4 november 1990\""
} |
### INSTRUCTION
What was the player for t9 and a score of 73-69-74=216?
### INPUT
CREATE TABLE table_name_97 (player VARCHAR, place VARCHAR, score VARCHAR)
### OUTPUT
SELECT player FROM table_name_97 WHERE place = "t9" AND score = 73 - 69 - 74 = 216 | {
"input": "CREATE TABLE table_name_97 (player VARCHAR, place VARCHAR, score VARCHAR)",
"instruction": "What was the player for t9 and a score of 73-69-74=216?",
"output": "SELECT player FROM table_name_97 WHERE place = \"t9\" AND score = 73 - 69 - 74 = 216"
} |
### INSTRUCTION
Which Artist has an English translation of all this is music?
### INPUT
CREATE TABLE table_name_92 (artist VARCHAR, english_translation VARCHAR)
### OUTPUT
SELECT artist FROM table_name_92 WHERE english_translation = "all this is music" | {
"input": "CREATE TABLE table_name_92 (artist VARCHAR, english_translation VARCHAR)",
"instruction": "Which Artist has an English translation of all this is music?",
"output": "SELECT artist FROM table_name_92 WHERE english_translation = \"all this is music\""
} |
### INSTRUCTION
What is Player, when Score is less than 69, and when Country is "United States"?
### INPUT
CREATE TABLE table_name_70 (player VARCHAR, score VARCHAR, country VARCHAR)
### OUTPUT
SELECT player FROM table_name_70 WHERE score < 69 AND country = "united states" | {
"input": "CREATE TABLE table_name_70 (player VARCHAR, score VARCHAR, country VARCHAR)",
"instruction": "What is Player, when Score is less than 69, and when Country is \"United States\"?",
"output": "SELECT player FROM table_name_70 WHERE score < 69 AND country = \"united states\""
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.