What is <has pet> of <Dorothy Gale> ?
[]
dorothy gale has a pet
SELECT DISTINCT ?x WHERE { resource:Dorothy_Gale property:has_pet ?x }
select distinct ?answer where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q2583524> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1429> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer. }
select distinct ?answer where { wd:Q2583524 wdt:P1429 ?answer}
Toto