[#43871353] Use sequel dsl to create metadata queries