support interactive query.