Add flexiblequery.