add advanced query
add advanced query