Add library query