Question: What is the name of a literary work that derives from J.K. Rowling's Harry Potter and the Goblet of Fire?
Choices:
Trainspotting
Pretty Little Liars
Dune
Oliver Twist
Harry Potter and the Philosopher's Stone
Cloud Atlas
Harry Potter and the Goblet of Fire
Harry Potter and the Chamber of Secrets
Sense and Sensibility
Harry Potter and the Prisoner of Azkaban
Answer: Harry Potter and the Goblet of Fire
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "literary work" . ?e_1 <based_on> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "visual artwork" . ?e_1 <title> ?pv . ?pv <pred:value> "Harry Potter and the Goblet of Fire" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <based_on> ; <pred:fact_t> ?e ] <author> ?qpv . ?qpv <pred:value> "J. K. Rowling" .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: title
Harry Potter and the Goblet of Fire
function: FilterConcept
dependencies: 1
inputs: visual artwork
function: Relate
dependencies: 2
inputs: based on
forward
function: QFilterStr
dependencies: 3
inputs: author
J. K. Rowling
function: FilterConcept
dependencies: 4
inputs: literary work
function: What
dependencies: 5