Did {Berlin_Wall} {country} {Germany}?
I want to know if Berlin Wall was located in Germany.
Was the Berlin Wall in Germany?
ASK WHERE { resource:Berlin_Wall property:country resource:Germany }
 ASK { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q5086> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P17> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q183>. } 
ASK WHERE { wd:Q5086 wdt:P17 wd:Q183 }