What are the names of high schoolers who have a grade of over 5 and have 2 or more friends?
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
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
[{'name': 'Alexis'}, {'name': 'Kris'}, {'name': 'Jordan'}, {'name': 'Gabriel'}, {'name': 'Andrew'}]