SELECT * FROM PointInPolygon ( ON source_passenger AS source PARTITION BY ANY ON reference_terminal AS reference DIMENSION SourceLocationColumn ('source_location_point') ReferenceLocationColumn ('reference_location_polygon') ReferenceNameColumns ('terminal_name') outputall ('false') Accumulate ('customer_id', 'customer_name') ) ORDER BY source_location_point;