Question: The Lord of the Rings: The Two Towers, with David Wenham as a cast member, has what connection to the Dominican Republic?
Choices:
official color
educated at
conflict
filming location
film release region
part of
basin country
works in collection
instrument
dissertation submitted to
Answer: film release region
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Lord of the Rings: The Two Towers" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "David Wenham" . ?e_2 <pred:name> "Dominican Republic" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: David Wenham
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Lord of the Rings: The Two Towers
function: And
dependencies: 1
2
function: Find
inputs: Dominican Republic
function: QueryRelation
dependencies: 3
4