Question: How many groups of organisms are known by one particular common name and are owned by George W. Bush or how many groups of organisms have a life expectancy of less than 14.8 years?
Choices:
3
4
5
6
7
8
9
10
11
12
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "group of organisms known by one particular common name" .  { ?e <owned_by> ?e_1 . ?e_1 <pred:name> "George W. Bush" .  } UNION { ?e <life_expectancy> ?pv . ?pv <pred:unit> "year" . ?pv <pred:value> ?v . FILTER ( ?v < "14.8"^^xsd:double ) .  } }
Program:
function: Find
inputs: George W. Bush
function: Relate
dependencies: 0
inputs: owned by
backward
function: FilterConcept
dependencies: 1
inputs: group of organisms known by one particular common name
function: FindAll
function: FilterNum
dependencies: 3
inputs: life expectancy
14.8 year
<
function: FilterConcept
dependencies: 4
inputs: group of organisms known by one particular common name
function: Or
dependencies: 2
5
function: Count
dependencies: 6