from typing import Iterable


def getSqlQuery(db_table_name: str='movie') -> Iterable[str]:
    """Get the SQL query by table name.
    """
    query = ''
    if db_table_name == 'movie':
        query = f'''
            INSERT INTO {db_table_name} (
                rg_id,
                scraped_timestamp,
                title, 
                year, 
                overview,
                rating, 
                imdb_score, 
                reelgood_rating_score,
                url_offset_value
            ) 
            VALUES''' + '(%s, NOW(), %s, %s, %s, %s, %s, %s, %s);'
    elif db_table_name == 'availability':
        query = f'''
            INSERT INTO {db_table_name} (
                scraped_timestamp,
                rg_id, 
                source_name,
                source_movie_id,
                source_web_link
            )
            VALUES''' + '(NOW(), %s, %s, %s, %s);'
    return query, db_table_name