$params = {
  'cols' => [
    {
      'id' => 'dept_id',
      'value' => 'dept',
      'from' => 'depts'
    },
    {
      'id' => 'cat_id',
      'value' => 'category',
      'from' => 'categories'
    },
    {
      'col_list' => [
        {
          'id' => 'f'
        },
        {
          'id' => 'm'
        }
      ],
      'id' => 'gender',
      'from' => 'person'
    }
  ],
  'title' => 'DBIx::SQLCrosstab test',
  'op' => 'SUM',
  'rows' => [
    {
      'col' => 'country'
    },
    {
      'col' => 'loc',
      'alias' => 'location'
    }
  ],
  'col_sub_total' => 1,
  'from' => '',
  'add_colors' => 1,
  'col_total' => 1,
  'title_in_header' => 1,
  'commify' => 1,
  'op_col' => 'salary',
  'col_names' => [
    'country',
    'location',
    'pers#employee#f',
    'pers#employee#m',
    'pers#employee',
    'pers#contractor#m',
    'pers#contractor',
    'pers',
    'sales#employee#m',
    'sales#employee',
    'sales#contractor#m',
    'sales#contractor',
    'sales#consultant#f',
    'sales#consultant',
    'sales',
    'dev#employee#m',
    'dev#employee',
    'dev#consultant#f',
    'dev#consultant',
    'dev',
    'total'
  ],
  'records' => [
    [
      'Germany',
      'Berlin',
      5500,
      0,
      5500,
      0,
      0,
      5500,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      6000,
      6000,
      0,
      0,
      6000,
      11500
    ],
    [
      'Germany',
      'Bonn',
      0,
      0,
      0,
      0,
      0,
      0,
      5000,
      5000,
      0,
      0,
      0,
      0,
      5000,
      0,
      0,
      0,
      0,
      0,
      5000
    ],
    [
      'Germany',
      'Munich',
      0,
      5000,
      5000,
      0,
      0,
      5000,
      0,
      0,
      0,
      0,
      5500,
      5500,
      5500,
      0,
      0,
      0,
      0,
      0,
      10500
    ],
    [
      'Germany',
      'zzzz',
      5500,
      5000,
      10500,
      0,
      0,
      10500,
      5000,
      5000,
      0,
      0,
      5500,
      5500,
      10500,
      6000,
      6000,
      0,
      0,
      6000,
      27000
    ],
    [
      'Italy',
      'Rome',
      0,
      6000,
      6000,
      0,
      0,
      6000,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      6000,
      6000,
      6000,
      12000
    ],
    [
      'Italy',
      'zzzz',
      0,
      6000,
      6000,
      0,
      0,
      6000,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      6000,
      6000,
      6000,
      12000
    ],
    [
      'UK',
      'London',
      0,
      0,
      0,
      5000,
      5000,
      5000,
      0,
      0,
      5500,
      5500,
      0,
      0,
      5500,
      0,
      0,
      0,
      0,
      0,
      10500
    ],
    [
      'UK',
      'zzzz',
      0,
      0,
      0,
      5000,
      5000,
      5000,
      0,
      0,
      5500,
      5500,
      0,
      0,
      5500,
      0,
      0,
      0,
      0,
      0,
      10500
    ],
    [
      'zzzz',
      'zzzz',
      5500,
      11000,
      16500,
      5000,
      5000,
      21500,
      5000,
      5000,
      5500,
      5500,
      5500,
      5500,
      16000,
      6000,
      6000,
      6000,
      6000,
      12000,
      49500
    ]
  ]
};
