<label for="{queryString}">{title}</label>
<select name="{queryString}">
    <f:for each="{options}" as="option">
        <option value="{f:if(condition: option.queryString, then: option.queryString, else: option.value)}"
            {f:if(condition: '{option.value} === {state.value}', then: 'selected')} id="{option.id}">{option.label}</option>
    </f:for>
</select>
