Question: Tell me the number of historical countries that are named after orkney Islands or that have an Inception time of 1871.
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "historical country" .  { ?e <named_after> ?e_1 . ?e_1 <pred:name> "Orkney Islands" .  } UNION { ?e <inception> ?pv . ?pv <pred:year> 1871 .  } }
Program:
function: Find
inputs: Orkney Islands
function: Relate
dependencies: 0
inputs: named after
backward
function: FilterConcept
dependencies: 1
inputs: historical country
function: FindAll
function: FilterYear
dependencies: 3
inputs: inception
1871
=
function: FilterConcept
dependencies: 4
inputs: historical country
function: Or
dependencies: 2
5
function: Count
dependencies: 6