Add a basic java query example