Clarification about how user sessions are counted?

Just to clarify, I would like to know what happens with the query above when a user has an interaction with an application that has 300 continuous user actions.

Would it give 1 or 2?

If it gives 2, is it possible to construct a query that gives 1?