What is {played by} of {animals housed} of {Downtown Aquarium, Houston} ?
At the Houston Downtown Aquarium, what do the zoo animals play with?
What do the zoo animals of Downtown Aquarium, Houston play with?
SELECT ?r WHERE { ?g property:used_by ?r . resource:Downtown_Aquarium,_Houston property:species_kept ?g }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q5303351> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1990>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?X . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?X. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1535> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q5303351 wdt:P1990 ?X . ?X wdt:P1535 ?answer}
Siegfried & Roy