advance query added