One issue I have with query languages is how poorly they interact with the "host language" . SQL requires non-composable string templating or complex, low-performance ORM's.
The only query languages that do this "right" are datalog (Datomic) and Q/K (KDB+, Shakti).