title: Filter a simple array with JMESPath
body: <p>I'm trying to filter a plain list I get from the Azure CLI, and am struggling to construct a query that filters the list properly. An example which encapsulates what I'm trying to accomplish would be trying to filter the list <code>[1, 2, 3, 4, 5]</code> and attempting to get all values greater than 2.</p>
  
  <p>Using jq, I can do this like so: <code>echo "[1, 2, 3, 4, 5]" | jq "map(select(. &gt; 2))"</code> giving <code>[3, 4, 5 ]</code>. The trouble comes from not being able to indicate the "current element" in JMESPath as far as I can tell, without having a particular key to refer to.</p>
  
  <p>How would I go about filtering a simple list like this using a JMESPath query?</p>