Question: How many states of India are the birthplace of Om Shivpuri or have a female population greater than 10?
Choices: 20
21
22
23
24
25
26
27
28
29
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of India" .  { ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Om Shivpuri" .  } UNION { ?e <female_population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "10"^^xsd:double ) .  } }
Program:
function: Find
inputs: Om Shivpuri
function: Relate
dependencies: 0
inputs: place of birth
forward
function: FilterConcept
dependencies: 1
inputs: state of India
function: FindAll
function: FilterNum
dependencies: 3
inputs: female population
10
>
function: FilterConcept
dependencies: 4
inputs: state of India
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 23