Question: Who weighs more, Michael Clayton (the one that was born in Baton Rouge) or Mel Gibson (the one that is drafted by Los Angeles Lakers)?
Choices:
Paul Simon
Simon Cowell
William Henry Harrison
Sylvester Stallone
Richard Gere
Rahul Dev Burman
Mel Gibson
David Byrne
Max Fleischer
Michael Clayton
Program:
function: Find
inputs: Baton Rouge
function: Relate
dependencies: 0
inputs: place of birth
backward
function: Find
inputs: Michael Clayton
function: And
dependencies: 1
2
function: Find
inputs: Los Angeles Lakers
function: Relate
dependencies: 4
inputs: drafted by
backward
function: Find
inputs: Mel Gibson
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: mass
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Michael Clayton" . ?e <place_of_birth> ?e_1 . ?e_1 <pred:name> "Baton Rouge" .   } UNION { ?e <pred:name> "Mel Gibson" . ?e <drafted_by> ?e_2 . ?e_2 <pred:name> "Los Angeles Lakers" .  } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Michael Clayton