SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes
What are the ids of students who both have friends and are liked?
SELECT student_id FROM Friend INTERSECT SELECT liked_id FROM Likes
select student_id from friend intersect select liked_id from likes
What are the ids of students who both have friends and are liked ?