Uses query attribute