What is the id of the project with least number of documents?
create table documents (project_id varchar, PRIMARY KEY (project_id))
select project_id from documents group by project_id order by count(*) limit 1