Add extracted SQLs and comments.
Copy generated SQLs to next pages