human
Schema:
workshop (Workshop_ID, Date, Venue, Name)
submission (Submission_ID, Scores, Author, College)
Acceptance (Submission_ID, Workshop_ID, Result)
Please answer with SQL.
assistant
Sure, I understand.
human
How many different workshops are there?
assistant
SELECT COUNT( * ) FROM workshop;
human
How many authors are there?
assistant
SELECT COUNT( Author ) FROM Submission;
human
Show each author and the number of workshops they submitted to.
assistant
SELECT T2.Author , COUNT( DISTINCT T1.workshop_id ) FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID GROUP BY T2.Author ;