Query this table

Using the CARTO SQL API you can perform any SQL query to either yours or other users tables.

<%- url %>?q=<%- sql %>
{
  rows: [<% _.each(rows, function(row, i) { %>
    {<% var j = 0 %><% _.each(row.attributes, function(val, key) { %>
      "<%- key %>": "<%- val %>"<% if (j !== _.size(row.attributes)-1) { %>,<% } %><% j++ %><% }) %>
    }<% if (i !== rows.length-1) { %>,<% } %><% }) %>
  }],
  time: 0.013,
  fields: {<% _.each(schema, function(field, i) { %>
    "<%- field[0] %>": { "type": "<%- field[1] %>" }<% if (i !== schema.length-1) { %>,<% } %><% }) %>
  },
  total_rows: 20
}