Question: What is the location of the administrative territorial entity which contains Glasgow, where U.K. citizen Craig Ferguson was born?
Choices:
Scotland
Colorado
sanjak of the Ottoman Empire
Ramenki District
England
Archbishopric of Salzburg
North Rhine-Westphalia
Massachusetts
Greater London
Kilo
Answer: Scotland
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Craig Ferguson" . ?e_1 <country_of_citizenship> ?e_3 . ?e_3 <pred:name> "United Kingdom" . ?e_2 <pred:name> "Glasgow" . ?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: United Kingdom
function: Relate
dependencies: 0
inputs: country of citizenship
backward
function: Find
inputs: Craig Ferguson
function: And
dependencies: 1
2
function: Find
inputs: Glasgow
function: QueryRelationQualifier
dependencies: 3
4
inputs: place of birth
located in the administrative territorial entity