I use the bq command line tool to run queries, e.g:
bq
bq query "select * from table"
What if I store the query in a file
bq query --replace --use_legacy_sql=false --destination_table=syw-analytics:store_ranking.SHC_ENGAGEMENT_RANKING_TEST "SELECT RED, DEC, REDEM from `\syw.abc.xyz\`"