Question: What is the number of products that have an USDA NDB number of 01078 and that is a bulldog facet.
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "product" . ?e <USDA_NDB_number> ?pv . ?pv <pred:value> "01078" . ?e <facet_of> ?e_1 . ?e_1 <pred:name> "bulldog" .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: USDA NDB number
01078
function: FilterConcept
dependencies: 1
inputs: product
function: Find
inputs: bulldog
function: Relate
dependencies: 3
inputs: facet of
backward
function: FilterConcept
dependencies: 4
inputs: product
function: And
dependencies: 2
5
function: Count
dependencies: 6