Question: What is the relationship between Lewis Cass and Columbus (the one that is the capital of Ohio)?
Choices:
exclave of
public holiday
nominated for
work location
drafted by
symptoms
participant
newspaper format
natural product of taxon
headquarters location
Answer: work location
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Lewis Cass" . ?e_2 <pred:name> "Columbus" . ?e_2 <capital_of> ?e_3 . ?e_3 <pred:name> "Ohio" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Lewis Cass
function: Find
inputs: Ohio
function: Relate
dependencies: 1
inputs: capital of
backward
function: Find
inputs: Columbus
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4