Query part: query list, add a query, and check query's detail