Question: Which one has the lower net worth, Bradley Cooper (the one that is educated at The New School) or Kim Kardashian?
Choices:
Bradley Cooper
Paul Simon
Rahul Dev Burman
Simon Cowell
Sylvester Stallone
Kim Kardashian
David Byrne
Richard Gere
William Henry Harrison
Max Fleischer
Program:
function: Find
inputs: The New School
function: Relate
dependencies: 0
inputs: educated at
backward
function: Find
inputs: Bradley Cooper
function: And
dependencies: 1
2
function: Find
inputs: Kim Kardashian
function: SelectBetween
dependencies: 3
4
inputs: net worth
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bradley Cooper" . ?e <educated_at> ?e_1 . ?e_1 <pred:name> "The New School" .   } UNION { ?e <pred:name> "Kim Kardashian" .  } ?e <net_worth> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Bradley Cooper