Sample qb query, Updated schema