Question: In 2012, who was president of the country with the national anthem Noble patria, tu hermosa bandera?
Answer(s):
answer: Laura Chinchilla

SPARQL query:
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT DISTINCT ?x
WHERE {
FILTER (?x != ?c)
FILTER (!isLiteral(?x) OR lang(?x) = '' OR langMatches(lang(?x), 'en'))
?c ns:location.country.national_anthem ?k .
?k ns:government.national_anthem_of_a_country.anthem ns:m.01lg46 . 
?c ns:government.governmental_jurisdiction.governing_officials ?y .
?y ns:government.government_position_held.office_holder ?x .
?y ns:government.government_position_held.basic_title ns:m.060c4 .
FILTER(NOT EXISTS {?y ns:government.government_position_held.from ?sk0} || 
EXISTS {?y ns:government.government_position_held.from ?sk1 . 
FILTER(xsd:datetime(?sk1) <= "2012-12-31"^^xsd:dateTime) })
FILTER(NOT EXISTS {?y ns:government.government_position_held.to ?sk2} || 
EXISTS {?y ns:government.government_position_held.to ?sk3 . 
FILTER(xsd:datetime(?sk3) >= "2012-01-01"^^xsd:dateTime) })
}