Question: For the chemical element whose InChI is 1S/Ca, how many foods have this nutrient?
Choices:
4
5
6
7
8
9
10
11
12
13
Answer: 8
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "food" . ?e <nutrient> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "chemical element" . ?e_1 <InChI> ?pv . ?pv <pred:value> "1S/Ca" .   }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: InChI
1S/Ca
function: FilterConcept
dependencies: 1
inputs: chemical element
function: Relate
dependencies: 2
inputs: nutrient
backward
function: FilterConcept
dependencies: 3
inputs: food
function: Count
dependencies: 4