Question: What is the street address for the headquarters of Forbes (that belongs to the publishing industry) whose location is in Jersey City?
Choices:
800 N State College Blvd, Fullerton, CA, 92831-3599
2702 Love Field Drive
200 Richmond Road, Williamsburg, VA, 23187-8795
1 Kingdom Street, paddington
1400 Washington Avenue, Albany, NY, 12222
441 E Fordham Rd, Bronx, NY, 10458
210 Burruss Hall, 800 Drillfield Dr., Blacksburg, VA, 24061-0131
499 Washington Blvd
Third Floor 6-10 Suffolk Street
1151 S. Forest Ave.
Answer: 499 Washington Blvd
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Forbes" . ?e_1 <industry> ?e_3 . ?e_3 <pred:name> "publishing" . ?e_2 <pred:name> "Jersey City" . ?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: publishing
function: Relate
dependencies: 0
inputs: industry
backward
function: Find
inputs: Forbes
function: And
dependencies: 1
2
function: Find
inputs: Jersey City
function: QueryRelationQualifier
dependencies: 3
4
inputs: headquarters location
located at street address