Question: Which has a greater heart rate, a chicken (with a heart rate of 275 beats per minute) or a goat?
Choices: India
Yorkshire Terrier
Golden Retriever
chicken
cattle
Labrador Retriever
bulldog
sheep
German Shepherd dog
goat
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "chicken" . ?e <heart_rate> ?pv_1 . ?pv_1 <pred:unit> "beats per minute" . ?pv_1 <pred:value> "275"^^xsd:double . } UNION { ?e <pred:name> "goat" . } ?e <heart_rate> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: chicken
function: FilterNum
dependencies: 0
inputs: heart rate
275 beats per minute
=
function: Find
inputs: goat
function: SelectBetween
dependencies: 1
2
inputs: heart rate
greater
Answer: chicken