Question: Who is worth more, Robert Downey Jr. or Diane Sawyer?
Choices:
Diane Sawyer
James E. Reilly
David Byrne
Richard Gere
Rahul Dev Burman
Sylvester Stallone
William Henry Harrison
Robert Downey Jr.
Paul Simon
Simon Cowell
Program:
function: Find
inputs: Robert Downey Jr.
function: Find
inputs: Diane Sawyer
function: SelectBetween
dependencies: 0
1
inputs: net worth
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Robert Downey Jr." .  } UNION { ?e <pred:name> "Diane Sawyer" .  } ?e <net_worth> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Robert Downey Jr.