Here is the code that I run it on DB Browser for SQLite:
SELECT * FROM (SELECT ROW_NUMBER() OVER (PARTITION BY recipe_name) AS rn, rt.* FROM SyncRecipeIn