Question: Which has less mass, Chuck Connors who is in the United States Army or Chris Carter of the Boston Red Sox?
Choices:
Chuck Connors
Chris Carter
David Byrne
William Henry Harrison
Simon Cowell
Sylvester Stallone
Richard Gere
Max Fleischer
Paul Simon
James E. Reilly
Program:
function: Find
inputs: United States Army
function: Relate
dependencies: 0
inputs: military branch
backward
function: Find
inputs: Chuck Connors
function: And
dependencies: 1
2
function: Find
inputs: Boston Red Sox
function: Relate
dependencies: 4
inputs: member of sports team
backward
function: Find
inputs: Chris Carter
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: mass
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chuck Connors" . ?e <military_branch> ?e_1 . ?e_1 <pred:name> "United States Army" .   } UNION { ?e <pred:name> "Chris Carter" . ?e <member_of_sports_team> ?e_2 . ?e_2 <pred:name> "Boston Red Sox" .  } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Chuck Connors