extended query rules