<?xml version="1.0"?> <queryset> <partialquery name="status_approved"> <querytext> i.live_revision is not null </querytext> </partialquery> <partialquery name="status_unapproved"> <querytext> i.live_revision is null </querytext> </partialquery> </queryset>