Show the student ids who participate in an activity.
select stuid from participates_in
Show the ids of those who don't.
select stuid from student except select stuid from participates_in