A structured natural language query and knowledge system is provided to
allow a user who lacks programming skills to enter a database query or a
rule in the form of a structured natural language sentence. The scope of
the sentence is preferably defined by an improved object relational query
language, an object relational algebra, or both. Command and conditions
that appear in natural language form are defined with corresponding
formal query texts. A user is prompted to compose a structured natural
language sentence using the defined commands and conditions. The
user-selected command and its arguments appear as the verb phrase of a
structured natural language sentence. The user-selected conditions and
their parameters appear as the adjective phrases of the sentence. The
sentence is parsed and changed into a translated formal query text for
formal database query and rule processing.