Question: In which administrative territorial entity is Toledo, the capital of Lucas County and the birth place of Katie Holmes, located in?
Choices:
Cape Colony
Nebraska
Ontario
Transcaucasian Socialist Federative Soviet Republic
England
Puerto Rico
Russian Soviet Federative Socialist Republic
Ohio
South Holland
New Mexico
Program:
function: Find
inputs: Katie Holmes
function: Find
inputs: Lucas County
function: Relate
dependencies: 1
inputs: capital of
backward
function: Find
inputs: Toledo
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: place of birth
located in the administrative territorial entity
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Katie Holmes" . ?e_2 <pred:name> "Toledo" . ?e_2 <capital_of> ?e_3 . ?e_3 <pred:name> "Lucas County" . ?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 .  }
Answer: Ohio