Database: network_1
Question: Show the names of students who have a grade higher than 5 and have at least 2 friends.
SQL: select t2.name from friend as t1 join highschooler as t2 on t1.student_id  =  t2.id where t2.grade  >  5 group by t1.student_id having count(*)  >=  2