Question: Which is larger in area, Orange County (located near the Pacific Ocean) or Tulare County?
Choices:
San Luis Obispo County
Tuolumne County
Contra Costa County
San Diego County
Solano County
San Mateo County
Tulare County
Alameda County
Butte County
Orange County
Program:
function: Find
inputs: Pacific Ocean
function: Relate
dependencies: 0
inputs: located in or next to body of water
backward
function: Find
inputs: Orange County
function: And
dependencies: 1
2
function: Find
inputs: Tulare County
function: SelectBetween
dependencies: 3
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Orange County" . ?e <located_in_or_next_to_body_of_water> ?e_1 . ?e_1 <pred:name> "Pacific Ocean" .   } UNION { ?e <pred:name> "Tulare County" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Tulare County