quan (Old Portuguese) comes from Latin quam, from Proto-Italic kʷoi, from Proto-Indo-European kʷós — who.