Question: What number of dynasties are a list of people or named after Windsor Castle?
Choices:
2
3
4
5
6
7
8
9
10
11
Program:
function: Find
inputs: human
function: Relate
dependencies: 0
inputs: is a list of
backward
function: FilterConcept
dependencies: 1
inputs: dynasty
function: Find
inputs: Windsor Castle
function: Relate
dependencies: 3
inputs: named after
backward
function: FilterConcept
dependencies: 4
inputs: dynasty
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "dynasty" .  { ?e <is_a_list_of> ?e_1 . ?e_1 <pred:name> "human" .  } UNION { ?e <named_after> ?e_1 . ?e_1 <pred:name> "Windsor Castle" .  } }
Answer: 2