曲 is built from the 口 and 廾 (two hands / twenty) components.
It belongs to a phonetic family with 遭, 槽, and 曹 — they share the 曲 component and the reading ソウ.
A common word using 曲 is 曲る (まがる), meaning “to turn, to bend”.
Don't confuse it with 典 and 農.