Question: How many currencies are the currency used by Japan or are named for the Lake District?
Choices: 1
2
3
4
5
6
7
8
9
10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "currency" .  { ?e_1 <currency> ?e . ?e_1 <pred:name> "Japan" .  } UNION { ?e <named_after> ?e_1 . ?e_1 <pred:name> "Lake District" .  } }
Program:
function: Find
inputs: Japan
function: Relate
dependencies: 0
inputs: currency
forward
function: FilterConcept
dependencies: 1
inputs: currency
function: Find
inputs: Lake District
function: Relate
dependencies: 3
inputs: named after
backward
function: FilterConcept
dependencies: 4
inputs: currency
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 1