Querying closed workflow

Is there anyway to query the closed workflow ?

You can query running and closed executions.
Note your workers have to be up and polling in both cases as query requests go through workers (worker returns the query result back to service to return to client)

Thank you. Can we query c
Failed workflows as well?