Abstract: A method and apparatus of a supply module having a business object module to define at least one schema to describe the supply chain data, a XML-based language generator module to process the at least one schema and a SQL code generator module to provide a sequence of SQL instructions to perform a query of a user where the user expressed the query in the XML-based language.