Question: What is the number of political parties whose beginning date is 1945-06-26 or official website is http://www.unp.lk?
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> "political party" .  { ?e <inception> ?pv . ?pv <pred:date> "1945-06-26"^^xsd:date .  } UNION { ?e <official_website> ?pv . ?pv <pred:value> "http://www.unp.lk" .  } }
Program:
function: FindAll
function: FilterDate
dependencies: 0
inputs: inception
1945-06-26
=
function: FilterConcept
dependencies: 1
inputs: political party
function: FindAll
function: FilterStr
dependencies: 3
inputs: official website
http://www.unp.lk
function: FilterConcept
dependencies: 4
inputs: political party
function: Or
dependencies: 2
5
function: Count
dependencies: 6