Question: How is the literature-based film The Sum of All Fears connected to Russia?
Choices:
successful candidate
filming location
contains settlement
soundtrack album
game mode
medical treatment
designed by
has part
appointed by
programming language
Answer: filming location
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Sum of All Fears" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "film based on literature" . ?e_2 <pred:name> "Russia" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: film based on literature
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: The Sum of All Fears
function: And
dependencies: 1
2
function: Find
inputs: Russia
function: QueryRelation
dependencies: 3
4