Question: What is the connection between Anthony Anderson (who lives in Los Angeles) and African Americans?
Choices:
replaces
afflicts
studied by
ethnic group
properties for this type
language used
place served by transport hub
nominated for
theme music
dissertation submitted to
Answer: ethnic group
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Anthony Anderson" . ?e_1 <residence> ?e_3 . ?e_3 <pred:name> "Los Angeles" . ?e_2 <pred:name> "African Americans" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Los Angeles
function: Relate
dependencies: 0
inputs: residence
backward
function: Find
inputs: Anthony Anderson
function: And
dependencies: 1
2
function: Find
inputs: African Americans
function: QueryRelation
dependencies: 3
4