import sqlite3


def get_ratings(prof_id, course_name):
    """
    Returns rating of a particular course+instructor tuple
    """
    conn = sqlite3.connect('./db.sqlite3')
    cursor = conn.cursor()
    cursor.execute("""SELECT rating.workload, rating.learning, rating.grading
                            FROM review
                            INNER JOIN rating ON review.review_id = rating.review_id
                            WHERE review.prof_id = ? AND course_name = ?""", (prof_id, course_name))
    return cursor.fetchall()