Question: How many social groups whose country is Germany or that includes House of Bourbon as a part?
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> "social group" .  { ?e <country> ?e_1 . ?e_1 <pred:name> "Germany" .  } UNION { ?e <has_part> ?e_1 . ?e_1 <pred:name> "House of Bourbon" .  } }
Program:
function: Find
inputs: Germany
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: social group
function: Find
inputs: House of Bourbon
function: Relate
dependencies: 3
inputs: has part
backward
function: FilterConcept
dependencies: 4
inputs: social group
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 1