release query when receive eof

removed test value
number control set minimum value
show alert when query on failed