Knowledge discover from diagrammatic data can be facilitated by a language that permits queries on such data. Such a language (diagrammatic SQL) is being developed to expedite the development of an autonomous artificially intelligent agent with a capacity to deal with diagrammatic information. This language is described and examples of how it can be used to facilitate diagrammatic data mining are detaled