Dump SQL query in Twig template Is possible to dump a query made on a twig template for a statement like this one for example:

craft.entries.section('homepage')

Can we some how see the actual SQL query ?
In Craft 3 you can use getRawSql() at the end of the element query. 

{% set entries = craft.entries.section('blog').getRawSql() %}

{{ entries }}