Executing simple query