min and max contraints on relations