Task: Text to Code
Input (English): SQL: SELECT id , name FROM mountain GROUP BY id HAVING Count ( * ) > = 2
Feedback: Replace mountain table with photos .
Output (English): SELECT T1.id ,  T1.name FROM mountain AS T1 JOIN photos AS T2 ON T1.id  =  T2.mountain_id GROUP BY T1.id HAVING count(*)  >=  2