select column1,column2,count(*) from sometable group by column1,column2 having count(*) > 2