CREATE TABLE table_name_9 (took_office NUMBER, deputy_prime_minister VARCHAR2)

What year did deputy prime minister Mariano Rajoy Brey take office?
SELECT SUM(took_office) FROM table_name_9 WHERE deputy_prime_minister = "mariano rajoy brey"
SELECT SUM("took_office") FROM "table_name_9" WHERE "deputy_prime_minister" = "mariano rajoy brey"