Question: How many philosophies have the Library of Congress Classification JC573 or are the political ideology of the Conservative Party of Canada (whose origination date is 2003-12-07)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "philosophy" .  { ?e <Library_of_Congress_Classification> ?pv . ?pv <pred:value> "JC573" .  } UNION { ?e_1 <political_ideology> ?e . ?e_1 <pred:name> "Conservative Party of Canada" . ?e_1 <inception> ?pv . ?pv <pred:date> "2003-12-07"^^xsd:date .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Library of Congress Classification
JC573
function: FilterConcept
dependencies: 1
inputs: philosophy
function: Find
inputs: Conservative Party of Canada
function: FilterDate
dependencies: 3
inputs: inception
2003-12-07
=
function: Relate
dependencies: 4
inputs: political ideology
forward
function: FilterConcept
dependencies: 5
inputs: philosophy
function: Or
dependencies: 2
6
function: Count
dependencies: 7