Question: Does Santa Clara County or Santa Cruz County (the one that is located in or next to Pacific Ocean) have less area?
Choices:
Santa Clara County
San Mateo County
Santa Cruz County
Mariposa County
Contra Costa County
Tuolumne County
San Diego County
Tulare County
Solano County
Alameda County
Program:
function: Find
inputs: Santa Clara County
function: Find
inputs: Pacific Ocean
function: Relate
dependencies: 1
inputs: located in or next to body of water
backward
function: Find
inputs: Santa Cruz County
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Santa Clara County" .  } UNION { ?e <pred:name> "Santa Cruz County" . ?e <located_in_or_next_to_body_of_water> ?e_1 . ?e_1 <pred:name> "Pacific Ocean" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Santa Cruz County