what is the {country} for {Niccolò Machiavelli} has {place of death} as {Sant'Andrea in Percussina} ?
Where in Sant'Andrea Percussina did Niccolo Machiavelli die in?
Where did Niccolò Machiavelli die in Sant'Andrea in Percussina?
SELECT ?u WHERE { ?t property:place_of_death resource:Sant'Andrea_in_Percussina . ?t property:country ?u . resource:Niccolò_Machiavelli property:place_of_death ?t }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1399> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P20> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q2509922> .
?statement <http://www.wikidata.org/entity/P17> ?value. 
} 

SELECT ?value WHERE { wd:Q1399 p:P20 ?s . ?s ps:P20 wd:Q2509922 . ?s pq:P17 ?value}