What are ids of the faculty members who not only participate in an activity but also advise a student.
return faculty members ;return activities of #1 ;return number of  #2 for each #1 ;return #1 where #3 is at least one ;return students advise of #1 ;return number of  #5 for each #1 ;return #1 where #6 is at least one ;return #1 in  both #4 and  #7 ;return ids of #8
['select', 'project', 'group', 'comparative', 'project', 'group', 'comparative', 'intersection', 'project']