Question: How many families were established before 1180 or were in Kingdom of Italy (the official name) ?
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> "family" .  { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1180 ) .  } UNION { ?e <country> ?e_1 . ?e_1 <pred:name> "Kingdom of Italy" . ?e_1 <official_name> ?pv . ?pv <pred:value> "Kingdom of Italy" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1180
<
function: FilterConcept
dependencies: 1
inputs: family
function: Find
inputs: Kingdom of Italy
function: FilterStr
dependencies: 3
inputs: official name
Kingdom of Italy
function: Relate
dependencies: 4
inputs: country
backward
function: FilterConcept
dependencies: 5
inputs: family
function: Or
dependencies: 2
6
function: Count
dependencies: 7
Answer: 1