What is {headquarters location} of {Council of the European Union} that is {country} is {Belgium} ?
I want to know the location in Belgium of the headquarters of the Council of the European Union.
Where in Belgium is the headquarters of the Council of the European Union?
SELECT ?l WHERE { ?m property:country resource:Belgium . resource:Council_of_the_European_Union property:headquarters_location ?m . ?m property:headquarters_location ?l }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q8896> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P159> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P17> <http://wikidata.dbpedia.org/resource/Q31>
} 

SELECT ?obj WHERE { wd:Q8896 p:P159 ?s . ?s ps:P159 ?obj . ?s pq:P17 wd:Q31 }