title: Reproduce Pivot table with QUERY formula
body: <p>I have a sample <a href="https://docs.google.com/spreadsheet/ccc?key=0AozvCNI02VmpdFBsVkxOQ3NENVZ1djhxVmZUNUdtY0E#gid=0" rel="nofollow">spreadsheet here</a> and there is report in Sheet2 using query <code>=QUERY(Sheet1!A1:D13; "select A, B, C order by A, B, C", 1)</code> and report in Sheet3 using in build Google spreadsheet pivot table.</p>
  
  <p>How to arrive a same format to pivot table in sheet3 as in Sheet2.</p>