Question: Who is shorter Michael Jordan (the one whose nickname is Superman) or Roger Daltrey?
Choices:
Michael Jordan
William Henry Harrison
Simon Cowell
Rahul Dev Burman
Paul Simon
Max Fleischer
Sylvester Stallone
David Byrne
Roger Daltrey
James E. Reilly
Program:
function: Find
inputs: Michael Jordan
function: FilterStr
dependencies: 0
inputs: nickname
Superman
function: Find
inputs: Roger Daltrey
function: SelectBetween
dependencies: 1
2
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Michael Jordan" . ?e <nickname> ?pv_1 . ?pv_1 <pred:value> "Superman" . } UNION { ?e <pred:name> "Roger Daltrey" . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Roger Daltrey