Question: Which one, Stephen Colbert (the one that has the occupation of screenwriter) or Chris Martin (the one that plays the instrument guitar), has less height?
Choices:
Max Fleischer
Sylvester Stallone
Richard Gere
James E. Reilly
Stephen Colbert
William Henry Harrison
Simon Cowell
Paul Simon
Rahul Dev Burman
Chris Martin
Answer: Stephen Colbert
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Stephen Colbert" . ?e <occupation> ?e_1 . ?e_1 <pred:name> "screenwriter" .   } UNION { ?e <pred:name> "Chris Martin" . ?e <instrument> ?e_2 . ?e_2 <pred:name> "guitar" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: screenwriter
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Stephen Colbert
function: And
dependencies: 1
2
function: Find
inputs: guitar
function: Relate
dependencies: 4
inputs: instrument
backward
function: Find
inputs: Chris Martin
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: height
less