Question: How many Virginia counties either have above 8.6 population count or are the place where Katie Couric was born?
Choices:
14
15
16
17
18
19
20
21
22
23
Answer: 15
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Virginia" .  { ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Katie Couric" .  } UNION { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "8.6"^^xsd:double ) .  } }
Program:
function: Find
inputs: Katie Couric
function: Relate
dependencies: 0
inputs: place of birth
forward
function: FilterConcept
dependencies: 1
inputs: county of Virginia
function: FindAll
function: FilterNum
dependencies: 3
inputs: population
8.6
>
function: FilterConcept
dependencies: 4
inputs: county of Virginia
function: Or
dependencies: 2
5
function: Count
dependencies: 6