You should use
datalab query --sql="select * from mydb://test"
509 questions
517 answers
502 comments
688 users