Wolfram Alpha doesn't actually answer the question that was asked. Instead it answers two questions (1) what countries share borders with Iraq; (2) what countries share borders with Afghanistan. The final step (find the intersection of those sets) is a task that I would expect a computer to be better at than a human, but that is the step that Wolfram Alpha misses out.