Question: How many republics have a population that is under 730000 or are the origin of the name Bram Stoker's Dracula (whose genre is first-person shooter)?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "republic" .  { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "730000"^^xsd:double ) .  } UNION { ?e_1 <named_after> ?e . ?e_1 <pred:name> "Bram Stoker's Dracula" . ?e_1 <genre> ?e_2 . ?e_2 <pred:name> "first-person shooter" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
730000
<
function: FilterConcept
dependencies: 1
inputs: republic
function: Find
inputs: first-person shooter
function: Relate
dependencies: 3
inputs: genre
backward
function: Find
inputs: Bram Stoker's Dracula
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: named after
forward
function: FilterConcept
dependencies: 7
inputs: republic
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 3