Question: Does Montgomery County (whose Dewey Decimal Classification is 2--764153) or Dallas County (that shares a border with Denton County) have the larger land area?
Choices:
Brazoria County
Dallas County
Johnson County
El Paso County
Denton County
Montgomery County
Jefferson County
Travis County
McLennan County
Hidalgo County
Answer: Montgomery County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Montgomery County" . ?e <Dewey_Decimal_Classification> ?pv_1 . ?pv_1 <pred:value> "2--764153" . } UNION { ?e <pred:name> "Dallas County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Denton County" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Montgomery County
function: FilterStr
dependencies: 0
inputs: Dewey Decimal Classification
2--764153
function: Find
inputs: Denton County
function: Relate
dependencies: 2
inputs: shares border with
backward
function: Find
inputs: Dallas County
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: area
greater