This demonstrates how bitcoin transactions are structured. You can click on the input txn to follow the chain to the corresponding output.