First pass at query view