title: Bigquery: Select top 3 with Group By condition
body: <p>I have a table like this</p>
  
  <pre><code>type    Total
   A       100
   A       123
   A       154
   A       50
   A       54
   B       200
   B       166
   B       423
   B       342
   B       213
   C       520
   C       130
   C       234
   C       512
  </code></pre>
  
  <p>I want to select the top 3 total by groups. How can i do it?</p>