Question: Who weighs less, Dave Foley (the one whose date of birth is 1947-10-28) or Robert Smith (the one that is a member of Minnesota Vikings)?
Choices:
Rahul Dev Burman
Max Fleischer
Sylvester Stallone
Robert Smith
Dave Foley
David Byrne
Richard Gere
Paul Simon
William Henry Harrison
Simon Cowell
Answer: Robert Smith
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dave Foley" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1947-10-28"^^xsd:date . } UNION { ?e <pred:name> "Robert Smith" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Minnesota Vikings" . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Dave Foley
function: FilterDate
dependencies: 0
inputs: date of birth
1947-10-28
=
function: Find
inputs: Minnesota Vikings
function: Relate
dependencies: 2
inputs: member of sports team
backward
function: Find
inputs: Robert Smith
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: mass
less