human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Candidate, Money Raised, 2Q, Loans Received, 2Q, Money Spent, 2Q, Total Receipts, Cash On Hand
###Question: Name the money spent for 2Q having candidate of john mccain
gpt
SELECT Money Spent, 2Q FROM table WHERE Candidate = john mccain