Question: Who weighs less, Henry James (the one whose date of birth is 1965-07-29) or Mike Watt (the one that is a member of Carolina Hurricanes)?
Choices:
Richard Gere
Rahul Dev Burman
Mike Watt
Paul Simon
Sylvester Stallone
James E. Reilly
Max Fleischer
Henry James
Simon Cowell
David Byrne
Program:
function: Find
inputs: Henry James
function: FilterDate
dependencies: 0
inputs: date of birth
1965-07-29
=
function: Find
inputs: Carolina Hurricanes
function: Relate
dependencies: 2
inputs: member of sports team
backward
function: Find
inputs: Mike Watt
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: mass
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Henry James" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1965-07-29"^^xsd:date . } UNION { ?e <pred:name> "Mike Watt" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Carolina Hurricanes" . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Mike Watt