Question: How many products contain some dietary fiber or were Gautama Buddha's final meal?
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> "product" .  { ?e <has_part> ?e_1 . ?e_1 <pred:name> "dietary fiber" .  } UNION { ?e_1 <had_as_last_meal> ?e . ?e_1 <pred:name> "Gautama Buddha" .  } }
Program:
function: Find
inputs: dietary fiber
function: Relate
dependencies: 0
inputs: has part
backward
function: FilterConcept
dependencies: 1
inputs: product
function: Find
inputs: Gautama Buddha
function: Relate
dependencies: 3
inputs: had as last meal
forward
function: FilterConcept
dependencies: 4
inputs: product
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 1