Hi @younesstazi1,
Below is a post on how a macro was used to search through a recipe database based on a SQL query. Please scroll down to step 4 which is the advanced section which is what you will need. Please let me know if you have any more questions!
Thank you!
Recipe Database Search For or Filter Items