The bucket name `travel-sample` has special characters so you need to use escaped identifier (back ticks).
Служба запросов работает на порту 8093. Также необходимо отправить REST API на порт 8093.
Вы также можете попробовать это.
curl -v http://localhost:8093/query/service -H "Content-Type: application/json" -d '{"statement":"select a.name,r.destinationairport,count(a.name) AS total_flights from `travel-sample` r join `travel-sample` a on keys r.airlineid where r.type = "route" and a.type="airline" group by r.destinationairport, a.name order by r.destinationairport", "creds":[{"user":"user","pass":"xxxx"}]}'