请大家帮我分析这个句子,if、what、that各在里面起什么作用,各引导什么句?

问题描述:

请大家帮我分析这个句子,if、what、that各在里面起什么作用,各引导什么句?
if you were to ask harry what was in the bottle,he would tell you that it contained perfumed mud.

if 引导的条件状语从句.该句还用了虚拟语气.what引导的是宾语从句,做ask 的宾语,what 在宾语从句中充当主语.that引导的是同位语从句,引出tell 的内容,that在该从句中不充当成分,只是个关系代词.