Question: How many US states have a population above 8.0 or the abbreviation WV?
Choices:
41
42
43
44
45
46
47
48
49
50
Answer: 50
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of the United States" .  { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "8.0"^^xsd:double ) .  } UNION { ?e <short_name> ?pv . ?pv <pred:value> "WV" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
8.0
>
function: FilterConcept
dependencies: 1
inputs: state of the United States
function: FindAll
function: FilterStr
dependencies: 3
inputs: short name
WV
function: FilterConcept
dependencies: 4
inputs: state of the United States
function: Or
dependencies: 2
5
function: Count
dependencies: 6