Question: What is the number of New Jersey cities are the capital of Passaic County or are the twinned administrative body of Taipei?
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> "city in New Jersey" .  { ?e_1 <capital> ?e . ?e_1 <pred:name> "Passaic County" .  } UNION { ?e <twinned_administrative_body> ?e_1 . ?e_1 <pred:name> "Taipei" .  } }
Program:
function: Find
inputs: Passaic County
function: Relate
dependencies: 0
inputs: capital
forward
function: FilterConcept
dependencies: 1
inputs: city in New Jersey
function: Find
inputs: Taipei
function: Relate
dependencies: 3
inputs: twinned administrative body
backward
function: FilterConcept
dependencies: 4
inputs: city in New Jersey
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2