From The Document Foundation Wiki
Due to a bug in the migration parameter queries and subforms do not work properly. For this unfortunately the database file has to be unpacked and the contained content.xml file has to be processed. This file incorrectly states
db: parameter-name-substitution = "false"