Question: What are the number of occupations that practice education or whose short name is prof. ?
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> "occupation" .  { ?e_1 <practiced_by> ?e . ?e_1 <pred:name> "education" .  } UNION { ?e <short_name> ?pv . ?pv <pred:value> "prof." .  } }
Program:
function: Find
inputs: education
function: Relate
dependencies: 0
inputs: practiced by
forward
function: FilterConcept
dependencies: 1
inputs: occupation
function: FindAll
function: FilterStr
dependencies: 3
inputs: short name
prof.
function: FilterConcept
dependencies: 4
inputs: occupation
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 1