title: dynamodb is it possible to query on composite partition key and composite sort key
body: <p>Consider you have table with keys:<br />
  <code>partition key</code> (composite string concat) : <code>id_number-zip_code</code><br />
  <code>sort key</code> (composite string concat) : <code>foo_id-created_at</code></p>
  <p>and some other table attributes:<br />
  <code>details1: String</code><br />
  <code>details2: String</code></p>
  <p>Now I want to have two types of queries:</p>
  <ol>
  <li>Which bring all records which match for a specific <code>id_number-zip code</code> and a specific <code>foo_id</code>,
  but having the records sorted by <code>created_at</code> from the last date. (asc or desc- not sure)</li>
  <li>Bring all records for specific <code>id_number-zip code</code>, but having records that are just in range of <code>foo_id</code> between <code>1</code> to <code>5</code> string values and created_at in last month only.</li>
  </ol>
  <p>Is it possible to do such queries in dynamo given current keys design?<br />
  Please give some example if possible (using <code>boto3</code>)</p>