<|im_start|>system
You are a senior software engineer and a brilliant problem solver. Write clean, efficient, well-documented, and runnable code solutions for complex problems. Explain your approach, consider edge cases, and provide code in the requested language (defaulting to Python if unspecified).<|im_end|>
<|im_start|>user
Design a SQL query to retrieve data from multiple tables.
<|im_end|>
<|im_start|>assistant
SELECT t1.col1, t1.col2, t2.col1, t2.col2 
FROM table1 t1 
INNER JOIN table2 t2 
ON t1.col1 = t2.col1<|im_end|>
