Question: What is the relationship between Alexandria (whose postal code is 22304) and the Washington metropolitan area?
Choices:
convicted of
game mode
noble title
capital of
newspaper format
programming paradigm
quotes work
given name
part of
creator
Program:
function: Find
inputs: Alexandria
function: FilterStr
dependencies: 0
inputs: postal code
22304
function: Find
inputs: Washington metropolitan area
function: QueryRelation
dependencies: 1
2
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Alexandria" . ?e_1 <postal_code> ?pv . ?pv <pred:value> "22304" . ?e_2 <pred:name> "Washington metropolitan area" . ?e_1 ?p ?e_2 .  }
Answer: part of