# Query any HTML table with PRQL
Source: [https://avlasov.cabal.run/notes/001/index.html](https://avlasov.cabal.run/notes/001/index.html)
Once again I find myself searching through a giant table on Wikipedia\. And again I think: it would be so much better if I could just query it with SQL or something\. Wish someone made a browser extension for that\!\.\.
Aaand now I did\. Here is the source code:[https://codeberg\.org/aka\_dude/tableq](https://codeberg.org/aka_dude/tableq)\. And[here](https://addons.mozilla.org/en-US/firefox/addon/tableq/)you can get it for your Firefox\. Except this uses[PRQL](https://prql-lang.org/)because it is much better that SQL\. Here is an example:
*[Source \(Wikipedia\)](https://en.wikipedia.org/wiki/Comparison_of_file_systems#File_capabilities)*File systemBlock journalingMetadata\-only journalingCase\-sensitiveCase\-preservingFile Change LogXIP[APFS](https://en.wikipedia.org/wiki/APFS)??OptionalYes??[NTFS](https://en.wikipedia.org/wiki/NTFS)NoYes \(2000\)YesYesYes?[ext4](https://en.wikipedia.org/wiki/Ext4)YesYesYes, optionalYesNoYesThe`Q?`button over upper\-left corner activates the extension\. Upon activation, column names are renamed to snake\_case and a PRQL prompt appears\. Try writing the following there and see what happens\!
```
from t0
filter (file_change_log == 'Yes')
```
Note that the table still contains original HTML, e\.g\. the links are still there\.
Some caveats:
- The extension doesn’t do anything with column duplicates, so underlying DB \(sqlite\) will have a problem with that\.
- Since content is stored as HTML in the DB, operations over text will work with it, not rendered representation\. This may lead to weird results when sorting or searching through rich text\.
All caveats should \(and maybe will\) be taken care of, but current functionality is enough for me\.
A tool that extracts tables from pasted HTML, rich text, or plain text and exports them to HTML, Markdown, CSV, TSV, or JSON, with added Wikipedia search and automatic table import.
Interactive WebAssembly-based demo for SQLite Query Result Formatter that allows users to format SQL query results in 20+ styles including tables, CSV, JSON, HTML, and Markdown with real-time adjustments.
sparqlite is a Rust-based SQLite loadable extension that stores RDF quads in ordinary SQLite tables and natively executes SPARQL 1.1 queries, achieving 3.5× speedups over SQL translation while passing 636 of 639 W3C evaluation tests — notably generated by Claude Code's Ultracode agentic workflow over a 12-hour run.