Question: What is the connection between A Streetcar Named Desire (the one that has Ann-Margret as a cast member) to Ann-Margret?
Choices:
office contested
location of discovery
appointed by
place of publication
owned by
composer
cast member
culture
contains administrative territorial entity
destination point
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "A Streetcar Named Desire" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Ann-Margret" . ?e_2 <pred:name> "Ann-Margret" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Ann-Margret
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: A Streetcar Named Desire
function: And
dependencies: 1
2
function: Find
inputs: Ann-Margret
function: QueryRelation
dependencies: 3
4