Question: What is the number of facilities that has less than 7400000 visitors each year or that sits in or adjacent to the Ohio River?
Choices:
3
4
5
6
7
8
9
10
11
12
Answer: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "facility" .  { ?e <visitors_per_year> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "7400000"^^xsd:double ) .  } UNION { ?e <located_in_or_next_to_body_of_water> ?e_1 . ?e_1 <pred:name> "Ohio River" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: visitors per year
7400000
<
function: FilterConcept
dependencies: 1
inputs: facility
function: Find
inputs: Ohio River
function: Relate
dependencies: 3
inputs: located in or next to body of water
backward
function: FilterConcept
dependencies: 4
inputs: facility
function: Or
dependencies: 2
5
function: Count
dependencies: 6