...
where dbi2 is a database custom field of type autocomplete mapped to a dynamic query having dbi field as parameter, and dbi is a parent database custom field of type select list, having as child the dbci field, and the following values saved on an issue TP-7 for the mentioned custom fields:
...