Added a query to fetch the value of public