Question: Which has fewer graves, Forest Lawn Memorial Park where Garry Marshall is buried or Montmartre Cemetery?
Choices:
Arlington National Cemetery
Montmartre Cemetery
Forest Lawn Memorial Park
Woodlawn Cemetery
Holy Cross Cemetery
Kensal Green Cemetery
Grove Street Cemetery
Brompton Cemetery
West Norwood Cemetery
Glasnevin Cemetery
Program:
function: Find
inputs: Garry Marshall
function: Relate
dependencies: 0
inputs: place of burial
forward
function: Find
inputs: Forest Lawn Memorial Park
function: And
dependencies: 1
2
function: Find
inputs: Montmartre Cemetery
function: SelectBetween
dependencies: 3
4
inputs: number of graves
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Forest Lawn Memorial Park" . ?e_1 <place_of_burial> ?e . ?e_1 <pred:name> "Garry Marshall" .   } UNION { ?e <pred:name> "Montmartre Cemetery" .  } ?e <number_of_graves> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Montmartre Cemetery