How to create a simple Query