Question: How many political parties were established by the Abraham Lincoln who has 1 child or were founded earlier than 1901?
Choices: 8
9
10
11
12
13
14
15
16
17
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "political party" .  { ?e_1 <found> ?e . ?e_1 <pred:name> "Abraham Lincoln" . ?e_1 <number_of_children> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "1"^^xsd:double .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1901 ) .  } }
Program:
function: Find
inputs: Abraham Lincoln
function: FilterNum
dependencies: 0
inputs: number of children
1
=
function: Relate
dependencies: 1
inputs: found
forward
function: FilterConcept
dependencies: 2
inputs: political party
function: FindAll
function: FilterYear
dependencies: 4
inputs: inception
1901
<
function: FilterConcept
dependencies: 5
inputs: political party
function: Or
dependencies: 3
6
function: Count
dependencies: 7
Answer: 16