Question: The House of Romanov or the Chakri Dynasty are part of how many social groups?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "social group" .  { ?e <has_part> ?e_1 . ?e_1 <pred:name> "House of Romanov" .  } UNION { ?e <has_part> ?e_1 . ?e_1 <pred:name> "Chakri Dynasty" .  } }
Program:
function: Find
inputs: House of Romanov
function: Relate
dependencies: 0
inputs: has part
backward
function: FilterConcept
dependencies: 1
inputs: social group
function: Find
inputs: Chakri Dynasty
function: Relate
dependencies: 3
inputs: has part
backward
function: FilterConcept
dependencies: 4
inputs: social group
function: Or
dependencies: 2
5
function: Count
dependencies: 6