Question: How many cities in the United States are named after Florence (the one that is the twinned administrative body of Kiev) or are the birthplace of Neal H. Moritz ?
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 of the United States" .  { ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Neal H. Moritz" .  } UNION { ?e <named_after> ?e_1 . ?e_1 <pred:name> "Florence" . ?e_1 <twinned_administrative_body> ?e_2 . ?e_2 <pred:name> "Kiev" .  } }
Program:
function: Find
inputs: Neal H. Moritz
function: Relate
dependencies: 0
inputs: place of birth
forward
function: FilterConcept
dependencies: 1
inputs: city of the United States
function: Find
inputs: Kiev
function: Relate
dependencies: 3
inputs: twinned administrative body
backward
function: Find
inputs: Florence
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: named after
backward
function: FilterConcept
dependencies: 7
inputs: city of the United States
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 2