Question: Who is shorter, Israel (the one whose date of birth is 1987-03-15) or Carla Gugino?
Choices:
Carla Gugino
Richard Gere
William Henry Harrison
Simon Cowell
Sylvester Stallone
David Byrne
Rahul Dev Burman
James E. Reilly
Max Fleischer
Israel
Program:
function: Find
inputs: Israel
function: FilterDate
dependencies: 0
inputs: date of birth
1987-03-15
=
function: Find
inputs: Carla Gugino
function: SelectBetween
dependencies: 1
2
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Israel" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1987-03-15"^^xsd:date . } UNION { ?e <pred:name> "Carla Gugino" . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Carla Gugino