You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE Grants (organisation_id VARCHAR, grant_amount INTEGER)
system
What is the total amount of grants given by each organisations? Also list the organisation id.
user
SELECT SUM(grant_amount), organisation_id FROM Grants GROUP BY organisation_id
assistant
<|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE Grants (organisation_id VARCHAR, grant_amount INTEGER)<|im_end|>
<|im_start|>user
What is the total amount of grants given by each organisations? Also list the organisation id.<|im_end|>
