Query 4521Q arises when a teacher with a leadership position, identified by their contract, does not have a Pay Framework entered on the contract. Click on the Query to take you to the staff member's profile, then click on the cog next to their contract to open it up:
At the bottom left of the contract you see where to enter Pay Framework information. Select from the dropdown either 'Pre 2014 Framework' or '2014 Framework', then Update to save the data on the contract. Return to the Workforce Census area to recalculate.