I am using 26.2.1
Below are the records in the database, where S1 extends from S0 and E0 edges connect S0 and S1 vertices with Sx vertices (Sx does ot extend any other type nor has any properties)

The first query returns the records correctly as below
The second query should not return any result as there is no S0 or S1 with name as 'x'
