You should use
datalab query --sql="select * from mydb://test"
467 questions
479 answers
477 comments
667 users