Show the project id for documents.
select project_id from documents
Show the ids only for the documents with type code BK.
select project_id from documents where document_type_code = "BK"
For each project id, show the number of such documents.
select count(*), project_id from documents where document_type_code = "BK" group by project_id