Task: Text to Code
Input (English): What are the names of high schoolers who have a grade of over 5 and have 2 or more friends?
Output (English): 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