Question: How many activities have a health specialty schizophrenia or a publication date after 2008?
Choices:
41
42
43
44
45
46
47
48
49
50
Answer: 47
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "activity" .  { ?e_1 <health_specialty> ?e . ?e_1 <pred:name> "schizophrenia" .  } UNION { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 2008 ) .  } }
Program:
function: Find
inputs: schizophrenia
function: Relate
dependencies: 0
inputs: health specialty
forward
function: FilterConcept
dependencies: 1
inputs: activity
function: FindAll
function: FilterYear
dependencies: 3
inputs: publication date
2008
>
function: FilterConcept
dependencies: 4
inputs: activity
function: Or
dependencies: 2
5
function: Count
dependencies: 6