Question: Which one has more net worth between Will Smith (the one that is famous for hip hop music) and Stephen King (the one whose Munzinger IBA is 00000019582)?
Choices: James E. Reilly
William Henry Harrison
David Byrne
Max Fleischer
Richard Gere
Sylvester Stallone
Simon Cowell
Stephen King
Paul Simon
Will Smith
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Will Smith" . ?e_1 <famous_people> ?e . ?e_1 <pred:name> "hip hop music" . } UNION { ?e <pred:name> "Stephen King" . ?e <Munzinger_IBA> ?pv_1 . ?pv_1 <pred:value> "00000019582" . } ?e <net_worth> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: hip hop music
function: Relate
dependencies: 0
inputs: famous people
forward
function: Find
inputs: Will Smith
function: And
dependencies: 1
2
function: Find
inputs: Stephen King
function: FilterStr
dependencies: 4
inputs: Munzinger IBA
00000019582
function: SelectBetween
dependencies: 3
5
inputs: net worth
greater
Answer: Stephen King