Given a specific table structure, write a query to fetch the top N records based on a complex criteria.
Use the provided tables and evaluate records through 2025-03-31. Return entities with at least two active terminals and at least 1,000 in qualifying net volume. Rank them by net volume descending, then March-over-February growth descending, then entity ID ascending.
Output
- One row per selected entity with columns
entity_id, entity_name, net_volume, active_terminal_count, and growth_pct
- Include only the top three qualifying entities
- Sort by the stated ranking rules