As this query example indicates, we need a way to specify "a,b,*" language list, which means - give me "a" if it exists, or "b" if it exists, or just get me any language that's available, whichever you decide.
Language lists without the wildcard (e.g. "a,b") should continue to work as currently and provide QIDs.