Question: Does Céline Dion or Tom Brady (who is of the White American ethnic group) have the higher net worth?
Choices:
Sylvester Stallone
Céline Dion
Rahul Dev Burman
David Byrne
Paul Simon
Richard Gere
Max Fleischer
Tom Brady
Simon Cowell
William Henry Harrison
Program:
function: Find
inputs: Céline Dion
function: Find
inputs: White American
function: Relate
dependencies: 1
inputs: ethnic group
backward
function: Find
inputs: Tom Brady
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: net worth
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Céline Dion" .  } UNION { ?e <pred:name> "Tom Brady" . ?e <ethnic_group> ?e_1 . ?e_1 <pred:name> "White American" .   } ?e <net_worth> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Céline Dion