Question: How many Florida counties have a population less than 8900000 or are named after James Monroe (the member of the political party Democratic-Republican Party)?
Choices:
13
14
15
16
17
18
19
20
21
22
Answer: 19
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Florida" .  { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "8900000"^^xsd:double ) .  } UNION { ?e <named_after> ?e_1 . ?e_1 <pred:name> "James Monroe" . ?e_1 <member_of_political_party> ?e_2 . ?e_2 <pred:name> "Democratic-Republican Party" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
8900000
<
function: FilterConcept
dependencies: 1
inputs: county of Florida
function: Find
inputs: Democratic-Republican Party
function: Relate
dependencies: 3
inputs: member of political party
backward
function: Find
inputs: James Monroe
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: named after
backward
function: FilterConcept
dependencies: 7
inputs: county of Florida
function: Or
dependencies: 2
8
function: Count
dependencies: 9