text
stringlengths 150
1.06k
| source
dict |
---|---|
### QUESTION
What is the competition that was at serravalle, san marino?
### CONTEXT
CREATE TABLE table_name_80 (competition VARCHAR, venue VARCHAR)
### ANSWER
SELECT competition FROM table_name_80 WHERE venue = "serravalle, san marino"</s> | {
"answer": "SELECT competition FROM table_name_80 WHERE venue = \"serravalle, san marino\"",
"context": "CREATE TABLE table_name_80 (competition VARCHAR, venue VARCHAR)",
"question": "What is the competition that was at serravalle, san marino?"
} |
### QUESTION
Find all the ids and dates of the logs for the problem whose id is 10.
### CONTEXT
CREATE TABLE problem_log (problem_log_id VARCHAR, log_entry_date VARCHAR, problem_id VARCHAR)
### ANSWER
SELECT problem_log_id, log_entry_date FROM problem_log WHERE problem_id = 10</s> | {
"answer": "SELECT problem_log_id, log_entry_date FROM problem_log WHERE problem_id = 10",
"context": "CREATE TABLE problem_log (problem_log_id VARCHAR, log_entry_date VARCHAR, problem_id VARCHAR)",
"question": "Find all the ids and dates of the logs for the problem whose id is 10."
} |
### QUESTION
List the first and last names of all distinct staff members who are assigned to the problem whose id is 1.
### CONTEXT
CREATE TABLE problem_log (assigned_to_staff_id VARCHAR, problem_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR)
### ANSWER
SELECT DISTINCT staff_first_name, staff_last_name FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T2.problem_id = 1</s> | {
"answer": "SELECT DISTINCT staff_first_name, staff_last_name FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T2.problem_id = 1",
"context": "CREATE TABLE problem_log (assigned_to_staff_id VARCHAR, problem_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR)",
"question": "List the first and last names of all distinct staff members who are assigned to the problem whose id is 1."
} |
### QUESTION
List the problem id and log id which are assigned to the staff named Rylan Homenick.
### CONTEXT
CREATE TABLE problem_log (problem_id VARCHAR, problem_log_id VARCHAR, assigned_to_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR)
### ANSWER
SELECT DISTINCT T2.problem_id, T2.problem_log_id FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T1.staff_first_name = "Rylan" AND T1.staff_last_name = "Homenick"</s> | {
"answer": "SELECT DISTINCT T2.problem_id, T2.problem_log_id FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T1.staff_first_name = \"Rylan\" AND T1.staff_last_name = \"Homenick\"",
"context": "CREATE TABLE problem_log (problem_id VARCHAR, problem_log_id VARCHAR, assigned_to_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR)",
"question": "List the problem id and log id which are assigned to the staff named Rylan Homenick."
} |
### QUESTION
How many problems does the product with the most problems have? List the number of the problems and product name.
### CONTEXT
CREATE TABLE problems (product_id VARCHAR); CREATE TABLE product (product_name VARCHAR, product_id VARCHAR)
### ANSWER
SELECT COUNT(*), T1.product_name FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_name ORDER BY COUNT(*) DESC LIMIT 1</s> | {
"answer": "SELECT COUNT(*), T1.product_name FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_name ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE problems (product_id VARCHAR); CREATE TABLE product (product_name VARCHAR, product_id VARCHAR)",
"question": "How many problems does the product with the most problems have? List the number of the problems and product name."
} |
### QUESTION
Give me a list of descriptions of the problems that are reported by the staff whose first name is Christop.
### CONTEXT
CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR); CREATE TABLE problems (problem_description VARCHAR, reported_by_staff_id VARCHAR)
### ANSWER
SELECT T1.problem_description FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Christop"</s> | {
"answer": "SELECT T1.problem_description FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Christop\"",
"context": "CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR); CREATE TABLE problems (problem_description VARCHAR, reported_by_staff_id VARCHAR)",
"question": "Give me a list of descriptions of the problems that are reported by the staff whose first name is Christop."
} |
### QUESTION
When 68-292-68-292 is the ignition timing how many graphicals is it?
### CONTEXT
CREATE TABLE table_22915134_2 (graphical VARCHAR, ignition_timing VARCHAR)
### ANSWER
SELECT COUNT(graphical) FROM table_22915134_2 WHERE ignition_timing = "68-292-68-292"</s> | {
"answer": "SELECT COUNT(graphical) FROM table_22915134_2 WHERE ignition_timing = \"68-292-68-292\"",
"context": "CREATE TABLE table_22915134_2 (graphical VARCHAR, ignition_timing VARCHAR)",
"question": "When 68-292-68-292 is the ignition timing how many graphicals is it?"
} |
### QUESTION
For each product that has problems, find the number of problems reported after 1986-11-13 and the product id?
### CONTEXT
CREATE TABLE product (product_id VARCHAR); CREATE TABLE problems (product_id VARCHAR, date_problem_reported INTEGER)
### ANSWER
SELECT COUNT(*), T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T1.date_problem_reported > "1986-11-13" GROUP BY T2.product_id</s> | {
"answer": "SELECT COUNT(*), T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T1.date_problem_reported > \"1986-11-13\" GROUP BY T2.product_id",
"context": "CREATE TABLE product (product_id VARCHAR); CREATE TABLE problems (product_id VARCHAR, date_problem_reported INTEGER)",
"question": "For each product that has problems, find the number of problems reported after 1986-11-13 and the product id?"
} |
### QUESTION
What is the total number of Second, when First is greater than 18, when Season is 1992-93, and when Premier is greater than 16?
### CONTEXT
CREATE TABLE table_name_5 (second VARCHAR, premier VARCHAR, first VARCHAR, season VARCHAR)
### ANSWER
SELECT COUNT(second) FROM table_name_5 WHERE first > 18 AND season = "1992-93" AND premier > 16</s> | {
"answer": "SELECT COUNT(second) FROM table_name_5 WHERE first > 18 AND season = \"1992-93\" AND premier > 16",
"context": "CREATE TABLE table_name_5 (second VARCHAR, premier VARCHAR, first VARCHAR, season VARCHAR)",
"question": "What is the total number of Second, when First is greater than 18, when Season is 1992-93, and when Premier is greater than 16?"
} |
### QUESTION
What are the id of problems reported by the staff named Dameon Frami or Jolie Weber?
### CONTEXT
CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR); CREATE TABLE problems (reported_by_staff_id VARCHAR)
### ANSWER
SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Dameon" AND T2.staff_last_name = "Frami" UNION SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Jolie" AND T2.staff_last_name = "Weber"</s> | {
"answer": "SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Dameon\" AND T2.staff_last_name = \"Frami\" UNION SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Jolie\" AND T2.staff_last_name = \"Weber\"",
"context": "CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR); CREATE TABLE problems (reported_by_staff_id VARCHAR)",
"question": "What are the id of problems reported by the staff named Dameon Frami or Jolie Weber?"
} |
### QUESTION
What are the product ids for the problems reported by Christop Berge with closure authorised by Ashley Medhurst?
### CONTEXT
CREATE TABLE problems (reported_by_staff_id VARCHAR, closure_authorised_by_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR)
### ANSWER
SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Christop" AND T2.staff_last_name = "Berge" INTERSECT SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.closure_authorised_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Ashley" AND T2.staff_last_name = "Medhurst"</s> | {
"answer": "SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Christop\" AND T2.staff_last_name = \"Berge\" INTERSECT SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.closure_authorised_by_staff_id = T2.staff_id WHERE T2.staff_first_name = \"Ashley\" AND T2.staff_last_name = \"Medhurst\"",
"context": "CREATE TABLE problems (reported_by_staff_id VARCHAR, closure_authorised_by_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR)",
"question": "What are the product ids for the problems reported by Christop Berge with closure authorised by Ashley Medhurst?"
} |
### QUESTION
What are the ids of the problems reported before the date of any problem reported by Lysanne Turcotte?
### CONTEXT
CREATE TABLE problems (problem_id VARCHAR, reported_by_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR); CREATE TABLE problems (reported_by_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR)
### ANSWER
SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported < (SELECT MIN(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = "Lysanne" AND T4.staff_last_name = "Turcotte")</s> | {
"answer": "SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported < (SELECT MIN(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = \"Lysanne\" AND T4.staff_last_name = \"Turcotte\")",
"context": "CREATE TABLE problems (problem_id VARCHAR, reported_by_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR); CREATE TABLE problems (reported_by_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR)",
"question": "What are the ids of the problems reported before the date of any problem reported by Lysanne Turcotte?"
} |
### QUESTION
What are the ids of the problems reported after the date of any problems reported by Rylan Homenick?
### CONTEXT
CREATE TABLE problems (problem_id VARCHAR, reported_by_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR); CREATE TABLE problems (reported_by_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR)
### ANSWER
SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported > (SELECT MAX(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = "Rylan" AND T4.staff_last_name = "Homenick")</s> | {
"answer": "SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported > (SELECT MAX(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = \"Rylan\" AND T4.staff_last_name = \"Homenick\")",
"context": "CREATE TABLE problems (problem_id VARCHAR, reported_by_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR); CREATE TABLE problems (reported_by_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR)",
"question": "What are the ids of the problems reported after the date of any problems reported by Rylan Homenick?"
} |
### QUESTION
Who was the mountain classification winner in the stage won by Alessandro Ballan?
### CONTEXT
CREATE TABLE table_22917458_15 (mountains_classification_klasyfikacja_górska VARCHAR, winner VARCHAR)
### ANSWER
SELECT mountains_classification_klasyfikacja_górska FROM table_22917458_15 WHERE winner = "Alessandro Ballan"</s> | {
"answer": "SELECT mountains_classification_klasyfikacja_górska FROM table_22917458_15 WHERE winner = \"Alessandro Ballan\"",
"context": "CREATE TABLE table_22917458_15 (mountains_classification_klasyfikacja_górska VARCHAR, winner VARCHAR)",
"question": "Who was the mountain classification winner in the stage won by Alessandro Ballan?"
} |
### QUESTION
List the ids of the problems from the product "voluptatem" that are reported after 1995?
### CONTEXT
CREATE TABLE problems (problem_id VARCHAR, product_id VARCHAR, date_problem_reported VARCHAR); CREATE TABLE product (product_id VARCHAR, product_name VARCHAR)
### ANSWER
SELECT T1.problem_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = "voluptatem" AND T1.date_problem_reported > "1995"</s> | {
"answer": "SELECT T1.problem_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = \"voluptatem\" AND T1.date_problem_reported > \"1995\"",
"context": "CREATE TABLE problems (problem_id VARCHAR, product_id VARCHAR, date_problem_reported VARCHAR); CREATE TABLE product (product_id VARCHAR, product_name VARCHAR)",
"question": "List the ids of the problems from the product \"voluptatem\" that are reported after 1995?"
} |
### QUESTION
Find the first and last name of the staff members who reported problems from the product "rem" but not "aut"?
### CONTEXT
CREATE TABLE product (product_name VARCHAR, product_id VARCHAR); CREATE TABLE staff (staff_first_name VARCHAR, staff_last_name VARCHAR, staff_id VARCHAR); CREATE TABLE problems (product_id VARCHAR, reported_by_staff_id VARCHAR)
### ANSWER
SELECT T3.staff_first_name, T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = "rem" EXCEPT SELECT T3.staff_first_name, T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = "aut"</s> | {
"answer": "SELECT T3.staff_first_name, T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = \"rem\" EXCEPT SELECT T3.staff_first_name, T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = \"aut\"",
"context": "CREATE TABLE product (product_name VARCHAR, product_id VARCHAR); CREATE TABLE staff (staff_first_name VARCHAR, staff_last_name VARCHAR, staff_id VARCHAR); CREATE TABLE problems (product_id VARCHAR, reported_by_staff_id VARCHAR)",
"question": "Find the first and last name of the staff members who reported problems from the product \"rem\" but not \"aut\"?"
} |
### QUESTION
Find the products which have problems reported by both Lacey Bosco and Kenton Champlin?
### CONTEXT
CREATE TABLE product (product_name VARCHAR, product_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR); CREATE TABLE problems (product_id VARCHAR, reported_by_staff_id VARCHAR)
### ANSWER
SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = "Lacey" AND T3.staff_last_name = "Bosco" INTERSECT SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = "Kenton" AND T3.staff_last_name = "Champlin"</s> | {
"answer": "SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = \"Lacey\" AND T3.staff_last_name = \"Bosco\" INTERSECT SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = \"Kenton\" AND T3.staff_last_name = \"Champlin\"",
"context": "CREATE TABLE product (product_name VARCHAR, product_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR); CREATE TABLE problems (product_id VARCHAR, reported_by_staff_id VARCHAR)",
"question": "Find the products which have problems reported by both Lacey Bosco and Kenton Champlin?"
} |
### QUESTION
What is the total number of military deaths when there are 78 military and/or civilian wounded and more than 27 total deaths?
### CONTEXT
CREATE TABLE table_name_41 (military_deaths VARCHAR, military_and_or_civilian_wounded VARCHAR, total_deaths VARCHAR)
### ANSWER
SELECT COUNT(military_deaths) FROM table_name_41 WHERE military_and_or_civilian_wounded = "78" AND total_deaths > 27</s> | {
"answer": "SELECT COUNT(military_deaths) FROM table_name_41 WHERE military_and_or_civilian_wounded = \"78\" AND total_deaths > 27",
"context": "CREATE TABLE table_name_41 (military_deaths VARCHAR, military_and_or_civilian_wounded VARCHAR, total_deaths VARCHAR)",
"question": "What is the total number of military deaths when there are 78 military and/or civilian wounded and more than 27 total deaths?"
} |
### QUESTION
How many branches where have more than average number of memberships are there?
### CONTEXT
CREATE TABLE branch (membership_amount INTEGER)
### ANSWER
SELECT COUNT(*) FROM branch WHERE membership_amount > (SELECT AVG(membership_amount) FROM branch)</s> | {
"answer": "SELECT COUNT(*) FROM branch WHERE membership_amount > (SELECT AVG(membership_amount) FROM branch)",
"context": "CREATE TABLE branch (membership_amount INTEGER)",
"question": "How many branches where have more than average number of memberships are there?"
} |
### QUESTION
Name the least 10,000+ places for louisville
### CONTEXT
CREATE TABLE table_22916979_5 (_places VARCHAR, principal_city VARCHAR)
### ANSWER
SELECT MIN(10), 000 + _places FROM table_22916979_5 WHERE principal_city = "Louisville"</s> | {
"answer": "SELECT MIN(10), 000 + _places FROM table_22916979_5 WHERE principal_city = \"Louisville\"",
"context": "CREATE TABLE table_22916979_5 (_places VARCHAR, principal_city VARCHAR)",
"question": "Name the least 10,000+ places for louisville"
} |
### QUESTION
Name the density for pennsbury village
### CONTEXT
CREATE TABLE table_22916979_5 (density VARCHAR, densest_incorporated_place VARCHAR)
### ANSWER
SELECT density FROM table_22916979_5 WHERE densest_incorporated_place = "Pennsbury Village"</s> | {
"answer": "SELECT density FROM table_22916979_5 WHERE densest_incorporated_place = \"Pennsbury Village\"",
"context": "CREATE TABLE table_22916979_5 (density VARCHAR, densest_incorporated_place VARCHAR)",
"question": "Name the density for pennsbury village"
} |
### QUESTION
What is the average number of military deaths when there are fewer than 38 civilian deaths (including foreigners) and 33 military and/or civilian wounded?
### CONTEXT
CREATE TABLE table_name_22 (military_deaths INTEGER, civilian_deaths__including_foreigners_ VARCHAR, military_and_or_civilian_wounded VARCHAR)
### ANSWER
SELECT AVG(military_deaths) FROM table_name_22 WHERE civilian_deaths__including_foreigners_ < 38 AND military_and_or_civilian_wounded = "33"</s> | {
"answer": "SELECT AVG(military_deaths) FROM table_name_22 WHERE civilian_deaths__including_foreigners_ < 38 AND military_and_or_civilian_wounded = \"33\"",
"context": "CREATE TABLE table_name_22 (military_deaths INTEGER, civilian_deaths__including_foreigners_ VARCHAR, military_and_or_civilian_wounded VARCHAR)",
"question": "What is the average number of military deaths when there are fewer than 38 civilian deaths (including foreigners) and 33 military and/or civilian wounded?"
} |
### QUESTION
Show all member names and registered branch names sorted by register year.
### CONTEXT
CREATE TABLE member (name VARCHAR, member_id VARCHAR); CREATE TABLE membership_register_branch (branch_id VARCHAR, member_id VARCHAR, register_year VARCHAR); CREATE TABLE branch (name VARCHAR, branch_id VARCHAR)
### ANSWER
SELECT T3.name, T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id ORDER BY T1.register_year</s> | {
"answer": "SELECT T3.name, T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id ORDER BY T1.register_year",
"context": "CREATE TABLE member (name VARCHAR, member_id VARCHAR); CREATE TABLE membership_register_branch (branch_id VARCHAR, member_id VARCHAR, register_year VARCHAR); CREATE TABLE branch (name VARCHAR, branch_id VARCHAR)",
"question": "Show all member names and registered branch names sorted by register year."
} |
### QUESTION
What does American have if Australia has əʉ?
### CONTEXT
CREATE TABLE table_name_65 (american VARCHAR, australian VARCHAR)
### ANSWER
SELECT american FROM table_name_65 WHERE australian = "əʉ"</s> | {
"answer": "SELECT american FROM table_name_65 WHERE australian = \"əʉ\"",
"context": "CREATE TABLE table_name_65 (american VARCHAR, australian VARCHAR)",
"question": "What does American have if Australia has əʉ?"
} |
### QUESTION
Show all branch names with the number of members in each branch registered after 2015.
### CONTEXT
CREATE TABLE branch (name VARCHAR, branch_id VARCHAR); CREATE TABLE membership_register_branch (branch_id VARCHAR, register_year INTEGER)
### ANSWER
SELECT T2.name, COUNT(*) FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year > 2015 GROUP BY T2.branch_id</s> | {
"answer": "SELECT T2.name, COUNT(*) FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year > 2015 GROUP BY T2.branch_id",
"context": "CREATE TABLE branch (name VARCHAR, branch_id VARCHAR); CREATE TABLE membership_register_branch (branch_id VARCHAR, register_year INTEGER)",
"question": "Show all branch names with the number of members in each branch registered after 2015."
} |
### QUESTION
Show member names without any registered branch.
### CONTEXT
CREATE TABLE member (name VARCHAR, member_id VARCHAR); CREATE TABLE membership_register_branch (name VARCHAR, member_id VARCHAR)
### ANSWER
SELECT name FROM member WHERE NOT member_id IN (SELECT member_id FROM membership_register_branch)</s> | {
"answer": "SELECT name FROM member WHERE NOT member_id IN (SELECT member_id FROM membership_register_branch)",
"context": "CREATE TABLE member (name VARCHAR, member_id VARCHAR); CREATE TABLE membership_register_branch (name VARCHAR, member_id VARCHAR)",
"question": "Show member names without any registered branch."
} |
### QUESTION
What is the name and open year for the branch with most number of memberships registered in 2016?
### CONTEXT
CREATE TABLE membership_register_branch (branch_id VARCHAR, register_year VARCHAR); CREATE TABLE branch (name VARCHAR, open_year VARCHAR, branch_id VARCHAR)
### ANSWER
SELECT T2.name, T2.open_year FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year = 2016 GROUP BY T2.branch_id ORDER BY COUNT(*) DESC LIMIT 1</s> | {
"answer": "SELECT T2.name, T2.open_year FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year = 2016 GROUP BY T2.branch_id ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE membership_register_branch (branch_id VARCHAR, register_year VARCHAR); CREATE TABLE branch (name VARCHAR, open_year VARCHAR, branch_id VARCHAR)",
"question": "What is the name and open year for the branch with most number of memberships registered in 2016?"
} |
### QUESTION
Show all city with a branch opened in 2001 and a branch with more than 100 membership.
### CONTEXT
CREATE TABLE branch (city VARCHAR, open_year VARCHAR, membership_amount VARCHAR)
### ANSWER
SELECT city FROM branch WHERE open_year = 2001 AND membership_amount > 100</s> | {
"answer": "SELECT city FROM branch WHERE open_year = 2001 AND membership_amount > 100",
"context": "CREATE TABLE branch (city VARCHAR, open_year VARCHAR, membership_amount VARCHAR)",
"question": "Show all city with a branch opened in 2001 and a branch with more than 100 membership."
} |
### QUESTION
How many bowlers were there when david hussey azhar mahmood gurkeerat singh was the batsmen?
### CONTEXT
CREATE TABLE table_22962745_35 (bowler VARCHAR, batsmen VARCHAR)
### ANSWER
SELECT COUNT(bowler) FROM table_22962745_35 WHERE batsmen = "David Hussey Azhar Mahmood Gurkeerat Singh"</s> | {
"answer": "SELECT COUNT(bowler) FROM table_22962745_35 WHERE batsmen = \"David Hussey Azhar Mahmood Gurkeerat Singh\"",
"context": "CREATE TABLE table_22962745_35 (bowler VARCHAR, batsmen VARCHAR)",
"question": "How many bowlers were there when david hussey azhar mahmood gurkeerat singh was the batsmen?"
} |
### QUESTION
What season was herschelle gibbs andrew symonds venugopal rao batsmen?
### CONTEXT
CREATE TABLE table_22962745_35 (season VARCHAR, batsmen VARCHAR)
### ANSWER
SELECT season FROM table_22962745_35 WHERE batsmen = "Herschelle Gibbs Andrew Symonds Venugopal Rao"</s> | {
"answer": "SELECT season FROM table_22962745_35 WHERE batsmen = \"Herschelle Gibbs Andrew Symonds Venugopal Rao\"",
"context": "CREATE TABLE table_22962745_35 (season VARCHAR, batsmen VARCHAR)",
"question": "What season was herschelle gibbs andrew symonds venugopal rao batsmen?"
} |
### QUESTION
Find the name of branches where have some members whose hometown is in Louisville, Kentucky and some in Hiram, Georgia.
### CONTEXT
CREATE TABLE member (member_id VARCHAR, Hometown VARCHAR); CREATE TABLE branch (name VARCHAR, branch_id VARCHAR); CREATE TABLE membership_register_branch (branch_id VARCHAR, member_id VARCHAR)
### ANSWER
SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id WHERE T3.Hometown = 'Louisville , Kentucky' INTERSECT SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id WHERE T3.Hometown = 'Hiram , Georgia'</s> | {
"answer": "SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id WHERE T3.Hometown = 'Louisville , Kentucky' INTERSECT SELECT T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id WHERE T3.Hometown = 'Hiram , Georgia'",
"context": "CREATE TABLE member (member_id VARCHAR, Hometown VARCHAR); CREATE TABLE branch (name VARCHAR, branch_id VARCHAR); CREATE TABLE membership_register_branch (branch_id VARCHAR, member_id VARCHAR)",
"question": "Find the name of branches where have some members whose hometown is in Louisville, Kentucky and some in Hiram, Georgia."
} |
### QUESTION
WHAT IS THE YEAR'S TALLEST VALUE WITH FLOORS LESS THAN 24, AND 05.0 210 north charles street?
### CONTEXT
CREATE TABLE table_name_10 (years_as_tallest VARCHAR, floors VARCHAR, street_address VARCHAR)
### ANSWER
SELECT years_as_tallest FROM table_name_10 WHERE floors < 24 AND street_address = "05.0 210 north charles street"</s> | {
"answer": "SELECT years_as_tallest FROM table_name_10 WHERE floors < 24 AND street_address = \"05.0 210 north charles street\"",
"context": "CREATE TABLE table_name_10 (years_as_tallest VARCHAR, floors VARCHAR, street_address VARCHAR)",
"question": "WHAT IS THE YEAR'S TALLEST VALUE WITH FLOORS LESS THAN 24, AND 05.0 210 north charles street?"
} |
### QUESTION
Name number of stellar classification for 3 neptune planets < 1 au
### CONTEXT
CREATE TABLE table_2296507_1 (stellar_classification VARCHAR, system VARCHAR)
### ANSWER
SELECT COUNT(stellar_classification) FROM table_2296507_1 WHERE system = "3 Neptune planets < 1 AU"</s> | {
"answer": "SELECT COUNT(stellar_classification) FROM table_2296507_1 WHERE system = \"3 Neptune planets < 1 AU\"",
"context": "CREATE TABLE table_2296507_1 (stellar_classification VARCHAR, system VARCHAR)",
"question": "Name number of stellar classification for 3 neptune planets < 1 au"
} |
### QUESTION
What is the total number of purchases for members with level 6?
### CONTEXT
CREATE TABLE member (member_id VARCHAR, level VARCHAR); CREATE TABLE purchase (member_id VARCHAR)
### ANSWER
SELECT COUNT(*) FROM purchase AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T2.level = 6</s> | {
"answer": "SELECT COUNT(*) FROM purchase AS T1 JOIN member AS T2 ON T1.member_id = T2.member_id WHERE T2.level = 6",
"context": "CREATE TABLE member (member_id VARCHAR, level VARCHAR); CREATE TABLE purchase (member_id VARCHAR)",
"question": "What is the total number of purchases for members with level 6?"
} |
### QUESTION
Name the number of names for exeter chiefs
### CONTEXT
CREATE TABLE table_22977424_8 (name VARCHAR, promoted_from_league VARCHAR)
### ANSWER
SELECT COUNT(name) FROM table_22977424_8 WHERE promoted_from_league = "Exeter Chiefs"</s> | {
"answer": "SELECT COUNT(name) FROM table_22977424_8 WHERE promoted_from_league = \"Exeter Chiefs\"",
"context": "CREATE TABLE table_22977424_8 (name VARCHAR, promoted_from_league VARCHAR)",
"question": "Name the number of names for exeter chiefs"
} |
### QUESTION
What is the number for D. Shulman if C. Abate has 728 (43%)
### CONTEXT
CREATE TABLE table_name_9 (d_shulman VARCHAR, c_abate VARCHAR)
### ANSWER
SELECT d_shulman FROM table_name_9 WHERE c_abate = "728 (43%)"</s> | {
"answer": "SELECT d_shulman FROM table_name_9 WHERE c_abate = \"728 (43%)\"",
"context": "CREATE TABLE table_name_9 (d_shulman VARCHAR, c_abate VARCHAR)",
"question": "What is the number for D. Shulman if C. Abate has 728 (43%)"
} |
### QUESTION
What's the tail number of the airplane involved in the accident described as crashed?
### CONTEXT
CREATE TABLE table_229917_2 (tail_number VARCHAR, brief_description VARCHAR)
### ANSWER
SELECT tail_number FROM table_229917_2 WHERE brief_description = "Crashed"</s> | {
"answer": "SELECT tail_number FROM table_229917_2 WHERE brief_description = \"Crashed\"",
"context": "CREATE TABLE table_229917_2 (tail_number VARCHAR, brief_description VARCHAR)",
"question": "What's the tail number of the airplane involved in the accident described as crashed?"
} |
### QUESTION
What is the format of the album Pacific Ocean Blue in 1991?
### CONTEXT
CREATE TABLE table_name_57 (format VARCHAR, album VARCHAR, year VARCHAR)
### ANSWER
SELECT format FROM table_name_57 WHERE album = "pacific ocean blue" AND year = 1991</s> | {
"answer": "SELECT format FROM table_name_57 WHERE album = \"pacific ocean blue\" AND year = 1991",
"context": "CREATE TABLE table_name_57 (format VARCHAR, album VARCHAR, year VARCHAR)",
"question": "What is the format of the album Pacific Ocean Blue in 1991?"
} |
### QUESTION
How many fatalities were there in the crash described as crashed at take-off due to engine failure?
### CONTEXT
CREATE TABLE table_229917_2 (fatalities VARCHAR, brief_description VARCHAR)
### ANSWER
SELECT fatalities FROM table_229917_2 WHERE brief_description = "Crashed at take-off due to engine failure"</s> | {
"answer": "SELECT fatalities FROM table_229917_2 WHERE brief_description = \"Crashed at take-off due to engine failure\"",
"context": "CREATE TABLE table_229917_2 (fatalities VARCHAR, brief_description VARCHAR)",
"question": "How many fatalities were there in the crash described as crashed at take-off due to engine failure?"
} |
### QUESTION
Find the distinct Advisor of students who have treasurer votes in the spring election cycle.
### CONTEXT
CREATE TABLE STUDENT (Advisor VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (Treasurer_Vote VARCHAR, Election_Cycle VARCHAR)
### ANSWER
SELECT DISTINCT T1.Advisor FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Treasurer_Vote WHERE T2.Election_Cycle = "Spring"</s> | {
"answer": "SELECT DISTINCT T1.Advisor FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Treasurer_Vote WHERE T2.Election_Cycle = \"Spring\"",
"context": "CREATE TABLE STUDENT (Advisor VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (Treasurer_Vote VARCHAR, Election_Cycle VARCHAR)",
"question": "Find the distinct Advisor of students who have treasurer votes in the spring election cycle."
} |
### QUESTION
What were the lowest goals when the matches were smaller than 29?
### CONTEXT
CREATE TABLE table_name_40 (goals INTEGER, matches INTEGER)
### ANSWER
SELECT MIN(goals) FROM table_name_40 WHERE matches < 29</s> | {
"answer": "SELECT MIN(goals) FROM table_name_40 WHERE matches < 29",
"context": "CREATE TABLE table_name_40 (goals INTEGER, matches INTEGER)",
"question": "What were the lowest goals when the matches were smaller than 29?"
} |
### QUESTION
Find the first and last names of all the female (sex is F) students who have president votes.
### CONTEXT
CREATE TABLE STUDENT (Fname VARCHAR, LName VARCHAR, StuID VARCHAR, sex VARCHAR); CREATE TABLE VOTING_RECORD (President_VOTE VARCHAR)
### ANSWER
SELECT DISTINCT T1.Fname, T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.President_VOTE WHERE T1.sex = "F"</s> | {
"answer": "SELECT DISTINCT T1.Fname, T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.President_VOTE WHERE T1.sex = \"F\"",
"context": "CREATE TABLE STUDENT (Fname VARCHAR, LName VARCHAR, StuID VARCHAR, sex VARCHAR); CREATE TABLE VOTING_RECORD (President_VOTE VARCHAR)",
"question": "Find the first and last names of all the female (sex is F) students who have president votes."
} |
### QUESTION
Find the first and last name of all the students of age 18 who have vice president votes.
### CONTEXT
CREATE TABLE STUDENT (Fname VARCHAR, LName VARCHAR, StuID VARCHAR, age VARCHAR); CREATE TABLE VOTING_RECORD (VICE_President_VOTE VARCHAR)
### ANSWER
SELECT DISTINCT T1.Fname, T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_President_VOTE WHERE T1.age = 18</s> | {
"answer": "SELECT DISTINCT T1.Fname, T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_President_VOTE WHERE T1.age = 18",
"context": "CREATE TABLE STUDENT (Fname VARCHAR, LName VARCHAR, StuID VARCHAR, age VARCHAR); CREATE TABLE VOTING_RECORD (VICE_President_VOTE VARCHAR)",
"question": "Find the first and last name of all the students of age 18 who have vice president votes."
} |
### QUESTION
How many male (sex is M) students have class senator votes in the fall election cycle?
### CONTEXT
CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR); CREATE TABLE STUDENT (StuID VARCHAR, Sex VARCHAR)
### ANSWER
SELECT COUNT(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.Sex = "M" AND T2.Election_Cycle = "Fall"</s> | {
"answer": "SELECT COUNT(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.Sex = \"M\" AND T2.Election_Cycle = \"Fall\"",
"context": "CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR); CREATE TABLE STUDENT (StuID VARCHAR, Sex VARCHAR)",
"question": "How many male (sex is M) students have class senator votes in the fall election cycle?"
} |
### QUESTION
Find the number of students whose city code is NYC and who have class senator votes in the spring election cycle.
### CONTEXT
CREATE TABLE STUDENT (StuID VARCHAR, city_code VARCHAR); CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR)
### ANSWER
SELECT COUNT(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.city_code = "NYC" AND T2.Election_Cycle = "Spring"</s> | {
"answer": "SELECT COUNT(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.city_code = \"NYC\" AND T2.Election_Cycle = \"Spring\"",
"context": "CREATE TABLE STUDENT (StuID VARCHAR, city_code VARCHAR); CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR)",
"question": "Find the number of students whose city code is NYC and who have class senator votes in the spring election cycle."
} |
### QUESTION
Find the average age of students who live in the city with code "NYC" and have secretary votes in the spring election cycle.
### CONTEXT
CREATE TABLE STUDENT (Age INTEGER, StuID VARCHAR, city_code VARCHAR); CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR)
### ANSWER
SELECT AVG(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.city_code = "NYC" AND T2.Election_Cycle = "Spring"</s> | {
"answer": "SELECT AVG(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.city_code = \"NYC\" AND T2.Election_Cycle = \"Spring\"",
"context": "CREATE TABLE STUDENT (Age INTEGER, StuID VARCHAR, city_code VARCHAR); CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR)",
"question": "Find the average age of students who live in the city with code \"NYC\" and have secretary votes in the spring election cycle."
} |
### QUESTION
Find the average age of female (sex is F) students who have secretary votes in the spring election cycle.
### CONTEXT
CREATE TABLE STUDENT (Age INTEGER, StuID VARCHAR, Sex VARCHAR); CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR)
### ANSWER
SELECT AVG(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.Sex = "F" AND T2.Election_Cycle = "Spring"</s> | {
"answer": "SELECT AVG(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.Sex = \"F\" AND T2.Election_Cycle = \"Spring\"",
"context": "CREATE TABLE STUDENT (Age INTEGER, StuID VARCHAR, Sex VARCHAR); CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR)",
"question": "Find the average age of female (sex is F) students who have secretary votes in the spring election cycle."
} |
### QUESTION
Find the distinct first names of all the students who have vice president votes and whose city code is not PIT.
### CONTEXT
CREATE TABLE STUDENT (Fname VARCHAR, city_code VARCHAR); CREATE TABLE STUDENT (Fname VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (VICE_PRESIDENT_Vote VARCHAR)
### ANSWER
SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_PRESIDENT_Vote EXCEPT SELECT DISTINCT Fname FROM STUDENT WHERE city_code = "PIT"</s> | {
"answer": "SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_PRESIDENT_Vote EXCEPT SELECT DISTINCT Fname FROM STUDENT WHERE city_code = \"PIT\"",
"context": "CREATE TABLE STUDENT (Fname VARCHAR, city_code VARCHAR); CREATE TABLE STUDENT (Fname VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (VICE_PRESIDENT_Vote VARCHAR)",
"question": "Find the distinct first names of all the students who have vice president votes and whose city code is not PIT."
} |
### QUESTION
Find the distinct last names of all the students who have president votes and whose advisor is not 2192.
### CONTEXT
CREATE TABLE STUDENT (LName VARCHAR, PRESIDENT_Vote VARCHAR, Advisor VARCHAR); CREATE TABLE STUDENT (LName VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (Id VARCHAR)
### ANSWER
SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote EXCEPT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = "2192"</s> | {
"answer": "SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote EXCEPT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = \"2192\"",
"context": "CREATE TABLE STUDENT (LName VARCHAR, PRESIDENT_Vote VARCHAR, Advisor VARCHAR); CREATE TABLE STUDENT (LName VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (Id VARCHAR)",
"question": "Find the distinct last names of all the students who have president votes and whose advisor is not 2192."
} |
### QUESTION
Find the distinct last names of all the students who have president votes and whose advisor is 8741.
### CONTEXT
CREATE TABLE STUDENT (LName VARCHAR, PRESIDENT_Vote VARCHAR, Advisor VARCHAR); CREATE TABLE STUDENT (LName VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (Id VARCHAR)
### ANSWER
SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote INTERSECT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = "8741"</s> | {
"answer": "SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote INTERSECT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = \"8741\"",
"context": "CREATE TABLE STUDENT (LName VARCHAR, PRESIDENT_Vote VARCHAR, Advisor VARCHAR); CREATE TABLE STUDENT (LName VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (Id VARCHAR)",
"question": "Find the distinct last names of all the students who have president votes and whose advisor is 8741."
} |
### QUESTION
When the completion schedule is 2016 for the state of jammu & kashmir, what is the smallest S.no.?
### CONTEXT
CREATE TABLE table_name_9 (sno INTEGER, state VARCHAR, completion_schedule VARCHAR)
### ANSWER
SELECT MIN(sno) FROM table_name_9 WHERE state = "jammu & kashmir" AND completion_schedule = "2016"</s> | {
"answer": "SELECT MIN(sno) FROM table_name_9 WHERE state = \"jammu & kashmir\" AND completion_schedule = \"2016\"",
"context": "CREATE TABLE table_name_9 (sno INTEGER, state VARCHAR, completion_schedule VARCHAR)",
"question": "When the completion schedule is 2016 for the state of jammu & kashmir, what is the smallest S.no.?"
} |
### QUESTION
What is the 2009 value of the shanghai masters, which was A in 2012 and 1r in 2011?
### CONTEXT
CREATE TABLE table_name_32 (tournament VARCHAR)
### ANSWER
SELECT 2009 FROM table_name_32 WHERE 2012 = "a" AND 2011 = "1r" AND tournament = "shanghai masters"</s> | {
"answer": "SELECT 2009 FROM table_name_32 WHERE 2012 = \"a\" AND 2011 = \"1r\" AND tournament = \"shanghai masters\"",
"context": "CREATE TABLE table_name_32 (tournament VARCHAR)",
"question": "What is the 2009 value of the shanghai masters, which was A in 2012 and 1r in 2011?"
} |
### QUESTION
Which Score has an Opponent in the final of chris haggard robbie koenig?
### CONTEXT
CREATE TABLE table_name_17 (score VARCHAR, opponent_in_the_final VARCHAR)
### ANSWER
SELECT score FROM table_name_17 WHERE opponent_in_the_final = "chris haggard robbie koenig"</s> | {
"answer": "SELECT score FROM table_name_17 WHERE opponent_in_the_final = \"chris haggard robbie koenig\"",
"context": "CREATE TABLE table_name_17 (score VARCHAR, opponent_in_the_final VARCHAR)",
"question": "Which Score has an Opponent in the final of chris haggard robbie koenig?"
} |
### QUESTION
What was the Result F–A on 21 February 2009, when the league position was 1st?
### CONTEXT
CREATE TABLE table_name_55 (result_f_a VARCHAR, league_position VARCHAR, date VARCHAR)
### ANSWER
SELECT result_f_a FROM table_name_55 WHERE league_position = "1st" AND date = "21 february 2009"</s> | {
"answer": "SELECT result_f_a FROM table_name_55 WHERE league_position = \"1st\" AND date = \"21 february 2009\"",
"context": "CREATE TABLE table_name_55 (result_f_a VARCHAR, league_position VARCHAR, date VARCHAR)",
"question": "What was the Result F–A on 21 February 2009, when the league position was 1st?"
} |
### QUESTION
What club does John Westin play for?
### CONTEXT
CREATE TABLE table_name_99 (college_junior_club_team__league_ VARCHAR, player VARCHAR)
### ANSWER
SELECT college_junior_club_team__league_ FROM table_name_99 WHERE player = "john westin"</s> | {
"answer": "SELECT college_junior_club_team__league_ FROM table_name_99 WHERE player = \"john westin\"",
"context": "CREATE TABLE table_name_99 (college_junior_club_team__league_ VARCHAR, player VARCHAR)",
"question": "What club does John Westin play for?"
} |
### QUESTION
What is every part number with model number core i5-670?
### CONTEXT
CREATE TABLE table_23028629_2 (part_number_s_ VARCHAR, model_number VARCHAR)
### ANSWER
SELECT part_number_s_ FROM table_23028629_2 WHERE model_number = "Core i5-670"</s> | {
"answer": "SELECT part_number_s_ FROM table_23028629_2 WHERE model_number = \"Core i5-670\"",
"context": "CREATE TABLE table_23028629_2 (part_number_s_ VARCHAR, model_number VARCHAR)",
"question": "What is every part number with model number core i5-670?"
} |
### QUESTION
List the names, color descriptions and product descriptions of products with category "Herbs".
### CONTEXT
CREATE TABLE Ref_colors (color_description VARCHAR, color_code VARCHAR); CREATE TABLE products (product_name VARCHAR, product_description VARCHAR, color_code VARCHAR)
### ANSWER
SELECT T1.product_name, T2.color_description, T1.product_description FROM products AS T1 JOIN Ref_colors AS T2 ON T1.color_code = T2.color_code WHERE product_category_code = "Herbs"</s> | {
"answer": "SELECT T1.product_name, T2.color_description, T1.product_description FROM products AS T1 JOIN Ref_colors AS T2 ON T1.color_code = T2.color_code WHERE product_category_code = \"Herbs\"",
"context": "CREATE TABLE Ref_colors (color_description VARCHAR, color_code VARCHAR); CREATE TABLE products (product_name VARCHAR, product_description VARCHAR, color_code VARCHAR)",
"question": "List the names, color descriptions and product descriptions of products with category \"Herbs\"."
} |
### QUESTION
Scunthorpe United as the home team has what tie number?
### CONTEXT
CREATE TABLE table_name_52 (tie_no VARCHAR, home_team VARCHAR)
### ANSWER
SELECT tie_no FROM table_name_52 WHERE home_team = "scunthorpe united"</s> | {
"answer": "SELECT tie_no FROM table_name_52 WHERE home_team = \"scunthorpe united\"",
"context": "CREATE TABLE table_name_52 (tie_no VARCHAR, home_team VARCHAR)",
"question": "Scunthorpe United as the home team has what tie number?"
} |
### QUESTION
What is the name of the product with the color description 'yellow'?
### CONTEXT
CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE products (product_name VARCHAR, color_code VARCHAR)
### ANSWER
SELECT T1.product_name FROM products AS T1 JOIN ref_colors AS T2 ON T1.color_code = T2.color_code WHERE T2.color_description = 'yellow'</s> | {
"answer": "SELECT T1.product_name FROM products AS T1 JOIN ref_colors AS T2 ON T1.color_code = T2.color_code WHERE T2.color_description = 'yellow'",
"context": "CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE products (product_name VARCHAR, color_code VARCHAR)",
"question": "What is the name of the product with the color description 'yellow'?"
} |
### QUESTION
Find the category descriptions of the products whose descriptions include letter 't'.
### CONTEXT
CREATE TABLE ref_product_categories (product_category_description VARCHAR, product_category_code VARCHAR); CREATE TABLE products (product_category_code VARCHAR, product_description VARCHAR)
### ANSWER
SELECT T1.product_category_description FROM ref_product_categories AS T1 JOIN products AS T2 ON T1.product_category_code = T2.product_category_code WHERE T2.product_description LIKE '%t%'</s> | {
"answer": "SELECT T1.product_category_description FROM ref_product_categories AS T1 JOIN products AS T2 ON T1.product_category_code = T2.product_category_code WHERE T2.product_description LIKE '%t%'",
"context": "CREATE TABLE ref_product_categories (product_category_description VARCHAR, product_category_code VARCHAR); CREATE TABLE products (product_category_code VARCHAR, product_description VARCHAR)",
"question": "Find the category descriptions of the products whose descriptions include letter 't'."
} |
### QUESTION
What is the color description of the product with name "catnip"?
### CONTEXT
CREATE TABLE products (color_code VARCHAR, product_name VARCHAR); CREATE TABLE ref_colors (color_description VARCHAR, color_code VARCHAR)
### ANSWER
SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = "catnip"</s> | {
"answer": "SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = \"catnip\"",
"context": "CREATE TABLE products (color_code VARCHAR, product_name VARCHAR); CREATE TABLE ref_colors (color_description VARCHAR, color_code VARCHAR)",
"question": "What is the color description of the product with name \"catnip\"?"
} |
### QUESTION
What was the air date of the episod that had 456.58 thousand viewers?
### CONTEXT
CREATE TABLE table_23114705_7 (original_air_date VARCHAR, nz_viewers__thousand_ VARCHAR)
### ANSWER
SELECT original_air_date FROM table_23114705_7 WHERE nz_viewers__thousand_ = "456.58"</s> | {
"answer": "SELECT original_air_date FROM table_23114705_7 WHERE nz_viewers__thousand_ = \"456.58\"",
"context": "CREATE TABLE table_23114705_7 (original_air_date VARCHAR, nz_viewers__thousand_ VARCHAR)",
"question": "What was the air date of the episod that had 456.58 thousand viewers?"
} |
### QUESTION
Find the id and color description of the products with at least 2 characteristics.
### CONTEXT
CREATE TABLE product_characteristics (product_id VARCHAR); CREATE TABLE ref_colors (color_description VARCHAR, color_code VARCHAR); CREATE TABLE products (product_id VARCHAR, color_code VARCHAR)
### ANSWER
SELECT t1.product_id, t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code JOIN product_characteristics AS t3 ON t1.product_id = t3.product_id GROUP BY t1.product_id HAVING COUNT(*) >= 2</s> | {
"answer": "SELECT t1.product_id, t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code JOIN product_characteristics AS t3 ON t1.product_id = t3.product_id GROUP BY t1.product_id HAVING COUNT(*) >= 2",
"context": "CREATE TABLE product_characteristics (product_id VARCHAR); CREATE TABLE ref_colors (color_description VARCHAR, color_code VARCHAR); CREATE TABLE products (product_id VARCHAR, color_code VARCHAR)",
"question": "Find the id and color description of the products with at least 2 characteristics."
} |
### QUESTION
What is the color code and description of the product named "chervil"?
### CONTEXT
CREATE TABLE products (color_code VARCHAR, product_name VARCHAR); CREATE TABLE ref_colors (color_description VARCHAR, color_code VARCHAR)
### ANSWER
SELECT t1.color_code, t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = "chervil"</s> | {
"answer": "SELECT t1.color_code, t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = \"chervil\"",
"context": "CREATE TABLE products (color_code VARCHAR, product_name VARCHAR); CREATE TABLE ref_colors (color_description VARCHAR, color_code VARCHAR)",
"question": "What is the color code and description of the product named \"chervil\"?"
} |
### QUESTION
What are the name and typical buying and selling prices of the products that have color described as "yellow"?
### CONTEXT
CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE products (product_name VARCHAR, typical_buying_price VARCHAR, typical_selling_price VARCHAR, color_code VARCHAR)
### ANSWER
SELECT t1.product_name, t1.typical_buying_price, t1.typical_selling_price FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = "yellow"</s> | {
"answer": "SELECT t1.product_name, t1.typical_buying_price, t1.typical_selling_price FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = \"yellow\"",
"context": "CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE products (product_name VARCHAR, typical_buying_price VARCHAR, typical_selling_price VARCHAR, color_code VARCHAR)",
"question": "What are the name and typical buying and selling prices of the products that have color described as \"yellow\"?"
} |
### QUESTION
when the number of spectator are 5.28 millions, which is the smallest number of the episode in series?
### CONTEXT
CREATE TABLE table_23117208_3 (no_in_series INTEGER, viewers__millions_ VARCHAR)
### ANSWER
SELECT MIN(no_in_series) FROM table_23117208_3 WHERE viewers__millions_ = "5.28"</s> | {
"answer": "SELECT MIN(no_in_series) FROM table_23117208_3 WHERE viewers__millions_ = \"5.28\"",
"context": "CREATE TABLE table_23117208_3 (no_in_series INTEGER, viewers__millions_ VARCHAR)",
"question": "when the number of spectator are 5.28 millions, which is the smallest number of the episode in series? "
} |
### QUESTION
How many distinct characteristic names does the product "cumin" have?
### CONTEXT
CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, characteristic_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)
### ANSWER
SELECT COUNT(DISTINCT t3.characteristic_name) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = "sesame"</s> | {
"answer": "SELECT COUNT(DISTINCT t3.characteristic_name) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = \"sesame\"",
"context": "CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, characteristic_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)",
"question": "How many distinct characteristic names does the product \"cumin\" have?"
} |
### QUESTION
What are all the characteristic names of product "sesame"?
### CONTEXT
CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, characteristic_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)
### ANSWER
SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = "sesame"</s> | {
"answer": "SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = \"sesame\"",
"context": "CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, characteristic_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)",
"question": "What are all the characteristic names of product \"sesame\"?"
} |
### QUESTION
how many millions of spectator did has the episode whose prod.code was rp#213?
### CONTEXT
CREATE TABLE table_23117208_3 (viewers__millions_ VARCHAR, prod_code VARCHAR)
### ANSWER
SELECT viewers__millions_ FROM table_23117208_3 WHERE prod_code = "RP#213"</s> | {
"answer": "SELECT viewers__millions_ FROM table_23117208_3 WHERE prod_code = \"RP#213\"",
"context": "CREATE TABLE table_23117208_3 (viewers__millions_ VARCHAR, prod_code VARCHAR)",
"question": "how many millions of spectator did has the episode whose prod.code was rp#213?"
} |
### QUESTION
List all the characteristic names and data types of product "cumin".
### CONTEXT
CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, characteristic_data_type VARCHAR, characteristic_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)
### ANSWER
SELECT t3.characteristic_name, t3.characteristic_data_type FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = "cumin"</s> | {
"answer": "SELECT t3.characteristic_name, t3.characteristic_data_type FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = \"cumin\"",
"context": "CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, characteristic_data_type VARCHAR, characteristic_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)",
"question": "List all the characteristic names and data types of product \"cumin\"."
} |
### QUESTION
List all characteristics of product named "sesame" with type code "Grade".
### CONTEXT
CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, characteristic_id VARCHAR, characteristic_type_code VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)
### ANSWER
SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = "sesame" AND t3.characteristic_type_code = "Grade"</s> | {
"answer": "SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = \"sesame\" AND t3.characteristic_type_code = \"Grade\"",
"context": "CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, characteristic_id VARCHAR, characteristic_type_code VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)",
"question": "List all characteristics of product named \"sesame\" with type code \"Grade\"."
} |
### QUESTION
How many characteristics does the product named "laurel" have?
### CONTEXT
CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)
### ANSWER
SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = "laurel"</s> | {
"answer": "SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = \"laurel\"",
"context": "CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)",
"question": "How many characteristics does the product named \"laurel\" have?"
} |
### QUESTION
In which season did the évora settlements join the league?
### CONTEXT
CREATE TABLE table_name_28 (season_joined_league VARCHAR, settlements VARCHAR)
### ANSWER
SELECT season_joined_league FROM table_name_28 WHERE settlements = "évora"</s> | {
"answer": "SELECT season_joined_league FROM table_name_28 WHERE settlements = \"évora\"",
"context": "CREATE TABLE table_name_28 (season_joined_league VARCHAR, settlements VARCHAR)",
"question": "In which season did the évora settlements join the league?"
} |
### QUESTION
Name the production code for 4.92 million viewers
### CONTEXT
CREATE TABLE table_23117208_4 (prod_code VARCHAR, viewers__millions_ VARCHAR)
### ANSWER
SELECT prod_code FROM table_23117208_4 WHERE viewers__millions_ = "4.92"</s> | {
"answer": "SELECT prod_code FROM table_23117208_4 WHERE viewers__millions_ = \"4.92\"",
"context": "CREATE TABLE table_23117208_4 (prod_code VARCHAR, viewers__millions_ VARCHAR)",
"question": "Name the production code for 4.92 million viewers"
} |
### QUESTION
Find the number of characteristics that the product "flax" has.
### CONTEXT
CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)
### ANSWER
SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = "flax"</s> | {
"answer": "SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = \"flax\"",
"context": "CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)",
"question": "Find the number of characteristics that the product \"flax\" has."
} |
### QUESTION
Find the name of the products that have the color description "red" and have the characteristic name "fast".
### CONTEXT
CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE products (product_id VARCHAR, color_code VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)
### ANSWER
SELECT product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = "red" AND t3.characteristic_name = "fast"</s> | {
"answer": "SELECT product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = \"red\" AND t3.characteristic_name = \"fast\"",
"context": "CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE products (product_id VARCHAR, color_code VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)",
"question": "Find the name of the products that have the color description \"red\" and have the characteristic name \"fast\"."
} |
### QUESTION
List the all the distinct names of the products with the characteristic name 'warm'.
### CONTEXT
CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)
### ANSWER
SELECT DISTINCT t1.product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t3.characteristic_name = "warm"</s> | {
"answer": "SELECT DISTINCT t1.product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t3.characteristic_name = \"warm\"",
"context": "CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)",
"question": "List the all the distinct names of the products with the characteristic name 'warm'."
} |
### QUESTION
Find the number of the products that have their color described as "red" and have a characteristic named "slow".
### CONTEXT
CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE products (product_id VARCHAR, color_code VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)
### ANSWER
SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = "red" AND t3.characteristic_name = "slow"</s> | {
"answer": "SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = \"red\" AND t3.characteristic_name = \"slow\"",
"context": "CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE products (product_id VARCHAR, color_code VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)",
"question": "Find the number of the products that have their color described as \"red\" and have a characteristic named \"slow\"."
} |
### QUESTION
Count the products that have the color description "white" or have the characteristic name "hot".
### CONTEXT
CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE products (product_id VARCHAR, color_code VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)
### ANSWER
SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = "white" OR t3.characteristic_name = "hot"</s> | {
"answer": "SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = \"white\" OR t3.characteristic_name = \"hot\"",
"context": "CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE products (product_id VARCHAR, color_code VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)",
"question": "Count the products that have the color description \"white\" or have the characteristic name \"hot\"."
} |
### QUESTION
What are Arthur Ashe's games w-l?
### CONTEXT
CREATE TABLE table_23133482_1 (games_w_l VARCHAR, player VARCHAR)
### ANSWER
SELECT games_w_l FROM table_23133482_1 WHERE player = "Arthur Ashe"</s> | {
"answer": "SELECT games_w_l FROM table_23133482_1 WHERE player = \"Arthur Ashe\"",
"context": "CREATE TABLE table_23133482_1 (games_w_l VARCHAR, player VARCHAR)",
"question": "What are Arthur Ashe's games w-l?"
} |
### QUESTION
How many products have the characteristic named "hot"?
### CONTEXT
CREATE TABLE products (product_id VARCHAR); CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)
### ANSWER
SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t3.characteristic_name = "hot"</s> | {
"answer": "SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t3.characteristic_name = \"hot\"",
"context": "CREATE TABLE products (product_id VARCHAR); CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)",
"question": "How many products have the characteristic named \"hot\"?"
} |
### QUESTION
Who was the Youth Classification in the race with Kenneth Hanson as Mountains Classification and Lucas Sebastian Haedo as winner?
### CONTEXT
CREATE TABLE table_23157997_13 (youth_classification VARCHAR, mountains_classification VARCHAR, winner VARCHAR)
### ANSWER
SELECT youth_classification FROM table_23157997_13 WHERE mountains_classification = "Kenneth Hanson" AND winner = "Lucas Sebastian Haedo"</s> | {
"answer": "SELECT youth_classification FROM table_23157997_13 WHERE mountains_classification = \"Kenneth Hanson\" AND winner = \"Lucas Sebastian Haedo\"",
"context": "CREATE TABLE table_23157997_13 (youth_classification VARCHAR, mountains_classification VARCHAR, winner VARCHAR)",
"question": "Who was the Youth Classification in the race with Kenneth Hanson as Mountains Classification and Lucas Sebastian Haedo as winner?"
} |
### QUESTION
What is the unit of measurement of product named "cumin"?
### CONTEXT
CREATE TABLE ref_product_categories (unit_of_measure VARCHAR, product_category_code VARCHAR); CREATE TABLE products (product_category_code VARCHAR, product_name VARCHAR)
### ANSWER
SELECT t2.unit_of_measure FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code WHERE t1.product_name = "cumin"</s> | {
"answer": "SELECT t2.unit_of_measure FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code WHERE t1.product_name = \"cumin\"",
"context": "CREATE TABLE ref_product_categories (unit_of_measure VARCHAR, product_category_code VARCHAR); CREATE TABLE products (product_category_code VARCHAR, product_name VARCHAR)",
"question": "What is the unit of measurement of product named \"cumin\"?"
} |
### QUESTION
Find the unit of measurement and product category code of product named "chervil".
### CONTEXT
CREATE TABLE ref_product_categories (unit_of_measure VARCHAR, product_category_code VARCHAR); CREATE TABLE products (product_category_code VARCHAR, product_name VARCHAR)
### ANSWER
SELECT t2.unit_of_measure, t2.product_category_code FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code WHERE t1.product_name = "chervil"</s> | {
"answer": "SELECT t2.unit_of_measure, t2.product_category_code FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code WHERE t1.product_name = \"chervil\"",
"context": "CREATE TABLE ref_product_categories (unit_of_measure VARCHAR, product_category_code VARCHAR); CREATE TABLE products (product_category_code VARCHAR, product_name VARCHAR)",
"question": "Find the unit of measurement and product category code of product named \"chervil\"."
} |
### QUESTION
Who won the race with Tom Zirbel as Mountains Classification and Thomas Soladay as Points Classification?
### CONTEXT
CREATE TABLE table_23157997_13 (winner VARCHAR, mountains_classification VARCHAR, points_classification VARCHAR)
### ANSWER
SELECT winner FROM table_23157997_13 WHERE mountains_classification = "Tom Zirbel" AND points_classification = "Thomas Soladay"</s> | {
"answer": "SELECT winner FROM table_23157997_13 WHERE mountains_classification = \"Tom Zirbel\" AND points_classification = \"Thomas Soladay\"",
"context": "CREATE TABLE table_23157997_13 (winner VARCHAR, mountains_classification VARCHAR, points_classification VARCHAR)",
"question": "Who won the race with Tom Zirbel as Mountains Classification and Thomas Soladay as Points Classification?"
} |
### QUESTION
Find the product names that are colored 'white' but do not have unit of measurement "Handful".
### CONTEXT
CREATE TABLE products (product_name VARCHAR, product_category_code VARCHAR, color_code VARCHAR); CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE ref_product_categories (product_category_code VARCHAR, unit_of_measure VARCHAR)
### ANSWER
SELECT t1.product_name FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code JOIN ref_colors AS t3 ON t1.color_code = t3.color_code WHERE t3.color_description = "white" AND t2.unit_of_measure <> "Handful"</s> | {
"answer": "SELECT t1.product_name FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code JOIN ref_colors AS t3 ON t1.color_code = t3.color_code WHERE t3.color_description = \"white\" AND t2.unit_of_measure <> \"Handful\"",
"context": "CREATE TABLE products (product_name VARCHAR, product_category_code VARCHAR, color_code VARCHAR); CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE ref_product_categories (product_category_code VARCHAR, unit_of_measure VARCHAR)",
"question": "Find the product names that are colored 'white' but do not have unit of measurement \"Handful\"."
} |
### QUESTION
Who was Mountains Classification in the race with Nick Frey as Youth Classification and Tom Zirbel as Points Classification?
### CONTEXT
CREATE TABLE table_23157997_13 (mountains_classification VARCHAR, youth_classification VARCHAR, points_classification VARCHAR)
### ANSWER
SELECT mountains_classification FROM table_23157997_13 WHERE youth_classification = "Nick Frey" AND points_classification = "Tom Zirbel"</s> | {
"answer": "SELECT mountains_classification FROM table_23157997_13 WHERE youth_classification = \"Nick Frey\" AND points_classification = \"Tom Zirbel\"",
"context": "CREATE TABLE table_23157997_13 (mountains_classification VARCHAR, youth_classification VARCHAR, points_classification VARCHAR)",
"question": "Who was Mountains Classification in the race with Nick Frey as Youth Classification and Tom Zirbel as Points Classification?"
} |
### QUESTION
What is the characteristic name used by most number of the products?
### CONTEXT
CREATE TABLE products (product_id VARCHAR); CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, characteristic_id VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)
### ANSWER
SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id GROUP BY t3.characteristic_name ORDER BY COUNT(*) DESC LIMIT 1</s> | {
"answer": "SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id GROUP BY t3.characteristic_name ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE products (product_id VARCHAR); CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, characteristic_id VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)",
"question": "What is the characteristic name used by most number of the products?"
} |
### QUESTION
What are the names, details and data types of the characteristics which are never used by any product?
### CONTEXT
CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, other_characteristic_details VARCHAR, characteristic_data_type VARCHAR, characteristic_id VARCHAR); CREATE TABLE product_characteristics (characteristic_id VARCHAR); CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, other_characteristic_details VARCHAR, characteristic_data_type VARCHAR)
### ANSWER
SELECT characteristic_name, other_characteristic_details, characteristic_data_type FROM CHARACTERISTICS EXCEPT SELECT t1.characteristic_name, t1.other_characteristic_details, t1.characteristic_data_type FROM CHARACTERISTICS AS t1 JOIN product_characteristics AS t2 ON t1.characteristic_id = t2.characteristic_id</s> | {
"answer": "SELECT characteristic_name, other_characteristic_details, characteristic_data_type FROM CHARACTERISTICS EXCEPT SELECT t1.characteristic_name, t1.other_characteristic_details, t1.characteristic_data_type FROM CHARACTERISTICS AS t1 JOIN product_characteristics AS t2 ON t1.characteristic_id = t2.characteristic_id",
"context": "CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, other_characteristic_details VARCHAR, characteristic_data_type VARCHAR, characteristic_id VARCHAR); CREATE TABLE product_characteristics (characteristic_id VARCHAR); CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, other_characteristic_details VARCHAR, characteristic_data_type VARCHAR)",
"question": "What are the names, details and data types of the characteristics which are never used by any product?"
} |
### QUESTION
What are characteristic names used at least twice across all products?
### CONTEXT
CREATE TABLE products (product_id VARCHAR); CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, characteristic_id VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)
### ANSWER
SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id GROUP BY t3.characteristic_name HAVING COUNT(*) >= 2</s> | {
"answer": "SELECT t3.characteristic_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id GROUP BY t3.characteristic_name HAVING COUNT(*) >= 2",
"context": "CREATE TABLE products (product_id VARCHAR); CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, characteristic_id VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)",
"question": "What are characteristic names used at least twice across all products?"
} |
### QUESTION
Which of the radio stations has the organization of ente público radio televisión madrid (eprtvm)?
### CONTEXT
CREATE TABLE table_23143607_1 (radio_stations VARCHAR, organization VARCHAR)
### ANSWER
SELECT radio_stations FROM table_23143607_1 WHERE organization = "Ente Público Radio Televisión Madrid (EPRTVM)"</s> | {
"answer": "SELECT radio_stations FROM table_23143607_1 WHERE organization = \"Ente Público Radio Televisión Madrid (EPRTVM)\"",
"context": "CREATE TABLE table_23143607_1 (radio_stations VARCHAR, organization VARCHAR)",
"question": "Which of the radio stations has the organization of ente público radio televisión madrid (eprtvm)?"
} |
### QUESTION
What is the autonomous community with television channels tpa tpa2 rtpa internacional?
### CONTEXT
CREATE TABLE table_23143607_1 (autonomous_community VARCHAR, television_channels VARCHAR)
### ANSWER
SELECT autonomous_community FROM table_23143607_1 WHERE television_channels = "TPA TPA2 RTPA Internacional"</s> | {
"answer": "SELECT autonomous_community FROM table_23143607_1 WHERE television_channels = \"TPA TPA2 RTPA Internacional\"",
"context": "CREATE TABLE table_23143607_1 (autonomous_community VARCHAR, television_channels VARCHAR)",
"question": "What is the autonomous community with television channels tpa tpa2 rtpa internacional?"
} |
### QUESTION
What is the description of the color for most products?
### CONTEXT
CREATE TABLE ref_colors (color_description VARCHAR, color_code VARCHAR); CREATE TABLE products (color_code VARCHAR)
### ANSWER
SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code GROUP BY t2.color_description ORDER BY COUNT(*) DESC LIMIT 1</s> | {
"answer": "SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code GROUP BY t2.color_description ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE ref_colors (color_description VARCHAR, color_code VARCHAR); CREATE TABLE products (color_code VARCHAR)",
"question": "What is the description of the color for most products?"
} |
### QUESTION
Name the least field goals for chantel hilliard
### CONTEXT
CREATE TABLE table_23183195_5 (field_goals INTEGER, player VARCHAR)
### ANSWER
SELECT MIN(field_goals) FROM table_23183195_5 WHERE player = "Chantel Hilliard"</s> | {
"answer": "SELECT MIN(field_goals) FROM table_23183195_5 WHERE player = \"Chantel Hilliard\"",
"context": "CREATE TABLE table_23183195_5 (field_goals INTEGER, player VARCHAR)",
"question": "Name the least field goals for chantel hilliard"
} |
### QUESTION
How many foundation dates were there when the television channels is canal nou canal nou dos canal nou 24 tvvi?
### CONTEXT
CREATE TABLE table_23143607_1 (foundation VARCHAR, television_channels VARCHAR)
### ANSWER
SELECT COUNT(foundation) FROM table_23143607_1 WHERE television_channels = "Canal Nou Canal Nou Dos Canal Nou 24 TVVi"</s> | {
"answer": "SELECT COUNT(foundation) FROM table_23143607_1 WHERE television_channels = \"Canal Nou Canal Nou Dos Canal Nou 24 TVVi\"",
"context": "CREATE TABLE table_23143607_1 (foundation VARCHAR, television_channels VARCHAR)",
"question": "How many foundation dates were there when the television channels is canal nou canal nou dos canal nou 24 tvvi?"
} |
### QUESTION
What Opponent has a Site of war memorial stadium • little rock, ar, and a Result of l6–7?
### CONTEXT
CREATE TABLE table_name_63 (opponent VARCHAR, site VARCHAR, result VARCHAR)
### ANSWER
SELECT opponent FROM table_name_63 WHERE site = "war memorial stadium • little rock, ar" AND result = "l6–7"</s> | {
"answer": "SELECT opponent FROM table_name_63 WHERE site = \"war memorial stadium • little rock, ar\" AND result = \"l6–7\"",
"context": "CREATE TABLE table_name_63 (opponent VARCHAR, site VARCHAR, result VARCHAR)",
"question": "What Opponent has a Site of war memorial stadium • little rock, ar, and a Result of l6–7?"
} |
### QUESTION
Which country has both stadiums with capacity greater than 60000 and stadiums with capacity less than 50000?
### CONTEXT
CREATE TABLE stadium (country VARCHAR, capacity INTEGER)
### ANSWER
SELECT country FROM stadium WHERE capacity > 60000 INTERSECT SELECT country FROM stadium WHERE capacity < 50000</s> | {
"answer": "SELECT country FROM stadium WHERE capacity > 60000 INTERSECT SELECT country FROM stadium WHERE capacity < 50000",
"context": "CREATE TABLE stadium (country VARCHAR, capacity INTEGER)",
"question": "Which country has both stadiums with capacity greater than 60000 and stadiums with capacity less than 50000?"
} |
### QUESTION
Which countries do not have a stadium that was opened after 2006?
### CONTEXT
CREATE TABLE stadium (country VARCHAR, opening_year INTEGER)
### ANSWER
SELECT country FROM stadium EXCEPT SELECT country FROM stadium WHERE opening_year > 2006</s> | {
"answer": "SELECT country FROM stadium EXCEPT SELECT country FROM stadium WHERE opening_year > 2006",
"context": "CREATE TABLE stadium (country VARCHAR, opening_year INTEGER)",
"question": "Which countries do not have a stadium that was opened after 2006?"
} |
### QUESTION
Name the number of assists for 321 minutes
### CONTEXT
CREATE TABLE table_23184448_4 (assists VARCHAR, minutes VARCHAR)
### ANSWER
SELECT COUNT(assists) FROM table_23184448_4 WHERE minutes = 321</s> | {
"answer": "SELECT COUNT(assists) FROM table_23184448_4 WHERE minutes = 321",
"context": "CREATE TABLE table_23184448_4 (assists VARCHAR, minutes VARCHAR)",
"question": "Name the number of assists for 321 minutes "
} |
### QUESTION
Name the number of players for field goals being 25 and blocks is 6
### CONTEXT
CREATE TABLE table_23184448_4 (player VARCHAR, field_goals VARCHAR, blocks VARCHAR)
### ANSWER
SELECT COUNT(player) FROM table_23184448_4 WHERE field_goals = 25 AND blocks = 6</s> | {
"answer": "SELECT COUNT(player) FROM table_23184448_4 WHERE field_goals = 25 AND blocks = 6",
"context": "CREATE TABLE table_23184448_4 (player VARCHAR, field_goals VARCHAR, blocks VARCHAR)",
"question": "Name the number of players for field goals being 25 and blocks is 6"
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.