Question: How is The Alamo with Dennis Quaid as a cast member related to Texas, location of the administrative division Fort Bend County?
Choices:
narrative location
production company
highest judicial authority
sport
medical treatment
this taxon is source of
head of government
has quality
organisation directed from the office or person
parent astronomical body
Answer: narrative location
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Alamo" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Dennis Quaid" . ?e_2 <pred:name> "Texas" . ?e_2 <contains_administrative_territorial_entity> ?e_4 . ?e_4 <pred:name> "Fort Bend County" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Dennis Quaid
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Alamo
function: And
dependencies: 1
2
function: Find
inputs: Fort Bend County
function: Relate
dependencies: 4
inputs: contains administrative territorial entity
backward
function: Find
inputs: Texas
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7