                                        $2,
                                        $3);'
   INTO   data_table_info
-  using geometry_level, dimension_names, time_span;
+  USING boundary_id, dimension_names, time_span;
 
 
   EXECUTE

    EXECUTE
      q
    into result 
    USING geom, target_cols, geometry_level, segment_name;
    
    return result;


  q            Text;
  segment_name Text;
BEGIN
IF boundary_id IS NULL THEN
 boundary_id = 'us.census.tiger.census_tract';
END IF;
target_cols := Array[
          'us.census.acs.B01001001_quantile',
          'us.census.acs.B01001002_quantile',
