Question: How many TV series episodes are in English or are filmed in Hawaii (population 632772)?
Choices:
15
16
17
18
19
20
21
22
23
24
Answer: 20
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television series episode" .  { ?e <filming_location> ?e_1 . ?e_1 <pred:name> "Hawaii" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "632772"^^xsd:double .  } UNION { ?e <language_of_work_or_name> ?e_1 . ?e_1 <pred:name> "English" .  } }
Program:
function: Find
inputs: Hawaii
function: FilterNum
dependencies: 0
inputs: population
632772
=
function: Relate
dependencies: 1
inputs: filming location
backward
function: FilterConcept
dependencies: 2
inputs: television series episode
function: Find
inputs: English
function: Relate
dependencies: 4
inputs: language of work or name
backward
function: FilterConcept
dependencies: 5
inputs: television series episode
function: Or
dependencies: 3
6
function: Count
dependencies: 7