 AS $$
 
   SELECT moran, quads, significance, ids, y
-  FROM cdb_crankshaft._CDB_AreasOfInterest_Local(subquery, attr, permutations, geom_col, id_col, w_type, num_ngbrs);
+  FROM cdb_crankshaft._CDB_AreasOfInterestLocal(subquery, attr, permutations, geom_col, id_col, w_type, num_ngbrs);
 
 $$ LANGUAGE SQL;
 

AS $$

  SELECT moran, quads, significance, ids, y
  FROM cdb_crankshaft._CDB_AreasOfInterest_Local_Rate(subquery, numerator, denominator, permutations, geom_col, id_col, w_type, num_ngbrs)
  WHERE quads IN ('LL', 'LH');

$$ LANGUAGE SQL;

AS $$

  SELECT moran, quads, significance, ids, y
  FROM cdb_crankshaft._CDB_AreasOfInterestLocal(subquery, attr, permutations, geom_col, id_col, w_type, num_ngbrs)
  WHERE quads IN ('HL', 'LH');

$$ LANGUAGE SQL;
