human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Judge, State, Born/Died, Began active service*, Ended active service
###Question: Who was the judge for the state SD?
gpt
SELECT Judge FROM table WHERE State = sd