Question: What metropolitan borough has an FIPS 10-4 (countries and regions) of UKB4 and the capital of Bradford (the one whose TOID is 4000000074540943)?
Choices:
Walsall
Sheffield
Solihull
Stockport
Bradford
Leeds
Birmingham
Rochdale
Wakefield
Bury
Answer: Bradford
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "metropolitan borough" . ?e <FIPS_10-4_(countries_and_regions)> ?pv . ?pv <pred:value> "UKB4" . ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Bradford" . ?e_1 <TOID> ?pv_1 . ?pv_1 <pred:value> "4000000074540943" .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: FIPS 10-4 (countries and regions)
UKB4
function: FilterConcept
dependencies: 1
inputs: metropolitan borough
function: Find
inputs: Bradford
function: FilterStr
dependencies: 3
inputs: TOID
4000000074540943
function: Relate
dependencies: 4
inputs: capital of
forward
function: FilterConcept
dependencies: 5
inputs: metropolitan borough
function: And
dependencies: 2
6
function: What
dependencies: 7