I need to build a SQL query to select unique records from below table by least number of category count.
eg : simon is falling in to both Red and Green Category but