Question: Is Mel Gibson (who is related to the sport of basketball) or Neil Young (whose date of birth is 1944-02-17) shorter in height?
Choices:
William Henry Harrison
James E. Reilly
Richard Gere
Neil Young
Mel Gibson
Simon Cowell
Sylvester Stallone
David Byrne
Max Fleischer
Rahul Dev Burman
Program:
function: Find
inputs: basketball
function: Relate
dependencies: 0
inputs: sport
backward
function: Find
inputs: Mel Gibson
function: And
dependencies: 1
2
function: Find
inputs: Neil Young
function: FilterDate
dependencies: 4
inputs: date of birth
1944-02-17
=
function: SelectBetween
dependencies: 3
5
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mel Gibson" . ?e <sport> ?e_1 . ?e_1 <pred:name> "basketball" . } UNION { ?e <pred:name> "Neil Young" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1944-02-17"^^xsd:date . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Neil Young