Use a more efficient method to get at the individual queries in a command.