Question: Who weighs less, Megumi Hayashibara or Stephen King (the one whose height is 173 centimetre)?
Choices:
Stephen King
Paul Simon
James E. Reilly
Simon Cowell
Max Fleischer
David Byrne
Sylvester Stallone
Megumi Hayashibara
Richard Gere
Rahul Dev Burman
Program:
function: Find
inputs: Megumi Hayashibara
function: Find
inputs: Stephen King
function: FilterNum
dependencies: 1
inputs: height
173 centimetre
=
function: SelectBetween
dependencies: 0
2
inputs: mass
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Megumi Hayashibara" . } UNION { ?e <pred:name> "Stephen King" . ?e <height> ?pv_1 . ?pv_1 <pred:unit> "centimetre" . ?pv_1 <pred:value> "173"^^xsd:double . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Megumi Hayashibara