Question: Who weighs less, John Abraham (the one whose mass is 263 pound) or Keith Allen (the one that was born in Saskatoon)?
Choices:
John Abraham
Simon Cowell
Max Fleischer
Paul Simon
Rahul Dev Burman
Keith Allen
David Byrne
William Henry Harrison
James E. Reilly
Richard Gere
Answer: Keith Allen
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "John Abraham" . ?e <mass> ?pv_1 . ?pv_1 <pred:unit> "pound" . ?pv_1 <pred:value> "263"^^xsd:double . } UNION { ?e <pred:name> "Keith Allen" . ?e <place_of_birth> ?e_1 . ?e_1 <pred:name> "Saskatoon" . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: John Abraham
function: FilterNum
dependencies: 0
inputs: mass
263 pound
=
function: Find
inputs: Saskatoon
function: Relate
dependencies: 2
inputs: place of birth
backward
function: Find
inputs: Keith Allen
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: mass
less