explain TEXT
[0] [Projection] departments.dept_name, employees.gender, employee_count: count_0, avg_salary: avg2_0
| [Types]: employee_count: bigint not null, avg_salary: double precision null
| [Logical Profile]: [est. #rows=5, source: estimated]
\_[1] [Sort] OrderBy: [count_0 Descending First, departments.dept_name Ascending Last, employees.gender Ascending Last]
| [Logical Profile]: [est. #rows=5, source: estimated]
\_[2] [Aggregate] GroupBy: [employees.gender, departments.dept_name] Aggregates: [count_0: count(*), avg2_0: avg2(employees.salary)]
| [Types]: count_0: bigint not null, avg2_0: double precision null
| [Logical Profile]: [est. #rows=5, column profiles={[employees.gender: #distinct=2], [departments.dept_name: #distinct=3]}, source: estimated]
\_[3] [Projection] employees.gender, employees.salary, departments.dept_name
| [Logical Profile]: [est. #rows=5, column profiles={[employees.gender: #distinct=2], [departments.dept_name: #distinct=3]}, source: estimated]
\_[4] [Join] Mode: Inner [(employees.dept_id = departments.dept_id)]
| [Logical Profile]: [est. #rows=5, column profiles={[employees.gender: #distinct=2], [employees.dept_id: #distinct=3], [departments.dept_id: #distinct=3], [departments.dept_name: #distinct=3]}, source: estimated]
\_[5] [Projection] employees.gender, employees.salary, employees.dept_id
| | [Logical Profile]: [est. #rows=6, column profiles={[employees.gender: #distinct=2], [employees.dept_id: #distinct=4]}, source: estimated]
| \_[6] [Filter] (employees.title = 'Senior Developer')
| | [Logical Profile]: [est. #rows=6, column profiles={[employees.gender: #distinct=2], [employees.title: #distinct=1], [employees.dept_id: #distinct=4]}, source: estimated]
| \_[7] [StoredTable] Name: "employees"
| [Types]: employees.gender: text null, employees.title: text null, employees.salary: real null, employees.dept_id: integer null
| [Logical Profile]: [est. #rows=141, column profiles={[employees.gender: #distinct=2], [employees.title: #distinct=27], [employees.dept_id: #distinct=8]}, source: automated column statistics]
\_[8] [Projection] departments.dept_id, departments.dept_name
| [Logical Profile]: [est. #rows=3, column profiles={[departments.dept_id: #distinct=3], [departments.dept_name: #distinct=3]}, source: estimated]
\_[9] [Filter] (departments.location = 'New York')
| [Logical Profile]: [est. #rows=3, column profiles={[departments.dept_id: #distinct=3], [departments.dept_name: #distinct=3], [departments.location: #distinct=1]}, source: estimated]
\_[10] [StoredTable] Name: "departments"
[Types]: departments.dept_id: integer null, departments.dept_name: text null, departments.location: text null
[Logical Profile]: [est. #rows=8, column profiles={[departments.dept_id: #distinct=8], [departments.dept_name: #distinct=6], [departments.location: #distinct=3]}, source: automated column statistics]