Question: How many cities are located on Asia's (the one that is the continent that Thiruvananthapuram locates) continent or have detailed maps at Yangon map.svg?
Choices: 11
12
13
14
15
16
17
18
19
20
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" .  { ?e <continent> ?e_1 . ?e_1 <pred:name> "Asia" . ?e_2 <continent> ?e_1 . ?e_2 <pred:name> "Thiruvananthapuram" .  } UNION { ?e <detail_map> ?pv . ?pv <pred:value> "Yangon map.svg" .  } }
Program:
function: Find
inputs: Thiruvananthapuram
function: Relate
dependencies: 0
inputs: continent
forward
function: Find
inputs: Asia
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: continent
backward
function: FilterConcept
dependencies: 4
inputs: city
function: FindAll
function: FilterStr
dependencies: 6
inputs: detail map
Yangon map.svg
function: FilterConcept
dependencies: 7
inputs: city
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 20