Question: What is the connection between Take Shelter (whose release region is Spain) and France?
Choices:
Wikidata property
contains settlement
league
founded by
programming paradigm
original network
film release region
broadcast by
family
partially contains
Answer: film release region
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Take Shelter" . ?e_1 <film_release_region> ?e_3 . ?e_3 <pred:name> "Spain" . ?e_2 <pred:name> "France" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Spain
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Take Shelter
function: And
dependencies: 1
2
function: Find
inputs: France
function: QueryRelation
dependencies: 3
4