Convert iPhone 4 30-pin connector to iPhone 5 Lightning connector
Apple sells a Lightning to 30-pin adapter.

If you're okay with 3rd-party solution, 30-pin female to Lightning adapter  could be closer to what you need, but there could be compatibility issues.

The kit includes this:



to which you can add Lightning 1m-extension cable which should get you from Lightning to 30-pin.

As far as I can see there is no single cable that does what you want.