How to deal with nested blocks in multiple occurrences of blockreferences with nested block references

Look at this for select