human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Rank, Capacity, City, State, Year opened
###Question: What was the year opened for North Carolina with a smaller than 21,500 capacity?
gpt
SELECT Year opened FROM table WHERE State = north carolina AND Capacity < 21,500