Question: Which one is smaller, Amy Winehouse or Liam O'Brien (midfielder)?
Choices:
Paul Simon
Amy Winehouse
David Byrne
Rahul Dev Burman
Sylvester Stallone
Max Fleischer
William Henry Harrison
Simon Cowell
Richard Gere
Liam O'Brien
Program:
function: Find
inputs: Amy Winehouse
function: Find
inputs: midfielder
function: Relate
dependencies: 1
inputs: position played on team / speciality
backward
function: Find
inputs: Liam O'Brien
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Amy Winehouse" .  } UNION { ?e <pred:name> "Liam O'Brien" . ?e <position_played_on_team_/_speciality> ?e_1 . ?e_1 <pred:name> "midfielder" .   } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Amy Winehouse