title: Retrieve the subjects that have at most two properties
body: <p>I wanted to retrive subjects which have less than three properties. I tried with following query.</p>
  <pre><code>SELECT ?s
  WHERE {
   ?s ?p ?o .
  }
  group by ?s
  having (count(?p) &lt; 3)
  limit 10
  </code></pre>
  <p>But it's taking quite long time. Do we have any other optimized way to do same thing.</p>