Question: Who weighs more, Keith Allen (the one that is the general manager of Philadelphia Flyers) or Bruce Campbell (the one that is a member of Oakland Raiders)?
Choices:
Bruce Campbell
Rahul Dev Burman
David Byrne
Max Fleischer
Richard Gere
Sylvester Stallone
William Henry Harrison
Keith Allen
James E. Reilly
Simon Cowell
Program:
function: Find
inputs: Philadelphia Flyers
function: Relate
dependencies: 0
inputs: general manager
forward
function: Find
inputs: Keith Allen
function: And
dependencies: 1
2
function: Find
inputs: Oakland Raiders
function: Relate
dependencies: 4
inputs: member of sports team
backward
function: Find
inputs: Bruce Campbell
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: mass
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Keith Allen" . ?e_1 <general_manager> ?e . ?e_1 <pred:name> "Philadelphia Flyers" .   } UNION { ?e <pred:name> "Bruce Campbell" . ?e <member_of_sports_team> ?e_2 . ?e_2 <pred:name> "Oakland Raiders" .  } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Bruce Campbell