This is an exact replica in Gremlin3:
g.V().has("name","Charlie Sheen").
as("person").out("actedIn").as("movie").
select("movie")
However, this can be expressed in a much simpler form as you don't need all the variables. Simply do: g.V().has("name","Charlie Sheen").out("actedIn")