query for i pad