text
stringlengths 146
1.06k
| source
dict |
---|---|
### QUESTION
Where does the staff member with the first name Elsa live?
### CONTEXT
CREATE TABLE staff (address_id VARCHAR, first_name VARCHAR); CREATE TABLE address (address VARCHAR, address_id VARCHAR)
### ANSWER
SELECT T2.address FROM staff AS T1 JOIN address AS T2 ON T1.address_id = T2.address_id WHERE T1.first_name = 'Elsa' | {
"answer": "SELECT T2.address FROM staff AS T1 JOIN address AS T2 ON T1.address_id = T2.address_id WHERE T1.first_name = 'Elsa'",
"context": "CREATE TABLE staff (address_id VARCHAR, first_name VARCHAR); CREATE TABLE address (address VARCHAR, address_id VARCHAR)",
"question": "Where does the staff member with the first name Elsa live?"
} |
### QUESTION
Where is every location with specialization of textile engineering?
### CONTEXT
CREATE TABLE table_2112260_1 (location VARCHAR, specialization VARCHAR)
### ANSWER
SELECT location FROM table_2112260_1 WHERE specialization = "Textile engineering" | {
"answer": "SELECT location FROM table_2112260_1 WHERE specialization = \"Textile engineering\"",
"context": "CREATE TABLE table_2112260_1 (location VARCHAR, specialization VARCHAR)",
"question": "Where is every location with specialization of textile engineering?"
} |
### QUESTION
What is every website with specialization of engineering and division of dhaka division?
### CONTEXT
CREATE TABLE table_2112260_1 (website VARCHAR, specialization VARCHAR, division VARCHAR)
### ANSWER
SELECT website FROM table_2112260_1 WHERE specialization = "Engineering" AND division = "Dhaka division" | {
"answer": "SELECT website FROM table_2112260_1 WHERE specialization = \"Engineering\" AND division = \"Dhaka division\"",
"context": "CREATE TABLE table_2112260_1 (website VARCHAR, specialization VARCHAR, division VARCHAR)",
"question": "What is every website with specialization of engineering and division of dhaka division?"
} |
### QUESTION
Find the number of customers in the banks at New York City.
### CONTEXT
CREATE TABLE bank (no_of_customers INTEGER, city VARCHAR)
### ANSWER
SELECT SUM(no_of_customers) FROM bank WHERE city = 'New York City' | {
"answer": "SELECT SUM(no_of_customers) FROM bank WHERE city = 'New York City'",
"context": "CREATE TABLE bank (no_of_customers INTEGER, city VARCHAR)",
"question": "Find the number of customers in the banks at New York City."
} |
### QUESTION
What To par has a Place of t10, and a Score of 67-73=140?
### CONTEXT
CREATE TABLE table_name_74 (to_par VARCHAR, place VARCHAR, score VARCHAR)
### ANSWER
SELECT to_par FROM table_name_74 WHERE place = "t10" AND score = 67 - 73 = 140 | {
"answer": "SELECT to_par FROM table_name_74 WHERE place = \"t10\" AND score = 67 - 73 = 140",
"context": "CREATE TABLE table_name_74 (to_par VARCHAR, place VARCHAR, score VARCHAR)",
"question": "What To par has a Place of t10, and a Score of 67-73=140?"
} |
### QUESTION
What Score has a Place of t6, a Country of united states, and a Player of fred couples?
### CONTEXT
CREATE TABLE table_name_7 (score VARCHAR, player VARCHAR, place VARCHAR, country VARCHAR)
### ANSWER
SELECT score FROM table_name_7 WHERE place = "t6" AND country = "united states" AND player = "fred couples" | {
"answer": "SELECT score FROM table_name_7 WHERE place = \"t6\" AND country = \"united states\" AND player = \"fred couples\"",
"context": "CREATE TABLE table_name_7 (score VARCHAR, player VARCHAR, place VARCHAR, country VARCHAR)",
"question": "What Score has a Place of t6, a Country of united states, and a Player of fred couples?"
} |
### QUESTION
Where is every location where Nick is Bru?
### CONTEXT
CREATE TABLE table_2112260_1 (location VARCHAR, nick VARCHAR)
### ANSWER
SELECT location FROM table_2112260_1 WHERE nick = "BRU" | {
"answer": "SELECT location FROM table_2112260_1 WHERE nick = \"BRU\"",
"context": "CREATE TABLE table_2112260_1 (location VARCHAR, nick VARCHAR)",
"question": "Where is every location where Nick is Bru?"
} |
### QUESTION
Name the Provider that has a pay in 2006–, and a Transmission of iptv and digital terrestrial?
### CONTEXT
CREATE TABLE table_name_90 (provider VARCHAR, transmission VARCHAR, free_or_pay VARCHAR, years VARCHAR)
### ANSWER
SELECT provider FROM table_name_90 WHERE free_or_pay = "pay" AND years = "2006–" AND transmission = "iptv and digital terrestrial" | {
"answer": "SELECT provider FROM table_name_90 WHERE free_or_pay = \"pay\" AND years = \"2006–\" AND transmission = \"iptv and digital terrestrial\"",
"context": "CREATE TABLE table_name_90 (provider VARCHAR, transmission VARCHAR, free_or_pay VARCHAR, years VARCHAR)",
"question": "Name the Provider that has a pay in 2006–, and a Transmission of iptv and digital terrestrial?"
} |
### QUESTION
Name the Years which have Transmission of digital satellite, an On demand of no, and a Free or pay of free + ppv?
### CONTEXT
CREATE TABLE table_name_16 (years VARCHAR, free_or_pay VARCHAR, transmission VARCHAR, on_demand VARCHAR)
### ANSWER
SELECT years FROM table_name_16 WHERE transmission = "digital satellite" AND on_demand = "no" AND free_or_pay = "free + ppv" | {
"answer": "SELECT years FROM table_name_16 WHERE transmission = \"digital satellite\" AND on_demand = \"no\" AND free_or_pay = \"free + ppv\"",
"context": "CREATE TABLE table_name_16 (years VARCHAR, free_or_pay VARCHAR, transmission VARCHAR, on_demand VARCHAR)",
"question": "Name the Years which have Transmission of digital satellite, an On demand of no, and a Free or pay of free + ppv?"
} |
### QUESTION
List the name of all different customers who have some loan sorted by their total loan amount.
### CONTEXT
CREATE TABLE loan (cust_id VARCHAR, amount INTEGER); CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR)
### ANSWER
SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name ORDER BY SUM(T2.amount) | {
"answer": "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name ORDER BY SUM(T2.amount)",
"context": "CREATE TABLE loan (cust_id VARCHAR, amount INTEGER); CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR)",
"question": "List the name of all different customers who have some loan sorted by their total loan amount."
} |
### QUESTION
What kind of Free or pay has Years of 2006– and a Provider of bt tv (formerly bt vision)?
### CONTEXT
CREATE TABLE table_name_26 (free_or_pay VARCHAR, years VARCHAR, provider VARCHAR)
### ANSWER
SELECT free_or_pay FROM table_name_26 WHERE years = "2006–" AND provider = "bt tv (formerly bt vision)" | {
"answer": "SELECT free_or_pay FROM table_name_26 WHERE years = \"2006–\" AND provider = \"bt tv (formerly bt vision)\"",
"context": "CREATE TABLE table_name_26 (free_or_pay VARCHAR, years VARCHAR, provider VARCHAR)",
"question": "What kind of Free or pay has Years of 2006– and a Provider of bt tv (formerly bt vision)?"
} |
### QUESTION
Which On demand has a pay and a Provider of virgin media (formerly ntl:telewest)?
### CONTEXT
CREATE TABLE table_name_25 (on_demand VARCHAR, free_or_pay VARCHAR, provider VARCHAR)
### ANSWER
SELECT on_demand FROM table_name_25 WHERE free_or_pay = "pay" AND provider = "virgin media (formerly ntl:telewest)" | {
"answer": "SELECT on_demand FROM table_name_25 WHERE free_or_pay = \"pay\" AND provider = \"virgin media (formerly ntl:telewest)\"",
"context": "CREATE TABLE table_name_25 (on_demand VARCHAR, free_or_pay VARCHAR, provider VARCHAR)",
"question": "Which On demand has a pay and a Provider of virgin media (formerly ntl:telewest)?"
} |
### QUESTION
How many distinct types of accounts are there?
### CONTEXT
CREATE TABLE customer (acc_type VARCHAR)
### ANSWER
SELECT COUNT(DISTINCT acc_type) FROM customer | {
"answer": "SELECT COUNT(DISTINCT acc_type) FROM customer",
"context": "CREATE TABLE customer (acc_type VARCHAR)",
"question": "How many distinct types of accounts are there?"
} |
### QUESTION
What was the series# with the original airdate of october 23, 1967?
### CONTEXT
CREATE TABLE table_21146729_6 (series__number INTEGER, original_airdate VARCHAR)
### ANSWER
SELECT MAX(series__number) FROM table_21146729_6 WHERE original_airdate = "October 23, 1967" | {
"answer": "SELECT MAX(series__number) FROM table_21146729_6 WHERE original_airdate = \"October 23, 1967\"",
"context": "CREATE TABLE table_21146729_6 (series__number INTEGER, original_airdate VARCHAR)",
"question": "What was the series# with the original airdate of october 23, 1967?"
} |
### QUESTION
How many of the series # when the original airdate is september 25, 1967?
### CONTEXT
CREATE TABLE table_21146729_6 (series__number VARCHAR, original_airdate VARCHAR)
### ANSWER
SELECT COUNT(series__number) FROM table_21146729_6 WHERE original_airdate = "September 25, 1967" | {
"answer": "SELECT COUNT(series__number) FROM table_21146729_6 WHERE original_airdate = \"September 25, 1967\"",
"context": "CREATE TABLE table_21146729_6 (series__number VARCHAR, original_airdate VARCHAR)",
"question": "How many of the series # when the original airdate is september 25, 1967?"
} |
### QUESTION
Find the name of customers who do not have an saving account.
### CONTEXT
CREATE TABLE customer (cust_name VARCHAR, acc_type VARCHAR)
### ANSWER
SELECT cust_name FROM customer EXCEPT SELECT cust_name FROM customer WHERE acc_type = 'saving' | {
"answer": "SELECT cust_name FROM customer EXCEPT SELECT cust_name FROM customer WHERE acc_type = 'saving'",
"context": "CREATE TABLE customer (cust_name VARCHAR, acc_type VARCHAR)",
"question": "Find the name of customers who do not have an saving account."
} |
### QUESTION
Find the name of customers who do not have a loan with a type of Mortgages.
### CONTEXT
CREATE TABLE loan (cust_id VARCHAR, loan_type VARCHAR); CREATE TABLE customer (cust_name VARCHAR); CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR)
### ANSWER
SELECT cust_name FROM customer EXCEPT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE T2.loan_type = 'Mortgages' | {
"answer": "SELECT cust_name FROM customer EXCEPT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE T2.loan_type = 'Mortgages'",
"context": "CREATE TABLE loan (cust_id VARCHAR, loan_type VARCHAR); CREATE TABLE customer (cust_name VARCHAR); CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR)",
"question": "Find the name of customers who do not have a loan with a type of Mortgages."
} |
### QUESTION
Find the name of customers who have loans of both Mortgages and Auto.
### CONTEXT
CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR); CREATE TABLE loan (cust_id VARCHAR)
### ANSWER
SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Mortgages' INTERSECT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Auto' | {
"answer": "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Mortgages' INTERSECT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Auto'",
"context": "CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR); CREATE TABLE loan (cust_id VARCHAR)",
"question": "Find the name of customers who have loans of both Mortgages and Auto."
} |
### QUESTION
What is the highest Assets (USD) Millions from Equity Bank and less than 44 branches?
### CONTEXT
CREATE TABLE table_name_37 (assets__usd__millions INTEGER, bank VARCHAR, number_of_branches VARCHAR)
### ANSWER
SELECT MAX(assets__usd__millions) FROM table_name_37 WHERE bank = "equity bank" AND number_of_branches < 44 | {
"answer": "SELECT MAX(assets__usd__millions) FROM table_name_37 WHERE bank = \"equity bank\" AND number_of_branches < 44",
"context": "CREATE TABLE table_name_37 (assets__usd__millions INTEGER, bank VARCHAR, number_of_branches VARCHAR)",
"question": "What is the highest Assets (USD) Millions from Equity Bank and less than 44 branches?"
} |
### QUESTION
Find the name of customer who has the highest amount of loans.
### CONTEXT
CREATE TABLE loan (cust_id VARCHAR, amount INTEGER); CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR)
### ANSWER
SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name ORDER BY SUM(T2.amount) DESC LIMIT 1 | {
"answer": "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name ORDER BY SUM(T2.amount) DESC LIMIT 1",
"context": "CREATE TABLE loan (cust_id VARCHAR, amount INTEGER); CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR)",
"question": "Find the name of customer who has the highest amount of loans."
} |
### QUESTION
Find the name of customers who have more than one loan.
### CONTEXT
CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR); CREATE TABLE loan (cust_id VARCHAR)
### ANSWER
SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING COUNT(*) > 1 | {
"answer": "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING COUNT(*) > 1",
"context": "CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR); CREATE TABLE loan (cust_id VARCHAR)",
"question": "Find the name of customers who have more than one loan."
} |
### QUESTION
Find the name and account balance of the customers who have loans with a total amount of more than 5000.
### CONTEXT
CREATE TABLE loan (cust_id VARCHAR, amount INTEGER); CREATE TABLE customer (cust_name VARCHAR, acc_type VARCHAR, cust_id VARCHAR)
### ANSWER
SELECT T1.cust_name, T1.acc_type FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING SUM(T2.amount) > 5000 | {
"answer": "SELECT T1.cust_name, T1.acc_type FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING SUM(T2.amount) > 5000",
"context": "CREATE TABLE loan (cust_id VARCHAR, amount INTEGER); CREATE TABLE customer (cust_name VARCHAR, acc_type VARCHAR, cust_id VARCHAR)",
"question": "Find the name and account balance of the customers who have loans with a total amount of more than 5000."
} |
### QUESTION
Find the name of bank branch that provided the greatest total amount of loans.
### CONTEXT
CREATE TABLE loan (branch_id VARCHAR, amount INTEGER); CREATE TABLE bank (bname VARCHAR, branch_id VARCHAR)
### ANSWER
SELECT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id GROUP BY T1.bname ORDER BY SUM(T2.amount) DESC LIMIT 1 | {
"answer": "SELECT T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id GROUP BY T1.bname ORDER BY SUM(T2.amount) DESC LIMIT 1",
"context": "CREATE TABLE loan (branch_id VARCHAR, amount INTEGER); CREATE TABLE bank (bname VARCHAR, branch_id VARCHAR)",
"question": "Find the name of bank branch that provided the greatest total amount of loans."
} |
### QUESTION
Find the name of bank branch that provided the greatest total amount of loans to customers with credit score is less than 100.
### CONTEXT
CREATE TABLE loan (branch_id VARCHAR, cust_id VARCHAR, amount INTEGER); CREATE TABLE bank (bname VARCHAR, branch_id VARCHAR); CREATE TABLE customer (cust_id VARCHAR, credit_score INTEGER)
### ANSWER
SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id = T2.branch_id JOIN customer AS T3 ON T1.cust_id = T3.cust_id WHERE T3.credit_score < 100 GROUP BY T2.bname ORDER BY SUM(T1.amount) DESC LIMIT 1 | {
"answer": "SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id = T2.branch_id JOIN customer AS T3 ON T1.cust_id = T3.cust_id WHERE T3.credit_score < 100 GROUP BY T2.bname ORDER BY SUM(T1.amount) DESC LIMIT 1",
"context": "CREATE TABLE loan (branch_id VARCHAR, cust_id VARCHAR, amount INTEGER); CREATE TABLE bank (bname VARCHAR, branch_id VARCHAR); CREATE TABLE customer (cust_id VARCHAR, credit_score INTEGER)",
"question": "Find the name of bank branch that provided the greatest total amount of loans to customers with credit score is less than 100."
} |
### QUESTION
Who is the second member that was elected in 1555?
### CONTEXT
CREATE TABLE table_name_34 (elected VARCHAR)
### ANSWER
SELECT 2 AS nd_member FROM table_name_34 WHERE elected = "1555" | {
"answer": "SELECT 2 AS nd_member FROM table_name_34 WHERE elected = \"1555\"",
"context": "CREATE TABLE table_name_34 (elected VARCHAR)",
"question": "Who is the second member that was elected in 1555?"
} |
### QUESTION
Find the the name of the customers who have a loan with amount more than 3000.
### CONTEXT
CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR); CREATE TABLE loan (cust_id VARCHAR)
### ANSWER
SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE amount > 3000 | {
"answer": "SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE amount > 3000",
"context": "CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR); CREATE TABLE loan (cust_id VARCHAR)",
"question": "Find the the name of the customers who have a loan with amount more than 3000."
} |
### QUESTION
Find the city and name of bank branches that provide business loans.
### CONTEXT
CREATE TABLE bank (bname VARCHAR, city VARCHAR, branch_id VARCHAR); CREATE TABLE loan (branch_id VARCHAR, loan_type VARCHAR)
### ANSWER
SELECT T1.bname, T1.city FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T2.loan_type = 'Business' | {
"answer": "SELECT T1.bname, T1.city FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T2.loan_type = 'Business'",
"context": "CREATE TABLE bank (bname VARCHAR, city VARCHAR, branch_id VARCHAR); CREATE TABLE loan (branch_id VARCHAR, loan_type VARCHAR)",
"question": "Find the city and name of bank branches that provide business loans."
} |
### QUESTION
Find the names of bank branches that have provided a loan to any customer whose credit score is below 100.
### CONTEXT
CREATE TABLE bank (bname VARCHAR, branch_id VARCHAR); CREATE TABLE customer (cust_id VARCHAR, credit_score INTEGER); CREATE TABLE loan (branch_id VARCHAR, cust_id VARCHAR)
### ANSWER
SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id = T2.branch_id JOIN customer AS T3 ON T1.cust_id = T3.cust_id WHERE T3.credit_score < 100 | {
"answer": "SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id = T2.branch_id JOIN customer AS T3 ON T1.cust_id = T3.cust_id WHERE T3.credit_score < 100",
"context": "CREATE TABLE bank (bname VARCHAR, branch_id VARCHAR); CREATE TABLE customer (cust_id VARCHAR, credit_score INTEGER); CREATE TABLE loan (branch_id VARCHAR, cust_id VARCHAR)",
"question": "Find the names of bank branches that have provided a loan to any customer whose credit score is below 100."
} |
### QUESTION
Find the total amount of loans provided by bank branches in the state of New York.
### CONTEXT
CREATE TABLE bank (branch_id VARCHAR, state VARCHAR); CREATE TABLE loan (amount INTEGER, branch_id VARCHAR)
### ANSWER
SELECT SUM(T2.amount) FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T1.state = 'New York' | {
"answer": "SELECT SUM(T2.amount) FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T1.state = 'New York'",
"context": "CREATE TABLE bank (branch_id VARCHAR, state VARCHAR); CREATE TABLE loan (amount INTEGER, branch_id VARCHAR)",
"question": "Find the total amount of loans provided by bank branches in the state of New York."
} |
### QUESTION
Find the average credit score of the customers who have some loan.
### CONTEXT
CREATE TABLE loan (credit_score INTEGER, cust_id VARCHAR); CREATE TABLE customer (credit_score INTEGER, cust_id VARCHAR)
### ANSWER
SELECT AVG(credit_score) FROM customer WHERE cust_id IN (SELECT cust_id FROM loan) | {
"answer": "SELECT AVG(credit_score) FROM customer WHERE cust_id IN (SELECT cust_id FROM loan)",
"context": "CREATE TABLE loan (credit_score INTEGER, cust_id VARCHAR); CREATE TABLE customer (credit_score INTEGER, cust_id VARCHAR)",
"question": "Find the average credit score of the customers who have some loan."
} |
### QUESTION
Which Player has a Round of 7, a Pick larger than 187, a Nationality of united states, and a Draft larger than 2000?
### CONTEXT
CREATE TABLE table_name_16 (player VARCHAR, draft VARCHAR, nationality VARCHAR, round VARCHAR, pick VARCHAR)
### ANSWER
SELECT player FROM table_name_16 WHERE round = "7" AND pick > 187 AND nationality = "united states" AND draft > 2000 | {
"answer": "SELECT player FROM table_name_16 WHERE round = \"7\" AND pick > 187 AND nationality = \"united states\" AND draft > 2000",
"context": "CREATE TABLE table_name_16 (player VARCHAR, draft VARCHAR, nationality VARCHAR, round VARCHAR, pick VARCHAR)",
"question": "Which Player has a Round of 7, a Pick larger than 187, a Nationality of united states, and a Draft larger than 2000?"
} |
### QUESTION
What losses consist of the team of japan?
### CONTEXT
CREATE TABLE table_name_13 (losses VARCHAR, team VARCHAR)
### ANSWER
SELECT losses FROM table_name_13 WHERE team = "japan" | {
"answer": "SELECT losses FROM table_name_13 WHERE team = \"japan\"",
"context": "CREATE TABLE table_name_13 (losses VARCHAR, team VARCHAR)",
"question": "What losses consist of the team of japan?"
} |
### QUESTION
Name the number of song for scoreboard being 3rd
### CONTEXT
CREATE TABLE table_21234111_6 (song VARCHAR, scoreboard VARCHAR)
### ANSWER
SELECT COUNT(song) FROM table_21234111_6 WHERE scoreboard = "3rd" | {
"answer": "SELECT COUNT(song) FROM table_21234111_6 WHERE scoreboard = \"3rd\"",
"context": "CREATE TABLE table_21234111_6 (song VARCHAR, scoreboard VARCHAR)",
"question": "Name the number of song for scoreboard being 3rd"
} |
### QUESTION
How many wins when there are more than 19 points, place smaller than 12, and fewer than 30 played?
### CONTEXT
CREATE TABLE table_name_36 (wins INTEGER, played VARCHAR, points VARCHAR, position VARCHAR)
### ANSWER
SELECT SUM(wins) FROM table_name_36 WHERE points > 19 AND position < 12 AND played < 30 | {
"answer": "SELECT SUM(wins) FROM table_name_36 WHERE points > 19 AND position < 12 AND played < 30",
"context": "CREATE TABLE table_name_36 (wins INTEGER, played VARCHAR, points VARCHAR, position VARCHAR)",
"question": "How many wins when there are more than 19 points, place smaller than 12, and fewer than 30 played?"
} |
### QUESTION
Find the ids and first names of the 3 teachers that have the most number of assessment notes?
### CONTEXT
CREATE TABLE Assessment_Notes (teacher_id VARCHAR); CREATE TABLE Teachers (first_name VARCHAR, teacher_id VARCHAR)
### ANSWER
SELECT T1.teacher_id, T2.first_name FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id GROUP BY T1.teacher_id ORDER BY COUNT(*) DESC LIMIT 3 | {
"answer": "SELECT T1.teacher_id, T2.first_name FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id GROUP BY T1.teacher_id ORDER BY COUNT(*) DESC LIMIT 3",
"context": "CREATE TABLE Assessment_Notes (teacher_id VARCHAR); CREATE TABLE Teachers (first_name VARCHAR, teacher_id VARCHAR)",
"question": "Find the ids and first names of the 3 teachers that have the most number of assessment notes?"
} |
### QUESTION
Find the id and last name of the student that has the most behavior incidents?
### CONTEXT
CREATE TABLE Students (last_name VARCHAR, student_id VARCHAR); CREATE TABLE Behavior_Incident (student_id VARCHAR)
### ANSWER
SELECT T1.student_id, T2.last_name FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"answer": "SELECT T1.student_id, T2.last_name FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE Students (last_name VARCHAR, student_id VARCHAR); CREATE TABLE Behavior_Incident (student_id VARCHAR)",
"question": "Find the id and last name of the student that has the most behavior incidents?"
} |
### QUESTION
Find the id and last name of the teacher that has the most detentions with detention type code "AFTER"?
### CONTEXT
CREATE TABLE Detention (teacher_id VARCHAR, detention_type_code VARCHAR); CREATE TABLE Teachers (last_name VARCHAR, teacher_id VARCHAR)
### ANSWER
SELECT T1.teacher_id, T2.last_name FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T1.detention_type_code = "AFTER" GROUP BY T1.teacher_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"answer": "SELECT T1.teacher_id, T2.last_name FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T1.detention_type_code = \"AFTER\" GROUP BY T1.teacher_id ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE Detention (teacher_id VARCHAR, detention_type_code VARCHAR); CREATE TABLE Teachers (last_name VARCHAR, teacher_id VARCHAR)",
"question": "Find the id and last name of the teacher that has the most detentions with detention type code \"AFTER\"?"
} |
### QUESTION
What are the id and first name of the student whose addresses have the highest average monthly rental?
### CONTEXT
CREATE TABLE Students (first_name VARCHAR, student_id VARCHAR); CREATE TABLE Student_Addresses (student_id VARCHAR)
### ANSWER
SELECT T1.student_id, T2.first_name FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY AVG(monthly_rental) DESC LIMIT 1 | {
"answer": "SELECT T1.student_id, T2.first_name FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY AVG(monthly_rental) DESC LIMIT 1",
"context": "CREATE TABLE Students (first_name VARCHAR, student_id VARCHAR); CREATE TABLE Student_Addresses (student_id VARCHAR)",
"question": "What are the id and first name of the student whose addresses have the highest average monthly rental?"
} |
### QUESTION
Find the id and city of the student address with the highest average monthly rental.
### CONTEXT
CREATE TABLE Student_Addresses (address_id VARCHAR); CREATE TABLE Addresses (city VARCHAR, address_id VARCHAR)
### ANSWER
SELECT T2.address_id, T1.city FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id ORDER BY AVG(monthly_rental) DESC LIMIT 1 | {
"answer": "SELECT T2.address_id, T1.city FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id ORDER BY AVG(monthly_rental) DESC LIMIT 1",
"context": "CREATE TABLE Student_Addresses (address_id VARCHAR); CREATE TABLE Addresses (city VARCHAR, address_id VARCHAR)",
"question": "Find the id and city of the student address with the highest average monthly rental."
} |
### QUESTION
What are the code and description of the most frequent behavior incident type?
### CONTEXT
CREATE TABLE Ref_Incident_Type (incident_type_description VARCHAR, incident_type_code VARCHAR); CREATE TABLE Behavior_Incident (incident_type_code VARCHAR)
### ANSWER
SELECT T1.incident_type_code, T2.incident_type_description FROM Behavior_Incident AS T1 JOIN Ref_Incident_Type AS T2 ON T1.incident_type_code = T2.incident_type_code GROUP BY T1.incident_type_code ORDER BY COUNT(*) DESC LIMIT 1 | {
"answer": "SELECT T1.incident_type_code, T2.incident_type_description FROM Behavior_Incident AS T1 JOIN Ref_Incident_Type AS T2 ON T1.incident_type_code = T2.incident_type_code GROUP BY T1.incident_type_code ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE Ref_Incident_Type (incident_type_description VARCHAR, incident_type_code VARCHAR); CREATE TABLE Behavior_Incident (incident_type_code VARCHAR)",
"question": "What are the code and description of the most frequent behavior incident type?"
} |
### QUESTION
What is the team 1 with cementarnica as team 2?
### CONTEXT
CREATE TABLE table_name_20 (team_1 VARCHAR, team_2 VARCHAR)
### ANSWER
SELECT team_1 FROM table_name_20 WHERE team_2 = "cementarnica" | {
"answer": "SELECT team_1 FROM table_name_20 WHERE team_2 = \"cementarnica\"",
"context": "CREATE TABLE table_name_20 (team_1 VARCHAR, team_2 VARCHAR)",
"question": "What is the team 1 with cementarnica as team 2?"
} |
### QUESTION
Find the dates of assessment notes for students with first name "Fanny".
### CONTEXT
CREATE TABLE Students (student_id VARCHAR, first_name VARCHAR); CREATE TABLE Assessment_Notes (date_of_notes VARCHAR, student_id VARCHAR)
### ANSWER
SELECT T1.date_of_notes FROM Assessment_Notes AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.first_name = "Fanny" | {
"answer": "SELECT T1.date_of_notes FROM Assessment_Notes AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.first_name = \"Fanny\"",
"context": "CREATE TABLE Students (student_id VARCHAR, first_name VARCHAR); CREATE TABLE Assessment_Notes (date_of_notes VARCHAR, student_id VARCHAR)",
"question": "Find the dates of assessment notes for students with first name \"Fanny\"."
} |
### QUESTION
Find the texts of assessment notes for teachers with last name "Schuster".
### CONTEXT
CREATE TABLE Assessment_Notes (text_of_notes VARCHAR, teacher_id VARCHAR); CREATE TABLE Teachers (teacher_id VARCHAR, last_name VARCHAR)
### ANSWER
SELECT T1.text_of_notes FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.last_name = "Schuster" | {
"answer": "SELECT T1.text_of_notes FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.last_name = \"Schuster\"",
"context": "CREATE TABLE Assessment_Notes (text_of_notes VARCHAR, teacher_id VARCHAR); CREATE TABLE Teachers (teacher_id VARCHAR, last_name VARCHAR)",
"question": "Find the texts of assessment notes for teachers with last name \"Schuster\"."
} |
### QUESTION
What are the code and description of the least frequent detention type ?
### CONTEXT
CREATE TABLE Ref_Detention_Type (detention_type_description VARCHAR, detention_type_code VARCHAR); CREATE TABLE Detention (detention_type_code VARCHAR)
### ANSWER
SELECT T1.detention_type_code, T2.detention_type_description FROM Detention AS T1 JOIN Ref_Detention_Type AS T2 ON T1.detention_type_code = T2.detention_type_code GROUP BY T1.detention_type_code ORDER BY COUNT(*) LIMIT 1 | {
"answer": "SELECT T1.detention_type_code, T2.detention_type_description FROM Detention AS T1 JOIN Ref_Detention_Type AS T2 ON T1.detention_type_code = T2.detention_type_code GROUP BY T1.detention_type_code ORDER BY COUNT(*) LIMIT 1",
"context": "CREATE TABLE Ref_Detention_Type (detention_type_description VARCHAR, detention_type_code VARCHAR); CREATE TABLE Detention (detention_type_code VARCHAR)",
"question": "What are the code and description of the least frequent detention type ?"
} |
### QUESTION
Find the start and end dates of detentions of teachers with last name "Schultz".
### CONTEXT
CREATE TABLE Detention (datetime_detention_start VARCHAR, teacher_id VARCHAR); CREATE TABLE Teachers (teacher_id VARCHAR, last_name VARCHAR)
### ANSWER
SELECT T1.datetime_detention_start, datetime_detention_end FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.last_name = "Schultz" | {
"answer": "SELECT T1.datetime_detention_start, datetime_detention_end FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.last_name = \"Schultz\"",
"context": "CREATE TABLE Detention (datetime_detention_start VARCHAR, teacher_id VARCHAR); CREATE TABLE Teachers (teacher_id VARCHAR, last_name VARCHAR)",
"question": "Find the start and end dates of detentions of teachers with last name \"Schultz\"."
} |
### QUESTION
What are the id and zip code of the address with the highest monthly rental?
### CONTEXT
CREATE TABLE Student_Addresses (address_id VARCHAR); CREATE TABLE Addresses (zip_postcode VARCHAR, address_id VARCHAR)
### ANSWER
SELECT T2.address_id, T1.zip_postcode FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id ORDER BY monthly_rental DESC LIMIT 1 | {
"answer": "SELECT T2.address_id, T1.zip_postcode FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id ORDER BY monthly_rental DESC LIMIT 1",
"context": "CREATE TABLE Student_Addresses (address_id VARCHAR); CREATE TABLE Addresses (zip_postcode VARCHAR, address_id VARCHAR)",
"question": "What are the id and zip code of the address with the highest monthly rental?"
} |
### QUESTION
What is the cell phone number of the student whose address has the lowest monthly rental?
### CONTEXT
CREATE TABLE Students (cell_mobile_number VARCHAR, student_id VARCHAR); CREATE TABLE Student_Addresses (student_id VARCHAR, monthly_rental VARCHAR)
### ANSWER
SELECT T2.cell_mobile_number FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.monthly_rental LIMIT 1 | {
"answer": "SELECT T2.cell_mobile_number FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.monthly_rental LIMIT 1",
"context": "CREATE TABLE Students (cell_mobile_number VARCHAR, student_id VARCHAR); CREATE TABLE Student_Addresses (student_id VARCHAR, monthly_rental VARCHAR)",
"question": "What is the cell phone number of the student whose address has the lowest monthly rental?"
} |
### QUESTION
What is the smallest Pick with Overall larger than 17, a Player name of dave adams category:articles with hcards, and a Year larger than 1963?
### CONTEXT
CREATE TABLE table_name_88 (pick INTEGER, year VARCHAR, overall VARCHAR, player_name VARCHAR)
### ANSWER
SELECT MIN(pick) FROM table_name_88 WHERE overall > 17 AND player_name = "dave adams category:articles with hcards" AND year > 1963 | {
"answer": "SELECT MIN(pick) FROM table_name_88 WHERE overall > 17 AND player_name = \"dave adams category:articles with hcards\" AND year > 1963",
"context": "CREATE TABLE table_name_88 (pick INTEGER, year VARCHAR, overall VARCHAR, player_name VARCHAR)",
"question": "What is the smallest Pick with Overall larger than 17, a Player name of dave adams category:articles with hcards, and a Year larger than 1963?"
} |
### QUESTION
Find the start and end dates of behavior incidents of students with last name "Fahey".
### CONTEXT
CREATE TABLE Behavior_Incident (date_incident_start VARCHAR, student_id VARCHAR); CREATE TABLE Students (student_id VARCHAR, last_name VARCHAR)
### ANSWER
SELECT T1.date_incident_start, date_incident_end FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.last_name = "Fahey" | {
"answer": "SELECT T1.date_incident_start, date_incident_end FROM Behavior_Incident AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.last_name = \"Fahey\"",
"context": "CREATE TABLE Behavior_Incident (date_incident_start VARCHAR, student_id VARCHAR); CREATE TABLE Students (student_id VARCHAR, last_name VARCHAR)",
"question": "Find the start and end dates of behavior incidents of students with last name \"Fahey\"."
} |
### QUESTION
What are the line 1 and average monthly rentals of all student addresses?
### CONTEXT
CREATE TABLE Addresses (line_1 VARCHAR, address_id VARCHAR); CREATE TABLE Student_Addresses (monthly_rental INTEGER, address_id VARCHAR)
### ANSWER
SELECT T1.line_1, AVG(T2.monthly_rental) FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id | {
"answer": "SELECT T1.line_1, AVG(T2.monthly_rental) FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id GROUP BY T2.address_id",
"context": "CREATE TABLE Addresses (line_1 VARCHAR, address_id VARCHAR); CREATE TABLE Student_Addresses (monthly_rental INTEGER, address_id VARCHAR)",
"question": "What are the line 1 and average monthly rentals of all student addresses?"
} |
### QUESTION
Who were the partners during times that harry johnson hazel hotchkiss wightman was the opponent?
### CONTEXT
CREATE TABLE table_2127933_3 (partner VARCHAR, opponents VARCHAR)
### ANSWER
SELECT partner FROM table_2127933_3 WHERE opponents = "Harry Johnson Hazel Hotchkiss Wightman" | {
"answer": "SELECT partner FROM table_2127933_3 WHERE opponents = \"Harry Johnson Hazel Hotchkiss Wightman\"",
"context": "CREATE TABLE table_2127933_3 (partner VARCHAR, opponents VARCHAR)",
"question": "Who were the partners during times that harry johnson hazel hotchkiss wightman was the opponent?"
} |
### QUESTION
What are the email addresses of teachers whose address has zip code "918"?
### CONTEXT
CREATE TABLE Addresses (address_id VARCHAR, zip_postcode VARCHAR); CREATE TABLE Teachers (email_address VARCHAR, address_id VARCHAR)
### ANSWER
SELECT T2.email_address FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id WHERE T1.zip_postcode = "918" | {
"answer": "SELECT T2.email_address FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id WHERE T1.zip_postcode = \"918\"",
"context": "CREATE TABLE Addresses (address_id VARCHAR, zip_postcode VARCHAR); CREATE TABLE Teachers (email_address VARCHAR, address_id VARCHAR)",
"question": "What are the email addresses of teachers whose address has zip code \"918\"?"
} |
### QUESTION
Find the last names of teachers who are not involved in any detention.
### CONTEXT
CREATE TABLE Teachers (last_name VARCHAR); CREATE TABLE Teachers (last_name VARCHAR, teacher_id VARCHAR); CREATE TABLE Detention (teacher_id VARCHAR)
### ANSWER
SELECT last_name FROM Teachers EXCEPT SELECT T1.last_name FROM Teachers AS T1 JOIN Detention AS T2 ON T1.teacher_id = T2.teacher_id | {
"answer": "SELECT last_name FROM Teachers EXCEPT SELECT T1.last_name FROM Teachers AS T1 JOIN Detention AS T2 ON T1.teacher_id = T2.teacher_id",
"context": "CREATE TABLE Teachers (last_name VARCHAR); CREATE TABLE Teachers (last_name VARCHAR, teacher_id VARCHAR); CREATE TABLE Detention (teacher_id VARCHAR)",
"question": "Find the last names of teachers who are not involved in any detention."
} |
### QUESTION
What are the line 1 of addresses shared by some students and some teachers?
### CONTEXT
CREATE TABLE Teachers (address_id VARCHAR); CREATE TABLE Students (address_id VARCHAR); CREATE TABLE Addresses (line_1 VARCHAR, address_id VARCHAR)
### ANSWER
SELECT T1.line_1 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.address_id INTERSECT SELECT T1.line_1 FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id | {
"answer": "SELECT T1.line_1 FROM Addresses AS T1 JOIN Students AS T2 ON T1.address_id = T2.address_id INTERSECT SELECT T1.line_1 FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id",
"context": "CREATE TABLE Teachers (address_id VARCHAR); CREATE TABLE Students (address_id VARCHAR); CREATE TABLE Addresses (line_1 VARCHAR, address_id VARCHAR)",
"question": "What are the line 1 of addresses shared by some students and some teachers?"
} |
### QUESTION
Which assets have 2 parts and have less than 2 fault logs? List the asset id and detail.
### CONTEXT
CREATE TABLE Assets (asset_id VARCHAR, asset_details VARCHAR); CREATE TABLE Asset_Parts (asset_id VARCHAR); CREATE TABLE Fault_Log (asset_id VARCHAR)
### ANSWER
SELECT T1.asset_id, T1.asset_details FROM Assets AS T1 JOIN Asset_Parts AS T2 ON T1.asset_id = T2.asset_id GROUP BY T1.asset_id HAVING COUNT(*) = 2 INTERSECT SELECT T1.asset_id, T1.asset_details FROM Assets AS T1 JOIN Fault_Log AS T2 ON T1.asset_id = T2.asset_id GROUP BY T1.asset_id HAVING COUNT(*) < 2 | {
"answer": "SELECT T1.asset_id, T1.asset_details FROM Assets AS T1 JOIN Asset_Parts AS T2 ON T1.asset_id = T2.asset_id GROUP BY T1.asset_id HAVING COUNT(*) = 2 INTERSECT SELECT T1.asset_id, T1.asset_details FROM Assets AS T1 JOIN Fault_Log AS T2 ON T1.asset_id = T2.asset_id GROUP BY T1.asset_id HAVING COUNT(*) < 2",
"context": "CREATE TABLE Assets (asset_id VARCHAR, asset_details VARCHAR); CREATE TABLE Asset_Parts (asset_id VARCHAR); CREATE TABLE Fault_Log (asset_id VARCHAR)",
"question": "Which assets have 2 parts and have less than 2 fault logs? List the asset id and detail."
} |
### QUESTION
How many assets does each maintenance contract contain? List the number and the contract id.
### CONTEXT
CREATE TABLE Assets (maintenance_contract_id VARCHAR); CREATE TABLE Maintenance_Contracts (maintenance_contract_id VARCHAR)
### ANSWER
SELECT COUNT(*), T1.maintenance_contract_id FROM Maintenance_Contracts AS T1 JOIN Assets AS T2 ON T1.maintenance_contract_id = T2.maintenance_contract_id GROUP BY T1.maintenance_contract_id | {
"answer": "SELECT COUNT(*), T1.maintenance_contract_id FROM Maintenance_Contracts AS T1 JOIN Assets AS T2 ON T1.maintenance_contract_id = T2.maintenance_contract_id GROUP BY T1.maintenance_contract_id",
"context": "CREATE TABLE Assets (maintenance_contract_id VARCHAR); CREATE TABLE Maintenance_Contracts (maintenance_contract_id VARCHAR)",
"question": "How many assets does each maintenance contract contain? List the number and the contract id."
} |
### QUESTION
How many assets does each third party company supply? List the count and the company id.
### CONTEXT
CREATE TABLE Assets (supplier_company_id VARCHAR); CREATE TABLE Third_Party_Companies (company_id VARCHAR)
### ANSWER
SELECT COUNT(*), T1.company_id FROM Third_Party_Companies AS T1 JOIN Assets AS T2 ON T1.company_id = T2.supplier_company_id GROUP BY T1.company_id | {
"answer": "SELECT COUNT(*), T1.company_id FROM Third_Party_Companies AS T1 JOIN Assets AS T2 ON T1.company_id = T2.supplier_company_id GROUP BY T1.company_id",
"context": "CREATE TABLE Assets (supplier_company_id VARCHAR); CREATE TABLE Third_Party_Companies (company_id VARCHAR)",
"question": "How many assets does each third party company supply? List the count and the company id."
} |
### QUESTION
List all the locations where net capacity is 950?
### CONTEXT
CREATE TABLE table_213088_1 (location_chernobyl_1_chernobyl_2_chernobyl_3_chernobyl_4_chernobyl_5_ignalina_1_ignalina_2_ignalina_3_kursk_1_kursk_2_kursk_3_kursk_4_kursk_5_kursk_6_leningrad_1_leningrad_2_leningrad_3_leningrad_4_smolensk_1_smolensk_2_smolensk_3_smolensk_4_directorate_for_construction_of_kostoma_npp__for_kostroma_1_and_2__table_31_technology_and_soviet_energy_availability___november_1981___ntis_order__numberpb82_133455__for_ignalina_4_ VARCHAR, net_capacity__mw_ VARCHAR)
### ANSWER
SELECT location_chernobyl_1_chernobyl_2_chernobyl_3_chernobyl_4_chernobyl_5_ignalina_1_ignalina_2_ignalina_3_kursk_1_kursk_2_kursk_3_kursk_4_kursk_5_kursk_6_leningrad_1_leningrad_2_leningrad_3_leningrad_4_smolensk_1_smolensk_2_smolensk_3_smolensk_4_directorate_for_construction_of_kostoma_npp__for_kostroma_1_and_2__table_31_technology_and_soviet_energy_availability___november_1981___ntis_order__numberpb82_133455__for_ignalina_4_ FROM table_213088_1 WHERE net_capacity__mw_ = 950 | {
"answer": "SELECT location_chernobyl_1_chernobyl_2_chernobyl_3_chernobyl_4_chernobyl_5_ignalina_1_ignalina_2_ignalina_3_kursk_1_kursk_2_kursk_3_kursk_4_kursk_5_kursk_6_leningrad_1_leningrad_2_leningrad_3_leningrad_4_smolensk_1_smolensk_2_smolensk_3_smolensk_4_directorate_for_construction_of_kostoma_npp__for_kostroma_1_and_2__table_31_technology_and_soviet_energy_availability___november_1981___ntis_order__numberpb82_133455__for_ignalina_4_ FROM table_213088_1 WHERE net_capacity__mw_ = 950",
"context": "CREATE TABLE table_213088_1 (location_chernobyl_1_chernobyl_2_chernobyl_3_chernobyl_4_chernobyl_5_ignalina_1_ignalina_2_ignalina_3_kursk_1_kursk_2_kursk_3_kursk_4_kursk_5_kursk_6_leningrad_1_leningrad_2_leningrad_3_leningrad_4_smolensk_1_smolensk_2_smolensk_3_smolensk_4_directorate_for_construction_of_kostoma_npp__for_kostroma_1_and_2__table_31_technology_and_soviet_energy_availability___november_1981___ntis_order__numberpb82_133455__for_ignalina_4_ VARCHAR, net_capacity__mw_ VARCHAR)",
"question": "List all the locations where net capacity is 950?"
} |
### QUESTION
List all the locations with a RBMK-1000 reactor.
### CONTEXT
CREATE TABLE table_213088_1 (location_chernobyl_1_chernobyl_2_chernobyl_3_chernobyl_4_chernobyl_5_ignalina_1_ignalina_2_ignalina_3_kursk_1_kursk_2_kursk_3_kursk_4_kursk_5_kursk_6_leningrad_1_leningrad_2_leningrad_3_leningrad_4_smolensk_1_smolensk_2_smolensk_3_smolensk_4_directorate_for_construction_of_kostoma_npp__for_kostroma_1_and_2__table_31_technology_and_soviet_energy_availability___november_1981___ntis_order__numberpb82_133455__for_ignalina_4_ VARCHAR, reactor_type VARCHAR)
### ANSWER
SELECT location_chernobyl_1_chernobyl_2_chernobyl_3_chernobyl_4_chernobyl_5_ignalina_1_ignalina_2_ignalina_3_kursk_1_kursk_2_kursk_3_kursk_4_kursk_5_kursk_6_leningrad_1_leningrad_2_leningrad_3_leningrad_4_smolensk_1_smolensk_2_smolensk_3_smolensk_4_directorate_for_construction_of_kostoma_npp__for_kostroma_1_and_2__table_31_technology_and_soviet_energy_availability___november_1981___ntis_order__numberpb82_133455__for_ignalina_4_ FROM table_213088_1 WHERE reactor_type = "RBMK-1000" | {
"answer": "SELECT location_chernobyl_1_chernobyl_2_chernobyl_3_chernobyl_4_chernobyl_5_ignalina_1_ignalina_2_ignalina_3_kursk_1_kursk_2_kursk_3_kursk_4_kursk_5_kursk_6_leningrad_1_leningrad_2_leningrad_3_leningrad_4_smolensk_1_smolensk_2_smolensk_3_smolensk_4_directorate_for_construction_of_kostoma_npp__for_kostroma_1_and_2__table_31_technology_and_soviet_energy_availability___november_1981___ntis_order__numberpb82_133455__for_ignalina_4_ FROM table_213088_1 WHERE reactor_type = \"RBMK-1000\"",
"context": "CREATE TABLE table_213088_1 (location_chernobyl_1_chernobyl_2_chernobyl_3_chernobyl_4_chernobyl_5_ignalina_1_ignalina_2_ignalina_3_kursk_1_kursk_2_kursk_3_kursk_4_kursk_5_kursk_6_leningrad_1_leningrad_2_leningrad_3_leningrad_4_smolensk_1_smolensk_2_smolensk_3_smolensk_4_directorate_for_construction_of_kostoma_npp__for_kostroma_1_and_2__table_31_technology_and_soviet_energy_availability___november_1981___ntis_order__numberpb82_133455__for_ignalina_4_ VARCHAR, reactor_type VARCHAR)",
"question": "List all the locations with a RBMK-1000 reactor."
} |
### QUESTION
Which third party companies have at least 2 maintenance engineers or have at least 2 maintenance contracts? List the company id and name.
### CONTEXT
CREATE TABLE Maintenance_Contracts (maintenance_contract_company_id VARCHAR); CREATE TABLE Maintenance_Engineers (company_id VARCHAR); CREATE TABLE Third_Party_Companies (company_id VARCHAR, company_name VARCHAR)
### ANSWER
SELECT T1.company_id, T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Engineers AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id HAVING COUNT(*) >= 2 UNION SELECT T3.company_id, T3.company_name FROM Third_Party_Companies AS T3 JOIN Maintenance_Contracts AS T4 ON T3.company_id = T4.maintenance_contract_company_id GROUP BY T3.company_id HAVING COUNT(*) >= 2 | {
"answer": "SELECT T1.company_id, T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Engineers AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id HAVING COUNT(*) >= 2 UNION SELECT T3.company_id, T3.company_name FROM Third_Party_Companies AS T3 JOIN Maintenance_Contracts AS T4 ON T3.company_id = T4.maintenance_contract_company_id GROUP BY T3.company_id HAVING COUNT(*) >= 2",
"context": "CREATE TABLE Maintenance_Contracts (maintenance_contract_company_id VARCHAR); CREATE TABLE Maintenance_Engineers (company_id VARCHAR); CREATE TABLE Third_Party_Companies (company_id VARCHAR, company_name VARCHAR)",
"question": "Which third party companies have at least 2 maintenance engineers or have at least 2 maintenance contracts? List the company id and name."
} |
### QUESTION
What is the result of the match in round 1r against tunisia and on a hard surface?
### CONTEXT
CREATE TABLE table_name_37 (result VARCHAR, against VARCHAR, round VARCHAR, surface VARCHAR)
### ANSWER
SELECT result FROM table_name_37 WHERE round = "1r" AND surface = "hard" AND against = "tunisia" | {
"answer": "SELECT result FROM table_name_37 WHERE round = \"1r\" AND surface = \"hard\" AND against = \"tunisia\"",
"context": "CREATE TABLE table_name_37 (result VARCHAR, against VARCHAR, round VARCHAR, surface VARCHAR)",
"question": "What is the result of the match in round 1r against tunisia and on a hard surface?"
} |
### QUESTION
What is the name and id of the staff who recorded the fault log but has not contacted any visiting engineers?
### CONTEXT
CREATE TABLE Engineer_Visits (contact_staff_id VARCHAR); CREATE TABLE Staff (staff_name VARCHAR, staff_id VARCHAR); CREATE TABLE Fault_Log (recorded_by_staff_id VARCHAR)
### ANSWER
SELECT T1.staff_name, T1.staff_id FROM Staff AS T1 JOIN Fault_Log AS T2 ON T1.staff_id = T2.recorded_by_staff_id EXCEPT SELECT T3.staff_name, T3.staff_id FROM Staff AS T3 JOIN Engineer_Visits AS T4 ON T3.staff_id = T4.contact_staff_id | {
"answer": "SELECT T1.staff_name, T1.staff_id FROM Staff AS T1 JOIN Fault_Log AS T2 ON T1.staff_id = T2.recorded_by_staff_id EXCEPT SELECT T3.staff_name, T3.staff_id FROM Staff AS T3 JOIN Engineer_Visits AS T4 ON T3.staff_id = T4.contact_staff_id",
"context": "CREATE TABLE Engineer_Visits (contact_staff_id VARCHAR); CREATE TABLE Staff (staff_name VARCHAR, staff_id VARCHAR); CREATE TABLE Fault_Log (recorded_by_staff_id VARCHAR)",
"question": "What is the name and id of the staff who recorded the fault log but has not contacted any visiting engineers?"
} |
### QUESTION
Which parts have more than 2 faults? Show the part name and id.
### CONTEXT
CREATE TABLE Parts (part_name VARCHAR, part_id VARCHAR); CREATE TABLE Part_Faults (part_id VARCHAR)
### ANSWER
SELECT T1.part_name, T1.part_id FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_id HAVING COUNT(*) > 2 | {
"answer": "SELECT T1.part_name, T1.part_id FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_id HAVING COUNT(*) > 2",
"context": "CREATE TABLE Parts (part_name VARCHAR, part_id VARCHAR); CREATE TABLE Part_Faults (part_id VARCHAR)",
"question": "Which parts have more than 2 faults? Show the part name and id."
} |
### QUESTION
For all the faults of different parts, what are all the decriptions of the skills required to fix them? List the name of the faults and the skill description.
### CONTEXT
CREATE TABLE Skills_Required_To_Fix (part_fault_id VARCHAR, skill_id VARCHAR); CREATE TABLE Part_Faults (fault_short_name VARCHAR, part_fault_id VARCHAR); CREATE TABLE Skills (skill_description VARCHAR, skill_id VARCHAR)
### ANSWER
SELECT T1.fault_short_name, T3.skill_description FROM Part_Faults AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.part_fault_id = T2.part_fault_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id | {
"answer": "SELECT T1.fault_short_name, T3.skill_description FROM Part_Faults AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.part_fault_id = T2.part_fault_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id",
"context": "CREATE TABLE Skills_Required_To_Fix (part_fault_id VARCHAR, skill_id VARCHAR); CREATE TABLE Part_Faults (fault_short_name VARCHAR, part_fault_id VARCHAR); CREATE TABLE Skills (skill_description VARCHAR, skill_id VARCHAR)",
"question": "For all the faults of different parts, what are all the decriptions of the skills required to fix them? List the name of the faults and the skill description."
} |
### QUESTION
What are all the fault descriptions and the fault status of all the faults recoreded in the logs?
### CONTEXT
CREATE TABLE Fault_Log (fault_description VARCHAR, fault_log_entry_id VARCHAR); CREATE TABLE Fault_Log_Parts (fault_status VARCHAR, fault_log_entry_id VARCHAR)
### ANSWER
SELECT T1.fault_description, T2.fault_status FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id | {
"answer": "SELECT T1.fault_description, T2.fault_status FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id",
"context": "CREATE TABLE Fault_Log (fault_description VARCHAR, fault_log_entry_id VARCHAR); CREATE TABLE Fault_Log_Parts (fault_status VARCHAR, fault_log_entry_id VARCHAR)",
"question": "What are all the fault descriptions and the fault status of all the faults recoreded in the logs?"
} |
### QUESTION
How many engineer visits are required at most for a single fault log? List the number and the log entry id.
### CONTEXT
CREATE TABLE Fault_Log (fault_log_entry_id VARCHAR); CREATE TABLE Engineer_Visits (fault_log_entry_id VARCHAR)
### ANSWER
SELECT COUNT(*), T1.fault_log_entry_id FROM Fault_Log AS T1 JOIN Engineer_Visits AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"answer": "SELECT COUNT(*), T1.fault_log_entry_id FROM Fault_Log AS T1 JOIN Engineer_Visits AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE Fault_Log (fault_log_entry_id VARCHAR); CREATE TABLE Engineer_Visits (fault_log_entry_id VARCHAR)",
"question": "How many engineer visits are required at most for a single fault log? List the number and the log entry id."
} |
### QUESTION
Which engineer has visited the most times? Show the engineer id, first name and last name.
### CONTEXT
CREATE TABLE Maintenance_Engineers (engineer_id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE Engineer_Visits (Id VARCHAR)
### ANSWER
SELECT T1.engineer_id, T1.first_name, T1.last_name FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 GROUP BY T1.engineer_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"answer": "SELECT T1.engineer_id, T1.first_name, T1.last_name FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 GROUP BY T1.engineer_id ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE Maintenance_Engineers (engineer_id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE Engineer_Visits (Id VARCHAR)",
"question": "Which engineer has visited the most times? Show the engineer id, first name and last name."
} |
### QUESTION
List all every engineer's first name, last name, details and coresponding skill description.
### CONTEXT
CREATE TABLE Maintenance_Engineers (first_name VARCHAR, last_name VARCHAR, other_details VARCHAR, engineer_id VARCHAR); CREATE TABLE Engineer_Skills (engineer_id VARCHAR, skill_id VARCHAR); CREATE TABLE Skills (skill_description VARCHAR, skill_id VARCHAR)
### ANSWER
SELECT T1.first_name, T1.last_name, T1.other_details, T3.skill_description FROM Maintenance_Engineers AS T1 JOIN Engineer_Skills AS T2 ON T1.engineer_id = T2.engineer_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id | {
"answer": "SELECT T1.first_name, T1.last_name, T1.other_details, T3.skill_description FROM Maintenance_Engineers AS T1 JOIN Engineer_Skills AS T2 ON T1.engineer_id = T2.engineer_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id",
"context": "CREATE TABLE Maintenance_Engineers (first_name VARCHAR, last_name VARCHAR, other_details VARCHAR, engineer_id VARCHAR); CREATE TABLE Engineer_Skills (engineer_id VARCHAR, skill_id VARCHAR); CREATE TABLE Skills (skill_description VARCHAR, skill_id VARCHAR)",
"question": "List all every engineer's first name, last name, details and coresponding skill description."
} |
### QUESTION
Who directed the episode with a production code greater than 4301103.585233785 that was written by Curtis Kheel?
### CONTEXT
CREATE TABLE table_21312845_1 (directed_by VARCHAR, production_code VARCHAR, written_by VARCHAR)
### ANSWER
SELECT directed_by FROM table_21312845_1 WHERE production_code > 4301103.585233785 AND written_by = "Curtis Kheel" | {
"answer": "SELECT directed_by FROM table_21312845_1 WHERE production_code > 4301103.585233785 AND written_by = \"Curtis Kheel\"",
"context": "CREATE TABLE table_21312845_1 (directed_by VARCHAR, production_code VARCHAR, written_by VARCHAR)",
"question": "Who directed the episode with a production code greater than 4301103.585233785 that was written by Curtis Kheel?"
} |
### QUESTION
Which engineers have never visited to maintain the assets? List the engineer first name and last name.
### CONTEXT
CREATE TABLE Engineer_Visits (first_name VARCHAR, last_name VARCHAR, engineer_id VARCHAR); CREATE TABLE Maintenance_Engineers (first_name VARCHAR, last_name VARCHAR, engineer_id VARCHAR)
### ANSWER
SELECT first_name, last_name FROM Maintenance_Engineers WHERE NOT engineer_id IN (SELECT engineer_id FROM Engineer_Visits) | {
"answer": "SELECT first_name, last_name FROM Maintenance_Engineers WHERE NOT engineer_id IN (SELECT engineer_id FROM Engineer_Visits)",
"context": "CREATE TABLE Engineer_Visits (first_name VARCHAR, last_name VARCHAR, engineer_id VARCHAR); CREATE TABLE Maintenance_Engineers (first_name VARCHAR, last_name VARCHAR, engineer_id VARCHAR)",
"question": "Which engineers have never visited to maintain the assets? List the engineer first name and last name."
} |
### QUESTION
Who was the girl of the week 3 weeks after brianne bailey in the same month?
### CONTEXT
CREATE TABLE table_name_65 (week_5 VARCHAR, week_2 VARCHAR)
### ANSWER
SELECT week_5 FROM table_name_65 WHERE week_2 = "brianne bailey" | {
"answer": "SELECT week_5 FROM table_name_65 WHERE week_2 = \"brianne bailey\"",
"context": "CREATE TABLE table_name_65 (week_5 VARCHAR, week_2 VARCHAR)",
"question": "Who was the girl of the week 3 weeks after brianne bailey in the same month?"
} |
### QUESTION
Which part fault requires the most number of skills to fix? List part id and name.
### CONTEXT
CREATE TABLE Part_Faults (part_id VARCHAR, part_fault_id VARCHAR); CREATE TABLE Skills_Required_To_Fix (part_fault_id VARCHAR); CREATE TABLE Parts (part_id VARCHAR, part_name VARCHAR)
### ANSWER
SELECT T1.part_id, T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id JOIN Skills_Required_To_Fix AS T3 ON T2.part_fault_id = T3.part_fault_id GROUP BY T1.part_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"answer": "SELECT T1.part_id, T1.part_name FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id JOIN Skills_Required_To_Fix AS T3 ON T2.part_fault_id = T3.part_fault_id GROUP BY T1.part_id ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE Part_Faults (part_id VARCHAR, part_fault_id VARCHAR); CREATE TABLE Skills_Required_To_Fix (part_fault_id VARCHAR); CREATE TABLE Parts (part_id VARCHAR, part_name VARCHAR)",
"question": "Which part fault requires the most number of skills to fix? List part id and name."
} |
### QUESTION
Among those engineers who have visited, which engineer makes the least number of visits? List the engineer id, first name and last name.
### CONTEXT
CREATE TABLE Engineer_Visits (engineer_id VARCHAR); CREATE TABLE Maintenance_Engineers (engineer_id VARCHAR, first_name VARCHAR, last_name VARCHAR)
### ANSWER
SELECT T1.engineer_id, T1.first_name, T1.last_name FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 ON T1.engineer_id = T2.engineer_id GROUP BY T1.engineer_id ORDER BY COUNT(*) LIMIT 1 | {
"answer": "SELECT T1.engineer_id, T1.first_name, T1.last_name FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 ON T1.engineer_id = T2.engineer_id GROUP BY T1.engineer_id ORDER BY COUNT(*) LIMIT 1",
"context": "CREATE TABLE Engineer_Visits (engineer_id VARCHAR); CREATE TABLE Maintenance_Engineers (engineer_id VARCHAR, first_name VARCHAR, last_name VARCHAR)",
"question": "Among those engineers who have visited, which engineer makes the least number of visits? List the engineer id, first name and last name."
} |
### QUESTION
Which staff have contacted which engineers? List the staff name and the engineer first name and last name.
### CONTEXT
CREATE TABLE Engineer_Visits (contact_staff_id VARCHAR, engineer_id VARCHAR); CREATE TABLE Staff (staff_name VARCHAR, staff_id VARCHAR); CREATE TABLE Maintenance_Engineers (first_name VARCHAR, last_name VARCHAR, engineer_id VARCHAR)
### ANSWER
SELECT T1.staff_name, T3.first_name, T3.last_name FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id JOIN Maintenance_Engineers AS T3 ON T2.engineer_id = T3.engineer_id | {
"answer": "SELECT T1.staff_name, T3.first_name, T3.last_name FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id JOIN Maintenance_Engineers AS T3 ON T2.engineer_id = T3.engineer_id",
"context": "CREATE TABLE Engineer_Visits (contact_staff_id VARCHAR, engineer_id VARCHAR); CREATE TABLE Staff (staff_name VARCHAR, staff_id VARCHAR); CREATE TABLE Maintenance_Engineers (first_name VARCHAR, last_name VARCHAR, engineer_id VARCHAR)",
"question": "Which staff have contacted which engineers? List the staff name and the engineer first name and last name."
} |
### QUESTION
Which fault log included the most number of faulty parts? List the fault log id, description and record time.
### CONTEXT
CREATE TABLE Fault_Log (fault_log_entry_id VARCHAR, fault_description VARCHAR, fault_log_entry_datetime VARCHAR); CREATE TABLE Fault_Log_Parts (fault_log_entry_id VARCHAR)
### ANSWER
SELECT T1.fault_log_entry_id, T1.fault_description, T1.fault_log_entry_datetime FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"answer": "SELECT T1.fault_log_entry_id, T1.fault_description, T1.fault_log_entry_datetime FROM Fault_Log AS T1 JOIN Fault_Log_Parts AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE Fault_Log (fault_log_entry_id VARCHAR, fault_description VARCHAR, fault_log_entry_datetime VARCHAR); CREATE TABLE Fault_Log_Parts (fault_log_entry_id VARCHAR)",
"question": "Which fault log included the most number of faulty parts? List the fault log id, description and record time."
} |
### QUESTION
What position was drafted by the Hamilton Tiger-Cats?
### CONTEXT
CREATE TABLE table_21321804_5 (position VARCHAR, cfl_team VARCHAR)
### ANSWER
SELECT position FROM table_21321804_5 WHERE cfl_team = "Hamilton Tiger-Cats" | {
"answer": "SELECT position FROM table_21321804_5 WHERE cfl_team = \"Hamilton Tiger-Cats\"",
"context": "CREATE TABLE table_21321804_5 (position VARCHAR, cfl_team VARCHAR)",
"question": "What position was drafted by the Hamilton Tiger-Cats? "
} |
### QUESTION
Which skill is used in fixing the most number of faults? List the skill id and description.
### CONTEXT
CREATE TABLE Skills (skill_id VARCHAR, skill_description VARCHAR); CREATE TABLE Skills_Required_To_Fix (skill_id VARCHAR)
### ANSWER
SELECT T1.skill_id, T1.skill_description FROM Skills AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.skill_id = T2.skill_id GROUP BY T1.skill_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"answer": "SELECT T1.skill_id, T1.skill_description FROM Skills AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.skill_id = T2.skill_id GROUP BY T1.skill_id ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE Skills (skill_id VARCHAR, skill_description VARCHAR); CREATE TABLE Skills_Required_To_Fix (skill_id VARCHAR)",
"question": "Which skill is used in fixing the most number of faults? List the skill id and description."
} |
### QUESTION
Who won when Jamie Green had the best lap?
### CONTEXT
CREATE TABLE table_21321935_2 (winning_driver VARCHAR, fastest_lap VARCHAR)
### ANSWER
SELECT winning_driver FROM table_21321935_2 WHERE fastest_lap = "Jamie Green" | {
"answer": "SELECT winning_driver FROM table_21321935_2 WHERE fastest_lap = \"Jamie Green\"",
"context": "CREATE TABLE table_21321935_2 (winning_driver VARCHAR, fastest_lap VARCHAR)",
"question": "Who won when Jamie Green had the best lap?"
} |
### QUESTION
What is the format of catalog number 886973273913 (gowow012) in the United Kingdom?
### CONTEXT
CREATE TABLE table_name_70 (format VARCHAR, country VARCHAR, catalogue__number VARCHAR)
### ANSWER
SELECT format FROM table_name_70 WHERE country = "united kingdom" AND catalogue__number = "886973273913 (gowow012)" | {
"answer": "SELECT format FROM table_name_70 WHERE country = \"united kingdom\" AND catalogue__number = \"886973273913 (gowow012)\"",
"context": "CREATE TABLE table_name_70 (format VARCHAR, country VARCHAR, catalogue__number VARCHAR)",
"question": "What is the format of catalog number 886973273913 (gowow012) in the United Kingdom?"
} |
### QUESTION
Which Apps have a Club of barcelona, and a Season of 1996/97, and a Rank smaller than 7?
### CONTEXT
CREATE TABLE table_name_29 (apps INTEGER, rank VARCHAR, club VARCHAR, season VARCHAR)
### ANSWER
SELECT MIN(apps) FROM table_name_29 WHERE club = "barcelona" AND season = "1996/97" AND rank < 7 | {
"answer": "SELECT MIN(apps) FROM table_name_29 WHERE club = \"barcelona\" AND season = \"1996/97\" AND rank < 7",
"context": "CREATE TABLE table_name_29 (apps INTEGER, rank VARCHAR, club VARCHAR, season VARCHAR)",
"question": "Which Apps have a Club of barcelona, and a Season of 1996/97, and a Rank smaller than 7?"
} |
### QUESTION
What is the description of the type of the company who concluded its contracts most recently?
### CONTEXT
CREATE TABLE Maintenance_Contracts (maintenance_contract_company_id VARCHAR, contract_end_date VARCHAR); CREATE TABLE Third_Party_Companies (company_name VARCHAR, company_id VARCHAR, company_type_code VARCHAR); CREATE TABLE Ref_Company_Types (company_type_code VARCHAR)
### ANSWER
SELECT T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id = T2.maintenance_contract_company_id JOIN Ref_Company_Types AS T3 ON T1.company_type_code = T3.company_type_code ORDER BY T2.contract_end_date DESC LIMIT 1 | {
"answer": "SELECT T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Contracts AS T2 ON T1.company_id = T2.maintenance_contract_company_id JOIN Ref_Company_Types AS T3 ON T1.company_type_code = T3.company_type_code ORDER BY T2.contract_end_date DESC LIMIT 1",
"context": "CREATE TABLE Maintenance_Contracts (maintenance_contract_company_id VARCHAR, contract_end_date VARCHAR); CREATE TABLE Third_Party_Companies (company_name VARCHAR, company_id VARCHAR, company_type_code VARCHAR); CREATE TABLE Ref_Company_Types (company_type_code VARCHAR)",
"question": "What is the description of the type of the company who concluded its contracts most recently?"
} |
### QUESTION
How many engineers did each staff contact? List both the contact staff name and number of engineers contacted.
### CONTEXT
CREATE TABLE Engineer_Visits (contact_staff_id VARCHAR); CREATE TABLE Staff (staff_name VARCHAR, staff_id VARCHAR)
### ANSWER
SELECT T1.staff_name, COUNT(*) FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id GROUP BY T1.staff_name | {
"answer": "SELECT T1.staff_name, COUNT(*) FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id GROUP BY T1.staff_name",
"context": "CREATE TABLE Engineer_Visits (contact_staff_id VARCHAR); CREATE TABLE Staff (staff_name VARCHAR, staff_id VARCHAR)",
"question": "How many engineers did each staff contact? List both the contact staff name and number of engineers contacted."
} |
### QUESTION
Which player plays for the Winnipeg Blue Bombers?
### CONTEXT
CREATE TABLE table_21321804_3 (player VARCHAR, cfl_team VARCHAR)
### ANSWER
SELECT player FROM table_21321804_3 WHERE cfl_team = "Winnipeg Blue Bombers" | {
"answer": "SELECT player FROM table_21321804_3 WHERE cfl_team = \"Winnipeg Blue Bombers\"",
"context": "CREATE TABLE table_21321804_3 (player VARCHAR, cfl_team VARCHAR)",
"question": "Which player plays for the Winnipeg Blue Bombers? "
} |
### QUESTION
In which special stage named Tempo 2 was Sébastien Loeb the leader?
### CONTEXT
CREATE TABLE table_21326205_2 (stage VARCHAR, rally_leader VARCHAR, name VARCHAR)
### ANSWER
SELECT stage FROM table_21326205_2 WHERE rally_leader = "Sébastien Loeb" AND name = "Tempo 2" | {
"answer": "SELECT stage FROM table_21326205_2 WHERE rally_leader = \"Sébastien Loeb\" AND name = \"Tempo 2\"",
"context": "CREATE TABLE table_21326205_2 (stage VARCHAR, rally_leader VARCHAR, name VARCHAR)",
"question": "In which special stage named Tempo 2 was Sébastien Loeb the leader?"
} |
### QUESTION
Find the number of trains for each station, as well as the station network name and services.
### CONTEXT
CREATE TABLE route (station_id VARCHAR); CREATE TABLE station (network_name VARCHAR, services VARCHAR, id VARCHAR)
### ANSWER
SELECT COUNT(*), t1.network_name, t1.services FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id GROUP BY t2.station_id | {
"answer": "SELECT COUNT(*), t1.network_name, t1.services FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id GROUP BY t2.station_id",
"context": "CREATE TABLE route (station_id VARCHAR); CREATE TABLE station (network_name VARCHAR, services VARCHAR, id VARCHAR)",
"question": "Find the number of trains for each station, as well as the station network name and services."
} |
### QUESTION
Give me the maximum low temperature and average precipitation at the Amersham station.
### CONTEXT
CREATE TABLE weekly_weather (low_temperature INTEGER, precipitation INTEGER, station_id VARCHAR); CREATE TABLE station (id VARCHAR, network_name VARCHAR)
### ANSWER
SELECT MAX(t1.low_temperature), AVG(t1.precipitation) FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id WHERE t2.network_name = "Amersham" | {
"answer": "SELECT MAX(t1.low_temperature), AVG(t1.precipitation) FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id WHERE t2.network_name = \"Amersham\"",
"context": "CREATE TABLE weekly_weather (low_temperature INTEGER, precipitation INTEGER, station_id VARCHAR); CREATE TABLE station (id VARCHAR, network_name VARCHAR)",
"question": "Give me the maximum low temperature and average precipitation at the Amersham station."
} |
### QUESTION
Find names and times of trains that run through stations for the local authority Chiltern.
### CONTEXT
CREATE TABLE station (id VARCHAR, local_authority VARCHAR); CREATE TABLE route (station_id VARCHAR, train_id VARCHAR); CREATE TABLE train (name VARCHAR, time VARCHAR, id VARCHAR)
### ANSWER
SELECT t3.name, t3.time FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id JOIN train AS t3 ON t2.train_id = t3.id WHERE t1.local_authority = "Chiltern" | {
"answer": "SELECT t3.name, t3.time FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id JOIN train AS t3 ON t2.train_id = t3.id WHERE t1.local_authority = \"Chiltern\"",
"context": "CREATE TABLE station (id VARCHAR, local_authority VARCHAR); CREATE TABLE route (station_id VARCHAR, train_id VARCHAR); CREATE TABLE train (name VARCHAR, time VARCHAR, id VARCHAR)",
"question": "Find names and times of trains that run through stations for the local authority Chiltern."
} |
### QUESTION
Find the id and local authority of the station with has the highest average high temperature.
### CONTEXT
CREATE TABLE weekly_weather (station_id VARCHAR); CREATE TABLE station (id VARCHAR, local_authority VARCHAR)
### ANSWER
SELECT t2.id, t2.local_authority FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id GROUP BY t1.station_id ORDER BY AVG(high_temperature) DESC LIMIT 1 | {
"answer": "SELECT t2.id, t2.local_authority FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id GROUP BY t1.station_id ORDER BY AVG(high_temperature) DESC LIMIT 1",
"context": "CREATE TABLE weekly_weather (station_id VARCHAR); CREATE TABLE station (id VARCHAR, local_authority VARCHAR)",
"question": "Find the id and local authority of the station with has the highest average high temperature."
} |
### QUESTION
Find the id and local authority of the station whose maximum precipitation is higher than 50.
### CONTEXT
CREATE TABLE weekly_weather (station_id VARCHAR, precipitation INTEGER); CREATE TABLE station (id VARCHAR, local_authority VARCHAR)
### ANSWER
SELECT t2.id, t2.local_authority FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id GROUP BY t1.station_id HAVING MAX(t1.precipitation) > 50 | {
"answer": "SELECT t2.id, t2.local_authority FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id GROUP BY t1.station_id HAVING MAX(t1.precipitation) > 50",
"context": "CREATE TABLE weekly_weather (station_id VARCHAR, precipitation INTEGER); CREATE TABLE station (id VARCHAR, local_authority VARCHAR)",
"question": "Find the id and local authority of the station whose maximum precipitation is higher than 50."
} |
### QUESTION
How many different results of the population count in 2001 are there for the census division whose population in 1996 is 880859?
### CONTEXT
CREATE TABLE table_2134521_1 (pop__2001_ VARCHAR, pop__1996_ VARCHAR)
### ANSWER
SELECT COUNT(pop__2001_) FROM table_2134521_1 WHERE pop__1996_ = 880859 | {
"answer": "SELECT COUNT(pop__2001_) FROM table_2134521_1 WHERE pop__1996_ = 880859",
"context": "CREATE TABLE table_2134521_1 (pop__2001_ VARCHAR, pop__1996_ VARCHAR)",
"question": "How many different results of the population count in 2001 are there for the census division whose population in 1996 is 880859?"
} |
### QUESTION
What is the first and last name of the professor in biology department?
### CONTEXT
CREATE TABLE professor (dept_code VARCHAR, EMP_NUM VARCHAR); CREATE TABLE department (dept_code VARCHAR); CREATE TABLE employee (EMP_FNAME VARCHAR, EMP_LNAME VARCHAR, EMP_NUM VARCHAR)
### ANSWER
SELECT T3.EMP_FNAME, T3.EMP_LNAME FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code JOIN employee AS T3 ON T1.EMP_NUM = T3.EMP_NUM WHERE DEPT_NAME = "Biology" | {
"answer": "SELECT T3.EMP_FNAME, T3.EMP_LNAME FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code JOIN employee AS T3 ON T1.EMP_NUM = T3.EMP_NUM WHERE DEPT_NAME = \"Biology\"",
"context": "CREATE TABLE professor (dept_code VARCHAR, EMP_NUM VARCHAR); CREATE TABLE department (dept_code VARCHAR); CREATE TABLE employee (EMP_FNAME VARCHAR, EMP_LNAME VARCHAR, EMP_NUM VARCHAR)",
"question": "What is the first and last name of the professor in biology department?"
} |
### QUESTION
What are the first names and date of birth of professors teaching course ACCT-211?
### CONTEXT
CREATE TABLE CLASS (PROF_NUM VARCHAR); CREATE TABLE employee (EMP_FNAME VARCHAR, EMP_DOB VARCHAR, EMP_NUM VARCHAR)
### ANSWER
SELECT DISTINCT T1.EMP_FNAME, T1.EMP_DOB FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM = T2.PROF_NUM WHERE CRS_CODE = "ACCT-211" | {
"answer": "SELECT DISTINCT T1.EMP_FNAME, T1.EMP_DOB FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM = T2.PROF_NUM WHERE CRS_CODE = \"ACCT-211\"",
"context": "CREATE TABLE CLASS (PROF_NUM VARCHAR); CREATE TABLE employee (EMP_FNAME VARCHAR, EMP_DOB VARCHAR, EMP_NUM VARCHAR)",
"question": "What are the first names and date of birth of professors teaching course ACCT-211?"
} |
### QUESTION
How many different locations does the school with code BUS has?
### CONTEXT
CREATE TABLE department (dept_address VARCHAR, school_code VARCHAR)
### ANSWER
SELECT COUNT(DISTINCT dept_address) FROM department WHERE school_code = 'BUS' | {
"answer": "SELECT COUNT(DISTINCT dept_address) FROM department WHERE school_code = 'BUS'",
"context": "CREATE TABLE department (dept_address VARCHAR, school_code VARCHAR)",
"question": "How many different locations does the school with code BUS has?"
} |
### QUESTION
Find the number of different departments in each school whose number of different departments is less than 5.
### CONTEXT
CREATE TABLE department (school_code VARCHAR, dept_name VARCHAR)
### ANSWER
SELECT COUNT(DISTINCT dept_name), school_code FROM department GROUP BY school_code HAVING COUNT(DISTINCT dept_name) < 5 | {
"answer": "SELECT COUNT(DISTINCT dept_name), school_code FROM department GROUP BY school_code HAVING COUNT(DISTINCT dept_name) < 5",
"context": "CREATE TABLE department (school_code VARCHAR, dept_name VARCHAR)",
"question": "Find the number of different departments in each school whose number of different departments is less than 5."
} |
### QUESTION
Find the number of classes in each school.
### CONTEXT
CREATE TABLE department (school_code VARCHAR, dept_code VARCHAR); CREATE TABLE CLASS (crs_code VARCHAR); CREATE TABLE course (crs_code VARCHAR, dept_code VARCHAR)
### ANSWER
SELECT COUNT(*), T3.school_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code JOIN department AS T3 ON T2.dept_code = T3.dept_code GROUP BY T3.school_code | {
"answer": "SELECT COUNT(*), T3.school_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code JOIN department AS T3 ON T2.dept_code = T3.dept_code GROUP BY T3.school_code",
"context": "CREATE TABLE department (school_code VARCHAR, dept_code VARCHAR); CREATE TABLE CLASS (crs_code VARCHAR); CREATE TABLE course (crs_code VARCHAR, dept_code VARCHAR)",
"question": "Find the number of classes in each school."
} |
### QUESTION
What was the result of the Australian Championships?
### CONTEXT
CREATE TABLE table_2139023_2 (outcome VARCHAR, championship VARCHAR)
### ANSWER
SELECT outcome FROM table_2139023_2 WHERE championship = "Australian championships" | {
"answer": "SELECT outcome FROM table_2139023_2 WHERE championship = \"Australian championships\"",
"context": "CREATE TABLE table_2139023_2 (outcome VARCHAR, championship VARCHAR)",
"question": "What was the result of the Australian Championships?"
} |
### QUESTION
Does the S90i model have bluetooth?
### CONTEXT
CREATE TABLE table_name_31 (bluetooth VARCHAR, model VARCHAR)
### ANSWER
SELECT bluetooth FROM table_name_31 WHERE model = "s90i" | {
"answer": "SELECT bluetooth FROM table_name_31 WHERE model = \"s90i\"",
"context": "CREATE TABLE table_name_31 (bluetooth VARCHAR, model VARCHAR)",
"question": "Does the S90i model have bluetooth?"
} |
### QUESTION
What is the name and the average gpa of department whose students have the highest average gpa?
### CONTEXT
CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR); CREATE TABLE student (stu_gpa INTEGER, dept_code VARCHAR)
### ANSWER
SELECT T2.dept_name, AVG(T1.stu_gpa) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY AVG(T1.stu_gpa) DESC LIMIT 1 | {
"answer": "SELECT T2.dept_name, AVG(T1.stu_gpa) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY AVG(T1.stu_gpa) DESC LIMIT 1",
"context": "CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR); CREATE TABLE student (stu_gpa INTEGER, dept_code VARCHAR)",
"question": "What is the name and the average gpa of department whose students have the highest average gpa?"
} |
### QUESTION
What is Score Points, when Shooter is "Sandra Kolly ( SUI )"?
### CONTEXT
CREATE TABLE table_name_81 (score_points VARCHAR, shooter VARCHAR)
### ANSWER
SELECT score_points FROM table_name_81 WHERE shooter = "sandra kolly ( sui )" | {
"answer": "SELECT score_points FROM table_name_81 WHERE shooter = \"sandra kolly ( sui )\"",
"context": "CREATE TABLE table_name_81 (score_points VARCHAR, shooter VARCHAR)",
"question": "What is Score Points, when Shooter is \"Sandra Kolly ( SUI )\"?"
} |
### QUESTION
Name the result for total attendance-regular season
### CONTEXT
CREATE TABLE table_21436373_11 (result_games VARCHAR, type_of_record VARCHAR)
### ANSWER
SELECT result_games FROM table_21436373_11 WHERE type_of_record = "Total attendance-Regular season" | {
"answer": "SELECT result_games FROM table_21436373_11 WHERE type_of_record = \"Total attendance-Regular season\"",
"context": "CREATE TABLE table_21436373_11 (result_games VARCHAR, type_of_record VARCHAR)",
"question": "Name the result for total attendance-regular season"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.