Use this skill when the user wants SQL tasks involving geography, spatial topology, and geometric analysis in PostGIS or similar GIS extensions. Trigger it for requests using terms like 'intersect', 'within X kilometers', 'calculate area', 'find the nearest', or 'show me things inside a region'. Layman examples include: 'Which stores are in this city?', 'Find the average distance between points', or 'Tell me the area of a specific state'. Professional triggers include 'topological relationship predicates', 'coordinate reference system (CRS) conversion', or 'geodesic distance calculations'.
[Case 1]
[Case 2]
[Case 3]
To synthesize data for this capability, you must strictly follow a 3-phase pipeline. Do not hallucinate steps. Read the corresponding reference file for each phase sequentially:
Phase 1: Environment Exploration
Read the exploration guidelines to discover raw knowledge seeds:
references/EXPLORATION.md
Phase 2: Trajectory Selection
Once Phase 1 is complete, read the selection criteria to evaluate the trajectory:
references/SELECTION.md
Phase 3: Data Synthesis
Once a trajectory passes Phase 2, read the synthesis instructions to generate the final data:
references/SYNTHESIS.md