CREATE TABLE Highschooler (name VARCHAR(255), id VARCHAR(255)); CREATE TABLE Likes (student_id VARCHAR(255), liked_id VARCHAR(255)); CREATE TABLE Friend (student_id VARCHAR(255), liked_id VARCHAR(255))
Show name of all students who have some friends and also are liked by someone else.
    
SQL: SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id INTERSECT SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.liked_id = T2.id