{
  "data": {
    "debug": {
      "durationMs": 5,
      "extra": {
        "aggSql": "select null \"artist$id\",\n       null \"artist$caption\",\n       null \"totalAmount\",\n       null \"quantity\",\n       count(*) \"total\"\nfrom (select\td5.ArtistId \"artist$id\",\td6.Name \"artist$caption\",\tSUM(t1.UnitPrice * t1.Quantity) \"totalAmount\",\tSUM(t1.Quantity) \"quantity\"\tfrom InvoiceLine t1\t left join Track d3  on t1.TrackId=d3.TrackId left join Album d5  on d3.AlbumId=d5.AlbumId left join Artist d6  on d5.ArtistId=d6.ArtistId left join Invoice d1  on t1.InvoiceId=d1.InvoiceId where  1=1  and \td1.InvoiceDate >=?  and \td1.InvoiceDate <? \tgroup by d5.ArtistId,\td6.Name) tx",
        "params": [
          "2012-01-01 00:00:00",
          "2013-01-01 00:00:00"
        ],
        "sql": "select\td5.ArtistId \"artist$id\",\td6.Name \"artist$caption\",\tSUM(t1.UnitPrice * t1.Quantity) \"totalAmount\",\tSUM(t1.Quantity) \"quantity\"\tfrom InvoiceLine t1\t left join Track d3  on t1.TrackId=d3.TrackId left join Album d5  on d3.AlbumId=d5.AlbumId left join Artist d6  on d5.ArtistId=d6.ArtistId left join Invoice d1  on t1.InvoiceId=d1.InvoiceId where  1=1  and \td1.InvoiceDate >=?  and \td1.InvoiceDate <? \tgroup by d5.ArtistId,\td6.Name order by SUM(t1.UnitPrice * t1.Quantity) desc,\td5.ArtistId asc"
      },
      "normalized": {
        "groupBy": [
          {
            "field": "artist$id"
          },
          {
            "field": "artist$caption"
          },
          {
            "agg": "SUM",
            "field": "totalAmount"
          },
          {
            "agg": "SUM",
            "field": "quantity"
          }
        ],
        "orderBy": [
          {
            "dir": "desc",
            "field": "totalAmount",
            "nullFirst": false,
            "nullLast": false
          },
          {
            "dir": "asc",
            "field": "artist$id",
            "nullFirst": false,
            "nullLast": false
          }
        ],
        "slice": [
          {
            "field": "invoice$invoiceDate",
            "op": "[)",
            "value": [
              "2012-01-01",
              "2013-01-01"
            ]
          }
        ]
      }
    },
    "hasNext": false,
    "items": [
      {
        "artist$caption": "Iron Maiden",
        "artist$id": 90,
        "quantity": 34,
        "totalAmount": 33.66
      },
      {
        "artist$caption": "U2",
        "artist$id": 150,
        "quantity": 28,
        "totalAmount": 27.72
      },
      {
        "artist$caption": "The Office",
        "artist$id": 156,
        "quantity": 13,
        "totalAmount": 25.87
      },
      {
        "artist$caption": "Metallica",
        "artist$id": 50,
        "quantity": 26,
        "totalAmount": 25.74
      },
      {
        "artist$caption": "Led Zeppelin",
        "artist$id": 22,
        "quantity": 24,
        "totalAmount": 23.759999999999998
      },
      {
        "artist$caption": "Lost",
        "artist$id": 149,
        "quantity": 10,
        "totalAmount": 19.9
      },
      {
        "artist$caption": "Os Paralamas Do Sucesso",
        "artist$id": 113,
        "quantity": 14,
        "totalAmount": 13.86
      },
      {
        "artist$caption": "Antônio Carlos Jobim",
        "artist$id": 6,
        "quantity": 11,
        "totalAmount": 10.89
      },
      {
        "artist$caption": "Queen",
        "artist$id": 51,
        "quantity": 11,
        "totalAmount": 10.89
      },
      {
        "artist$caption": "Battlestar Galactica (Classic)",
        "artist$id": 158,
        "quantity": 5,
        "totalAmount": 9.95
      },
      {
        "artist$caption": "The Who",
        "artist$id": 144,
        "quantity": 9,
        "totalAmount": 8.91
      },
      {
        "artist$caption": "Pearl Jam",
        "artist$id": 118,
        "quantity": 8,
        "totalAmount": 7.92
      },
      {
        "artist$caption": "R.E.M.",
        "artist$id": 124,
        "quantity": 8,
        "totalAmount": 7.92
      },
      {
        "artist$caption": "Soundgarden",
        "artist$id": 132,
        "quantity": 8,
        "totalAmount": 7.92
      },
      {
        "artist$caption": "Lenny Kravitz",
        "artist$id": 100,
        "quantity": 7,
        "totalAmount": 6.93
      },
      {
        "artist$caption": "Tim Maia",
        "artist$id": 145,
        "quantity": 7,
        "totalAmount": 6.93
      },
      {
        "artist$caption": "Battlestar Galactica",
        "artist$id": 147,
        "quantity": 3,
        "totalAmount": 5.97
      },
      {
        "artist$caption": "Heroes",
        "artist$id": 148,
        "quantity": 3,
        "totalAmount": 5.97
      },
      {
        "artist$caption": "Body Count",
        "artist$id": 13,
        "quantity": 6,
        "totalAmount": 5.9399999999999995
      },
      {
        "artist$caption": "Red Hot Chili Peppers",
        "artist$id": 127,
        "quantity": 6,
        "totalAmount": 5.9399999999999995
      },
      {
        "artist$caption": "Titãs",
        "artist$id": 146,
        "quantity": 6,
        "totalAmount": 5.9399999999999995
      },
      {
        "artist$caption": "Van Halen",
        "artist$id": 152,
        "quantity": 6,
        "totalAmount": 5.9399999999999995
      },
      {
        "artist$caption": "Chico Science & Nação Zumbi",
        "artist$id": 18,
        "quantity": 5,
        "totalAmount": 4.95
      },
      {
        "artist$caption": "Ozzy Osbourne",
        "artist$id": 114,
        "quantity": 5,
        "totalAmount": 4.95
      },
      {
        "artist$caption": "Smashing Pumpkins",
        "artist$id": 131,
        "quantity": 5,
        "totalAmount": 4.95
      },
      {
        "artist$caption": "The Rolling Stones",
        "artist$id": 142,
        "quantity": 5,
        "totalAmount": 4.95
      },
      {
        "artist$caption": "Amy Winehouse",
        "artist$id": 252,
        "quantity": 5,
        "totalAmount": 4.95
      },
      {
        "artist$caption": "Audioslave",
        "artist$id": 8,
        "quantity": 4,
        "totalAmount": 3.96
      },
      {
        "artist$caption": "Black Sabbath",
        "artist$id": 12,
        "quantity": 4,
        "totalAmount": 3.96
      },
      {
        "artist$caption": "Caetano Veloso",
        "artist$id": 16,
        "quantity": 4,
        "totalAmount": 3.96
      },
      {
        "artist$caption": "Various Artists",
        "artist$id": 21,
        "quantity": 4,
        "totalAmount": 3.96
      },
      {
        "artist$caption": "Jamiroquai",
        "artist$id": 92,
        "quantity": 4,
        "totalAmount": 3.96
      },
      {
        "artist$caption": "R.E.M. Feat. Kate Pearson",
        "artist$id": 122,
        "quantity": 4,
        "totalAmount": 3.96
      },
      {
        "artist$caption": "The Black Crowes",
        "artist$id": 137,
        "quantity": 4,
        "totalAmount": 3.96
      },
      {
        "artist$caption": "AC/DC",
        "artist$id": 1,
        "quantity": 3,
        "totalAmount": 2.9699999999999998
      },
      {
        "artist$caption": "Bruce Dickinson",
        "artist$id": 14,
        "quantity": 3,
        "totalAmount": 2.9699999999999998
      },
      {
        "artist$caption": "Chico Buarque",
        "artist$id": 17,
        "quantity": 3,
        "totalAmount": 2.9699999999999998
      },
      {
        "artist$caption": "Cidade Negra",
        "artist$id": 19,
        "quantity": 3,
        "totalAmount": 2.9699999999999998
      },
      {
        "artist$caption": "Milton Nascimento",
        "artist$id": 42,
        "quantity": 3,
        "totalAmount": 2.9699999999999998
      },
      {
        "artist$caption": "James Brown",
        "artist$id": 91,
        "quantity": 3,
        "totalAmount": 2.9699999999999998
      },
      {
        "artist$caption": "Legião Urbana",
        "artist$id": 99,
        "quantity": 3,
        "totalAmount": 2.9699999999999998
      },
      {
        "artist$caption": "Lulu Santos",
        "artist$id": 101,
        "quantity": 3,
        "totalAmount": 2.9699999999999998
      },
      {
        "artist$caption": "Nirvana",
        "artist$id": 110,
        "quantity": 3,
        "totalAmount": 2.9699999999999998
      },
      {
        "artist$caption": "Olodum",
        "artist$id": 112,
        "quantity": 3,
        "totalAmount": 2.9699999999999998
      },
      {
        "artist$caption": "The Cult",
        "artist$id": 139,
        "quantity": 3,
        "totalAmount": 2.9699999999999998
      },
      {
        "artist$caption": "Aquaman",
        "artist$id": 159,
        "quantity": 1,
        "totalAmount": 1.99
      },
      {
        "artist$caption": "Alanis Morissette",
        "artist$id": 4,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "BackBeat",
        "artist$id": 9,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "Black Label Society",
        "artist$id": 11,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "Buddy Guy",
        "artist$id": 15,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "O Rappa",
        "artist$id": 36,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "Jorge Ben",
        "artist$id": 46,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "Kiss",
        "artist$id": 52,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "Spyro Gyra",
        "artist$id": 53,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "Jimi Hendrix",
        "artist$id": 94,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "João Suplicy",
        "artist$id": 97,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "Marisa Monte",
        "artist$id": 103,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "Marvin Gaye",
        "artist$id": 104,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "Motörhead",
        "artist$id": 106,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "Mötley Crüe",
        "artist$id": 109,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "O Terço",
        "artist$id": 111,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "Page & Plant",
        "artist$id": 115,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "Passengers",
        "artist$id": 116,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "Planet Hemp",
        "artist$id": 121,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "Raimundos",
        "artist$id": 125,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "Raul Seixas",
        "artist$id": 126,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "Rush",
        "artist$id": 128,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "Skank",
        "artist$id": 130,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "Stevie Ray Vaughan & Double Trouble",
        "artist$id": 133,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "Stone Temple Pilots",
        "artist$id": 134,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "System Of A Down",
        "artist$id": 135,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "The Clash",
        "artist$id": 138,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "The Police",
        "artist$id": 141,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "The Tea Party",
        "artist$id": 143,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "UB40",
        "artist$id": 151,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "Velvet Revolver",
        "artist$id": 153,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "Zeca Pagodinho",
        "artist$id": 155,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "House Of Pain",
        "artist$id": 180,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "Michael Tilson Thomas & San Francisco Symphony",
        "artist$id": 245,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "Berliner Philharmoniker & Herbert Von Karajan",
        "artist$id": 248,
        "quantity": 2,
        "totalAmount": 1.98
      },
      {
        "artist$caption": "Accept",
        "artist$id": 2,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Aerosmith",
        "artist$id": 3,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Alice In Chains",
        "artist$id": 5,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Apocalyptica",
        "artist$id": 7,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Billy Cobham",
        "artist$id": 10,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Cláudio Zoli",
        "artist$id": 20,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Frank Zappa & Captain Beefheart",
        "artist$id": 23,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Marcos Valle",
        "artist$id": 24,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Santana",
        "artist$id": 59,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Miles Davis",
        "artist$id": 68,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Vinícius De Moraes",
        "artist$id": 72,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "JET",
        "artist$id": 93,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Joe Satriani",
        "artist$id": 95,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Jota Quest",
        "artist$id": 96,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Judas Priest",
        "artist$id": 98,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Marillion",
        "artist$id": 102,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Men At Work",
        "artist$id": 105,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Mônica Marianno",
        "artist$id": 108,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Paul D'Ianno",
        "artist$id": 117,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Pink Floyd",
        "artist$id": 120,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Terry Bozzio, Tony Levin & Steve Stevens",
        "artist$id": 136,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "The Doors",
        "artist$id": 140,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Scorpions",
        "artist$id": 179,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "The Posies",
        "artist$id": 200,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Temple of the Dog",
        "artist$id": 204,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Chris Cornell",
        "artist$id": 205,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Yo-Yo Ma",
        "artist$id": 212,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Academy of St. Martin in the Fields & Sir Neville Marriner",
        "artist$id": 214,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Sir Georg Solti & Wiener Philharmoniker",
        "artist$id": 221,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Chicago Symphony Orchestra & Fritz Reiner",
        "artist$id": 233,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Orchestra of The Age of Enlightenment",
        "artist$id": 234,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Emanuel Ax, Eugene Ormandy & Philadelphia Orchestra",
        "artist$id": 235,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Berliner Philharmoniker & Hans Rosbaud",
        "artist$id": 237,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Felix Schmidt, London Symphony Orchestra & Rafael Frühbeck de Burgos",
        "artist$id": 241,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Antal Doráti & London Symphony Orchestra",
        "artist$id": 243,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Academy of St. Martin in the Fields, Sir Neville Marriner & Thurston Dart",
        "artist$id": 257,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Equale Brass Ensemble, John Eliot Gardiner & Munich Monteverdi Orchestra and Choir",
        "artist$id": 263,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Göteborgs Symfoniker & Neeme Järvi",
        "artist$id": 267,
        "quantity": 1,
        "totalAmount": 0.99
      },
      {
        "artist$caption": "Emerson String Quartet",
        "artist$id": 272,
        "quantity": 1,
        "totalAmount": 0.99
      }
    ],
    "pagination": {
      "hasMore": false,
      "limit": 500,
      "rangeDescription": "显示第 1-119 条，共 119 条",
      "returned": 119,
      "start": 0,
      "totalCount": 119
    },
    "schema": {
      "columns": [
        {
          "dataType": "INTEGER",
          "name": "artist$id",
          "title": "艺术家"
        },
        {
          "dataType": "TEXT",
          "name": "artist$caption",
          "title": "艺术家"
        },
        {
          "name": "totalAmount"
        },
        {
          "name": "quantity"
        }
      ],
      "summary": "按 艺术家、艺术家 分组，统计 totalAmount、quantity，返回 119 条数据"
    },
    "total": 119,
    "totalData": {
      "total": 119
    }
  },
  "diagnostics": {
    "attributes": {},
    "warnings": []
  },
  "engine": "java",
  "runtimeApiVersion": "foggy-runtime-api/v1",
  "success": true
}
