Question: Which metropolitan area, whose location is California (the one that contains the administrative division Fresno County), has an WOEID of 23511738?
Choices:
Chicago metropolitan area
Seattle metropolitan area
New Orleans metropolitan area
Greater Los Angeles Area
New York metropolitan area
San Francisco Bay Area
Portland metropolitan area
Greater St. Louis
Pittsburgh metropolitan area
Greater Houston
Program:
function: Find
inputs: Fresno County
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
backward
function: Find
inputs: California
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: metropolitan area
function: FindAll
function: FilterStr
dependencies: 6
inputs: WOEID
23511738
function: FilterConcept
dependencies: 7
inputs: metropolitan area
function: And
dependencies: 5
8
function: What
dependencies: 9
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "metropolitan area" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "California" . ?e_1 <contains_administrative_territorial_entity> ?e_2 . ?e_2 <pred:name> "Fresno County" .  ?e <WOEID> ?pv . ?pv <pred:value> "23511738" .  }
Answer: San Francisco Bay Area