Handle filter and connection in scoreExpr