Mindgraph interview question

Asked to write python codes and SQL commands on connecting 2 tables using joins