Question: Who is taller, James Brown (the one whose date of birth is 1970-01-03) or Chris Brown (the one whose position is defensive back)?
Choices:
David Byrne
Richard Gere
Paul Simon
William Henry Harrison
Max Fleischer
Chris Brown
James Brown
Simon Cowell
Sylvester Stallone
Rahul Dev Burman
Program:
function: Find
inputs: James Brown
function: FilterDate
dependencies: 0
inputs: date of birth
1970-01-03
=
function: Find
inputs: defensive back
function: Relate
dependencies: 2
inputs: position played on team / speciality
backward
function: Find
inputs: Chris Brown
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "James Brown" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1970-01-03"^^xsd:date . } UNION { ?e <pred:name> "Chris Brown" . ?e <position_played_on_team_/_speciality> ?e_1 . ?e_1 <pred:name> "defensive back" . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: James Brown