Add QueryBuid for one rule