Query only datasets that match the entire template