Question: What books are the Harry Potter movies based on?
Paraphrase: What books are the Harry Potter motion pictures based on?
SPARQL (Wikidata):  select distinct ?sbj where { ?sbj wdt:P179 wd:Q8337 . ?sbj wdt:P31 wd:Q7725634 } 
Answer: 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