{
  "columns": [
    "sum(invoiceAmount) as totalAmount",
    "count(invoiceId) as billCount",
    "temporaryAverage"
  ],
  "calculatedFields": [
    {
      "name": "temporaryAverage",
      "expression": "sum(invoiceAmount) / nullif(count(invoiceId), 0)"
    }
  ],
  "slice": [
    {
      "field": "invoiceDate",
      "op": "[)",
      "value": [
        "1990-01-01",
        "1991-01-01"
      ]
    }
  ],
  "limit": 2
}