Question: Who weighs more, Kevin McCarthy (the one that is the citizen of Canada) or Chris Brown (the one that is educated at University of Michigan)?
Choices:
Paul Simon
James E. Reilly
Rahul Dev Burman
Sylvester Stallone
David Byrne
Simon Cowell
William Henry Harrison
Kevin McCarthy
Richard Gere
Chris Brown
Program:
function: Find
inputs: Canada
function: Relate
dependencies: 0
inputs: country of citizenship
backward
function: Find
inputs: Kevin McCarthy
function: And
dependencies: 1
2
function: Find
inputs: University of Michigan
function: Relate
dependencies: 4
inputs: educated at
backward
function: Find
inputs: Chris Brown
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: mass
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kevin McCarthy" . ?e <country_of_citizenship> ?e_1 . ?e_1 <pred:name> "Canada" .   } UNION { ?e <pred:name> "Chris Brown" . ?e <educated_at> ?e_2 . ?e_2 <pred:name> "University of Michigan" .  } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Chris Brown