Python Insert Variable Into Sql Query Examples With Multiple Tables