CREATE TABLE table_name_7 (total_votes NUMBER, outcome VARCHAR2, candidate VARCHAR2)

How many votes did Lee Teng-Hui receive when he was elected?
SELECT MAX(total_votes) FROM table_name_7 WHERE outcome = "elected" AND candidate = "lee teng-hui"
SELECT MAX("total_votes") FROM "table_name_7" WHERE "candidate" = "lee teng-hui" AND "elected" = "outcome"