added SQL QUERY on repo