addActiveQuery