Question: For Brooke Shields was born in Manhattan (the one whose subreddit is manhattan), in what administrative territorial entity is it located?
Choices:
Massachusetts
Illinois
Indiana
Duchy of Rome
Kingdom of Lombardy–Venetia
Saint Petersburg
Roer
New York City
Germany
Kentucky
Program:
function: Find
inputs: Brooke Shields
function: Find
inputs: Manhattan
function: FilterStr
dependencies: 1
inputs: subreddit
manhattan
function: QueryRelationQualifier
dependencies: 0
2
inputs: place of birth
located in the administrative territorial entity
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Brooke Shields" . ?e_2 <pred:name> "Manhattan" . ?e_2 <subreddit> ?pv . ?pv <pred:value> "manhattan" . ?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: New York City