title: Activerecord query help me
body: <p>How can I do query in <code>activerecord</code> like this:</p>
  
  <pre><code>SELECT col1, COUNT(col1) AS count FROM tab1 
  WHERE col2='sometext' 
  GROUP BY col1 
  ORDER BY count DESC 
  LIMIT 10
  </code></pre>
  
  <p>Expected Output:</p>
  
  <pre><code>col1    count
  --------------
  name1   247
  name5   182
  name4   96
  </code></pre>