def METHOD_NAME(
    ql: qlast.Base, modaliases: Dict[Optional[str], str]
) -> Tuple[
        List[Tuple[qlast.TypeCast, Dict[Optional[str], str]]],
        List[qlast.Parameter]]:
    """Get all query parameters"""
    v = FindParams(modaliases)
    v.visit(ql)
    return v.params, v.loose_params