How many runs allowed did the team ranked 2 with more than 2 losses have?
CREATE TABLE table_name_50 (
    runs_allowed INTEGER,
    rank VARCHAR,
    losses VARCHAR
)
SELECT AVG(runs_allowed) FROM table_name_50 WHERE rank = 2 AND losses > 2
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many runs allowed did the team ranked 2 with more than 2 losses have? ### Input: CREATE TABLE table_name_50 (
    runs_allowed INTEGER,
    rank VARCHAR,
    losses VARCHAR
) ### Response: SELECT AVG(runs_allowed) FROM table_name_50 WHERE rank = 2 AND losses > 2