Transform the dataviwe query in dataviewjs code

I have this dataviwe query:

TABLE WITHOUT ID
	file.link AS "Страница",
	ID,
	length(file.frontmatter["craft-in"]) AS craft-in,
	length(file.frontmatter["asingredient"]) AS use-in
FROM !"templates"
WHERE type = "block" OR type = "item"
SORT use-in desc, craft-in desc

How this looks in dataviewjs variant?