Question: What literary work served as the basis that Harry Potter and the Half-Blood Prince (the one whose distributor is Warner Bros.) was made upon ?
Choices:
Cloud Atlas
Pretty Little Liars
Harry Potter and the Order of the Phoenix
War and Peace
Harry Potter and the Half-Blood Prince
Harry Potter and the Philosopher's Stone
Oliver Twist
Sense and Sensibility
Dune
Harry Potter and the Prisoner of Azkaban
Answer: Harry Potter and the Half-Blood Prince
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "literary work" . ?e_1 <based_on> ?e . ?e_1 <pred:name> "Harry Potter and the Half-Blood Prince" . ?e_1 <distributor> ?e_2 . ?e_2 <pred:name> "Warner Bros." .   }
Program:
function: Find
inputs: Warner Bros.
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: Harry Potter and the Half-Blood Prince
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: based on
forward
function: FilterConcept
dependencies: 4
inputs: literary work
function: What
dependencies: 5