Table: gaba_revenue_monthly
Columns: feb_2010
mar_2010
may_2010
jun_2010
jul_2010
aug_2010
sep_2010
oct_2010
nov_2010
dec_2010
jan_2011
feb_2011
mar_2011
apr_2011
may_2011
jun_2011
jul_2011
aug_2011
sep_2011
oct_2011
nov_2011
dec_2011
jan_2012
feb_2012
mar_2012
apr_2012
may_2012
jun_2012
jul_2012
aug_2012
sep_2012
oct_2012
nov_2012
dec_2012
jan_2013
feb_2013
mar_2013
apr_2013
may_2013
jun_2013
jul_2013
aug_2013
sep_2013
oct_2013

Question: What is the highest Aug 2013 with a Nov 2011 smaller than 968, and a Jul 2012 with 31, and a Jun 2011 larger than 30?
SQL: SELECT MAX("aug_2013") FROM gaba_revenue_monthly WHERE "nov_2011" < 968 AND "jul_2012" = 31 AND "jun_2011" > 30

Question: What is the average Apr 2013 with a Jun 2011 less than 14?
SQL: SELECT AVG("apr_2013") FROM gaba_revenue_monthly WHERE "jun_2011" < 14

Question: What is the average Feb 2013 with a Feb 2010 with 37, and a Nov 2012 less than 32?
SQL: SELECT AVG("feb_2013") FROM gaba_revenue_monthly WHERE "feb_2010" = '37' AND "nov_2012" < 32

Question: What is the total number with Nov 2012 with a Jun 2013 larger than 542, and a Aug 2011 more than 935?
SQL: SELECT COUNT("nov_2012") FROM gaba_revenue_monthly WHERE "jun_2013" > 542 AND "aug_2011" > 935