CREATE TABLE Document_locations (location_code VARCHAR)

Show the location codes with at least 3 documents.
SELECT location_code FROM Document_locations GROUP BY location_code HAVING COUNT(*) >= 3
SELECT "location_code" FROM "Document_locations" GROUP BY "location_code" HAVING COUNT(*) >= 3