Question: Who weighs less, Kevin McCarthy (the one that is drafted by Philadelphia Flyers) or Chris Cooper (the one that is related to sport American football)?
Choices:
Rahul Dev Burman
Kevin McCarthy
William Henry Harrison
Simon Cowell
Chris Cooper
Max Fleischer
James E. Reilly
Paul Simon
Richard Gere
David Byrne
Program:
function: Find
inputs: Philadelphia Flyers
function: Relate
dependencies: 0
inputs: drafted by
backward
function: Find
inputs: Kevin McCarthy
function: And
dependencies: 1
2
function: Find
inputs: American football
function: Relate
dependencies: 4
inputs: sport
backward
function: Find
inputs: Chris Cooper
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: mass
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kevin McCarthy" . ?e <drafted_by> ?e_1 . ?e_1 <pred:name> "Philadelphia Flyers" .   } UNION { ?e <pred:name> "Chris Cooper" . ?e <sport> ?e_2 . ?e_2 <pred:name> "American football" .  } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Kevin McCarthy