execute query by query id, returning result in response as a data stream. If the query takes long time, this endpoint will return HTTP 302 code with a queryrun id, e.g. {"queryrunId": "xxx"}. Then the client can poll status and get result using that queryrun id.

Query to Realtime Database in Python
Open Recipe
Click Try It! to start a request and see the response here!