Question: How many U.S. towns are named after the city that is the twinned administrative body of Plymouth (the one whose postal code is 02361)?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town of the United States" . ?e <named_after> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city" . ?e_1 <twinned_administrative_body> ?e_2 . ?e_2 <pred:name> "Plymouth" . ?e_2 <postal_code> ?pv_1 . ?pv_1 <pred:value> "02361" .   }
Program:
function: Find
inputs: Plymouth
function: FilterStr
dependencies: 0
inputs: postal code
02361
function: Relate
dependencies: 1
inputs: twinned administrative body
backward
function: FilterConcept
dependencies: 2
inputs: city
function: Relate
dependencies: 3
inputs: named after
backward
function: FilterConcept
dependencies: 4
inputs: town of the United States
function: Count
dependencies: 5
Answer: 1