Core queries

Changed query so that not only crop groups of the stu with max pcarea are considered, but all crop groups.
If stu with max pcarea is not suitable for all crop groups, missing groups are taken from the next biggest stu containing the missing group.