Question: For Annapolis (the nickname is Crabtown on the Bay), is the headquarter location for the US Naval Academy, to what country does it belong?
Choices:
Netherlands
Slovakia
Syria
Serbia
Austria-Hungary
United States of America
English
Peru
Finland
Malaysia
Answer: United States of America
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "United States Naval Academy" . ?e_2 <pred:name> "Annapolis" . ?e_2 <nickname> ?pv . ?pv <pred:value> "Crabtown on the Bay" . ?e_1 <headquarters_location> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <headquarters_location> ; <pred:fact_t> ?e_2 ] <country> ?qpv .  }
Program:
function: Find
inputs: United States Naval Academy
function: Find
inputs: Annapolis
function: FilterStr
dependencies: 1
inputs: nickname
Crabtown on the Bay
function: QueryRelationQualifier
dependencies: 0
2
inputs: headquarters location
country