Question: Find the person who has exactly one friend.
Schema: create table personfriend (name varchar, PRIMARY KEY (name))
SQL: select name from personfriend group by name having count(*) = 1