How many documents are there?
select count(*) from documents;
How many documents does each grant have? List the grant id and number.
select grant_id, count(*) from documents group by grant_id ;
Give me the one having the most documents.
select grant_id, count(*) from documents group by grant_id order by count(*) desc limit 1;