Question: What is the number of public offices that are in the country of the United States or do not have a 3.9-year term of office?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: public office
function: FindAll
function: FilterNum
dependencies: 3
inputs: term length of office
3.9 year
!=
function: FilterConcept
dependencies: 4
inputs: public office
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "public office" .  { ?e <country> ?e_1 . ?e_1 <pred:name> "United States of America" .  } UNION { ?e <term_length_of_office> ?pv . ?pv <pred:unit> "year" . ?pv <pred:value> ?v . FILTER ( ?v != "3.9"^^xsd:double ) .  } }
Answer: 5