<?xml version="1.0" encoding="UTF-8"?>

<gazetteer-query
  xmlns="http://www.alexandria.ucsb.edu/gazetteer"
  xmlns:gml="http://www.opengis.net/gml"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation=
    "http://www.alexandria.ucsb.edu/gazetteer
       http://www.alexandria.ucsb.edu/gazetteer/protocol/gazetteer-query.xsd">

<and-not>
  <and>
    <place-status-query status="current"/>
    <name-query operator="contains-phrase"
      text="santa barbara"/>
    <footprint-query operator="overlaps">
      <gml:Box>
        <gml:coordinates>-140,30 110,35</gml:coordinates>
      </gml:Box>
    </footprint-query>
  </and>
  <or>
    <class-query thesaurus="ADL Feature Type Thesaurus"
      term="populated places"/>
    <class-query thesaurus="ADL Feature Type Thesaurus"
      term="cemeteries"/>
  </or>
</and-not>

</gazetteer-query>
