Build complex multi-table JOIN queries from natural language
Build a SQL query based on this requirement:
**Tables Available:**
```sql
{{TABLE_DEFINITIONS}}
```
**Query Requirement (plain English):**
{{QUERY_REQUIREMENT}}
**Expected Output Columns:** {{OUTPUT_COLUMNS}}
**Filtering Conditions:** {{FILTER_CONDITIONS}}
**Sorting Requirements:** {{SORT_REQUIREMENTS}}
**Database System:** {{DATABASE_SYSTEM}}
Please provide:
1. The complete SQL query with proper JOINs
2. Explanation of each JOIN and why it's needed
3. Visual representation of the join path
4. Performance considerations
5. Alternative approaches using subqueries or CTEs
6. Sample output with dummy dataOr press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[{TABLE_DEFINITIONS][{QUERY_REQUIREMENT][{OUTPUT_COLUMNS][{FILTER_CONDITIONS][{SORT_REQUIREMENTS][{DATABASE_SYSTEM]