Question: How many dynasties belong to House of Saxe-Coburg and Gotha or were established in a year that is different from 1917 ?
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "dynasty" .  { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1917 ) .  } UNION { ?e_1 <has_part> ?e . ?e_1 <pred:name> "House of Saxe-Coburg and Gotha" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1917
!=
function: FilterConcept
dependencies: 1
inputs: dynasty
function: Find
inputs: House of Saxe-Coburg and Gotha
function: Relate
dependencies: 3
inputs: has part
forward
function: FilterConcept
dependencies: 4
inputs: dynasty
function: Or
dependencies: 2
5
function: Count
dependencies: 6