Question: Who weighs more, Tony Richardson (the one that is a member of New York Jets) or Bruce Campbell (the one whose date of birth is 1988-05-25)?
Choices:
Tony Richardson
Paul Simon
James E. Reilly
Bruce Campbell
Richard Gere
Max Fleischer
Sylvester Stallone
William Henry Harrison
Rahul Dev Burman
Simon Cowell
Program:
function: Find
inputs: New York Jets
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Tony Richardson
function: And
dependencies: 1
2
function: Find
inputs: Bruce Campbell
function: FilterDate
dependencies: 4
inputs: date of birth
1988-05-25
=
function: SelectBetween
dependencies: 3
5
inputs: mass
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tony Richardson" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "New York Jets" . } UNION { ?e <pred:name> "Bruce Campbell" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1988-05-25"^^xsd:date . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Bruce Campbell