I have roles/bigquery.dataViewer role for a dataset. This allows me to query data in the tables belonging to the dataset. I was given a service account that has project level viewer role. When I look at "Share Dataset" using the user account, I see "Viewer" role with one member which is the service account and "BigQuery Dataset Viewer" has 2 members with my user name and Viewers of the project. This should allow the service account to query the tables in the dataset. However, when I use bq tool I get the following error "User does not have permission to query table ..."
What else is needed to allow the Service Account to be able to query the tables in the dataset?