Question: What is the street address of Hewlett-Packard's HQ in Palo Alto, where Andrew W.K. was born?
Choices:
60 Lincoln Center Plaza, New York, NY, 10023-6588
4600 Sunset Ave, Indianapolis, IN, 46208
430 S Michigan Ave, Chicago, IL, 60605-1394
3909 Swiss Ave, Dallas, TX, 75204
Via Druento, 175
656 West Kirby Street, Detroit, MI, 48202
2101 West End Avenue, Nashville, TN, 37240
3000 Hanover St
Bd. M. Kogălniceanu 36-46, Sector 5
The School House
Answer: 3000 Hanover St
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Hewlett-Packard" . ?e_2 <pred:name> "Palo Alto" . ?e_3 <place_of_birth> ?e_2 . ?e_3 <pred:name> "Andrew W.K." . ?e_1 <headquarters_location> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <headquarters_location> ; <pred:fact_t> ?e_2 ] <located_at_street_address> ?qpv .  }
Program:
function: Find
inputs: Hewlett-Packard
function: Find
inputs: Andrew W.K.
function: Relate
dependencies: 1
inputs: place of birth
forward
function: Find
inputs: Palo Alto
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: headquarters location
located at street address