Added "weighted" query for shapefiles