support %d mana query syntax