What is {headquarters location} of {University of Coimbra} that is {located at street address} is {Palácio dos Grilos Rua da Ilha} ?
What street in Palacio dos Grilos Rua da IIha located the headquarters of the University of Coimbra?
SELECT ?obj WHERE { wd:Q368643 p:P159 ?s . ?s ps:P159 ?obj . ?s pq:P969 ?x filter(contains(?x,'Palácio dos Grilos Rua da Ilha')) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q368643> .
?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/P969> <Palácio dos Grilos Rua da Ilha>
} 

What street was the headquarters of the University of Coimbra in Palacio dos Grilos Rua da IIha located on ?