What are the distinct last names of the students who have class president votes?
CREATE TABLE voting_record (
    stuid number,
    registration_date text,
    election_cycle text,
    president_vote number,
    vice_president_vote number,
    secretary_vote number,
    treasurer_vote number,
    class_president_vote number,
    class_senator_vote number
)

CREATE TABLE student (
    stuid number,
    lname text,
    fname text,
    age number,
    sex text,
    major number,
    advisor number,
    city_code text
)
SELECT DISTINCT T1.lname FROM student AS T1 JOIN voting_record AS T2 ON T1.stuid = T2.class_president_vote
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What are the distinct last names of the students who have class president votes? ### Input: CREATE TABLE voting_record (
    stuid number,
    registration_date text,
    election_cycle text,
    president_vote number,
    vice_president_vote number,
    secretary_vote number,
    treasurer_vote number,
    class_president_vote number,
    class_senator_vote number
)

CREATE TABLE student (
    stuid number,
    lname text,
    fname text,
    age number,
    sex text,
    major number,
    advisor number,
    city_code text
) ### Response: SELECT DISTINCT T1.lname FROM student AS T1 JOIN voting_record AS T2 ON T1.stuid = T2.class_president_vote