Is there more elegant way to join takes, teaches, student and advisor? I\'ve tried this:
select s.ID from takes natural join student as s join