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
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 > value group by t1 . student_id having count ( * ) > = value
What are the names of high schoolers who have a grade of over 5 and have 2 or more friends ?