Question: How many islands with mains voltage less than 240 volts did the poet John Keats reside in?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "island" . ?e <mains_voltage> ?pv . ?pv <pred:unit> "volt" . ?pv <pred:value> ?v . FILTER ( ?v < "240"^^xsd:double ) . ?e_1 <residence> ?e . ?e_1 <pred:name> "John Keats" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "poet" .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: mains voltage
240 volt
<
function: FilterConcept
dependencies: 1
inputs: island
function: Find
inputs: poet
function: Relate
dependencies: 3
inputs: occupation
backward
function: Find
inputs: John Keats
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: residence
forward
function: FilterConcept
dependencies: 7
inputs: island
function: And
dependencies: 2
8
function: Count
dependencies: 9