Queries do and always have been available still. All computations are done in a separate database (and physical Hard Drive) and once complete, replicated to the live web facing database.