Question: Matt Groening's native Portland, headquarters of Kill Rock Stars, is in which administrative territorial entity ?
Choices:
Quebec
Connecticut
Oregon
Ohio
England
Washington
Russian Soviet Federative Socialist Republic
Kingdom of Lombardy–Venetia
Al Madinah Region
North Carolina
Answer: Oregon
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Matt Groening" . ?e_2 <pred:name> "Portland" . ?e_3 <headquarters_location> ?e_2 . ?e_3 <pred:name> "Kill Rock Stars" . ?e_1 <place_of_birth> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <place_of_birth> ; <pred:fact_t> ?e_2 ] <located_in_the_administrative_territorial_entity> ?qpv .  }
Program:
function: Find
inputs: Matt Groening
function: Find
inputs: Kill Rock Stars
function: Relate
dependencies: 1
inputs: headquarters location
forward
function: Find
inputs: Portland
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: place of birth
located in the administrative territorial entity