Extracted read method for queries.