sql question

hi everyone. any sql experts who can help me with this > https://dba.stackexchange.com/questions/269307/calculate-or-get-price-of-parent-items-on-bill-of-materials