lWe can get the
inference immediately if we can find a substitution θ such
that King(x) and Greedy(x) match King(John) and Greedy(y)
lθ = {x/John,y/John} works
lUnify(α,β) = θ if αθ = βθ
lp
q θ
lKnows(John,x)
Knows(John,Jane) {x/Jane}}
lKnows(John,x) Knows(y,OJ) {x/OJ,y/John}}
lKnows(John,x)
Knows(y,Mother(y)) {y/John,x/Mother(John)}}
lKnows(John,x) Knows(x,OJ) {fail}
lStandardizing apart eliminates overlap of variables, e.g., Knows(z17,OJ)