How many documents are there?
select count(*) from documents;
Show me ones with status code done.
select * from documents where document_status_code = "done"
List the document ids for any documents with the status code done and the type code paper.
select document_id from documents where document_status_code = "done" and document_type_code = "Paper";