You have to add
flag checks to the question nodes. Those flag checks should check for the appropriate TAGs (SOLDIER, ELF, ...). The "[DWARF]" etc at the start of a text line does not influence any checking, it's just there to give the player information about the fact that this node is specific for DWARFs.