Question: Who is taller, Stephen Colbert (the one that has the religion Catholic Church) or Bill Fagerbakke?
Choices:
Stephen Colbert
Richard Gere
David Byrne
Rahul Dev Burman
James E. Reilly
Simon Cowell
Bill Fagerbakke
Paul Simon
Sylvester Stallone
Max Fleischer
Program:
function: Find
inputs: Catholic Church
function: Relate
dependencies: 0
inputs: religion
backward
function: Find
inputs: Stephen Colbert
function: And
dependencies: 1
2
function: Find
inputs: Bill Fagerbakke
function: SelectBetween
dependencies: 3
4
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Stephen Colbert" . ?e <religion> ?e_1 . ?e_1 <pred:name> "Catholic Church" .   } UNION { ?e <pred:name> "Bill Fagerbakke" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Bill Fagerbakke