Queries number set between 1 and 500

Same commit as for symfony2 not stripped.