Couchbase Server 4.0

You’re missing the backticks (`) :

curl .. -d 'statement=SELECT name FROM `beer-sample`'