There is a sqlite database, in which one table (see screenshot) 
It is necessary to display 1 recipe field and all ingridient fields related to it, if the request coincides with the ingredient. For example: query = "Water" -> Display 1 field Mors Blueberry and all its ingredients. Compiled such a query SELECT DISTINCT * FROM receptes WHERE ingridient = "запрос"; Did I do everything right?
*it is not used, because at least one field of another record will not be the same as the previous one, which means the line will be unique and the output will not change anything except an increase in the execution time - Mike*, and distinct if necessary, if you need to suppress the same values when outputting - Mike