Question: How many movie characters were born later than 1854 or have Berlin as their birthplace?
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> "film character" .  { ?e <place_of_birth> ?e_1 . ?e_1 <pred:name> "Berlin" .  } UNION { ?e <date_of_birth> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1854 ) .  } }
Program:
function: Find
inputs: Berlin
function: Relate
dependencies: 0
inputs: place of birth
backward
function: FilterConcept
dependencies: 1
inputs: film character
function: FindAll
function: FilterYear
dependencies: 3
inputs: date of birth
1854
>
function: FilterConcept
dependencies: 4
inputs: film character
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2