GROQ

https://www.sanity.io/docs/groq

GROQ is Sanity's open-source query language.

With GROQ you can describe exactly what information your application needs, join information from several sets of documents, and stitch together a very specific response with only the exact fields you need.

GROQ Cheat Sheet

A quick sheet with lots of common GROQ search patterns