GROQ was designed to query and join multiple sources of data, and to make it easy to plan for efficient execution (e.g. on top of a relational database or search engine). For example:
*[_type == "author"] {
_id,
name,
"books": *[_type == "book" && author == ^._id] {
title,
year,
publisher-> // Join referenced publisher
genres[]-> // and all the genres
]
}
This gives you all the authors with each author's books. You can do a lot of the same transformations that Jq does, but you can also do it across multiple collections of data; it's not a pipeline with an implicit input.(Disclosure: I work at Sanity.)