Question: For Mike Scully, in what administrative territorial entity is Springfield (the one that is the birthplace of Mike Scully) located when he was born?
Choices:
Massachusetts
Russian Soviet Federative Socialist Republic
Kingdom of Lombardy–Venetia
Oregon
Martinique
Estonian Soviet Socialist Republic
Suisse Romande
Stockholm Municipality
Los Angeles
Puerto Rico
Answer: Massachusetts
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Mike Scully" . ?e_2 <pred:name> "Springfield" . ?e_3 <place_of_birth> ?e_2 . ?e_3 <pred:name> "Mike Scully" . ?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: Mike Scully
function: Find
inputs: Mike Scully
function: Relate
dependencies: 1
inputs: place of birth
forward
function: Find
inputs: Springfield
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: place of birth
located in the administrative territorial entity