What is the {literary work} for {series} of {Harry Potter}
What books are the Harry Potter motion pictures based on?
What books are the Harry Potter movies based on?
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:literary_work . ?e property:part_of_the_series resource:Harry_Potter }
select distinct ?subj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?subj . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P179> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q8337> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q7725634> } 
 select distinct ?sbj where { ?sbj wdt:P179 wd:Q8337 . ?sbj wdt:P31 wd:Q7725634 } 
Harry Potter and the Order of the Phoenix Harry Potter and the Cursed Child Harry Potter and the Philosopher's Stone Harry Potter and the Goblet of Fire Harry Potter and the Deathly Hallows Harry Potter and the Half-Blood Prince Harry Potter and the Chamber of Secrets Harry Potter and the Prisoner of Azkaban