Question: How is War and Peach with Stephen Rea related to Latvia?
Choices:
ethnic group
professional or sports partner
sport
religion
position played on team / speciality
feast day
military branch
geography of topic
filming location
from fictional universe
Answer: filming location
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "War and Peace" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Stephen Rea" . ?e_2 <pred:name> "Latvia" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Stephen Rea
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: War and Peace
function: And
dependencies: 1
2
function: Find
inputs: Latvia
function: QueryRelation
dependencies: 3
4