The story
From rice with the (somewhat derogatory) sense of "Asian man," combined with queen to imply "homosexual attraction to...". Compare bean queen for derivation; one was probably formed by analogy with the other.
Etymology from Wiktionary, CC BY-SA 4.0.