Unique cause code query (userStory 7)