text: # Count the number of SNVs and INDELs within the multi sample variants table.
  
  SELECT
  Genotype,
  COUNT(genotype) AS Cnt
  FROM
  (
    SELECT
    reference_name,
    start,
    reference_bases,
    alternates,
    genotype
    FROM
    (
      SELECT
      reference_name,
      start,
      reference_bases,
      GROUP_CONCAT(alternate_bases) WITHIN RECORD AS alternates,
      GROUP_CONCAT(STRING(call.genotype), "/") WITHIN call AS genotype,
      GROUP_CONCAT(QC) WITHIN RECORD AS qc,
      GROUP_CONCAT(call.QC) WITHIN CALL AS call_qc,
      FROM 
      [_THE_EXPANDED_TABLE_]
      OMIT call IF SOME(call.qc IS NOT NULL)
      HAVING QC IS NULL
    )
    GROUP EACH BY
    reference_name,
    start,
    reference_bases,
    alternates,
    genotype
  )
  GROUP BY
  Genotype
  ORDER BY
  Genotype
  