Question: Who is taller, David Healy (the one that is a member of Doncaster Rovers F.C.) or Ryan Adams (the one whose date of birth is 1987-04-21)?
Choices:
Rahul Dev Burman
Sylvester Stallone
Simon Cowell
David Healy
James E. Reilly
Ryan Adams
Richard Gere
Max Fleischer
William Henry Harrison
Paul Simon
Program:
function: Find
inputs: Doncaster Rovers F.C.
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: David Healy
function: And
dependencies: 1
2
function: Find
inputs: Ryan Adams
function: FilterDate
dependencies: 4
inputs: date of birth
1987-04-21
=
function: SelectBetween
dependencies: 3
5
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "David Healy" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Doncaster Rovers F.C." . } UNION { ?e <pred:name> "Ryan Adams" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1987-04-21"^^xsd:date . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Ryan Adams