Question: How many public offices have an office-term length not equal to 4.1 years or are the head of government for Reno (the one that is the capital of Washoe County)?
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> "public office" .  { ?e <term_length_of_office> ?pv . ?pv <pred:unit> "year" . ?pv <pred:value> ?v . FILTER ( ?v != "4.1"^^xsd:double ) .  } UNION { ?e_1 <office_held_by_head_of_government> ?e . ?e_1 <pred:name> "Reno" . ?e_1 <capital_of> ?e_2 . ?e_2 <pred:name> "Washoe County" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: term length of office
4.1 year
!=
function: FilterConcept
dependencies: 1
inputs: public office
function: Find
inputs: Washoe County
function: Relate
dependencies: 3
inputs: capital of
backward
function: Find
inputs: Reno
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: office held by head of government
forward
function: FilterConcept
dependencies: 7
inputs: public office
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 3