final proposal for queries