mycursor.execute problem in insertion using python

im trying to insert my json file data into my database table named location but no matter what i do it doesn’t work i keep receiving the same error in mycursor.execute , im a beginner in python so i don’t know much
any help would be appreciated ,thank you
i solved the previous problem thanks to you, i forgot to close the bracket in sql_location

React. how to pass props from onClick to function

I am new to React, I am trying to create an app in which I can click on a button and a function will run countdown timer, but If I pass props from onClick to begin function like this, onClick={begin(props.subject)} the function will run before I click. and if I use onClick with begin without argument, there is no props being passed down. how can I fix that? thanks