added query number criterium