This basically compliments the article about virtual entity fields. Note that those entity ones are not creating custom SQL queries, but work/operate on the existing entity data. Now, the query ones, however, usually involve custom SQL snippets to fetch the…