select "datamining_iris".dtmgiris_class AS "dtmgiris_class", AVG("datamining_iris".dtmgiris_petal_length) AS "dtmgiris_petal_length", AVG("datamining_iris".dtmgiris_sepal_length) AS "dtmgiris_sepal_length" from PUBLIC.datamining_iris "datamining_iris" group by "datamining_iris".dtmgiris_class order by "dtmgiris_class", "dtmgiris_petal_length", "dtmgiris_sepal_length"