Query builder dependency lazy-loading