Question: How many Texas counties are located in the United States state that shares a border with Louisiana ( whose FIPS 5-2 alpha code (US states) is LA), in the subject of the Louisiana–Texas border?
Choices:
8
9
10
11
12
13
14
15
16
17
Program:
function: Find
inputs: Louisiana
function: FilterStr
dependencies: 0
inputs: FIPS 5-2 alpha code (US states)
LA
function: Relate
dependencies: 1
inputs: shares border with
forward
function: QFilterStr
dependencies: 2
inputs: statement is subject of
Louisiana–Texas border
function: FilterConcept
dependencies: 3
inputs: state of the United States
function: Relate
dependencies: 4
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 5
inputs: county of Texas
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Texas" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "state of the United States" . ?e_2 <shares_border_with> ?e_1 . ?e_2 <pred:name> "Louisiana" . ?e_2 <FIPS_5-2_alpha_code_(US_states)> ?pv_1 . ?pv_1 <pred:value> "LA" . [ <pred:fact_h> ?e_2 ; <pred:fact_r> <shares_border_with> ; <pred:fact_t> ?e_1 ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "Louisiana–Texas border" .   }
Answer: 17