Question: What is the number of occupation whose short name is Prof. or that works in the field of environmentalism ?
Choices: 2
3
4
5
6
7
8
9
10
11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "occupation" .  { ?e <short_name> ?pv . ?pv <pred:value> "Prof." .  } UNION { ?e <field_of_this_occupation> ?e_1 . ?e_1 <pred:name> "environmentalism" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: short name
Prof.
function: FilterConcept
dependencies: 1
inputs: occupation
function: Find
inputs: environmentalism
function: Relate
dependencies: 3
inputs: field of this occupation
backward
function: FilterConcept
dependencies: 4
inputs: occupation
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2