Question: How is Braveheart, with Brendan Gleeson as a cast member, related to Portugal?
Choices: use
country of citizenship
does not have part
connects with
inspired by
medical condition
film release region
costume designer
original network
geographic distribution
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Braveheart" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Brendan Gleeson" . ?e_2 <pred:name> "Portugal" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Brendan Gleeson
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Braveheart
function: And
dependencies: 1
2
function: Find
inputs: Portugal
function: QueryRelation
dependencies: 3
4
Answer: film release region