Question: Who weighs less, Keith Allen (the one that is the citizen of Canada) or Joe Jackson (the one whose height is 75 inch)?
Choices:
Sylvester Stallone
Richard Gere
Joe Jackson
Keith Allen
Max Fleischer
Paul Simon
Rahul Dev Burman
Simon Cowell
William Henry Harrison
James E. Reilly
Answer: Keith Allen
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Keith Allen" . ?e <country_of_citizenship> ?e_1 . ?e_1 <pred:name> "Canada" . } UNION { ?e <pred:name> "Joe Jackson" . ?e <height> ?pv_1 . ?pv_1 <pred:unit> "inch" . ?pv_1 <pred:value> "75"^^xsd:double . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Canada
function: Relate
dependencies: 0
inputs: country of citizenship
backward
function: Find
inputs: Keith Allen
function: And
dependencies: 1
2
function: Find
inputs: Joe Jackson
function: FilterNum
dependencies: 4
inputs: height
75 inch
=
function: SelectBetween
dependencies: 3
5
inputs: mass
less