human
Schema:
Inst (instID, name, country)
Authors (authID, lname, fname)
Papers (paperID, title)
Authorship (authID, instID, paperID, authOrder)
Please answer with SQL.
assistant
Sure, I understand.
human
Show me the name of all the institutions?
assistant
SELECT name FROM INST;
human
show me the name of all the authors?
assistant
SELECT fname , lname FROM authors;
human
Give me the first names and last names of those belong to the 'University of Oxford'.
assistant
SELECT DISTINCT t1.fname , t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "University of Oxford" ;