[Runtime] Add query running support.