Question: Does Ben Johnson (the one whose date of birth is 1994-06-07) or John Adams (the one that is the citizen of Canada) have greater mass ?
Choices:
Paul Simon
David Byrne
Ben Johnson
John Adams
William Henry Harrison
Richard Gere
Sylvester Stallone
Max Fleischer
Rahul Dev Burman
James E. Reilly
Program:
function: Find
inputs: Ben Johnson
function: FilterDate
dependencies: 0
inputs: date of birth
1994-06-07
=
function: Find
inputs: Canada
function: Relate
dependencies: 2
inputs: country of citizenship
backward
function: Find
inputs: John Adams
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: mass
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ben Johnson" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1994-06-07"^^xsd:date . } UNION { ?e <pred:name> "John Adams" . ?e <country_of_citizenship> ?e_1 . ?e_1 <pred:name> "Canada" . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: John Adams