Question: what is the number of products that includes orange (which has an OKPD code for the good or service is 01.13.22.110) as a part or that has nutrient L-alanine
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> "orange" . ?e_1 <OKPD_code_of_the_good_or_service> ?pv . ?pv <pred:value> "01.13.22.110" .  } UNION { ?e <nutrient> ?e_1 . ?e_1 <pred:name> "L-alanine" .  } }
Program:
function: Find
inputs: orange
function: FilterStr
dependencies: 0
inputs: OKPD code of the good or service
01.13.22.110
function: Relate
dependencies: 1
inputs: has part
backward
function: FilterConcept
dependencies: 2
inputs: product
function: Find
inputs: L-alanine
function: Relate
dependencies: 4
inputs: nutrient
backward
function: FilterConcept
dependencies: 5
inputs: product
function: Or
dependencies: 3
6
function: Count
dependencies: 7
Answer: 7