Question: Show the ids of all the faculty members who participate in an activity and advise a student.
Schema: create table student (facid varchar, advisor varchar, PRIMARY KEY (facid)); create table faculty_participates_in (facid varchar, advisor varchar, PRIMARY KEY (facid))
SQL: select facid from faculty_participates_in intersect select advisor from student