Question: Who weighs less, Jonathan Walters or Marilyn Monroe (the one that has the occupation of Playboy Playmate)?
Choices:
David Byrne
Rahul Dev Burman
William Henry Harrison
Max Fleischer
Jonathan Walters
Sylvester Stallone
Paul Simon
James E. Reilly
Marilyn Monroe
Richard Gere
Program:
function: Find
inputs: Jonathan Walters
function: Find
inputs: Playboy Playmate
function: Relate
dependencies: 1
inputs: occupation
backward
function: Find
inputs: Marilyn Monroe
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: mass
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jonathan Walters" .  } UNION { ?e <pred:name> "Marilyn Monroe" . ?e <occupation> ?e_1 . ?e_1 <pred:name> "Playboy Playmate" .   } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Marilyn Monroe