human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Year, Competition, Awards, Category, Result
###Question: What year has Stacy as the category and award of Best Reality Star in Social Media?
gpt
SELECT MIN Year FROM table WHERE Category = stacy AND Awards = best reality star in social media