Table: mayoral_election_results_2
Columns: 2013_republican_primary
manhattan
the_bronx
brooklyn
queens
staten_island
total
col

Question: What was Staten Island when Brooklyn was 940?
SQL: SELECT "staten_island" FROM mayoral_election_results_2 WHERE "brooklyn" = '940'

Question: What was the total number in Manhattan when Staten Island was 12,658?
SQL: SELECT COUNT("manhattan") FROM mayoral_election_results_2 WHERE "staten_island" = '12,658'

Question: What was the total in Brooklyn when Manhattan was 3,139?
SQL: SELECT "brooklyn" FROM mayoral_election_results_2 WHERE "manhattan" = '3,139'

Question: Who was the republican candidate in 2013 when Staten Island was 451?
SQL: SELECT "2013_republican_primary" FROM mayoral_election_results_2 WHERE "staten_island" = '451'

Question: What was the amount in Staten Island when The Bronx was 1,281?
SQL: SELECT "staten_island" FROM mayoral_election_results_2 WHERE "the_bronx" = '1,281'