title: Postgis ST_Contains polygon one table
body: <p>I have a postgis spatial table with polygons in it, having an id (<code>gid</code>) and a geometry column named <code>way</code> (which actually stores the polygon boundary). The tablehead looks as follows:</p>
  
  <pre><code>|| gid (integer) | way (geometry) ||
  </code></pre>
  
  <p>Every column in this table is representing a polygon. Now I want to take two specific polygons out of this table (select them by the gid) and use <code>ST_Contains()</code> to test if one is contained by the other. </p>
  
  <p>What is the SQL Syntax for this?</p>