Question: For each document, list the number of employees who have showed up in the circulation history of that document. List the document ids and number of employees.
Schema: create table circulation_history (document_id varchar, employee_id varchar, PRIMARY KEY (document_id))
SQL: select document_id, count(distinct employee_id) from circulation_history group by document_id