Hi Martin,
Interesting task,
What I would try (but haven't tested):
step1:
Create a table that contains a field for 'amenity' which includes the ';' character.
amenity: [_any_] + filters: contains ';' ( require_regexp )
step2:
And you need to put a special SQL view on this table that arranges the record into multiple rows.
More precisely,
- splitting the text (like "amenity=restaurant;cafe") into an array,
- and then turning the array into a set of rows (records).
similar to: unnest(string_to_array(amenity, ';'))
If you succeed, please share the final code!
regards,
Imre