Question: Which landform has an FIPS 10-4 (countries and regions) of BF15 and is an administrative division of Bahamas (which has diplomatic relations with Taiwan)?
Choices:
Guernsey
Hawaii
Staten Island
Tasmania
Long Island
Newfoundland
Puerto Rico
Trinidad
Ireland
Cyprus
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: FIPS 10-4 (countries and regions)
BF15
function: FilterConcept
dependencies: 1
inputs: landform
function: Find
inputs: Taiwan
function: Relate
dependencies: 3
inputs: diplomatic relation
backward
function: Find
inputs: Bahamas
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 7
inputs: landform
function: And
dependencies: 2
8
function: What
dependencies: 9
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "landform" . ?e <FIPS_10-4_(countries_and_regions)> ?pv . ?pv <pred:value> "BF15" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Bahamas" . ?e_1 <diplomatic_relation> ?e_2 . ?e_2 <pred:name> "Taiwan" .  }
Answer: Long Island