Question: Which is shorter, Brian Jones whose birth name is Brian Keith Jones or Kevin O'Connell that is related to American football?
Choices:
Richard Gere
Max Fleischer
Simon Cowell
Rahul Dev Burman
James E. Reilly
Kevin O'Connell
Sylvester Stallone
Brian Jones
William Henry Harrison
Paul Simon
Answer: Brian Jones
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Brian Jones" . ?e <birth_name> ?pv_1 . ?pv_1 <pred:value> "Brian Keith Jones" . } UNION { ?e <pred:name> "Kevin O'Connell" . ?e <sport> ?e_1 . ?e_1 <pred:name> "American football" . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Brian Jones
function: FilterStr
dependencies: 0
inputs: birth name
Brian Keith Jones
function: Find
inputs: American football
function: Relate
dependencies: 2
inputs: sport
backward
function: Find
inputs: Kevin O'Connell
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: height
less