Question: How manyJapanese prefectures make up the twinned administrative body of Hebei or are named after Hiroshima (the capital of Hiroshima Prefecture) ?
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> "prefecture of Japan" .  { ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Hebei" .  } UNION { ?e <named_after> ?e_1 . ?e_1 <pred:name> "Hiroshima" . ?e_1 <capital_of> ?e_2 . ?e_2 <pred:name> "Hiroshima Prefecture" .  } }
Program:
function: Find
inputs: Hebei
function: Relate
dependencies: 0
inputs: twinned administrative body
forward
function: FilterConcept
dependencies: 1
inputs: prefecture of Japan
function: Find
inputs: Hiroshima Prefecture
function: Relate
dependencies: 3
inputs: capital of
backward
function: Find
inputs: Hiroshima
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: named after
backward
function: FilterConcept
dependencies: 7
inputs: prefecture of Japan
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 2