Question: Does the chicken (EPPO Code GALUDO) or the goat possess a faster heart rate?
Choices:
bulldog
goat
German Shepherd dog
Golden Retriever
sheep
India
Yorkshire Terrier
cattle
Labrador Retriever
chicken
Program:
function: Find
inputs: chicken
function: FilterStr
dependencies: 0
inputs: EPPO Code
GALUDO
function: Find
inputs: goat
function: SelectBetween
dependencies: 1
2
inputs: heart rate
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "chicken" . ?e <EPPO_Code> ?pv_1 . ?pv_1 <pred:value> "GALUDO" . } UNION { ?e <pred:name> "goat" . } ?e <heart_rate> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: chicken