Question: How many public offices were held by George Clinton (the one that died on 1812-04-20) or are located in the US ?
Choices: 5
6
7
8
9
10
11
12
13
14
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "public office" .  { ?e <officeholder> ?e_1 . ?e_1 <pred:name> "George Clinton" . ?e_1 <date_of_death> ?pv . ?pv <pred:date> "1812-04-20"^^xsd:date .  } UNION { ?e <country> ?e_1 . ?e_1 <pred:name> "United States of America" .  } }
Program:
function: Find
inputs: George Clinton
function: FilterDate
dependencies: 0
inputs: date of death
1812-04-20
=
function: Relate
dependencies: 1
inputs: officeholder
backward
function: FilterConcept
dependencies: 2
inputs: public office
function: Find
inputs: United States of America
function: Relate
dependencies: 4
inputs: country
backward
function: FilterConcept
dependencies: 5
inputs: public office
function: Or
dependencies: 3
6
function: Count
dependencies: 7
Answer: 5