Question: How many counties of Ireland are the birthplace of John Barry (who was born in County Cork) or have the official website https://monaghan.ie/?
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> "county of Ireland" .  { ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "John Barry" . ?e_1 <place_of_birth> ?e_2 . ?e_2 <pred:name> "County Cork" .  } UNION { ?e <official_website> ?pv . ?pv <pred:value> "https://monaghan.ie/" .  } }
Program:
function: Find
inputs: County Cork
function: Relate
dependencies: 0
inputs: place of birth
backward
function: Find
inputs: John Barry
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: place of birth
forward
function: FilterConcept
dependencies: 4
inputs: county of Ireland
function: FindAll
function: FilterStr
dependencies: 6
inputs: official website
https://monaghan.ie/
function: FilterConcept
dependencies: 7
inputs: county of Ireland
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 2