Question: How many time zones do we know whose timezone offset is equal to 5 hours or that match the time zone of Cyprus (the one with a diplomatic relation with Bulgaria) ?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "time zone" .  { ?e <timezone_offset> ?pv . ?pv <pred:unit> "hour" . ?pv <pred:value> "5"^^xsd:double .  } UNION { ?e_1 <located_in_time_zone> ?e . ?e_1 <pred:name> "Cyprus" . ?e_1 <diplomatic_relation> ?e_2 . ?e_2 <pred:name> "Bulgaria" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: timezone offset
5 hour
=
function: FilterConcept
dependencies: 1
inputs: time zone
function: Find
inputs: Bulgaria
function: Relate
dependencies: 3
inputs: diplomatic relation
backward
function: Find
inputs: Cyprus
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: located in time zone
forward
function: FilterConcept
dependencies: 7
inputs: time zone
function: Or
dependencies: 2
8
function: Count
dependencies: 9