select distinct substr(upper(family_name), 0, 1) as letter from acs_persons select count(*) from acs_persons p, acs_objects o where p.acs_person_id = o.object_id ${search_clause} ${starts_with_clause}