Question: What is the local dialing code of the county town whose postal code is OX postcode area (in the country of the United Kingdom)?
Choices:
08843
850
514
08740
01865
496
0471
810
486
01202
Answer: 01865
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county town" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "OX postcode area" . [ <pred:fact_h> ?e ; <pred:fact_r> <postal_code> ; <pred:fact_t> ?pv_1 ] <country> ?qpv . ?qpv <pred:value> "United Kingdom" . ?e <local_dialing_code> ?pv .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: postal code
OX postcode area
function: QFilterStr
dependencies: 1
inputs: country
United Kingdom
function: FilterConcept
dependencies: 2
inputs: county town
function: QueryAttr
dependencies: 3
inputs: local dialing code