Write SQL query to solve given problem: How many materials still need to be assembled and have a depth of 2 between each component and their parent product?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT COUNT(*) FROM BillOfMaterials WHERE BOMLevel = 2 AND EndDate IS NULL