Question: Which baseball type sports team is headquartered in Fukuoka Prefecture?
Choices:
Colorado Rockies
Cleveland Indians
Saitama Seibu Lions
Texas Rangers
Los Angeles Dodgers
Houston Astros
San Diego Padres
Fukuoka SoftBank Hawks
Miami Marlins
Chunichi Dragons
Program:
function: Find
inputs: Fukuoka Prefecture
function: Relate
dependencies: 0
inputs: headquarters location
backward
function: FilterConcept
dependencies: 1
inputs: baseball team
function: Find
inputs: baseball
function: Relate
dependencies: 3
inputs: sport
backward
function: FilterConcept
dependencies: 4
inputs: baseball team
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "baseball team" . ?e <headquarters_location> ?e_1 . ?e_1 <pred:name> "Fukuoka Prefecture" .  ?e <sport> ?e_2 . ?e_2 <pred:name> "baseball" .  }
Answer: Fukuoka SoftBank Hawks