Question: Who weighs less, Mike Watt (the one whose date of birth is 1976-03-31) or John Williams (the one that was born in Los Angeles)?
Choices:
Richard Gere
Mike Watt
John Williams
Simon Cowell
Sylvester Stallone
Rahul Dev Burman
David Byrne
James E. Reilly
Paul Simon
William Henry Harrison
Answer: Mike Watt
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mike Watt" . ?e <date_of_birth> ?pv_1 . ?pv_1 <pred:date> "1976-03-31"^^xsd:date . } UNION { ?e <pred:name> "John Williams" . ?e <place_of_birth> ?e_1 . ?e_1 <pred:name> "Los Angeles" . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Mike Watt
function: FilterDate
dependencies: 0
inputs: date of birth
1976-03-31
=
function: Find
inputs: Los Angeles
function: Relate
dependencies: 2
inputs: place of birth
backward
function: Find
inputs: John Williams
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: mass
less