Question: Where is Mountain View, the headquarter location of Google (the one that sponsors Wikimedia Foundation, Inc.)?
Choices:
Googleplex
Apple Campus
Waldorf-Astoria Hotel
Adobe World Headquarters
Yorba Linda
Westminster Abbey
worldwide
Brevard County
Rome
Tokyo
Answer: Googleplex
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Google" . ?e_3 <sponsor> ?e_1 . ?e_3 <pred:name> "Wikimedia Foundation, Inc." . ?e_2 <pred:name> "Mountain View" . ?e_1 <headquarters_location> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <headquarters_location> ; <pred:fact_t> ?e_2 ] <location> ?qpv .  }
Program:
function: Find
inputs: Wikimedia Foundation, Inc.
function: Relate
dependencies: 0
inputs: sponsor
forward
function: Find
inputs: Google
function: And
dependencies: 1
2
function: Find
inputs: Mountain View
function: QueryRelationQualifier
dependencies: 3
4
inputs: headquarters location
location