Question: Of the organizations headquartered in Prague (the one that is the capital of Czech Republic) which one has the smallest number of employees?
Choices: KLM
Pfizer
Sega
Entertainment One
Adobe Inc.
McDonald's
Silver Pictures
Skidmore Owings Merrill
AC Sparta Prague
Vodafone
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "organization" . ?e <headquarters_location> ?e_1 . ?e_1 <pred:name> "Prague" . ?e_2 <capital> ?e_1 . ?e_2 <pred:name> "Czech Republic" .  ?e <employees> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Czech Republic
function: Relate
dependencies: 0
inputs: capital
forward
function: Find
inputs: Prague
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: headquarters location
backward
function: FilterConcept
dependencies: 4
inputs: organization
function: SelectAmong
dependencies: 5
inputs: employees
smallest
Answer: AC Sparta Prague