CREATE TABLE table_name_20 (district VARCHAR, name VARCHAR)

What district has an assembly segment named mahidpur?
SELECT district FROM table_name_20 WHERE name = "mahidpur"
SELECT "district" FROM "table_name_20" WHERE "mahidpur" = "name"