how many students are there?
select count ( * ) from student
how many don't participate in activities?
select count ( * ) from ( select stuid from student except select stuid from participates_in )
What are their Ids?
select stuid from student except select stuid from participates_in