Question: Which area is smaller, Monte Carlo (the one that is the residence of Novak Djokovic) or Studio City?
Choices:
Roxbury
Woodland Hills
Astoria
Van Nuys
Monte Carlo
Encino
Pacific Palisades
Jamaica
Sherman Oaks
Studio City
Program:
function: Find
inputs: Novak Djokovic
function: Relate
dependencies: 0
inputs: residence
forward
function: Find
inputs: Monte Carlo
function: And
dependencies: 1
2
function: Find
inputs: Studio City
function: SelectBetween
dependencies: 3
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Monte Carlo" . ?e_1 <residence> ?e . ?e_1 <pred:name> "Novak Djokovic" .   } UNION { ?e <pred:name> "Studio City" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Monte Carlo