Question: How many students have advisors?
Schema: create table advisor (s_id varchar, PRIMARY KEY (s_id))
SQL: select count(distinct s_id) from advisor