Mnemosyne is a query interface to Mnesia. Mnemosyne is an extension of the Erlang language, i.e. queries are written embedded in Erlang code. There is also another solution for queries to Mnesia, Ets and Dets tables called QLC (Query List Comprehensions) which will be the recommended way to perform queries. QLC belongs to Stdlib and is described there.