Which headquarter locations are used by more than 2 companies?
select headquarters from companies group by headquarters having count(*) > 2