Question: Which one is bulkier, Terry Crews or Kevin McCarthy (the one that is related to sport ice hockey)?
Choices:
Paul Simon
David Byrne
Sylvester Stallone
Richard Gere
James E. Reilly
Terry Crews
Simon Cowell
Kevin McCarthy
Max Fleischer
Rahul Dev Burman
Program:
function: Find
inputs: ice hockey
function: Relate
dependencies: 0
inputs: sport
backward
function: Find
inputs: Kevin McCarthy
function: And
dependencies: 1
2
function: Find
inputs: Terry Crews
function: SelectBetween
dependencies: 3
4
inputs: mass
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kevin McCarthy" . ?e <sport> ?e_1 . ?e_1 <pred:name> "ice hockey" .   } UNION { ?e <pred:name> "Terry Crews" .  } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Terry Crews