working composite queries