Question: Who is taller: the Kevin Smith born on 1991-12-21, or the Chris Martin who wears number 25?
Choices:
Kevin Smith
James E. Reilly
Max Fleischer
David Byrne
Rahul Dev Burman
William Henry Harrison
Chris Martin
Richard Gere
Simon Cowell
Paul Simon
Program:
function: Find
inputs: Kevin Smith
function: FilterDate
dependencies: 0
inputs: date of birth
1991-12-21
=
function: Find
inputs: Chris Martin
function: FilterStr
dependencies: 2
inputs: sport number
25
function: SelectBetween
dependencies: 1
3
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kevin Smith" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1991-12-21"^^xsd:date . } UNION { ?e <pred:name> "Chris Martin" . ?e <sport_number> ?pv_2 . ?pv_2 <pred:value> "25" . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Chris Martin