Fix query for complex_map table create.