Question: What is the county of California having the Los Angeles in the United States of America?
Choices:
Alameda County
Nevada County
Butte County
Plumas County
Merced County
Los Angeles County
Tulare County
Contra Costa County
San Diego County
San Mateo County
Program:
function: Find
inputs: Los Angeles
function: Relate
dependencies: 0
inputs: capital of
forward
function: FilterConcept
dependencies: 1
inputs: county of California
function: Find
inputs: United States of America
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: county of California
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of California" . ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Los Angeles" .  ?e <country> ?e_2 . ?e_2 <pred:name> "United States of America" .  }
Answer: Los Angeles County