Question: Which Texas county that shares a border with Johnson County (population is 154707) has the largest area?
Choices:
Travis County
Johnson County
Cameron County
Dallas County
El Paso County
McLennan County
Hidalgo County
Tarrant County
Montgomery County
Brazoria County
Program:
function: Find
inputs: Johnson County
function: FilterNum
dependencies: 0
inputs: population
154707
=
function: Relate
dependencies: 1
inputs: shares border with
backward
function: FilterConcept
dependencies: 2
inputs: county of Texas
function: SelectAmong
dependencies: 3
inputs: area
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Texas" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Johnson County" . ?e_1 <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "154707"^^xsd:double . ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Dallas County