Question: Who is shorter, Adam Smith (the one whose birth name is Adam James Smith) or Marc Anthony (the one whose position is midfielder)?
Choices: James E. Reilly
Sylvester Stallone
Rahul Dev Burman
Richard Gere
Simon Cowell
Adam Smith
Paul Simon
Max Fleischer
Marc Anthony
William Henry Harrison
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Adam Smith" . ?e <birth_name> ?pv_1 . ?pv_1 <pred:value> "Adam James Smith" . } UNION { ?e <pred:name> "Marc Anthony" . ?e <position_played_on_team_/_speciality> ?e_1 . ?e_1 <pred:name> "midfielder" . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Adam Smith
function: FilterStr
dependencies: 0
inputs: birth name
Adam James Smith
function: Find
inputs: midfielder
function: Relate
dependencies: 2
inputs: position played on team / speciality
backward
function: Find
inputs: Marc Anthony
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: height
less
Answer: Marc Anthony