Question: How is the novel "The Sum of All Fears" related to terrorism?
Choices:
allegiance
main subject
religious order
award disciplines or subjects
head of state
discoverer or inventor
health specialty
follows
subsidiary
based on
Answer: main subject
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Sum of All Fears" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "novel" . ?e_2 <pred:name> "terrorism" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: novel
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: The Sum of All Fears
function: And
dependencies: 1
2
function: Find
inputs: terrorism
function: QueryRelation
dependencies: 3
4