Table schema:
CREATE TABLE table_name_40 (name VARCHAR, spouse VARCHAR)

Question: Which member of house of Habsburg-Lorraine had the spouse Charles II?
SQL: SELECT name FROM table_name_40 WHERE spouse = "charles ii"