Find the distinct last names of the students who have class president votes.
create table student (lname varchar, stuid varchar, PRIMARY KEY (lname)); create table voting_record (class_president_vote varchar, PRIMARY KEY (class_president_vote))
select distinct t1.lname from student as t1 join voting_record as t2 on t1.stuid = t2.class_president_vote