Question: Who is shorter: Brittany Murphy, or Chris Carter at 185-cm tall?
Choices:
David Byrne
Max Fleischer
Simon Cowell
Richard Gere
Brittany Murphy
James E. Reilly
Chris Carter
Paul Simon
William Henry Harrison
Rahul Dev Burman
Program:
function: Find
inputs: Brittany Murphy
function: Find
inputs: Chris Carter
function: FilterNum
dependencies: 1
inputs: height
185 centimetre
=
function: SelectBetween
dependencies: 0
2
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Brittany Murphy" . } UNION { ?e <pred:name> "Chris Carter" . ?e <height> ?pv_1 . ?pv_1 <pred:unit> "centimetre" . ?pv_1 <pred:value> "185"^^xsd:double . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Brittany Murphy