Question: Which agent has the headquarters in the city of the US that is also the headquarters of San Jose Earthquakes, and it is called Adobe World Headquarters?
Choices:
Skidmore Owings Merrill
Pfizer
Entertainment One
Vodafone
eBay
Silver Pictures
Sega
Adobe Inc.
KLM
Cisco Systems
Answer: Adobe Inc.
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "agent" . ?e <headquarters_location> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city of the United States" . ?e_2 <headquarters_location> ?e_1 . ?e_2 <pred:name> "San Jose Earthquakes" .  [ <pred:fact_h> ?e ; <pred:fact_r> <headquarters_location> ; <pred:fact_t> ?e_1 ] <location> ?qpv . ?qpv <pred:value> "Adobe World Headquarters" .  }
Program:
function: Find
inputs: San Jose Earthquakes
function: Relate
dependencies: 0
inputs: headquarters location
forward
function: FilterConcept
dependencies: 1
inputs: city of the United States
function: Relate
dependencies: 2
inputs: headquarters location
backward
function: QFilterStr
dependencies: 3
inputs: location
Adobe World Headquarters
function: FilterConcept
dependencies: 4
inputs: agent
function: What
dependencies: 5