Creating yetanotherrule SQLQuery