How many votes did Lee Teng-Hui receive when he was elected?
CREATE TABLE table_name_7 (total_votes INTEGER, outcome VARCHAR, candidate VARCHAR)
SELECT MAX(total_votes) FROM table_name_7 WHERE outcome = "elected" AND candidate = "lee teng-hui"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (total_votes INTEGER, outcome VARCHAR, candidate VARCHAR) Question: How many votes did Lee Teng-Hui receive when he was elected? [/INST] SELECT MAX(total_votes) FROM table_name_7 WHERE outcome = "elected" AND candidate = "lee teng-hui" </s>