Question: How many dynasties are in the UK or belong to Germany?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "dynasty" .  { ?e <location> ?e_1 . ?e_1 <pred:name> "United Kingdom" .  } UNION { ?e <country> ?e_1 . ?e_1 <pred:name> "Germany" .  } }
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: location
backward
function: FilterConcept
dependencies: 1
inputs: dynasty
function: Find
inputs: Germany
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: dynasty
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2