Question: Who has more net worth, David Letterman or Tom Brady (the one that was born in San Mateo)?
Choices:
James E. Reilly
David Byrne
David Letterman
Sylvester Stallone
Richard Gere
Rahul Dev Burman
Simon Cowell
Max Fleischer
Paul Simon
William Henry Harrison
Answer: David Letterman
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "David Letterman" .  } UNION { ?e <pred:name> "Tom Brady" . ?e <place_of_birth> ?e_1 . ?e_1 <pred:name> "San Mateo" .   } ?e <net_worth> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: David Letterman
function: Find
inputs: San Mateo
function: Relate
dependencies: 1
inputs: place of birth
backward
function: Find
inputs: Tom Brady
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: net worth
greater