Question: What is the relationship between Charles Bronson (the one that died from pneumonia) to Democratic Party
Choices:
home world
language used
manner of death
enclave within
broadcast by
designated as terrorist by
draft pick from school
culture
member of political party
mother
Answer: member of political party
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Charles Bronson" . ?e_1 <cause_of_death> ?e_3 . ?e_3 <pred:name> "pneumonia" . ?e_2 <pred:name> "Democratic Party" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: pneumonia
function: Relate
dependencies: 0
inputs: cause of death
backward
function: Find
inputs: Charles Bronson
function: And
dependencies: 1
2
function: Find
inputs: Democratic Party
function: QueryRelation
dependencies: 3
4