أَيُّ الْفَرِيقَيْنِ خَيْرٌ مَقَامًا
Which of the two parties is better in standing?
The phrase al-farīqayn supplies two groups sharing the relevant comparison, while ayy requests the group distinguished by the predicate 'better in standing.' The comparison's domain is explicit.
In a straightforward syntactic reading, ayy is the subject, al-farīqayn its genitive complement, khayr the predicate and maqāman a specification (tamyīz). This construction places the identity of the preferred group at the center of the question.