Question: Who weighs less, Kate Moss or Carlos Ruiz (the one that is a member of Toronto FC)?
Choices:
Richard Gere
David Byrne
James E. Reilly
Simon Cowell
Kate Moss
Sylvester Stallone
Paul Simon
Max Fleischer
Carlos Ruiz
Rahul Dev Burman
Program:
function: Find
inputs: Kate Moss
function: Find
inputs: Toronto FC
function: Relate
dependencies: 1
inputs: member of sports team
backward
function: Find
inputs: Carlos Ruiz
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: mass
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kate Moss" .  } UNION { ?e <pred:name> "Carlos Ruiz" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Toronto FC" .   } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Kate Moss