Snapshot of work on join query with frequency count.
Switch to use Result wrapper.
Updated test to check assertion result.