var output = `
table without id
("![]("+ cover + ")") as Cover,
("[["+file.name+"|"+aliases+"]]") as Name,
string(file.tags) as tags,
(${cards[file.name]}) as num
from "BLB"
WHERE contains([${creatures.map((node)=>{return '"'+node+'"'})}],file.name)
sort file.frontmatter.mana
`;
dv.paragraph("```"+"dataview\n"+output+"\n```");
var output = `
table without id
("![]("+ cover + ")") as Cover,
("[["+file.name+"|"+aliases+"]]") as Name,
string(file.tags) as tags
substring(filter([${cardsArr.map((node)=>{return '"'+node+'"'})}], (node)=>endswith(node, file.name))[0],0,1) as num
from "BLB"
WHERE contains([${spells.map((node)=>{return '"'+node+'"'})}],file.name)
sort file.frontmatter.mana
`;
dv.paragraph("```"+"dataview\n"+output+"\n```");