Question: What is the relationship between Elizabeth (the one that origins from United Kingdom) to Kelly Macdonald?
Choices:
commander of
this taxon is source of
creator
captain
color
cast member
enclave within
officially opened by
league
programming language
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Elizabeth
function: And
dependencies: 1
2
function: Find
inputs: Kelly Macdonald
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Elizabeth" . ?e_1 <country_of_origin> ?e_3 . ?e_3 <pred:name> "United Kingdom" . ?e_2 <pred:name> "Kelly Macdonald" . ?e_1 ?p ?e_2 .  }
Answer: cast member