Question: Who is shorter: John Hughes (ISNI 0000 0000 7425 5226) or Alan Ball of the Dallas Cowboys?
Choices: John Hughes
William Henry Harrison
Simon Cowell
Alan Ball
David Byrne
Sylvester Stallone
Richard Gere
Max Fleischer
Paul Simon
Rahul Dev Burman
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "John Hughes" . ?e <ISNI> ?pv_1 . ?pv_1 <pred:value> "0000 0000 7425 5226" . } UNION { ?e <pred:name> "Alan Ball" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Dallas Cowboys" . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: John Hughes
function: FilterStr
dependencies: 0
inputs: ISNI
0000 0000 7425 5226
function: Find
inputs: Dallas Cowboys
function: Relate
dependencies: 2
inputs: member of sports team
backward
function: Find
inputs: Alan Ball
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: height
less
Answer: John Hughes