Create reports
Have AI make a report with SQL and charts or write it yourself, choose who can see it, and share it
A report combines text, SQL, charts and maps. It uses the same format as the reports in the Showcase. Each report opens at queria.io/reports/<ID>, where the ID is the string of letters and digits the report gets when it is created.
You need to sign in to create reports.
Ask AI to make one
- Connect Queria to Claude or ChatGPT (Use from AI chat)
- Ask in the chat what you want to know. The AI queries Queria’s data, saves the tables and charts to a private report and returns its URL
- Ask in the same chat for any changes
To make changes from another chat, click “Ask AI to edit” at the top right of the report to copy a request, paste it into your AI chat and add what you want changed. Only people who can edit the report (members of the account that owns it) see this button.
Saved reports appear under “Recent” on the signed-in home page and under “Your reports” in the account menu.
Write it yourself
- Open “Your reports” from the account menu (
queria.io/accounts/<handle>/reports) click “New report”, and choose “Document” - Write the content and click “Save”
Saving opens the report. Use “Edit” at the top right to make changes.
Edit on the page
“Edit” opens the “Visual editor”, which shows the blocks in the same order as the report.
- Click the title or a paragraph to edit it in place. Paragraphs are written in Markdown
- Use the “…” menu at the top right of a table, chart, or map to “Move up”, “Move down”, or “Delete” it. The “…” menu of a paragraph appears when you hover over it
- “Edit” in a chart’s “…” menu changes the heading, the chart type (bar, line, area, scatter), and the columns used for the x-axis, y-axis, and color. Some charts, such as layered charts, cannot change their type and columns here
- Click “Save” at the bottom when you are done. If AI or another page updated the report after you opened it, the save is rejected; reopen the report and make your changes again
To change SQL, the frontmatter, or the visibility, use “Edit Markdown”. Click “Preview” above the content to check the result before saving. While there are unsaved changes, you cannot switch between the two editors.
Reports for an organization account are created with “New report” on that organization’s “Reports” tab (the steps above create a report for your personal account). Members of the organization can create them.
Public names are covered in Give a report a public name.
After picking a point in Area Analysis, press “Save as report” to open a new report with a map block (Add a map) holding that point and area. Press “Save” to keep it as a private report.
Fork a published report
Open a public report and click “Fork” at the top right. The editor opens with a new report that holds the same content. Change the area codes in the SQL or the title, then click “Save” to keep it as your own report. A saved report is private by default.
- A forked report shows a link to the report it came from (“Forked from …”). The link disappears if the original report is no longer public
- The original report shows how many times it has been forked next to “Fork”
- Images in the body are not copied. Charts are drawn again from the SQL
- Only public reports can be forked. Members-only and private reports do not show “Fork”
Comment on reports and dashboards
Public reports and dashboards have a comments section at the bottom. Sign in, type in the box, and press “Post” to add your comment. Comments can be read without signing in.
- A comment can be up to 1,000 characters. Each person can post up to 30 comments in 24 hours across all reports and dashboards. Deleted comments count toward the limit
- Comments that contain links outside queria.io are rejected. Links to datasets and reports on queria.io are allowed
- To post comments, you need to finish signing up by choosing a handle at your first sign-in
- The author of a comment and the members of the account that owns the report or dashboard can remove it with “Delete”
- Members-only and private reports and dashboards do not have a comments section
Writing the content
Write the content in Markdown. The front matter at the top holds the title, summary and the datasets the report uses. Write SQL in code blocks.
---
title: Population by prefecture
description: Lists the population of each prefecture
tags: [population]
datasets:
- queria/e_stat as e_stat
---
## The most populous prefectures
```sql
SELECT ...
FROM e_stat.<schema>.<table>
```
titleanddescription(the summary) are required. A report without either can’t be saved- For how to write charts, see Draw charts and maps
- SQL can only reference datasets listed under
datasets. Write each as<handle>/<dataset> as <alias>and use the alias in SQL - The report can’t be saved if a listed dataset isn’t used in SQL, or if SQL uses a dataset that isn’t listed
formatis the version of the writing format. If you leave it out, the latest version is used, and saving adds the current version to the front matter (for exampleformat: 1). Saved reports keep the version they were saved with, even after a newer version comes out- The report’s author is shown as the account that owns the report. The published and updated dates also come from when the report was actually published and saved. An
authororpublishedAtin the front matter isn’t used for display.tagsis optional too
Add a map
A map code block shows, on a map, the population and households living around a point (inside a circle, or within a walking, cycling or driving time), their age mix, household types and housing, and the land prices in the area. Readers can click the map, or search in the box at the top left of the map, to move the point and recount on the spot. The box finds stations and place names by their Japanese name (for example 新宿 or 吉祥寺), and Japanese addresses that start with the municipality (for example 新宿区西新宿2-8-1). An address moves the point to its house or block where the area uses residential addressing (住居表示), and to its town or chōme otherwise. The same search box is on the area analysis screen. “Open in area analysis” opens the same point in area analysis.
```map
type: around
lng: 139.393896
lat: 35.679414
radius: 1000
caption: 1km around Hino Station
```
- The content is YAML. For
type: aroundyou can writelng/lat(longitude and latitude, numbers within Japan),radius(whole metres, 100–3000),walk/bike/car(travel time in minutes),show(sections to show),layers(layers to overlay) and an optionalcaption. Any other key stops the report from saving - Population is counted by splitting each census town block (chome) by the share of its area inside the range
- The share of children and of people aged 65 and over, and the shares of household types and housing, are shown next to the same figures for a whole municipality. The municipality is the one holding the most of the range’s population (a ward, in a designated city), and its figures are the census values for the whole municipality as they are
- The datasets the map uses do not need to be listed in
datasets - On a report that uses only public data, readers first see the map’s numbers from when the report was saved. When a reader moves the point, the map recounts on the spot
- Land price points start hidden on the map. Press the “Land prices” button above the map to show them
Choose what to show
List the sections you want under show: age mix (age), household types (households), housing (housing) and land prices (land_price). Without show, every section is shown. Total population, households and the list of town blocks are always shown. Sections you leave out are not counted, so the map appears sooner.
Household types split census private households into one person, couple only, couple with children, single parent with children, and other, together with the number of people per household. Housing shows tenure (owned, private rented, public or UR rented, company housing and so on) by the number of private households living in housing, and building type (detached, apartment buildings by number of floors, row houses and so on) by the number of main households.
```map
type: around
lng: 139.393896
lat: 35.679414
radius: 1000
show: [age, land_price]
```
On the area analysis screen, you can choose the same sections with “Sections” next to “Summary” on the left. Hidden sections are listed as “Hidden: …” under the heading. The choice stays in the URL, so you can share it as it is. On a saved map, the choice is saved with the map.
Travel-time areas (Pro)
Write one of walk (5, 10, 15 or 20 minutes), bike (5, 10 or 15 minutes) or car (10, 15, 20 or 30 minutes) in place of radius to count inside the area you can reach by road in that time. Only accounts on Pro or an organization plan can write a travel-time area. If the plan ends, saved travel-time areas stay and you can still edit the report. Pro is needed only to add a travel-time area or change its settings.
```map
type: around
lng: 139.393896
lat: 35.679414
walk: 10
radius: 1000
caption: 10 minutes' walk from Hino Station
```
- The saved travel-time results can be seen by everyone, including free accounts and people who are not logged in
- Only people on Pro or an organization plan can move the point and recount by travel time. When anyone else moves the point, the map counts inside the
radiuscircle (1 km ifradiusis not written) - Many maps on one report make the report slower to open
Put SQL results on a map
Without type (or with type: map), the results of the report’s sql id= blocks become layers on a map. Each row is placed by an area code column, by longitude and latitude columns, or by a GeoJSON shape column.
```map
type: map
caption: Population by municipality, with shops
layers:
- from: pop
area: city
code: lg_code
color: population
label: city_name
name: Population
- from: shops
lng: lon
lat: lat
name: Shops
```
fromis the name of asql id=block. Layers are stacked in the order written, later ones on top- Place a layer with one of
areaandcode,lngandlat,geojson, orflowwithoriginanddestinationareaisprefecture,cityorsmall_area(town block), andcodenames the column holding that area code: 2 digits for prefectures, 5 for municipalities (6-digit local government codes also work), and the census 9 or 11 digits for town blocks. Codes stored as numbers that lost their leading zero still worklngandlatname the longitude and latitude columnsgeojsonnames a column that returns each shape as a GeoJSON string (for exampleST_AsGeoJSON(geometry) AS geojson). Use it for shapes that no area code describes, such as mesh cells or areas you cut out yourselfflowisprefectureorcity, andoriginanddestinationname the columns holding the area codes of the start and end of each pair. Each row is drawn as an arrow from origin to destination, such as from where people moved out to where they moved in. Arrows connect prefectural and municipal government offices; Tokyo’s special wards as a whole (13100) use the average position of the 23 wards. Many arrows overlap and become hard to read, so keep the number down, for example one arrow per origin
colornames a numeric column to color by,labela column shown on hover, andnamethe legend entry. All three are optionalcolorcan also name a text column such as a type. The first 7 values in the order they appear in the SQL result each get a color and are listed in the legend; the rest are grouped in gray as “Other” (“その他” on the Japanese site). UseORDER BYto set the order- The map center (
lng/lat) andzoomare optional. Without them the map fits all the data - The boundary datasets do not need to be listed in
datasets sql id=names cannot start with__(the map uses them)
Count around a point on the map
Add around: to the block to attach the trade area report. Your own SQL results, such as shop locations, stay on the map while the population around the point is counted.
```map
type: map
caption: 1km around Hino Station
layers:
- from: shops
lng: lon
lat: lat
around:
lng: 139.393896
lat: 35.679414
radius: 1000
```
around:takeslng/lat,radius,walk/bike/carandshow, with the same meaning as intype: around- A map with
around:is framed on the point, solng/lat/zoomcannot be set on the map itself type: aroundabove is a shorthand for this form and produces the same map
Let readers choose values
An input code block puts a select box or a number field where you place it. In the SQL, charts and maps, write ${name} to insert the chosen value. When a reader changes the value, the report reruns the SQL with it and redraws the charts and tables.
```input
name: city
label: City
options:
- { value: "13229", label: Nishitokyo }
- { value: "13201", label: Hachioji }
```
```sql
SELECT * FROM e_stat.<schema>.<table>
WHERE lg_code = ${city}
```
namestarts with a lowercase letter and uses lowercase letters, digits and_.labelis shown next to the input; without it,nameis shownoptionsmakes a select box (up to 200 options). A plain list of values also works (options: [2020, 2015])minandmaxmake a number field.stepsets the incrementdefaultis the value selected at first. Without it, the first option orminis used- In SQL, string values are inserted quoted (
'13229') and numbers as they are. You can use them insql id=<name>blocks too, so every table, chart and map layer built from that view changes together - In a chart, a reference inside text such as
"${city} population"inserts the option’slabel(Nishitokyo) - In a map (
map), you can use them forlng/lat/radius/zoom/walk/bike/car. Saving checks that the map can be built for every option, and fails if one cannot - Saving fails if
${...}names something that noinputdeclares
The chosen values stay in the report URL (for example ?city=13201), so sharing that URL opens the report with the same values. A value in the URL that is not one of the options or is out of range opens with the default value instead.
Saved chart results are only for the default values. When a reader picks other values, the SQL runs on the spot.
Emoji and search settings
Set these with “Emoji” and “Show in search engines” in the editor, or write them in the front matter. Both do the same thing.
emoji: "🏫" # The report's emoji. Defaults to 📊
search: false # Keep the report out of search engines and the Showcase. Defaults to showing it
- The emoji appears on the card image shown when the report is shared on social media, and in the list of other reports by the same author at the end of a report. Write exactly one emoji
- Only public reports appear in search engines and the Showcase, where anyone can find reports others have published by keyword or dataset. Keywords also match the author’s name. The default order is “Popular”, which weighs the number of stars against how recently the report was published. You can star the reports you like. With
search: false, a public report stays out of search results and the Showcase (anyone with the URL can still open it) - The “Maps” and “Dashboards” tabs of the Showcase list public maps and dashboards, newest first. Keywords match the title and the owner’s name
What the SQL can read
A report’s SQL can read only the datasets listed under datasets. It can’t read files the reader uploaded or URLs on other sites.
Each block can hold a single SELECT statement (one trailing ; is fine). Several statements separated by semicolons are an error. When you need an intermediate result, use WITH, or write it in a sql id=<name> block and refer to it as <name> from other blocks. To show SQL that can’t run, put it in a sql run=false block: it is displayed as code and not run.
Visibility
| Visibility | Who can see it |
|---|---|
| Private | You, and the people and teams you share it with (Share with specific people or teams). Organization admins can also open an organization’s private reports |
| Members only | Members of the organization that owns the report (only organizations on an organization plan can choose it) |
| Public | Anyone (no login needed) |
Members only is an organization feature: it can be chosen only for reports of organization accounts with an organization plan. If the plan ends, reports that are already members-only stay as they are.
New reports start as private. Save and check how the report looks, then change the visibility to “Public” to share it.
A public report can only use public datasets.
Share with specific people or teams
A private report of an organization account on an organization plan can be shared with chosen members or teams of that organization. Open the report, expand “Sharing” below the body, choose who to share with and the permission, then click “Share”. A confirmation dialog shows who you are sharing with and the permission; check it and click “Share” again to share.
| Permission | What it allows |
|---|---|
| View | Open the report |
| Edit | Change the report’s body and title |
- Only the author of the report and organization admins can change its sharing, change its visibility or delete it. People with Edit cannot
- You can share only with members and teams of the organization that owns the report. Organization admins create teams under “Teams” in the organization’s “Settings”. Admins and the team’s maintainers add members to a team (Teams and maintainers)
- Sharing applies only to private reports. Every member of the organization can already open members-only and public reports
- Shares with people who leave the organization are deleted automatically. Deleting a team also deletes the shares with that team
- When the organization plan ends, you can no longer share with new people. Existing shares keep working and can be removed with “Remove share”
Share maps and dashboards
Private maps (saved from Area analysis) and private dashboards of an organization account on an organization plan can be shared the same way as reports. On a map, “Sharing” is in the “Map info” pane on the left; on a dashboard, it is below the title. The permissions and who can change sharing are the same as for reports. People a map is shared with Edit can change its “Layers”, its “Tables and charts” and the map name. People a dashboard is shared with Edit can change its title, and change its tiles from each tile’s “…” menu (width, edit, delete) and from “Ask AI”.
Reports that read restricted datasets
Datasets whose member access an admin has limited (who can access an organization’s datasets) can be read only by private reports. Members-only and public reports can’t use them.
- When you share such a report, anyone you share it with who can’t read one of these datasets yet also gets Read access to that dataset. “Sharing” and the confirmation dialog list the datasets this applies to
- Only organization admins can give access to these datasets. When someone who is not an admin opens “Sharing”, it asks them to contact an admin and does not show the share form
- Only admins can save a shared report after adding a restricted dataset that the people it is shared with can’t read
- The same applies to maps and dashboards. A map or dashboard whose SQL reads such a dataset must stay private, and sharing it gives Read access to the people it is shared with
- Access given by sharing a report appears in the dataset’s “Member access” section, marked “from sharing the report” with the report’s title. Access given by sharing a map or dashboard is marked “from sharing the map” or “from sharing the dashboard” with its name. Removing the share, deleting the report, map or dashboard, or removing the dataset from its SQL also removes that access, unless another report, map or dashboard shared with the same person or team still reads the dataset
Transfer to an organization
You can transfer a report, map, or dashboard in your personal account to an organization account you are a member of. After the transfer, it belongs to the organization and cannot be moved back to your personal account.
- Open the report and expand “Transfer to organization” above the body. On a map, it is in “Map info” on the left; on a dashboard, it is below the title
- Choose the organization and click “Transfer”
- Check the confirmation dialog and click “Transfer” again
- Only the creator can transfer it
- URLs with the ID (
queria.io/reports/<ID>,/maps/<ID>,/dashboards/<ID>) stay the same. The visibility and the creator also stay the same - If it stays private, organization admins can also open it, in addition to you
- For a public report with a public name, the URL with the name changes to one with the organization’s handle (
queria.io/reports/<organization handle>/<name>), and the old URL stops working - It cannot be transferred in these cases. The reason appears in the “Transfer to organization” section
- It reads private datasets in your personal account (an organization’s report cannot read them)
- The organization already has a report with the same public name
- The organization has reached its limit of reports, maps, or dashboards
Give a report a public name
Enter a name in “Public name (optional)” in the editor and save. A public report then also opens at queria.io/reports/<handle>/<name>. Names use lowercase letters, digits and hyphens (edit is not allowed).
- Once a public report has a name, the URL with the name is its main URL. Opening
queria.io/reports/<ID>takes you to it - Private and members-only reports open only at
queria.io/reports/<ID>, even with a name - You can change the name later, or clear it to remove it. After a change, the URL with the old name no longer opens
Chart results
When you save, the report’s SQL runs and the chart results are stored with the report. While the save button shows “Computing chart results…”, wait a moment, or choose “Open without waiting” to open the report right away.
Readers see the stored results immediately, with “Results from the author’s run” and the date under each chart.
Under each chart, “Data” lists the tables its SQL reads. Each one opens that table on its dataset page, where you can check the columns and the source.
“Query and sources” in the same row shows the figure, its SQL, the tables it read, the datasets and their versions, and the sources, in that order. A saved result records its row count, when it ran, and the version number of each dataset it read.
The share icon at the top right of each chart opens a menu:
- “Copy link”: copies a link that opens only that chart
- “Embed”: shows the iframe code for placing the chart on another site
- “Copy image” and “Save image” (charts only): render the chart as a 1200 × 630 pixel PNG and copy it to the clipboard or download it. The image has the chart’s caption (
caption), a line of sources and licenses under the chart, and the Queria logo. If the chart spec has atitle, the image uses it instead of the caption - “Open in new tab”: opens the chart’s SQL in a new tab, where you can rerun it on the current data or edit it. If the data has been updated since, the numbers may differ from when the report was written. “Save as a report” there saves it as your own report
Charts on dashboards have the same menu.
Readers can also filter, sort and pivot a table with the Filter, Sort and Pivot buttons above it. The conditions apply to every row of the table. The report itself doesn’t change. Removing all conditions returns to the author’s results.
Reports that use private datasets don’t store results. The SQL runs each time a reader opens the report.
Limits
- Reports can’t include images
- The content can be up to 200KB. There is no limit on the number of datasets a report uses
- An account can hold up to 500 reports
Create reports from the CLI or AI
Turn a Markdown file into a report with queria report create report.md, or from an AI assistant with the MCP tool create_report. See the CLI reference and the MCP tools reference.
Delete a report
Click “Delete” in the editor. A deleted report can’t be restored. Its public name can then be given to another report.
