Question: How is Vice President of the United States John Adams related to the Quincy whose zip codes are 02169–02171?
Choices:
applies to jurisdiction
has contributing factor
cites
political alignment
located in or next to body of water
place of death
diplomatic relation
separated from
main food source
designed to carry
Answer: place of death
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Adams" . ?e_1 <position_held> ?e_3 . ?e_3 <pred:name> "Vice President of the United States" . ?e_2 <pred:name> "Quincy" . ?e_2 <postal_code> ?pv . ?pv <pred:value> "02169–02171" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Vice President of the United States
function: Relate
dependencies: 0
inputs: position held
backward
function: Find
inputs: John Adams
function: And
dependencies: 1
2
function: Find
inputs: Quincy
function: FilterStr
dependencies: 4
inputs: postal code
02169–02171
function: QueryRelation
dependencies: 3
5