Resulting queries coding