{
  "columns": [
    "customerId",
    "customer$fullName",
    "sum(invoiceAmount) as totalAmount"
  ],
  "slice": [
    {
      "field": "invoiceDate",
      "op": "[)",
      "value": [
        "2012-01-01",
        "2013-01-01"
      ]
    }
  ],
  "groupBy": [
    "customerId",
    "customer$fullName"
  ],
  "having": [
    {
      "field": "totalAmount",
      "op": ">",
      "value": 20
    }
  ],
  "orderBy": [
    "-totalAmount",
    "customerId"
  ],
  "limit": 100
}