scenario where upsert called with only query