SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes
Show the ids of high schoolers who have friends and are also liked by someone else.
SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes
select student_id from friend intersect select liked_id from likes
Show the ids of high schoolers who have friends and are also liked by someone else .