Does 'And he said, What's going on?' exist in a separate context from 'He wanted to know what was going on.', without logical interdependence?
And he said, What's going on?###He wanted to know what was going on.