Question: Who is lighter in weight: American football's Richard Rodgers, or the William James who's 72 in tall?
Choices:
Max Fleischer
James E. Reilly
Richard Gere
William Henry Harrison
Simon Cowell
William James
Richard Rodgers
Rahul Dev Burman
David Byrne
Paul Simon
Answer: William James
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Richard Rodgers" . ?e <sport> ?e_1 . ?e_1 <pred:name> "American football" . } UNION { ?e <pred:name> "William James" . ?e <height> ?pv_1 . ?pv_1 <pred:unit> "inch" . ?pv_1 <pred:value> "72"^^xsd:double . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: American football
function: Relate
dependencies: 0
inputs: sport
backward
function: Find
inputs: Richard Rodgers
function: And
dependencies: 1
2
function: Find
inputs: William James
function: FilterNum
dependencies: 4
inputs: height
72 inch
=
function: SelectBetween
dependencies: 3
5
inputs: mass
less