This example uses analysis and interpretation of natural language to demonstrate the differences between the object and relational model. This example should also suffice to show that implementation in an object database is superior to a relational database for the following reasons.
Using an object database model makes this task much more simple than it would be if using a relational database model. In an object database different methods can be attached to differing, specialised object types. These specialised object types would be new classes with specialised methods. These new classes would be defined in terms of the Report Class shown below. The new classes would effectively be inherited implementations of the Report Class. An object database is extremely capable of implementing such a structure and the object-inherent method processing required.
One rule could be to change the sentence constructor to produce different prepositions based on whether the first letter in a noun is a vowel or not. Another could control tenses and contain descriptions of verb conjugations in another class in order to produce the correct tenses. The possibilities are immense.