Question: What is the FIPS 10-4 (countries and regions) for the prefecture of Japan that is the twinned administrative body of Hawaii (that is the twinned administrative body of Hiroshima Prefecture), starting in the year 1997?
Choices:
CA07
JA11
AF
SC
UKY6
MJ
CA02
NG
SZ
UKK4
Answer: JA11
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "prefecture of Japan" . ?e <twinned_administrative_body> ?e_1 . ?e_1 <pred:name> "Hawaii" . ?e_2 <twinned_administrative_body> ?e_1 . ?e_2 <pred:name> "Hiroshima Prefecture" .  [ <pred:fact_h> ?e ; <pred:fact_r> <twinned_administrative_body> ; <pred:fact_t> ?e_1 ] <start_time> ?qpv . ?qpv <pred:year> 1997 . ?e <FIPS_10-4_(countries_and_regions)> ?pv .  }
Program:
function: Find
inputs: Hiroshima Prefecture
function: Relate
dependencies: 0
inputs: twinned administrative body
forward
function: Find
inputs: Hawaii
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: twinned administrative body
backward
function: QFilterYear
dependencies: 4
inputs: start time
1997
=
function: FilterConcept
dependencies: 5
inputs: prefecture of Japan
function: QueryAttr
dependencies: 6
inputs: FIPS 10-4 (countries and regions)