Question: Which United States city is an administrative division of Hillsborough County (which shares a border with Merrimack County) and is the twinned administrative body of Mysore (starting in 2016)?
Choices:
Boulder
Oakland
Compton
New Haven
Franklin
New Britain
Lansing
Columbus
Waukegan
Nashua
Program:
function: Find
inputs: Merrimack County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Hillsborough County
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 4
inputs: city of the United States
function: Find
inputs: Mysore
function: Relate
dependencies: 6
inputs: twinned administrative body
forward
function: QFilterYear
dependencies: 7
inputs: start time
2016
=
function: FilterConcept
dependencies: 8
inputs: city of the United States
function: And
dependencies: 5
9
function: What
dependencies: 10
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of the United States" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Hillsborough County" . ?e_1 <shares_border_with> ?e_2 . ?e_2 <pred:name> "Merrimack County" .  ?e_3 <twinned_administrative_body> ?e . ?e_3 <pred:name> "Mysore" . [ <pred:fact_h> ?e_3 ; <pred:fact_r> <twinned_administrative_body> ; <pred:fact_t> ?e ] <start_time> ?qpv . ?qpv <pred:year> 2016 .  }
Answer: Nashua