Question: Does Tim Armstrong (who is a member of the Toronto Maple Leafs) or Ben Johnson (whose date of birth is 1980-04-07) weigh more?
Choices:
Tim Armstrong
William Henry Harrison
Paul Simon
Rahul Dev Burman
Ben Johnson
Richard Gere
James E. Reilly
Max Fleischer
David Byrne
Simon Cowell
Answer: Ben Johnson
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tim Armstrong" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Toronto Maple Leafs" . } UNION { ?e <pred:name> "Ben Johnson" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1980-04-07"^^xsd:date . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Toronto Maple Leafs
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Tim Armstrong
function: And
dependencies: 1
2
function: Find
inputs: Ben Johnson
function: FilterDate
dependencies: 4
inputs: date of birth
1980-04-07
=
function: SelectBetween
dependencies: 3
5
inputs: mass
greater