Question: Who is shorter, David Brown (the point guard) or Stephen King (the one that was born in 86)?
Choices:
James E. Reilly
Rahul Dev Burman
David Byrne
Richard Gere
David Brown
Max Fleischer
Stephen King
Sylvester Stallone
Paul Simon
William Henry Harrison
Answer: Stephen King
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "David Brown" . ?e <position_played_on_team_/_speciality> ?e_1 . ?e_1 <pred:name> "point guard" . } UNION { ?e <pred:name> "Stephen King" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1986-03-06"^^xsd:date . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: point guard
function: Relate
dependencies: 0
inputs: position played on team / speciality
backward
function: Find
inputs: David Brown
function: And
dependencies: 1
2
function: Find
inputs: Stephen King
function: FilterDate
dependencies: 4
inputs: date of birth
1986-03-06
=
function: SelectBetween
dependencies: 3
5
inputs: height
less