Where does “қай” come from?

Words derived from “қай