What do you call a dog with no legs?
It doesn't matter, he isn't coming to you.
The joke plays on the expectation of a clever answer to a question. Instead, it subverts that expectation with an absurd and somewhat dark response. The fact that the dog can't come to you because of his missing legs makes the punchline funny.