Question: How many seasons does Hannibal (the one whose narrative location is Palermo) have?3
Choices:
45
31
66
9
35
43
10
29
21
3
Answer: 3
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:name> "Hannibal" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "Palermo" .  ?e <number_of_seasons> ?pv .  }
Program:
function: Find
inputs: Palermo
function: Relate
dependencies: 0
inputs: narrative location
backward
function: Find
inputs: Hannibal
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: number of seasons