Question: Who was elected the president of Tampere in 2017?
Paraphrase: Who won the presidential election in Tampere in 2017?
SPARQL (Wikidata): SELECT ?obj WHERE { wd:Q40840 p:P6 ?s . ?s ps:P6 ?obj . ?s pq:P580 ?x filter(contains(YEAR(?x),'2017')) }