Question: Which one is smaller, Brian Jones (the one whose height is 75 inches) or Snoop Dogg ?
Choices:
Paul Simon
David Byrne
James E. Reilly
Richard Gere
William Henry Harrison
Brian Jones
Max Fleischer
Simon Cowell
Rahul Dev Burman
Sylvester Stallone
Program:
function: Find
inputs: Brian Jones
function: FilterNum
dependencies: 0
inputs: height
75 inch
=
function: Find
inputs: Snoop Dogg
function: SelectBetween
dependencies: 1
2
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Brian Jones" . ?e <height> ?pv_1 . ?pv_1 <pred:unit> "inch" . ?pv_1 <pred:value> "75"^^xsd:double . } UNION { ?e <pred:name> "Snoop Dogg" . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Brian Jones