Question: Which has more net worth, Ryan Seacrest or Stephen King whose birth name is Stephen Edwin King?
Choices: Ryan Seacrest
William Henry Harrison
Richard Gere
Paul Simon
David Byrne
Simon Cowell
Stephen King
Rahul Dev Burman
Max Fleischer
James E. Reilly
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ryan Seacrest" . } UNION { ?e <pred:name> "Stephen King" . ?e <birth_name> ?pv_1 . ?pv_1 <pred:value> "Stephen Edwin King" . } ?e <net_worth> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Ryan Seacrest
function: Find
inputs: Stephen King
function: FilterStr
dependencies: 1
inputs: birth name
Stephen Edwin King
function: SelectBetween
dependencies: 0
2
inputs: net worth
greater
Answer: Stephen King