Ok, interesting. I never thought about using SQL to query nostr events. Please share your queries :) One thing about nostralink is that if there's some JSON in the content field of a nostr event, it unpacks the JSON, and that information is then serialized to RDF and into the events store, so you can then query it natively with SparQL. I even wrote a nostr client that uses nostralink: https://pazstr.codeberg.page/