 
   SELECT  string_agg(distinct 'observatory.'||numer_tablename, ',') numer_tablenames,
           string_agg(distinct numer_tablename||'.'||numer_colname, ',') numer_colnames,
-          string_agg(distinct numer_colname||'/area_ratio '||numer_colname, ',') numer_colnames_normalized,
+          string_agg(distinct numer_colname||area_normalization||' '||numer_colname, ',') numer_colnames_normalized,
           (array_agg(distinct 'observatory.'||geom_tablename))[1] geom_tablenames,
           (array_agg(distinct geom_colname))[1] geom_colnames,
           (array_agg(distinct geom_geomref_colname))[1] geom_geomref_colnames,

geography_level TEXT,
do_measurements TEXT[],
mastercard_measurements TEXT[],
mastercard_category TEXT DEFAULT 'Total Retail',
extent INTEGER DEFAULT 4096, buf INTEGER DEFAULT 256, clip_geom BOOLEAN DEFAULT True)
RETURNS TABLE (mvt BYTEA)

  RETURN QUERY EXECUTE format(
    $query$
    SELECT ST_AsMVT(q, 'data', $2) FROM (
      SELECT ST_AsMVTGeom(the_geom, $1, $2, $3, $4) AS mvtgeom, %13$s as id, %11$s, %12$s, area_ratio FROM (
        SELECT  %1$s the_geom,  %13$s, %2$s, %3$s,
                CASE  WHEN ST_Within($5, %1$s)
                        THEN ST_Area($5) / Nullif(ST_Area(%1$s), 0)
