Question: What is the number of towns in the US that are twinned administrative body of Plymouth (having a nuts code of UKK41) or that is where Palm Beach County's name originated?
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_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Plymouth" . ?e_1 <NUTS_code> ?pv . ?pv <pred:value> "UKK41" .  } UNION { ?e_1 <named_after> ?e . ?e_1 <pred:name> "Palm Beach County" .  } }
Program:
function: Find
inputs: Plymouth
function: FilterStr
dependencies: 0
inputs: NUTS code
UKK41
function: Relate
dependencies: 1
inputs: twinned administrative body
forward
function: FilterConcept
dependencies: 2
inputs: town of the United States
function: Find
inputs: Palm Beach County
function: Relate
dependencies: 4
inputs: named after
forward
function: FilterConcept
dependencies: 5
inputs: town of the United States
function: Or
dependencies: 3
6
function: Count
dependencies: 7
Answer: 2