Question: How many food ingredients come from broccoli or are produced by birds naturally?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: bird
function: Relate
dependencies: 0
inputs: natural product of taxon
backward
function: FilterConcept
dependencies: 1
inputs: food ingredient
function: Find
inputs: broccoli
function: Relate
dependencies: 3
inputs: this taxon is source of
forward
function: FilterConcept
dependencies: 4
inputs: food ingredient
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "food ingredient" .  { ?e <natural_product_of_taxon> ?e_1 . ?e_1 <pred:name> "bird" .  } UNION { ?e_1 <this_taxon_is_source_of> ?e . ?e_1 <pred:name> "broccoli" .  } }
Answer: 1