Question: Who is shorrter, Stephen King (the one whose position is midfielder) or Larry Miller (the one whose date of birth is 1946-04-04)?
Choices: Stephen King
David Byrne
Simon Cowell
Rahul Dev Burman
Sylvester Stallone
Larry Miller
James E. Reilly
Paul Simon
Max Fleischer
Richard Gere
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Stephen King" . ?e <position_played_on_team_/_speciality> ?e_1 . ?e_1 <pred:name> "midfielder" . } UNION { ?e <pred:name> "Larry Miller" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1946-04-04"^^xsd:date . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: midfielder
function: Relate
dependencies: 0
inputs: position played on team / speciality
backward
function: Find
inputs: Stephen King
function: And
dependencies: 1
2
function: Find
inputs: Larry Miller
function: FilterDate
dependencies: 4
inputs: date of birth
1946-04-04
=
function: SelectBetween
dependencies: 3
5
inputs: height
less
Answer: Stephen King