Question: Who weighs less, Keith Andrews or Charlie Daniels from Chesterfield F.C.
Choices:
Charlie Daniels
Sylvester Stallone
Paul Simon
William Henry Harrison
Simon Cowell
Richard Gere
James E. Reilly
Rahul Dev Burman
Max Fleischer
David Byrne
Program:
function: Find
inputs: Chesterfield F.C.
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Charlie Daniels
function: And
dependencies: 1
2
function: Find
inputs: Keith Andrews
function: SelectBetween
dependencies: 3
4
inputs: mass
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Charlie Daniels" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Chesterfield F.C." .   } UNION { ?e <pred:name> "Keith Andrews" .  } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Charlie Daniels