It has no relationship to SQL, it's an elegant way to request what you want. What else do you think is better?
Discussion
Define "better". To me, for APIs, better is something that is faster and push enabled. This means custom built endpoints.
GraphQL might make sense for certain use cases where you need custom queries, just like SQL, but it's too slow and wasteful for static endpoints.