Question: Which FIPS 10-4 (countries and regions) code designates the Canadian province with Fredericton as its capital?
Choices:
US41
CA04
NL15
MT
MU
MC
US46
NZF5
BX
CM
Answer: CA04
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "province of Canada" . ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Fredericton" .  ?e <FIPS_10-4_(countries_and_regions)> ?pv .  }
Program:
function: Find
inputs: Fredericton
function: Relate
dependencies: 0
inputs: capital of
forward
function: FilterConcept
dependencies: 1
inputs: province of Canada
function: QueryAttr
dependencies: 2
inputs: FIPS 10-4 (countries and regions)