Question: Who is taller, Bill Berry of the United States of America, or Bruce Campbell who has a relationship with American football?
Choices:
Simon Cowell
Max Fleischer
Bill Berry
Bruce Campbell
James E. Reilly
William Henry Harrison
Rahul Dev Burman
Sylvester Stallone
David Byrne
Paul Simon
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country for sport
backward
function: Find
inputs: Bill Berry
function: And
dependencies: 1
2
function: Find
inputs: American football
function: Relate
dependencies: 4
inputs: sport
backward
function: Find
inputs: Bruce Campbell
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bill Berry" . ?e <country_for_sport> ?e_1 . ?e_1 <pred:name> "United States of America" .   } UNION { ?e <pred:name> "Bruce Campbell" . ?e <sport> ?e_2 . ?e_2 <pred:name> "American football" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Bruce Campbell