Question: What is the number of islands that overlap United Kingdom or have official website http://www.pref.hokkaido.lg.jp
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "island" .  { ?e <territory_overlaps> ?e_1 . ?e_1 <pred:name> "United Kingdom" .  } UNION { ?e <official_website> ?pv . ?pv <pred:value> "http://www.pref.hokkaido.lg.jp" .  } }
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: territory overlaps
backward
function: FilterConcept
dependencies: 1
inputs: island
function: FindAll
function: FilterStr
dependencies: 3
inputs: official website
http://www.pref.hokkaido.lg.jp
function: FilterConcept
dependencies: 4
inputs: island
function: Or
dependencies: 2
5
function: Count
dependencies: 6