Direct queries functional