Apply grouping criteria to your results.
To group your results according to specific attributes, use the Query.groupBy(String groupByItem) method. For example, to group your results by ID and name, use:
NSString *groupByItem = @"c.id, c.name";
SUPQuery *query1 = [SUPQuery getInstance];
//other code for query1
[query1 groupBy:groupByItem];