human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Number, Builder, Built, Rebuilt, Name as rebuilt, Scrapped/Sold
###Question: Which Rebuilt has a Builder of derby, and a Name as rebuilt of ben madigan?
gpt
SELECT Rebuilt FROM table WHERE Builder = derby AND Name as rebuilt = ben madigan