Question: Did Roger Federer or Rafael Nadal win less prize money?
Choices:
William Henry Harrison
Rahul Dev Burman
Simon Cowell
David Byrne
Richard Gere
Roger Federer
Paul Simon
Rafael Nadal
Sylvester Stallone
James E. Reilly
Program:
function: Find
inputs: Roger Federer
function: Find
inputs: Rafael Nadal
function: SelectBetween
dependencies: 0
1
inputs: prize money
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Roger Federer" .  } UNION { ?e <pred:name> "Rafael Nadal" .  } ?e <prize_money> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Rafael Nadal