Returns the state of a query previously submitted. Clients are expected to poll get_query_state to monitor the current state of the planning before retrieving the work units. A query state is only visible to the principal that made the initial call to start_query_planning.