Ok, there are two ways to go about this.
You could set up an actual contest. However, the SubAward feature would be super-easy. And with a contest, you would be running in contest mode all the time, which isn't a problem except when you are running an actual contest, then the Marathon tracking wouldn't work. You can only run one contest at a time.
So I recommend SubAwards.
Go to DXCC in tools/setup/Log fields....
Locate the DXCC field. Create a new SubAward as shown. (I didn't have to know how to do that select criteria expression. I clicked on the Filter button, and filled out the form using BETWEEN on QSO_DATE).
Do the same for CQZ.
Let me know if any questions.
Tnx for using LOGic & Happy New Year!
Dennis WN4AZY