CREATE TABLE documents (document_type_code VARCHAR)

Find the types of documents with more than 4 documents.
SELECT document_type_code FROM documents GROUP BY document_type_code HAVING COUNT(*) > 4
SELECT "document_type_code" FROM "documents" GROUP BY "document_type_code" HAVING COUNT(*) > 4