set conditions as numbers in queries