CREATE TABLE Student (FacID VARCHAR, advisor VARCHAR)
CREATE TABLE Faculty_participates_in (FacID VARCHAR, advisor VARCHAR)

Show the ids of all the faculty members who participate in an activity and advise a student.
SELECT FacID FROM Faculty_participates_in INTERSECT SELECT advisor FROM Student
SELECT "FacID" FROM "Faculty_participates_in" INTERSECT SELECT "advisor" FROM "Student"