Question: What are the number of learned societies that have Charles Darwin (the one whose date of birth is 1809-02-12) as a member ?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "learned society" . ?e_1 <member_of> ?e . ?e_1 <pred:name> "Charles Darwin" . ?e_1 <date_of_birth> ?pv . ?pv <pred:date> "1809-02-12"^^xsd:date .   }
Program:
function: Find
inputs: Charles Darwin
function: FilterDate
dependencies: 0
inputs: date of birth
1809-02-12
=
function: Relate
dependencies: 1
inputs: member of
forward
function: FilterConcept
dependencies: 2
inputs: learned society
function: Count
dependencies: 3