human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Constituency, Candidate, Affiliation, Votes -cast, Result - %, Loss/gain
###Question: How many votes were cast when the constituency was midlothian?
gpt
SELECT Votes -cast FROM table WHERE Constituency = Midlothian