Question: Who has a greater mass, Mark Johnson at 82 kg, or blond Devon?
Choices:
Max Fleischer
Sylvester Stallone
Mark Johnson
Paul Simon
Simon Cowell
Richard Gere
James E. Reilly
Rahul Dev Burman
Devon
David Byrne
Answer: Mark Johnson
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mark Johnson" . ?e <mass> ?pv_1 . ?pv_1 <pred:unit> "kilogram" . ?pv_1 <pred:value> "82"^^xsd:double . } UNION { ?e <pred:name> "Devon" . ?e <hair_color> ?e_1 . ?e_1 <pred:name> "blond" . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Mark Johnson
function: FilterNum
dependencies: 0
inputs: mass
82 kilogram
=
function: Find
inputs: blond
function: Relate
dependencies: 2
inputs: hair color
backward
function: Find
inputs: Devon
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: mass
greater