Question: What city that borders Los Angeles, in the United States, has the smallest area?
Choices:
Burbank
Culver City
Santa Monica
Torrance
Beverly Hills
Glendale
West Hollywood
Compton
Long Beach
Inglewood
Program:
function: Find
inputs: Los Angeles
function: Relate
dependencies: 0
inputs: shares border with
backward
function: FilterConcept
dependencies: 1
inputs: city of the United States
function: SelectAmong
dependencies: 2
inputs: area
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of the United States" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Los Angeles" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: West Hollywood