text
stringlengths 150
1.06k
| source
dict |
---|---|
### QUESTION
Find the names and descriptions of courses that belong to the subject named "Computer Science".
### CONTEXT
CREATE TABLE Courses (course_name VARCHAR, course_description VARCHAR, subject_id VARCHAR); CREATE TABLE Subjects (subject_id VARCHAR, subject_name VARCHAR)
### ANSWER
SELECT T1.course_name, T1.course_description FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id WHERE T2.subject_name = "Computer Science"</s> | {
"answer": "SELECT T1.course_name, T1.course_description FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id WHERE T2.subject_name = \"Computer Science\"",
"context": "CREATE TABLE Courses (course_name VARCHAR, course_description VARCHAR, subject_id VARCHAR); CREATE TABLE Subjects (subject_id VARCHAR, subject_name VARCHAR)",
"question": "Find the names and descriptions of courses that belong to the subject named \"Computer Science\"."
} |
### QUESTION
Find the subject ID, subject name, and the corresponding number of available courses for each subject.
### CONTEXT
CREATE TABLE Courses (subject_id VARCHAR); CREATE TABLE Subjects (subject_name VARCHAR, subject_id VARCHAR)
### ANSWER
SELECT T1.subject_id, T2.subject_name, COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id</s> | {
"answer": "SELECT T1.subject_id, T2.subject_name, COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id",
"context": "CREATE TABLE Courses (subject_id VARCHAR); CREATE TABLE Subjects (subject_name VARCHAR, subject_id VARCHAR)",
"question": "Find the subject ID, subject name, and the corresponding number of available courses for each subject."
} |
### QUESTION
Find the subject ID, name of subject and the corresponding number of courses for each subject, and sort by the course count in ascending order.
### CONTEXT
CREATE TABLE Courses (subject_id VARCHAR); CREATE TABLE Subjects (subject_name VARCHAR, subject_id VARCHAR)
### ANSWER
SELECT T1.subject_id, T2.subject_name, COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id ORDER BY COUNT(*)</s> | {
"answer": "SELECT T1.subject_id, T2.subject_name, COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id ORDER BY COUNT(*)",
"context": "CREATE TABLE Courses (subject_id VARCHAR); CREATE TABLE Subjects (subject_name VARCHAR, subject_id VARCHAR)",
"question": "Find the subject ID, name of subject and the corresponding number of courses for each subject, and sort by the course count in ascending order."
} |
### QUESTION
What is the date of enrollment of the course named "Spanish"?
### CONTEXT
CREATE TABLE Student_Course_Enrolment (date_of_enrolment VARCHAR, course_id VARCHAR); CREATE TABLE Courses (course_id VARCHAR, course_name VARCHAR)
### ANSWER
SELECT T2.date_of_enrolment FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = "Spanish"</s> | {
"answer": "SELECT T2.date_of_enrolment FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"Spanish\"",
"context": "CREATE TABLE Student_Course_Enrolment (date_of_enrolment VARCHAR, course_id VARCHAR); CREATE TABLE Courses (course_id VARCHAR, course_name VARCHAR)",
"question": "What is the date of enrollment of the course named \"Spanish\"?"
} |
### QUESTION
What is the name of the course that has the most student enrollment?
### CONTEXT
CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Student_Course_Enrolment (course_id VARCHAR)
### ANSWER
SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY COUNT(*) DESC LIMIT 1</s> | {
"answer": "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Student_Course_Enrolment (course_id VARCHAR)",
"question": "What is the name of the course that has the most student enrollment?"
} |
### QUESTION
What are the names of the courses that have exactly 1 student enrollment?
### CONTEXT
CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Student_Course_Enrolment (course_id VARCHAR)
### ANSWER
SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name HAVING COUNT(*) = 1</s> | {
"answer": "SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name HAVING COUNT(*) = 1",
"context": "CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Student_Course_Enrolment (course_id VARCHAR)",
"question": "What are the names of the courses that have exactly 1 student enrollment?"
} |
### QUESTION
What are the descriptions and names of the courses that have student enrollment bigger than 2?
### CONTEXT
CREATE TABLE Student_Course_Enrolment (course_id VARCHAR); CREATE TABLE Courses (course_description VARCHAR, course_name VARCHAR, course_id VARCHAR)
### ANSWER
SELECT T1.course_description, T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name HAVING COUNT(*) > 2</s> | {
"answer": "SELECT T1.course_description, T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name HAVING COUNT(*) > 2",
"context": "CREATE TABLE Student_Course_Enrolment (course_id VARCHAR); CREATE TABLE Courses (course_description VARCHAR, course_name VARCHAR, course_id VARCHAR)",
"question": "What are the descriptions and names of the courses that have student enrollment bigger than 2?"
} |
### QUESTION
What is the name of each course and the corresponding number of student enrollment?
### CONTEXT
CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Student_Course_Enrolment (course_id VARCHAR)
### ANSWER
SELECT T1.course_name, COUNT(*) FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name</s> | {
"answer": "SELECT T1.course_name, COUNT(*) FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name",
"context": "CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Student_Course_Enrolment (course_id VARCHAR)",
"question": "What is the name of each course and the corresponding number of student enrollment?"
} |
### QUESTION
What are the enrollment dates of all the tests that have result "Pass"?
### CONTEXT
CREATE TABLE Student_Tests_Taken (registration_id VARCHAR, test_result VARCHAR); CREATE TABLE Student_Course_Enrolment (date_of_enrolment VARCHAR, registration_id VARCHAR)
### ANSWER
SELECT T1.date_of_enrolment FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Pass"</s> | {
"answer": "SELECT T1.date_of_enrolment FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = \"Pass\"",
"context": "CREATE TABLE Student_Tests_Taken (registration_id VARCHAR, test_result VARCHAR); CREATE TABLE Student_Course_Enrolment (date_of_enrolment VARCHAR, registration_id VARCHAR)",
"question": "What are the enrollment dates of all the tests that have result \"Pass\"?"
} |
### QUESTION
What are the completion dates of all the tests that have result "Fail"?
### CONTEXT
CREATE TABLE Student_Tests_Taken (registration_id VARCHAR, test_result VARCHAR); CREATE TABLE Student_Course_Enrolment (date_of_completion VARCHAR, registration_id VARCHAR)
### ANSWER
SELECT T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Fail"</s> | {
"answer": "SELECT T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = \"Fail\"",
"context": "CREATE TABLE Student_Tests_Taken (registration_id VARCHAR, test_result VARCHAR); CREATE TABLE Student_Course_Enrolment (date_of_completion VARCHAR, registration_id VARCHAR)",
"question": "What are the completion dates of all the tests that have result \"Fail\"?"
} |
### QUESTION
List the dates of enrollment and completion of the student with personal name "Karson".
### CONTEXT
CREATE TABLE Student_Course_Enrolment (date_of_enrolment VARCHAR, date_of_completion VARCHAR, student_id VARCHAR); CREATE TABLE Students (student_id VARCHAR, personal_name VARCHAR)
### ANSWER
SELECT T1.date_of_enrolment, T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.personal_name = "Karson"</s> | {
"answer": "SELECT T1.date_of_enrolment, T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.personal_name = \"Karson\"",
"context": "CREATE TABLE Student_Course_Enrolment (date_of_enrolment VARCHAR, date_of_completion VARCHAR, student_id VARCHAR); CREATE TABLE Students (student_id VARCHAR, personal_name VARCHAR)",
"question": "List the dates of enrollment and completion of the student with personal name \"Karson\"."
} |
### QUESTION
List the dates of enrollment and completion of the student with family name "Zieme" and personal name "Bernie".
### CONTEXT
CREATE TABLE Student_Course_Enrolment (date_of_enrolment VARCHAR, date_of_completion VARCHAR, student_id VARCHAR); CREATE TABLE Students (student_id VARCHAR, family_name VARCHAR, personal_name VARCHAR)
### ANSWER
SELECT T1.date_of_enrolment, T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.family_name = "Zieme" AND T2.personal_name = "Bernie"</s> | {
"answer": "SELECT T1.date_of_enrolment, T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.family_name = \"Zieme\" AND T2.personal_name = \"Bernie\"",
"context": "CREATE TABLE Student_Course_Enrolment (date_of_enrolment VARCHAR, date_of_completion VARCHAR, student_id VARCHAR); CREATE TABLE Students (student_id VARCHAR, family_name VARCHAR, personal_name VARCHAR)",
"question": "List the dates of enrollment and completion of the student with family name \"Zieme\" and personal name \"Bernie\"."
} |
### QUESTION
Where is the company with estimated revenue of 33.3 billion headquartered?
### CONTEXT
CREATE TABLE table_21926985_2 (headquarters_city VARCHAR, revenue__$billions__2012_estimate VARCHAR)
### ANSWER
SELECT headquarters_city FROM table_21926985_2 WHERE revenue__$billions__2012_estimate = "33.3"</s> | {
"answer": "SELECT headquarters_city FROM table_21926985_2 WHERE revenue__$billions__2012_estimate = \"33.3\"",
"context": "CREATE TABLE table_21926985_2 (headquarters_city VARCHAR, revenue__$billions__2012_estimate VARCHAR)",
"question": "Where is the company with estimated revenue of 33.3 billion headquartered?"
} |
### QUESTION
Find the student ID and personal name of the student with at least two enrollments.
### CONTEXT
CREATE TABLE Student_Course_Enrolment (student_id VARCHAR); CREATE TABLE Students (personal_name VARCHAR, student_id VARCHAR)
### ANSWER
SELECT T1.student_id, T2.personal_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) >= 2</s> | {
"answer": "SELECT T1.student_id, T2.personal_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) >= 2",
"context": "CREATE TABLE Student_Course_Enrolment (student_id VARCHAR); CREATE TABLE Students (personal_name VARCHAR, student_id VARCHAR)",
"question": "Find the student ID and personal name of the student with at least two enrollments."
} |
### QUESTION
Find the student ID and middle name for all the students with at most two enrollments.
### CONTEXT
CREATE TABLE Student_Course_Enrolment (student_id VARCHAR); CREATE TABLE Students (middle_name VARCHAR, student_id VARCHAR)
### ANSWER
SELECT T1.student_id, T2.middle_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) <= 2</s> | {
"answer": "SELECT T1.student_id, T2.middle_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) <= 2",
"context": "CREATE TABLE Student_Course_Enrolment (student_id VARCHAR); CREATE TABLE Students (middle_name VARCHAR, student_id VARCHAR)",
"question": "Find the student ID and middle name for all the students with at most two enrollments."
} |
### QUESTION
Find the personal names of students not enrolled in any course.
### CONTEXT
CREATE TABLE Student_Course_Enrolment (student_id VARCHAR); CREATE TABLE Students (personal_name VARCHAR); CREATE TABLE Students (personal_name VARCHAR, student_id VARCHAR)
### ANSWER
SELECT personal_name FROM Students EXCEPT SELECT T1.personal_name FROM Students AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.student_id = T2.student_id</s> | {
"answer": "SELECT personal_name FROM Students EXCEPT SELECT T1.personal_name FROM Students AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.student_id = T2.student_id",
"context": "CREATE TABLE Student_Course_Enrolment (student_id VARCHAR); CREATE TABLE Students (personal_name VARCHAR); CREATE TABLE Students (personal_name VARCHAR, student_id VARCHAR)",
"question": "Find the personal names of students not enrolled in any course."
} |
### QUESTION
How much money does the player with a 72-70-71-72=285 score have?
### CONTEXT
CREATE TABLE table_name_54 (money___£__ VARCHAR, score VARCHAR)
### ANSWER
SELECT money___£__ FROM table_name_54 WHERE score = 72 - 70 - 71 - 72 = 285</s> | {
"answer": "SELECT money___£__ FROM table_name_54 WHERE score = 72 - 70 - 71 - 72 = 285",
"context": "CREATE TABLE table_name_54 (money___£__ VARCHAR, score VARCHAR)",
"question": "How much money does the player with a 72-70-71-72=285 score have?"
} |
### QUESTION
Find the common login name of course authors and students.
### CONTEXT
CREATE TABLE Course_Authors_and_Tutors (login_name VARCHAR); CREATE TABLE Students (login_name VARCHAR)
### ANSWER
SELECT login_name FROM Course_Authors_and_Tutors INTERSECT SELECT login_name FROM Students</s> | {
"answer": "SELECT login_name FROM Course_Authors_and_Tutors INTERSECT SELECT login_name FROM Students",
"context": "CREATE TABLE Course_Authors_and_Tutors (login_name VARCHAR); CREATE TABLE Students (login_name VARCHAR)",
"question": "Find the common login name of course authors and students."
} |
### QUESTION
Find the student ID and login name of the student with the most course enrollments
### CONTEXT
CREATE TABLE Student_Course_Enrolment (student_id VARCHAR); CREATE TABLE Students (login_name VARCHAR, student_id VARCHAR)
### ANSWER
SELECT T1.student_id, T2.login_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1</s> | {
"answer": "SELECT T1.student_id, T2.login_name FROM Student_Course_Enrolment 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 Student_Course_Enrolment (student_id VARCHAR); CREATE TABLE Students (login_name VARCHAR, student_id VARCHAR)",
"question": "Find the student ID and login name of the student with the most course enrollments"
} |
### QUESTION
Which claims caused more than 2 settlements or have the maximum claim value? List the date the claim was made and the claim id.
### CONTEXT
CREATE TABLE Settlements (Claim_id VARCHAR); CREATE TABLE Claims (Amount_Claimed INTEGER); CREATE TABLE Claims (Date_Claim_Made VARCHAR, Claim_id VARCHAR, Amount_Claimed INTEGER)
### ANSWER
SELECT T1.Date_Claim_Made, T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id GROUP BY T1.Claim_id HAVING COUNT(*) > 2 UNION SELECT T1.Date_Claim_Made, T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id WHERE T1.Amount_Claimed = (SELECT MAX(Amount_Claimed) FROM Claims)</s> | {
"answer": "SELECT T1.Date_Claim_Made, T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id GROUP BY T1.Claim_id HAVING COUNT(*) > 2 UNION SELECT T1.Date_Claim_Made, T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id WHERE T1.Amount_Claimed = (SELECT MAX(Amount_Claimed) FROM Claims)",
"context": "CREATE TABLE Settlements (Claim_id VARCHAR); CREATE TABLE Claims (Amount_Claimed INTEGER); CREATE TABLE Claims (Date_Claim_Made VARCHAR, Claim_id VARCHAR, Amount_Claimed INTEGER)",
"question": "Which claims caused more than 2 settlements or have the maximum claim value? List the date the claim was made and the claim id."
} |
### QUESTION
Which customer had at least 2 policies but did not file any claims? List the customer details and id.
### CONTEXT
CREATE TABLE Customers (customer_details VARCHAR, customer_id VARCHAR, Customer_id VARCHAR); CREATE TABLE Customer_Policies (customer_id VARCHAR, policy_id VARCHAR); CREATE TABLE Claims (policy_id VARCHAR)
### ANSWER
SELECT T1.customer_details, T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) >= 2 EXCEPT SELECT T1.customer_details, T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.customer_id JOIN Claims AS T3 ON T2.policy_id = T3.policy_id</s> | {
"answer": "SELECT T1.customer_details, T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.customer_id GROUP BY T1.customer_id HAVING COUNT(*) >= 2 EXCEPT SELECT T1.customer_details, T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.customer_id JOIN Claims AS T3 ON T2.policy_id = T3.policy_id",
"context": "CREATE TABLE Customers (customer_details VARCHAR, customer_id VARCHAR, Customer_id VARCHAR); CREATE TABLE Customer_Policies (customer_id VARCHAR, policy_id VARCHAR); CREATE TABLE Claims (policy_id VARCHAR)",
"question": "Which customer had at least 2 policies but did not file any claims? List the customer details and id."
} |
### QUESTION
Name the most number for automóvil club argentino for benedicto campos
### CONTEXT
CREATE TABLE table_21977704_1 (no INTEGER, entrant VARCHAR, driver VARCHAR)
### ANSWER
SELECT MAX(no) FROM table_21977704_1 WHERE entrant = "Automóvil Club Argentino" AND driver = "Benedicto Campos"</s> | {
"answer": "SELECT MAX(no) FROM table_21977704_1 WHERE entrant = \"Automóvil Club Argentino\" AND driver = \"Benedicto Campos\"",
"context": "CREATE TABLE table_21977704_1 (no INTEGER, entrant VARCHAR, driver VARCHAR)",
"question": "Name the most number for automóvil club argentino for benedicto campos"
} |
### QUESTION
Which Team has Podiums of 0, and a Position of nc†?
### CONTEXT
CREATE TABLE table_name_94 (team VARCHAR, podiums VARCHAR, position VARCHAR)
### ANSWER
SELECT team FROM table_name_94 WHERE podiums = "0" AND position = "nc†"</s> | {
"answer": "SELECT team FROM table_name_94 WHERE podiums = \"0\" AND position = \"nc†\"",
"context": "CREATE TABLE table_name_94 (team VARCHAR, podiums VARCHAR, position VARCHAR)",
"question": "Which Team has Podiums of 0, and a Position of nc†?"
} |
### QUESTION
Which Wins has a Team of scuderia toro rosso, Poles of 0, and Races of 16?
### CONTEXT
CREATE TABLE table_name_99 (wins VARCHAR, races VARCHAR, team VARCHAR, poles VARCHAR)
### ANSWER
SELECT wins FROM table_name_99 WHERE team = "scuderia toro rosso" AND poles = "0" AND races = "16"</s> | {
"answer": "SELECT wins FROM table_name_99 WHERE team = \"scuderia toro rosso\" AND poles = \"0\" AND races = \"16\"",
"context": "CREATE TABLE table_name_99 (wins VARCHAR, races VARCHAR, team VARCHAR, poles VARCHAR)",
"question": "Which Wins has a Team of scuderia toro rosso, Poles of 0, and Races of 16?"
} |
### QUESTION
Among all the claims, which claims have a claimed amount larger than the average? List the date the claim was made and the date it was settled.
### CONTEXT
CREATE TABLE Claims (Date_Claim_Made VARCHAR, Date_Claim_Settled VARCHAR, Amount_Claimed INTEGER)
### ANSWER
SELECT Date_Claim_Made, Date_Claim_Settled FROM Claims WHERE Amount_Claimed > (SELECT AVG(Amount_Claimed) FROM Claims)</s> | {
"answer": "SELECT Date_Claim_Made, Date_Claim_Settled FROM Claims WHERE Amount_Claimed > (SELECT AVG(Amount_Claimed) FROM Claims)",
"context": "CREATE TABLE Claims (Date_Claim_Made VARCHAR, Date_Claim_Settled VARCHAR, Amount_Claimed INTEGER)",
"question": "Among all the claims, which claims have a claimed amount larger than the average? List the date the claim was made and the date it was settled."
} |
### QUESTION
Among all the claims, which settlements have a claimed amount that is no more than the average? List the claim start date.
### CONTEXT
CREATE TABLE Claims (Date_Claim_Made VARCHAR, Amount_Settled INTEGER)
### ANSWER
SELECT Date_Claim_Made FROM Claims WHERE Amount_Settled <= (SELECT AVG(Amount_Settled) FROM Claims)</s> | {
"answer": "SELECT Date_Claim_Made FROM Claims WHERE Amount_Settled <= (SELECT AVG(Amount_Settled) FROM Claims)",
"context": "CREATE TABLE Claims (Date_Claim_Made VARCHAR, Amount_Settled INTEGER)",
"question": "Among all the claims, which settlements have a claimed amount that is no more than the average? List the claim start date."
} |
### QUESTION
What was the method used when the time was 4:52?
### CONTEXT
CREATE TABLE table_name_49 (method VARCHAR, time VARCHAR)
### ANSWER
SELECT method FROM table_name_49 WHERE time = "4:52"</s> | {
"answer": "SELECT method FROM table_name_49 WHERE time = \"4:52\"",
"context": "CREATE TABLE table_name_49 (method VARCHAR, time VARCHAR)",
"question": "What was the method used when the time was 4:52?"
} |
### QUESTION
Which claim incurred the most number of settlements? List the claim id, the date the claim was made, and the number.
### CONTEXT
CREATE TABLE Claims (claim_id VARCHAR, date_claim_made VARCHAR); CREATE TABLE Settlements (claim_id VARCHAR)
### ANSWER
SELECT T1.claim_id, T1.date_claim_made, COUNT(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY COUNT(*) DESC LIMIT 1</s> | {
"answer": "SELECT T1.claim_id, T1.date_claim_made, COUNT(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE Claims (claim_id VARCHAR, date_claim_made VARCHAR); CREATE TABLE Settlements (claim_id VARCHAR)",
"question": "Which claim incurred the most number of settlements? List the claim id, the date the claim was made, and the number."
} |
### QUESTION
How many settlements were made on the claim with the most recent claim settlement date? List the number and the claim id.
### CONTEXT
CREATE TABLE Settlements (claim_id VARCHAR); CREATE TABLE Claims (claim_id VARCHAR, Date_Claim_Settled VARCHAR)
### ANSWER
SELECT COUNT(*), T1.claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY T1.Date_Claim_Settled DESC LIMIT 1</s> | {
"answer": "SELECT COUNT(*), T1.claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id ORDER BY T1.Date_Claim_Settled DESC LIMIT 1",
"context": "CREATE TABLE Settlements (claim_id VARCHAR); CREATE TABLE Claims (claim_id VARCHAR, Date_Claim_Settled VARCHAR)",
"question": "How many settlements were made on the claim with the most recent claim settlement date? List the number and the claim id."
} |
### QUESTION
Of all the claims, what was the earliest date when any claim was made?
### CONTEXT
CREATE TABLE Claims (Date_Claim_Made VARCHAR)
### ANSWER
SELECT Date_Claim_Made FROM Claims ORDER BY Date_Claim_Made LIMIT 1</s> | {
"answer": "SELECT Date_Claim_Made FROM Claims ORDER BY Date_Claim_Made LIMIT 1",
"context": "CREATE TABLE Claims (Date_Claim_Made VARCHAR)",
"question": "Of all the claims, what was the earliest date when any claim was made?"
} |
### QUESTION
What is the nationality of player Jani Hakanpaa?
### CONTEXT
CREATE TABLE table_name_65 (nationality VARCHAR, player VARCHAR)
### ANSWER
SELECT nationality FROM table_name_65 WHERE player = "jani hakanpaa"</s> | {
"answer": "SELECT nationality FROM table_name_65 WHERE player = \"jani hakanpaa\"",
"context": "CREATE TABLE table_name_65 (nationality VARCHAR, player VARCHAR)",
"question": "What is the nationality of player Jani Hakanpaa?"
} |
### QUESTION
Who are the customers that had more than 1 policy? List the customer details and id.
### CONTEXT
CREATE TABLE Customers (customer_details VARCHAR, customer_id VARCHAR, Customer_id VARCHAR); CREATE TABLE Customer_Policies (Customer_id VARCHAR)
### ANSWER
SELECT T1.customer_details, T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.Customer_id GROUP BY T1.customer_id HAVING COUNT(*) > 1</s> | {
"answer": "SELECT T1.customer_details, T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.Customer_id GROUP BY T1.customer_id HAVING COUNT(*) > 1",
"context": "CREATE TABLE Customers (customer_details VARCHAR, customer_id VARCHAR, Customer_id VARCHAR); CREATE TABLE Customer_Policies (Customer_id VARCHAR)",
"question": "Who are the customers that had more than 1 policy? List the customer details and id."
} |
### QUESTION
From which league is the player chosen by the Atlanta Thrashers (from Dallas) 6?
### CONTEXT
CREATE TABLE table_name_69 (league_from VARCHAR, nhl_team VARCHAR)
### ANSWER
SELECT league_from FROM table_name_69 WHERE nhl_team = "atlanta thrashers (from dallas) 6"</s> | {
"answer": "SELECT league_from FROM table_name_69 WHERE nhl_team = \"atlanta thrashers (from dallas) 6\"",
"context": "CREATE TABLE table_name_69 (league_from VARCHAR, nhl_team VARCHAR)",
"question": "From which league is the player chosen by the Atlanta Thrashers (from Dallas) 6?"
} |
### QUESTION
who are the writers of the episode that had 3.07 millions of North American spectators?
### CONTEXT
CREATE TABLE table_21979779_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)
### ANSWER
SELECT written_by FROM table_21979779_1 WHERE us_viewers__million_ = "3.07"</s> | {
"answer": "SELECT written_by FROM table_21979779_1 WHERE us_viewers__million_ = \"3.07\"",
"context": "CREATE TABLE table_21979779_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)",
"question": "who are the writers of the episode that had 3.07 millions of North American spectators?"
} |
### QUESTION
what is the smallest series episode number whose production code is 2t7211?
### CONTEXT
CREATE TABLE table_21979779_1 (no INTEGER, production_code VARCHAR)
### ANSWER
SELECT MIN(no) FROM table_21979779_1 WHERE production_code = "2T7211"</s> | {
"answer": "SELECT MIN(no) FROM table_21979779_1 WHERE production_code = \"2T7211\"",
"context": "CREATE TABLE table_21979779_1 (no INTEGER, production_code VARCHAR)",
"question": "what is the smallest series episode number whose production code is 2t7211?"
} |
### QUESTION
Which Label has a Country of canada, and a Format of cd/digital download?
### CONTEXT
CREATE TABLE table_name_53 (label VARCHAR, country VARCHAR, format VARCHAR)
### ANSWER
SELECT label FROM table_name_53 WHERE country = "canada" AND format = "cd/digital download"</s> | {
"answer": "SELECT label FROM table_name_53 WHERE country = \"canada\" AND format = \"cd/digital download\"",
"context": "CREATE TABLE table_name_53 (label VARCHAR, country VARCHAR, format VARCHAR)",
"question": "Which Label has a Country of canada, and a Format of cd/digital download?"
} |
### QUESTION
when was the premiere of the episode where the amount of North American spectators was 1.76 millions?
### CONTEXT
CREATE TABLE table_21979779_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)
### ANSWER
SELECT original_air_date FROM table_21979779_1 WHERE us_viewers__million_ = "1.76"</s> | {
"answer": "SELECT original_air_date FROM table_21979779_1 WHERE us_viewers__million_ = \"1.76\"",
"context": "CREATE TABLE table_21979779_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)",
"question": "when was the premiere of the episode where the amount of North American spectators was 1.76 millions?"
} |
### QUESTION
List the details of the customers who do not have any policies.
### CONTEXT
CREATE TABLE Customer_Policies (customer_id VARCHAR); CREATE TABLE Customers (customer_details VARCHAR, customer_id VARCHAR); CREATE TABLE Customers (customer_details VARCHAR)
### ANSWER
SELECT customer_details FROM Customers EXCEPT SELECT T1.customer_details FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.customer_id = T2.customer_id</s> | {
"answer": "SELECT customer_details FROM Customers EXCEPT SELECT T1.customer_details FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.customer_id = T2.customer_id",
"context": "CREATE TABLE Customer_Policies (customer_id VARCHAR); CREATE TABLE Customers (customer_details VARCHAR, customer_id VARCHAR); CREATE TABLE Customers (customer_details VARCHAR)",
"question": "List the details of the customers who do not have any policies."
} |
### QUESTION
List the date the claim was made, the date it was settled and the amount settled for all the claims which had exactly one settlement.
### CONTEXT
CREATE TABLE Claims (claim_id VARCHAR, date_claim_made VARCHAR, Date_Claim_Settled VARCHAR, Claim_id VARCHAR); CREATE TABLE Settlements (Claim_id VARCHAR)
### ANSWER
SELECT T1.claim_id, T1.date_claim_made, T1.Date_Claim_Settled FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id GROUP BY T1.claim_id HAVING COUNT(*) = 1</s> | {
"answer": "SELECT T1.claim_id, T1.date_claim_made, T1.Date_Claim_Settled FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id GROUP BY T1.claim_id HAVING COUNT(*) = 1",
"context": "CREATE TABLE Claims (claim_id VARCHAR, date_claim_made VARCHAR, Date_Claim_Settled VARCHAR, Claim_id VARCHAR); CREATE TABLE Settlements (Claim_id VARCHAR)",
"question": "List the date the claim was made, the date it was settled and the amount settled for all the claims which had exactly one settlement."
} |
### QUESTION
What are all the title directed by reginald hudlin
### CONTEXT
CREATE TABLE table_21994729_3 (title VARCHAR, directed_by VARCHAR)
### ANSWER
SELECT COUNT(title) FROM table_21994729_3 WHERE directed_by = "Reginald Hudlin"</s> | {
"answer": "SELECT COUNT(title) FROM table_21994729_3 WHERE directed_by = \"Reginald Hudlin\"",
"context": "CREATE TABLE table_21994729_3 (title VARCHAR, directed_by VARCHAR)",
"question": "What are all the title directed by reginald hudlin"
} |
### QUESTION
Which Country has a Catalogue number(s) of eredv711?
### CONTEXT
CREATE TABLE table_name_94 (country VARCHAR, catalogue_number_s_ VARCHAR)
### ANSWER
SELECT country FROM table_name_94 WHERE catalogue_number_s_ = "eredv711"</s> | {
"answer": "SELECT country FROM table_name_94 WHERE catalogue_number_s_ = \"eredv711\"",
"context": "CREATE TABLE table_name_94 (country VARCHAR, catalogue_number_s_ VARCHAR)",
"question": "Which Country has a Catalogue number(s) of eredv711?"
} |
### QUESTION
Which Format has a Label of eagle records, and a Catalogue number(s) of edgcd391?
### CONTEXT
CREATE TABLE table_name_23 (format VARCHAR, label VARCHAR, catalogue_number_s_ VARCHAR)
### ANSWER
SELECT format FROM table_name_23 WHERE label = "eagle records" AND catalogue_number_s_ = "edgcd391"</s> | {
"answer": "SELECT format FROM table_name_23 WHERE label = \"eagle records\" AND catalogue_number_s_ = \"edgcd391\"",
"context": "CREATE TABLE table_name_23 (format VARCHAR, label VARCHAR, catalogue_number_s_ VARCHAR)",
"question": "Which Format has a Label of eagle records, and a Catalogue number(s) of edgcd391?"
} |
### QUESTION
what is the name and position of the head whose department has least number of employees?
### CONTEXT
CREATE TABLE department (head VARCHAR); CREATE TABLE physician (name VARCHAR, position VARCHAR, EmployeeID VARCHAR)
### ANSWER
SELECT T2.name, T2.position FROM department AS T1 JOIN physician AS T2 ON T1.head = T2.EmployeeID GROUP BY departmentID ORDER BY COUNT(departmentID) LIMIT 1</s> | {
"answer": "SELECT T2.name, T2.position FROM department AS T1 JOIN physician AS T2 ON T1.head = T2.EmployeeID GROUP BY departmentID ORDER BY COUNT(departmentID) LIMIT 1",
"context": "CREATE TABLE department (head VARCHAR); CREATE TABLE physician (name VARCHAR, position VARCHAR, EmployeeID VARCHAR)",
"question": "what is the name and position of the head whose department has least number of employees?"
} |
### QUESTION
Which Format has a Label of eagle eye media, a Catalogue number(s) of —, and a Country of united states?
### CONTEXT
CREATE TABLE table_name_33 (format VARCHAR, country VARCHAR, label VARCHAR, catalogue_number_s_ VARCHAR)
### ANSWER
SELECT format FROM table_name_33 WHERE label = "eagle eye media" AND catalogue_number_s_ = "—" AND country = "united states"</s> | {
"answer": "SELECT format FROM table_name_33 WHERE label = \"eagle eye media\" AND catalogue_number_s_ = \"—\" AND country = \"united states\"",
"context": "CREATE TABLE table_name_33 (format VARCHAR, country VARCHAR, label VARCHAR, catalogue_number_s_ VARCHAR)",
"question": "Which Format has a Label of eagle eye media, a Catalogue number(s) of —, and a Country of united states?"
} |
### QUESTION
what are name and phone number of patients who had more than one appointment?
### CONTEXT
CREATE TABLE appointment (patient VARCHAR); CREATE TABLE patient (ssn VARCHAR)
### ANSWER
SELECT name, phone FROM appointment AS T1 JOIN patient AS T2 ON T1.patient = T2.ssn GROUP BY T1.patient HAVING COUNT(*) > 1</s> | {
"answer": "SELECT name, phone FROM appointment AS T1 JOIN patient AS T2 ON T1.patient = T2.ssn GROUP BY T1.patient HAVING COUNT(*) > 1",
"context": "CREATE TABLE appointment (patient VARCHAR); CREATE TABLE patient (ssn VARCHAR)",
"question": "what are name and phone number of patients who had more than one appointment?"
} |
### QUESTION
Which Payments were processed with Visa? List the payment Id, the date and the amount.
### CONTEXT
CREATE TABLE Payments (Payment_ID VARCHAR, Date_Payment_Made VARCHAR, Amount_Payment VARCHAR, Payment_Method_Code VARCHAR)
### ANSWER
SELECT Payment_ID, Date_Payment_Made, Amount_Payment FROM Payments WHERE Payment_Method_Code = 'Visa'</s> | {
"answer": "SELECT Payment_ID, Date_Payment_Made, Amount_Payment FROM Payments WHERE Payment_Method_Code = 'Visa'",
"context": "CREATE TABLE Payments (Payment_ID VARCHAR, Date_Payment_Made VARCHAR, Amount_Payment VARCHAR, Payment_Method_Code VARCHAR)",
"question": "Which Payments were processed with Visa? List the payment Id, the date and the amount."
} |
### QUESTION
Which Label has a Country of united kingdom, a Date of 22 september 2008, and a Catalogue number(s) of eredv711?
### CONTEXT
CREATE TABLE table_name_61 (label VARCHAR, catalogue_number_s_ VARCHAR, country VARCHAR, date VARCHAR)
### ANSWER
SELECT label FROM table_name_61 WHERE country = "united kingdom" AND date = "22 september 2008" AND catalogue_number_s_ = "eredv711"</s> | {
"answer": "SELECT label FROM table_name_61 WHERE country = \"united kingdom\" AND date = \"22 september 2008\" AND catalogue_number_s_ = \"eredv711\"",
"context": "CREATE TABLE table_name_61 (label VARCHAR, catalogue_number_s_ VARCHAR, country VARCHAR, date VARCHAR)",
"question": "Which Label has a Country of united kingdom, a Date of 22 september 2008, and a Catalogue number(s) of eredv711?"
} |
### QUESTION
Find the names of all physicians and their primary affiliated departments' names.
### CONTEXT
CREATE TABLE department (name VARCHAR, DepartmentID VARCHAR); CREATE TABLE affiliated_with (physician VARCHAR, department VARCHAR, PrimaryAffiliation VARCHAR); CREATE TABLE physician (name VARCHAR, EmployeeID VARCHAR)
### ANSWER
SELECT T1.name, T3.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T2.PrimaryAffiliation = 1</s> | {
"answer": "SELECT T1.name, T3.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T2.PrimaryAffiliation = 1",
"context": "CREATE TABLE department (name VARCHAR, DepartmentID VARCHAR); CREATE TABLE affiliated_with (physician VARCHAR, department VARCHAR, PrimaryAffiliation VARCHAR); CREATE TABLE physician (name VARCHAR, EmployeeID VARCHAR)",
"question": "Find the names of all physicians and their primary affiliated departments' names."
} |
### QUESTION
How many patients' prescriptions are made by physician John Dorian?
### CONTEXT
CREATE TABLE patient (SSN VARCHAR); CREATE TABLE prescribes (patient VARCHAR, physician VARCHAR); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR)
### ANSWER
SELECT COUNT(T1.SSN) FROM patient AS T1 JOIN prescribes AS T2 ON T1.SSN = T2.patient JOIN physician AS T3 ON T2.physician = T3.employeeid WHERE T3.name = "John Dorian"</s> | {
"answer": "SELECT COUNT(T1.SSN) FROM patient AS T1 JOIN prescribes AS T2 ON T1.SSN = T2.patient JOIN physician AS T3 ON T2.physician = T3.employeeid WHERE T3.name = \"John Dorian\"",
"context": "CREATE TABLE patient (SSN VARCHAR); CREATE TABLE prescribes (patient VARCHAR, physician VARCHAR); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR)",
"question": "How many patients' prescriptions are made by physician John Dorian?"
} |
### QUESTION
What is the name of the nurse has the most appointments?
### CONTEXT
CREATE TABLE nurse (name VARCHAR, employeeid VARCHAR); CREATE TABLE appointment (prepnurse VARCHAR)
### ANSWER
SELECT T1.name FROM nurse AS T1 JOIN appointment AS T2 ON T1.employeeid = T2.prepnurse GROUP BY T1.employeeid ORDER BY COUNT(*) DESC LIMIT 1</s> | {
"answer": "SELECT T1.name FROM nurse AS T1 JOIN appointment AS T2 ON T1.employeeid = T2.prepnurse GROUP BY T1.employeeid ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE nurse (name VARCHAR, employeeid VARCHAR); CREATE TABLE appointment (prepnurse VARCHAR)",
"question": "What is the name of the nurse has the most appointments?"
} |
### QUESTION
How many patients do each physician take care of? List their names and number of patients they take care of.
### CONTEXT
CREATE TABLE patient (PCP VARCHAR); CREATE TABLE physician (name VARCHAR, employeeid VARCHAR)
### ANSWER
SELECT T1.name, COUNT(*) FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid = T2.PCP GROUP BY T1.employeeid</s> | {
"answer": "SELECT T1.name, COUNT(*) FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid = T2.PCP GROUP BY T1.employeeid",
"context": "CREATE TABLE patient (PCP VARCHAR); CREATE TABLE physician (name VARCHAR, employeeid VARCHAR)",
"question": "How many patients do each physician take care of? List their names and number of patients they take care of."
} |
### QUESTION
What are the results for the film titled 'Joki'?
### CONTEXT
CREATE TABLE table_22020724_1 (result VARCHAR, title_in_the_original_language VARCHAR)
### ANSWER
SELECT COUNT(result) FROM table_22020724_1 WHERE title_in_the_original_language = "Joki"</s> | {
"answer": "SELECT COUNT(result) FROM table_22020724_1 WHERE title_in_the_original_language = \"Joki\"",
"context": "CREATE TABLE table_22020724_1 (result VARCHAR, title_in_the_original_language VARCHAR)",
"question": "What are the results for the film titled 'Joki'?"
} |
### QUESTION
What was the score when Nacional was the champion, River Plate was the runner-up, and the venue was Centenario?
### CONTEXT
CREATE TABLE table_name_13 (score VARCHAR, runner_up VARCHAR, champion VARCHAR, venue VARCHAR)
### ANSWER
SELECT score FROM table_name_13 WHERE champion = "nacional" AND venue = "centenario" AND runner_up = "river plate"</s> | {
"answer": "SELECT score FROM table_name_13 WHERE champion = \"nacional\" AND venue = \"centenario\" AND runner_up = \"river plate\"",
"context": "CREATE TABLE table_name_13 (score VARCHAR, runner_up VARCHAR, champion VARCHAR, venue VARCHAR)",
"question": "What was the score when Nacional was the champion, River Plate was the runner-up, and the venue was Centenario?"
} |
### QUESTION
Find the number of rooms for different block code?
### CONTEXT
CREATE TABLE room (blockfloor VARCHAR, blockcode VARCHAR); CREATE TABLE BLOCK (blockcode VARCHAR, blockfloor VARCHAR)
### ANSWER
SELECT COUNT(*), T1.blockcode FROM BLOCK AS T1 JOIN room AS T2 ON T1.blockfloor = T2.blockfloor AND T1.blockcode = T2.blockcode GROUP BY T1.blockcode</s> | {
"answer": "SELECT COUNT(*), T1.blockcode FROM BLOCK AS T1 JOIN room AS T2 ON T1.blockfloor = T2.blockfloor AND T1.blockcode = T2.blockcode GROUP BY T1.blockcode",
"context": "CREATE TABLE room (blockfloor VARCHAR, blockcode VARCHAR); CREATE TABLE BLOCK (blockcode VARCHAR, blockfloor VARCHAR)",
"question": "Find the number of rooms for different block code?"
} |
### QUESTION
The match against Paul-Henri Mathieu had what outcome?
### CONTEXT
CREATE TABLE table_name_92 (outcome VARCHAR, opponent VARCHAR)
### ANSWER
SELECT outcome FROM table_name_92 WHERE opponent = "paul-henri mathieu"</s> | {
"answer": "SELECT outcome FROM table_name_92 WHERE opponent = \"paul-henri mathieu\"",
"context": "CREATE TABLE table_name_92 (outcome VARCHAR, opponent VARCHAR)",
"question": "The match against Paul-Henri Mathieu had what outcome?"
} |
### QUESTION
What is the names of the physicians who prescribe medication Thesisin?
### CONTEXT
CREATE TABLE physician (name VARCHAR, employeeid VARCHAR); CREATE TABLE prescribes (physician VARCHAR, medication VARCHAR); CREATE TABLE medication (code VARCHAR, name VARCHAR)
### ANSWER
SELECT DISTINCT T1.name FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.name = "Thesisin"</s> | {
"answer": "SELECT DISTINCT T1.name FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.name = \"Thesisin\"",
"context": "CREATE TABLE physician (name VARCHAR, employeeid VARCHAR); CREATE TABLE prescribes (physician VARCHAR, medication VARCHAR); CREATE TABLE medication (code VARCHAR, name VARCHAR)",
"question": "What is the names of the physicians who prescribe medication Thesisin?"
} |
### QUESTION
Find the name and position of physicians who prescribe some medication whose brand is X?
### CONTEXT
CREATE TABLE medication (code VARCHAR, Brand VARCHAR); CREATE TABLE prescribes (physician VARCHAR, medication VARCHAR); CREATE TABLE physician (name VARCHAR, position VARCHAR, employeeid VARCHAR)
### ANSWER
SELECT DISTINCT T1.name, T1.position FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.Brand = "X"</s> | {
"answer": "SELECT DISTINCT T1.name, T1.position FROM physician AS T1 JOIN prescribes AS T2 ON T1.employeeid = T2.physician JOIN medication AS T3 ON T3.code = T2.medication WHERE T3.Brand = \"X\"",
"context": "CREATE TABLE medication (code VARCHAR, Brand VARCHAR); CREATE TABLE prescribes (physician VARCHAR, medication VARCHAR); CREATE TABLE physician (name VARCHAR, position VARCHAR, employeeid VARCHAR)",
"question": "Find the name and position of physicians who prescribe some medication whose brand is X?"
} |
### QUESTION
Find the number of medications prescribed for each brand.
### CONTEXT
CREATE TABLE medication (name VARCHAR, brand VARCHAR, code VARCHAR); CREATE TABLE prescribes (medication VARCHAR)
### ANSWER
SELECT COUNT(*), T1.name FROM medication AS T1 JOIN prescribes AS T2 ON T1.code = T2.medication GROUP BY T1.brand</s> | {
"answer": "SELECT COUNT(*), T1.name FROM medication AS T1 JOIN prescribes AS T2 ON T1.code = T2.medication GROUP BY T1.brand",
"context": "CREATE TABLE medication (name VARCHAR, brand VARCHAR, code VARCHAR); CREATE TABLE prescribes (medication VARCHAR)",
"question": "Find the number of medications prescribed for each brand."
} |
### QUESTION
What is the average pjehun measured by female enrollment?
### CONTEXT
CREATE TABLE table_name_10 (pujehun INTEGER, measure VARCHAR)
### ANSWER
SELECT AVG(pujehun) FROM table_name_10 WHERE measure = "female enrollment"</s> | {
"answer": "SELECT AVG(pujehun) FROM table_name_10 WHERE measure = \"female enrollment\"",
"context": "CREATE TABLE table_name_10 (pujehun INTEGER, measure VARCHAR)",
"question": "What is the average pjehun measured by female enrollment?"
} |
### QUESTION
What year did jaroslav vojtek category:articles with hcards Direct?
### CONTEXT
CREATE TABLE table_22032599_1 (year__ceremony_ VARCHAR, director VARCHAR)
### ANSWER
SELECT year__ceremony_ FROM table_22032599_1 WHERE director = "Jaroslav Vojtek Category:Articles with hCards"</s> | {
"answer": "SELECT year__ceremony_ FROM table_22032599_1 WHERE director = \"Jaroslav Vojtek Category:Articles with hCards\"",
"context": "CREATE TABLE table_22032599_1 (year__ceremony_ VARCHAR, director VARCHAR)",
"question": "What year did jaroslav vojtek category:articles with hcards Direct?"
} |
### QUESTION
What was the result for Gypsy?
### CONTEXT
CREATE TABLE table_22032599_1 (result VARCHAR, film_title_used_in_nomination VARCHAR)
### ANSWER
SELECT result FROM table_22032599_1 WHERE film_title_used_in_nomination = "Gypsy"</s> | {
"answer": "SELECT result FROM table_22032599_1 WHERE film_title_used_in_nomination = \"Gypsy\"",
"context": "CREATE TABLE table_22032599_1 (result VARCHAR, film_title_used_in_nomination VARCHAR)",
"question": "What was the result for Gypsy?"
} |
### QUESTION
HOw many films did martin repka category:articles with hcards direct?
### CONTEXT
CREATE TABLE table_22032599_1 (film_title_used_in_nomination VARCHAR, director VARCHAR)
### ANSWER
SELECT COUNT(film_title_used_in_nomination) FROM table_22032599_1 WHERE director = "Martin Repka Category:Articles with hCards"</s> | {
"answer": "SELECT COUNT(film_title_used_in_nomination) FROM table_22032599_1 WHERE director = \"Martin Repka Category:Articles with hCards\"",
"context": "CREATE TABLE table_22032599_1 (film_title_used_in_nomination VARCHAR, director VARCHAR)",
"question": "HOw many films did martin repka category:articles with hcards direct?"
} |
### QUESTION
What was the language for the movie "Late Bloomers"?
### CONTEXT
CREATE TABLE table_22034853_1 (language_s_ VARCHAR, film_title_used_in_nomination VARCHAR)
### ANSWER
SELECT language_s_ FROM table_22034853_1 WHERE film_title_used_in_nomination = "Late Bloomers"</s> | {
"answer": "SELECT language_s_ FROM table_22034853_1 WHERE film_title_used_in_nomination = \"Late Bloomers\"",
"context": "CREATE TABLE table_22034853_1 (language_s_ VARCHAR, film_title_used_in_nomination VARCHAR)",
"question": "What was the language for the movie \"Late Bloomers\"?"
} |
### QUESTION
List the names of departments where some physicians are primarily affiliated with.
### CONTEXT
CREATE TABLE affiliated_with (department VARCHAR); CREATE TABLE department (name VARCHAR, departmentid VARCHAR)
### ANSWER
SELECT DISTINCT T2.name FROM affiliated_with AS T1 JOIN department AS T2 ON T1.department = T2.departmentid WHERE PrimaryAffiliation = 1</s> | {
"answer": "SELECT DISTINCT T2.name FROM affiliated_with AS T1 JOIN department AS T2 ON T1.department = T2.departmentid WHERE PrimaryAffiliation = 1",
"context": "CREATE TABLE affiliated_with (department VARCHAR); CREATE TABLE department (name VARCHAR, departmentid VARCHAR)",
"question": "List the names of departments where some physicians are primarily affiliated with."
} |
### QUESTION
How many films are titled "Dans la Ville Blanche"?
### CONTEXT
CREATE TABLE table_22034853_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)
### ANSWER
SELECT COUNT(film_title_used_in_nomination) FROM table_22034853_1 WHERE original_title = "Dans la ville blanche"</s> | {
"answer": "SELECT COUNT(film_title_used_in_nomination) FROM table_22034853_1 WHERE original_title = \"Dans la ville blanche\"",
"context": "CREATE TABLE table_22034853_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)",
"question": "How many films are titled \"Dans la Ville Blanche\"?"
} |
### QUESTION
What year has a original title of "el tinte de la fama"?
### CONTEXT
CREATE TABLE table_name_81 (year__ceremony_ VARCHAR, original_title VARCHAR)
### ANSWER
SELECT year__ceremony_ FROM table_name_81 WHERE original_title = "el tinte de la fama"</s> | {
"answer": "SELECT year__ceremony_ FROM table_name_81 WHERE original_title = \"el tinte de la fama\"",
"context": "CREATE TABLE table_name_81 (year__ceremony_ VARCHAR, original_title VARCHAR)",
"question": "What year has a original title of \"el tinte de la fama\"?"
} |
### QUESTION
Find the physicians who are trained in a procedure that costs more than 5000.
### CONTEXT
CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE physician (name VARCHAR, employeeid VARCHAR); CREATE TABLE procedures (code VARCHAR, cost INTEGER)
### ANSWER
SELECT T1.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T3.cost > 5000</s> | {
"answer": "SELECT T1.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T3.cost > 5000",
"context": "CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE physician (name VARCHAR, employeeid VARCHAR); CREATE TABLE procedures (code VARCHAR, cost INTEGER)",
"question": "Find the physicians who are trained in a procedure that costs more than 5000."
} |
### QUESTION
Find the physician who was trained in the most expensive procedure?
### CONTEXT
CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE physician (name VARCHAR, employeeid VARCHAR); CREATE TABLE procedures (code VARCHAR, cost VARCHAR)
### ANSWER
SELECT T1.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment ORDER BY T3.cost DESC LIMIT 1</s> | {
"answer": "SELECT T1.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment ORDER BY T3.cost DESC LIMIT 1",
"context": "CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE physician (name VARCHAR, employeeid VARCHAR); CREATE TABLE procedures (code VARCHAR, cost VARCHAR)",
"question": "Find the physician who was trained in the most expensive procedure?"
} |
### QUESTION
What is the average cost of procedures that physician John Wen was trained in?
### CONTEXT
CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE procedures (cost INTEGER, code VARCHAR); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR)
### ANSWER
SELECT AVG(T3.cost) FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = "John Wen"</s> | {
"answer": "SELECT AVG(T3.cost) FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = \"John Wen\"",
"context": "CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE procedures (cost INTEGER, code VARCHAR); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR)",
"question": "What is the average cost of procedures that physician John Wen was trained in?"
} |
### QUESTION
How many of the writers had 5.35 viewers?
### CONTEXT
CREATE TABLE table_22053239_1 (written_by VARCHAR, us_viewers__millions_ VARCHAR)
### ANSWER
SELECT COUNT(written_by) FROM table_22053239_1 WHERE us_viewers__millions_ = "5.35"</s> | {
"answer": "SELECT COUNT(written_by) FROM table_22053239_1 WHERE us_viewers__millions_ = \"5.35\"",
"context": "CREATE TABLE table_22053239_1 (written_by VARCHAR, us_viewers__millions_ VARCHAR)",
"question": "How many of the writers had 5.35 viewers?"
} |
### QUESTION
Find all procedures which cost more than 1000 or which physician John Wen was trained in.
### CONTEXT
CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE procedures (name VARCHAR, cost INTEGER); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR); CREATE TABLE procedures (name VARCHAR, code VARCHAR)
### ANSWER
SELECT name FROM procedures WHERE cost > 1000 UNION SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = "John Wen"</s> | {
"answer": "SELECT name FROM procedures WHERE cost > 1000 UNION SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = \"John Wen\"",
"context": "CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE procedures (name VARCHAR, cost INTEGER); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR); CREATE TABLE procedures (name VARCHAR, code VARCHAR)",
"question": "Find all procedures which cost more than 1000 or which physician John Wen was trained in."
} |
### QUESTION
Find the names of all procedures which cost more than 1000 but which physician John Wen was not trained in?
### CONTEXT
CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE procedures (name VARCHAR, cost INTEGER); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR); CREATE TABLE procedures (name VARCHAR, code VARCHAR)
### ANSWER
SELECT name FROM procedures WHERE cost > 1000 EXCEPT SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = "John Wen"</s> | {
"answer": "SELECT name FROM procedures WHERE cost > 1000 EXCEPT SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = \"John Wen\"",
"context": "CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE procedures (name VARCHAR, cost INTEGER); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR); CREATE TABLE procedures (name VARCHAR, code VARCHAR)",
"question": "Find the names of all procedures which cost more than 1000 but which physician John Wen was not trained in?"
} |
### QUESTION
Find the names of all procedures such that the cost is less than 5000 and physician John Wen was trained in.
### CONTEXT
CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE procedures (name VARCHAR, cost INTEGER); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR); CREATE TABLE procedures (name VARCHAR, code VARCHAR)
### ANSWER
SELECT name FROM procedures WHERE cost < 5000 INTERSECT SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = "John Wen"</s> | {
"answer": "SELECT name FROM procedures WHERE cost < 5000 INTERSECT SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = \"John Wen\"",
"context": "CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE procedures (name VARCHAR, cost INTEGER); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR); CREATE TABLE procedures (name VARCHAR, code VARCHAR)",
"question": "Find the names of all procedures such that the cost is less than 5000 and physician John Wen was trained in."
} |
### QUESTION
Find the name of physicians who are affiliated with both Surgery and Psychiatry departments.
### CONTEXT
CREATE TABLE affiliated_with (physician VARCHAR, department VARCHAR); CREATE TABLE department (DepartmentID VARCHAR, name VARCHAR); CREATE TABLE physician (name VARCHAR, EmployeeID VARCHAR)
### ANSWER
SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T3.name = 'Surgery' INTERSECT SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T3.name = 'Psychiatry'</s> | {
"answer": "SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T3.name = 'Surgery' INTERSECT SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T3.name = 'Psychiatry'",
"context": "CREATE TABLE affiliated_with (physician VARCHAR, department VARCHAR); CREATE TABLE department (DepartmentID VARCHAR, name VARCHAR); CREATE TABLE physician (name VARCHAR, EmployeeID VARCHAR)",
"question": "Find the name of physicians who are affiliated with both Surgery and Psychiatry departments."
} |
### QUESTION
Find the name of physicians who are affiliated with Surgery or Psychiatry department.
### CONTEXT
CREATE TABLE affiliated_with (physician VARCHAR, department VARCHAR); CREATE TABLE department (DepartmentID VARCHAR, name VARCHAR); CREATE TABLE physician (name VARCHAR, EmployeeID VARCHAR)
### ANSWER
SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T3.name = 'Surgery' OR T3.name = 'Psychiatry'</s> | {
"answer": "SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T3.name = 'Surgery' OR T3.name = 'Psychiatry'",
"context": "CREATE TABLE affiliated_with (physician VARCHAR, department VARCHAR); CREATE TABLE department (DepartmentID VARCHAR, name VARCHAR); CREATE TABLE physician (name VARCHAR, EmployeeID VARCHAR)",
"question": "Find the name of physicians who are affiliated with Surgery or Psychiatry department."
} |
### QUESTION
Find the names of patients who are not using the medication of Procrastin-X.
### CONTEXT
CREATE TABLE Prescribes (Patient VARCHAR, Medication VARCHAR); CREATE TABLE Medication (Code VARCHAR, name VARCHAR); CREATE TABLE patient (name VARCHAR, SSN VARCHAR); CREATE TABLE patient (name VARCHAR)
### ANSWER
SELECT name FROM patient EXCEPT SELECT T1.name FROM patient AS T1 JOIN Prescribes AS T2 ON T2.Patient = T1.SSN JOIN Medication AS T3 ON T2.Medication = T3.Code WHERE T3.name = 'Procrastin-X'</s> | {
"answer": "SELECT name FROM patient EXCEPT SELECT T1.name FROM patient AS T1 JOIN Prescribes AS T2 ON T2.Patient = T1.SSN JOIN Medication AS T3 ON T2.Medication = T3.Code WHERE T3.name = 'Procrastin-X'",
"context": "CREATE TABLE Prescribes (Patient VARCHAR, Medication VARCHAR); CREATE TABLE Medication (Code VARCHAR, name VARCHAR); CREATE TABLE patient (name VARCHAR, SSN VARCHAR); CREATE TABLE patient (name VARCHAR)",
"question": "Find the names of patients who are not using the medication of Procrastin-X."
} |
### QUESTION
Who is the director of the original title perl oder pica?
### CONTEXT
CREATE TABLE table_22073745_1 (director VARCHAR, original_title VARCHAR)
### ANSWER
SELECT director FROM table_22073745_1 WHERE original_title = "Perl oder Pica"</s> | {
"answer": "SELECT director FROM table_22073745_1 WHERE original_title = \"Perl oder Pica\"",
"context": "CREATE TABLE table_22073745_1 (director VARCHAR, original_title VARCHAR)",
"question": "Who is the director of the original title perl oder pica?"
} |
### QUESTION
Find the number of patients who are not using the medication of Procrastin-X.
### CONTEXT
CREATE TABLE Prescribes (patient VARCHAR, Medication VARCHAR); CREATE TABLE patient (SSN VARCHAR); CREATE TABLE Medication (Code VARCHAR, name VARCHAR)
### ANSWER
SELECT COUNT(*) FROM patient WHERE NOT SSN IN (SELECT T1.patient FROM Prescribes AS T1 JOIN Medication AS T2 ON T1.Medication = T2.Code WHERE T2.name = 'Procrastin-X')</s> | {
"answer": "SELECT COUNT(*) FROM patient WHERE NOT SSN IN (SELECT T1.patient FROM Prescribes AS T1 JOIN Medication AS T2 ON T1.Medication = T2.Code WHERE T2.name = 'Procrastin-X')",
"context": "CREATE TABLE Prescribes (patient VARCHAR, Medication VARCHAR); CREATE TABLE patient (SSN VARCHAR); CREATE TABLE Medication (Code VARCHAR, name VARCHAR)",
"question": "Find the number of patients who are not using the medication of Procrastin-X."
} |
### QUESTION
How many languages is refractaire as the film title used in nomination?
### CONTEXT
CREATE TABLE table_22073745_1 (languages VARCHAR, film_title_used_in_nomination VARCHAR)
### ANSWER
SELECT COUNT(languages) FROM table_22073745_1 WHERE film_title_used_in_nomination = "Refractaire"</s> | {
"answer": "SELECT COUNT(languages) FROM table_22073745_1 WHERE film_title_used_in_nomination = \"Refractaire\"",
"context": "CREATE TABLE table_22073745_1 (languages VARCHAR, film_title_used_in_nomination VARCHAR)",
"question": "How many languages is refractaire as the film title used in nomination?"
} |
### QUESTION
What is English Translation, when Lyricist(s) is "Giorgos Moukidis", and when Original Album is "Ena (New Edition)"
### CONTEXT
CREATE TABLE table_name_23 (english_translation VARCHAR, lyricist_s_ VARCHAR, original_album VARCHAR)
### ANSWER
SELECT english_translation FROM table_name_23 WHERE lyricist_s_ = "giorgos moukidis" AND original_album = "ena (new edition)"</s> | {
"answer": "SELECT english_translation FROM table_name_23 WHERE lyricist_s_ = \"giorgos moukidis\" AND original_album = \"ena (new edition)\"",
"context": "CREATE TABLE table_name_23 (english_translation VARCHAR, lyricist_s_ VARCHAR, original_album VARCHAR)",
"question": "What is English Translation, when Lyricist(s) is \"Giorgos Moukidis\", and when Original Album is \"Ena (New Edition)\""
} |
### QUESTION
During the period in which gross sales totals for "The Show Girl Must Go On" reached $2,628,457, what did the numbers show for tickets sold/ available at the box office?
### CONTEXT
CREATE TABLE table_22123920_4 (tickets_sold___available VARCHAR, gross_sales VARCHAR)
### ANSWER
SELECT tickets_sold___available FROM table_22123920_4 WHERE gross_sales = "$2,628,457"</s> | {
"answer": "SELECT tickets_sold___available FROM table_22123920_4 WHERE gross_sales = \"$2,628,457\"",
"context": "CREATE TABLE table_22123920_4 (tickets_sold___available VARCHAR, gross_sales VARCHAR)",
"question": "During the period in which gross sales totals for \"The Show Girl Must Go On\" reached $2,628,457, what did the numbers show for tickets sold/ available at the box office? "
} |
### QUESTION
At what time is the site usf softball field • tampa, fl and w4-0 is the result?
### CONTEXT
CREATE TABLE table_22098274_1 (time VARCHAR, site VARCHAR, result VARCHAR)
### ANSWER
SELECT time FROM table_22098274_1 WHERE site = "USF Softball Field • Tampa, FL" AND result = "W4-0"</s> | {
"answer": "SELECT time FROM table_22098274_1 WHERE site = \"USF Softball Field • Tampa, FL\" AND result = \"W4-0\"",
"context": "CREATE TABLE table_22098274_1 (time VARCHAR, site VARCHAR, result VARCHAR)",
"question": "At what time is the site usf softball field • tampa, fl and w4-0 is the result?"
} |
### QUESTION
What was the city for the winner Darren Hossack at the circuit of phillip island grand prix circuit?
### CONTEXT
CREATE TABLE table_name_45 (city___state VARCHAR, winner VARCHAR, circuit VARCHAR)
### ANSWER
SELECT city___state FROM table_name_45 WHERE winner = "darren hossack" AND circuit = "phillip island grand prix circuit"</s> | {
"answer": "SELECT city___state FROM table_name_45 WHERE winner = \"darren hossack\" AND circuit = \"phillip island grand prix circuit\"",
"context": "CREATE TABLE table_name_45 (city___state VARCHAR, winner VARCHAR, circuit VARCHAR)",
"question": "What was the city for the winner Darren Hossack at the circuit of phillip island grand prix circuit?"
} |
### QUESTION
Find all students taught by OTHA MOYER. Output the first and last names of the students.
### CONTEXT
CREATE TABLE list (firstname VARCHAR, lastname VARCHAR, classroom VARCHAR); CREATE TABLE teachers (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)
### ANSWER
SELECT T1.firstname, T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "OTHA" AND T2.lastname = "MOYER"</s> | {
"answer": "SELECT T1.firstname, T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = \"OTHA\" AND T2.lastname = \"MOYER\"",
"context": "CREATE TABLE list (firstname VARCHAR, lastname VARCHAR, classroom VARCHAR); CREATE TABLE teachers (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)",
"question": "Find all students taught by OTHA MOYER. Output the first and last names of the students."
} |
### QUESTION
How many numbers were recorded under max speed for 1 USAF space flight and total flights 34?
### CONTEXT
CREATE TABLE table_221315_3 (max_speed__mph_ VARCHAR, usaf_space_flights VARCHAR, total_flights VARCHAR)
### ANSWER
SELECT COUNT(max_speed__mph_) FROM table_221315_3 WHERE usaf_space_flights = 1 AND total_flights = 34</s> | {
"answer": "SELECT COUNT(max_speed__mph_) FROM table_221315_3 WHERE usaf_space_flights = 1 AND total_flights = 34",
"context": "CREATE TABLE table_221315_3 (max_speed__mph_ VARCHAR, usaf_space_flights VARCHAR, total_flights VARCHAR)",
"question": "How many numbers were recorded under max speed for 1 USAF space flight and total flights 34?"
} |
### QUESTION
Find the first and last name of all the teachers that teach EVELINA BROMLEY.
### CONTEXT
CREATE TABLE teachers (firstname VARCHAR, lastname VARCHAR, classroom VARCHAR); CREATE TABLE list (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)
### ANSWER
SELECT T2.firstname, T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = "EVELINA" AND T1.lastname = "BROMLEY"</s> | {
"answer": "SELECT T2.firstname, T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = \"EVELINA\" AND T1.lastname = \"BROMLEY\"",
"context": "CREATE TABLE teachers (firstname VARCHAR, lastname VARCHAR, classroom VARCHAR); CREATE TABLE list (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)",
"question": "Find the first and last name of all the teachers that teach EVELINA BROMLEY."
} |
### QUESTION
Find the last names of all the teachers that teach GELL TAMI.
### CONTEXT
CREATE TABLE teachers (lastname VARCHAR, classroom VARCHAR); CREATE TABLE list (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)
### ANSWER
SELECT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = "GELL" AND T1.lastname = "TAMI"</s> | {
"answer": "SELECT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = \"GELL\" AND T1.lastname = \"TAMI\"",
"context": "CREATE TABLE teachers (lastname VARCHAR, classroom VARCHAR); CREATE TABLE list (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)",
"question": "Find the last names of all the teachers that teach GELL TAMI."
} |
### QUESTION
How many students does LORIA ONDERSMA teaches?
### CONTEXT
CREATE TABLE list (classroom VARCHAR); CREATE TABLE teachers (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)
### ANSWER
SELECT COUNT(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "LORIA" AND T2.lastname = "ONDERSMA"</s> | {
"answer": "SELECT COUNT(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = \"LORIA\" AND T2.lastname = \"ONDERSMA\"",
"context": "CREATE TABLE list (classroom VARCHAR); CREATE TABLE teachers (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)",
"question": "How many students does LORIA ONDERSMA teaches?"
} |
### QUESTION
Find the number of students taught by TARRING LEIA.
### CONTEXT
CREATE TABLE list (classroom VARCHAR); CREATE TABLE teachers (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)
### ANSWER
SELECT COUNT(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "TARRING" AND T2.lastname = "LEIA"</s> | {
"answer": "SELECT COUNT(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = \"TARRING\" AND T2.lastname = \"LEIA\"",
"context": "CREATE TABLE list (classroom VARCHAR); CREATE TABLE teachers (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)",
"question": "Find the number of students taught by TARRING LEIA."
} |
### QUESTION
Name province of 1936 viana do castelo
### CONTEXT
CREATE TABLE table_221375_1 (province_of_1936 VARCHAR, district VARCHAR)
### ANSWER
SELECT province_of_1936 FROM table_221375_1 WHERE district = "Viana do Castelo"</s> | {
"answer": "SELECT province_of_1936 FROM table_221375_1 WHERE district = \"Viana do Castelo\"",
"context": "CREATE TABLE table_221375_1 (province_of_1936 VARCHAR, district VARCHAR)",
"question": "Name province of 1936 viana do castelo"
} |
### QUESTION
How many teachers does the student named MADLOCK RAY have?
### CONTEXT
CREATE TABLE teachers (classroom VARCHAR); CREATE TABLE list (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)
### ANSWER
SELECT COUNT(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = "MADLOCK" AND T1.lastname = "RAY"</s> | {
"answer": "SELECT COUNT(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = \"MADLOCK\" AND T1.lastname = \"RAY\"",
"context": "CREATE TABLE teachers (classroom VARCHAR); CREATE TABLE list (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)",
"question": "How many teachers does the student named MADLOCK RAY have?"
} |
### QUESTION
Find all first-grade students who are NOT taught by OTHA MOYER. Report their first and last names.
### CONTEXT
CREATE TABLE list (firstname VARCHAR, lastname VARCHAR, classroom VARCHAR, grade VARCHAR); CREATE TABLE teachers (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)
### ANSWER
SELECT DISTINCT T1.firstname, T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.grade = 1 EXCEPT SELECT T1.firstname, T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "OTHA" AND T2.lastname = "MOYER"</s> | {
"answer": "SELECT DISTINCT T1.firstname, T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.grade = 1 EXCEPT SELECT T1.firstname, T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = \"OTHA\" AND T2.lastname = \"MOYER\"",
"context": "CREATE TABLE list (firstname VARCHAR, lastname VARCHAR, classroom VARCHAR, grade VARCHAR); CREATE TABLE teachers (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)",
"question": "Find all first-grade students who are NOT taught by OTHA MOYER. Report their first and last names."
} |
### QUESTION
Find the last names of the students in third grade that are not taught by COVIN JEROME.
### CONTEXT
CREATE TABLE list (lastname VARCHAR, classroom VARCHAR, grade VARCHAR); CREATE TABLE teachers (classroom VARCHAR, lastname VARCHAR, firstname VARCHAR)
### ANSWER
SELECT DISTINCT T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.grade = 3 AND T2.firstname <> "COVIN" AND T2.lastname <> "JEROME"</s> | {
"answer": "SELECT DISTINCT T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.grade = 3 AND T2.firstname <> \"COVIN\" AND T2.lastname <> \"JEROME\"",
"context": "CREATE TABLE list (lastname VARCHAR, classroom VARCHAR, grade VARCHAR); CREATE TABLE teachers (classroom VARCHAR, lastname VARCHAR, firstname VARCHAR)",
"question": "Find the last names of the students in third grade that are not taught by COVIN JEROME."
} |
### QUESTION
What is the lowest number of sheep and goats after 1931, with fewer than 2518 cows and more than 2604.8 horses?
### CONTEXT
CREATE TABLE table_name_42 (sheep_and_goats INTEGER, total_horses VARCHAR, year VARCHAR, cows VARCHAR)
### ANSWER
SELECT MIN(sheep_and_goats) FROM table_name_42 WHERE year > 1931 AND cows < 2518 AND total_horses > 2604.8</s> | {
"answer": "SELECT MIN(sheep_and_goats) FROM table_name_42 WHERE year > 1931 AND cows < 2518 AND total_horses > 2604.8",
"context": "CREATE TABLE table_name_42 (sheep_and_goats INTEGER, total_horses VARCHAR, year VARCHAR, cows VARCHAR)",
"question": "What is the lowest number of sheep and goats after 1931, with fewer than 2518 cows and more than 2604.8 horses?"
} |
### QUESTION
What was the lowest total number of horses that has a total cattle smaller than 6274.1, and a oxen smaller than 156.5, and a bulls of 40.0, and fewer than 3377 cows?
### CONTEXT
CREATE TABLE table_name_65 (total_horses INTEGER, cows VARCHAR, bulls VARCHAR, total_cattle VARCHAR, oxen VARCHAR)
### ANSWER
SELECT MIN(total_horses) FROM table_name_65 WHERE total_cattle < 6274.1 AND oxen < 156.5 AND bulls = "40.0" AND cows < 3377</s> | {
"answer": "SELECT MIN(total_horses) FROM table_name_65 WHERE total_cattle < 6274.1 AND oxen < 156.5 AND bulls = \"40.0\" AND cows < 3377",
"context": "CREATE TABLE table_name_65 (total_horses INTEGER, cows VARCHAR, bulls VARCHAR, total_cattle VARCHAR, oxen VARCHAR)",
"question": "What was the lowest total number of horses that has a total cattle smaller than 6274.1, and a oxen smaller than 156.5, and a bulls of 40.0, and fewer than 3377 cows?"
} |
### QUESTION
Find the name of the teacher who teaches the largest number of students.
### CONTEXT
CREATE TABLE list (classroom VARCHAR); CREATE TABLE teachers (firstname VARCHAR, lastname VARCHAR, classroom VARCHAR)
### ANSWER
SELECT T2.firstname, T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom GROUP BY T2.firstname, T2.lastname ORDER BY COUNT(*) DESC LIMIT 1</s> | {
"answer": "SELECT T2.firstname, T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom GROUP BY T2.firstname, T2.lastname ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE list (classroom VARCHAR); CREATE TABLE teachers (firstname VARCHAR, lastname VARCHAR, classroom VARCHAR)",
"question": "Find the name of the teacher who teaches the largest number of students."
} |
### QUESTION
What is the partial thromboplastin time when the condition factor x deficiency as seen in amyloid purpura?
### CONTEXT
CREATE TABLE table_221653_1 (partial_thromboplastin_time VARCHAR, condition VARCHAR)
### ANSWER
SELECT partial_thromboplastin_time FROM table_221653_1 WHERE condition = "Factor X deficiency as seen in amyloid purpura"</s> | {
"answer": "SELECT partial_thromboplastin_time FROM table_221653_1 WHERE condition = \"Factor X deficiency as seen in amyloid purpura\"",
"context": "CREATE TABLE table_221653_1 (partial_thromboplastin_time VARCHAR, condition VARCHAR)",
"question": "What is the partial thromboplastin time when the condition factor x deficiency as seen in amyloid purpura?"
} |
### QUESTION
Show the most common headquarter for companies.
### CONTEXT
CREATE TABLE company (Headquarters VARCHAR)
### ANSWER
SELECT Headquarters FROM company GROUP BY Headquarters ORDER BY COUNT(*) DESC LIMIT 1</s> | {
"answer": "SELECT Headquarters FROM company GROUP BY Headquarters ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE company (Headquarters VARCHAR)",
"question": "Show the most common headquarter for companies."
} |
### QUESTION
What is Wayne Grady's total?
### CONTEXT
CREATE TABLE table_name_93 (total INTEGER, player VARCHAR)
### ANSWER
SELECT SUM(total) FROM table_name_93 WHERE player = "wayne grady"</s> | {
"answer": "SELECT SUM(total) FROM table_name_93 WHERE player = \"wayne grady\"",
"context": "CREATE TABLE table_name_93 (total INTEGER, player VARCHAR)",
"question": "What is Wayne Grady's total?"
} |
### QUESTION
Who has a finish of t66?
### CONTEXT
CREATE TABLE table_name_89 (player VARCHAR, finish VARCHAR)
### ANSWER
SELECT player FROM table_name_89 WHERE finish = "t66"</s> | {
"answer": "SELECT player FROM table_name_89 WHERE finish = \"t66\"",
"context": "CREATE TABLE table_name_89 (player VARCHAR, finish VARCHAR)",
"question": "Who has a finish of t66?"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.