title: Sparql query using ASK WHERE based on COUNT result
body: <p>I have the following basic query, which retrieves how many paintings were done by an artist</p>
  
  <pre><code>PREFIX dc: &lt;http://purl.org/dc/terms/&gt;  
  SELECT (COUNT(?numberOfPaintings) AS ?howMany)  
  WHERE  {  ?numberOfPaintings dc:creator "Artists_Name" . }
  </code></pre>
  
  <p>The variable <code>?howMany</code> returns, let's say 20 (paintings) — so far, so good. I'd like to create another query that would use <code>ASK WHERE</code> to check whether the artist has painted more than 10 paintings, with an expected result of <code>true</code> or <code>false</code>.</p>
  
  <p>I have tried using <code>?numberOfPaintings &gt; 10</code> in the <code>ASK</code> portion of the query and I know I still need to do the <code>COUNT</code>, but so far I have only seen the <code>&gt;</code> operator in the context of the <code>FILTER</code> function so I am not sure how to use it in other situations such as this one.</p>