15. An apparatus that generates queries to search for matching forms in a set of previously submitted forms, comprising: a retrieval mechanism configured to retrieve a form template for previously submitted form instances, wherein the form template includes a form schema which specifies field names and data types in fields in the previously submitted form instances associated with the form template, wherein the previously submitted form instances were created using said form template; a user interface generator configured to generate a user interface dependent on the same form template used to create the previously submitted form instances, wherein the user interface (UI) is configured to allow a user to specify search criteria for one or more fields defined by the form schema; a query generator configured to generate a query based on search criteria entered by the user; and a query processor configured to run the query against the set of forms to identify matching forms.
15. An apparatus that generates queries to search for matching forms in a set of previously submitted forms, comprising: a retrieval mechanism configured to retrieve a form template for previously submitted form instances, wherein the form template includes a form schema which specifies field names and data types in fields in the previously submitted form instances associated with the form template, wherein the previously submitted form instances were created using said form template; a user interface generator configured to generate a user interface dependent on the same form template used to create the previously submitted form instances, wherein the user interface (UI) is configured to allow a user to specify search criteria for one or more fields defined by the form schema; a query generator configured to generate a query based on search criteria entered by the user; and a query processor configured to run the query against the set of forms to identify matching forms. 19. The apparatus of claim 15 , wherein while running the query against a given form in the set of previously submitted forms, the query processor is configured to: open the given form; and to evaluate the query for specific data values from specific fields in the given form to determine if the given form matches the query.