Question: Who weighs less, Mark Johnson (the one whose height is 178 centimetre) or Jim Brown (the one whose mass is 105 kilogram)?
Choices:
Richard Gere
David Byrne
James E. Reilly
Jim Brown
Mark Johnson
William Henry Harrison
Simon Cowell
Paul Simon
Sylvester Stallone
Rahul Dev Burman
Program:
function: Find
inputs: Mark Johnson
function: FilterNum
dependencies: 0
inputs: height
178 centimetre
=
function: Find
inputs: Jim Brown
function: FilterNum
dependencies: 2
inputs: mass
105 kilogram
=
function: SelectBetween
dependencies: 1
3
inputs: mass
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mark Johnson" . ?e <height> ?pv_1 . ?pv_1 <pred:unit> "centimetre" . ?pv_1 <pred:value> "178"^^xsd:double . } UNION { ?e <pred:name> "Jim Brown" . ?e <mass> ?pv_2 . ?pv_2 <pred:unit> "kilogram" . ?pv_2 <pred:value> "105"^^xsd:double . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Mark Johnson