Question: Was the agency headquartered in Mexico City, Mexico founded earlier than 1985 ?
Choices: yes
no
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
SPARQL: ASK { ?e <pred:instance_of> ?c . ?c <pred:name> "agent" . ?e <headquarters_location> ?e_1 . ?e_1 <pred:name> "Mexico City" .  [ <pred:fact_h> ?e ; <pred:fact_r> <headquarters_location> ; <pred:fact_t> ?e_1 ] <country> ?qpv . ?qpv <pred:value> "Mexico" . ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1985 ) .  }
Program:
function: Find
inputs: Mexico City
function: Relate
dependencies: 0
inputs: headquarters location
backward
function: QFilterStr
dependencies: 1
inputs: country
Mexico
function: FilterConcept
dependencies: 2
inputs: agent
function: QueryAttr
dependencies: 3
inputs: inception
function: VerifyYear
dependencies: 4
inputs: 1985
<
Answer: yes