Question: Who is taller: Dean Saunders, or the Chris Brown born on 1991-02-03?
Choices:
Dean Saunders
Simon Cowell
Paul Simon
Richard Gere
Sylvester Stallone
Max Fleischer
David Byrne
Rahul Dev Burman
Chris Brown
James E. Reilly
Program:
function: Find
inputs: Dean Saunders
function: Find
inputs: Chris Brown
function: FilterDate
dependencies: 1
inputs: date of birth
1991-02-03
=
function: SelectBetween
dependencies: 0
2
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dean Saunders" . } UNION { ?e <pred:name> "Chris Brown" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1991-02-03"^^xsd:date . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Chris Brown