Question: Denver, the birthplace of movie director Tim Allen, is in which administrative territorial entity?
Choices: Kingdom of Lombardy–Venetia
Suisse Romande
Colorado
Al Madinah Region
Habsburg Monarchy
Spanish Netherlands
New York City
Perm Governorate
New Mexico
sanjak of the Ottoman Empire
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Tim Allen" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "film director" . ?e_2 <pred:name> "Denver" . ?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: film director
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Tim Allen
function: And
dependencies: 1
2
function: Find
inputs: Denver
function: QueryRelationQualifier
dependencies: 3
4
inputs: place of birth
located in the administrative territorial entity
Answer: Colorado