Executing a simple query