Extract SQL queries in tag cloud