Dataset Viewer
Auto-converted to Parquet Duplicate
source
stringclasses
1 value
conversations
listlengths
3
3
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE TVShows (ShowID INT, Title VARCHAR(255), ReleaseYear INT, Genre VARCHAR(50), IMDbRating DECIMAL(3,2)); \n\n How many TV shows were released per year in the 'Drama' genre and their average IMDb ratings?", ...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Code Assistant.", "role": "system" }, { "content": "CREATE TABLE DroughtImpact (Id INT, Location VARCHAR(50), Impact DECIMAL(5,2), Date DATE); INSERT INTO DroughtImpact (Id, Location, Impact, Date) VALUES (1, 'California', 0.9, '2021-06-15'); INSERT INTO DroughtImp...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Code Assistant.", "role": "system" }, { "content": "CREATE TABLE SeaIceData (region VARCHAR(255), date DATE, sea_ice_thickness FLOAT); INSERT INTO SeaIceData (region, date, sea_ice_thickness) VALUES ('Arctic Ocean', '2022-01-01', 1.2), ('Arctic Ocean', '2022-01-15'...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Code Assistant.", "role": "system" }, { "content": "CREATE TABLE spacecraft_temperatures (spacecraft_name TEXT, temperature FLOAT, mission_date DATE); \n\n What is the average temperature (in Kelvin) recorded by spacecrafts during their missions?", "role": "use...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE SalesRevenue (Company VARCHAR(50), Country VARCHAR(50), Revenue INT, Year INT); INSERT INTO SalesRevenue (Company, Country, Revenue, Year) VALUES ('Eurofarma', 'Brazil', 1000000, 2019), ('Aché', 'Brazil', ...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE restaurants (id INT, name TEXT, location TEXT, safety_score INT); INSERT INTO restaurants (id, name, location, safety_score) VALUES (1, 'Restaurant A', 'Texas', 90), (2, 'Restaurant B', 'Texas', 85), (3, '...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE data_types_summary (dept_name TEXT, column_name TEXT, data_type TEXT, record_count INTEGER); INSERT INTO data_types_summary (dept_name, column_name, data_type, record_count) VALUES ('Human Services Departm...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE DefenseDiplomacy (nation VARCHAR(50), year INT, spending FLOAT); INSERT INTO DefenseDiplomacy (nation, year, spending) VALUES ('Poland', 2017, 25000000), ('Romania', 2017, 30000000), ('Ukraine', 2017, 3500...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Code Assistant.", "role": "system" }, { "content": "CREATE TABLE health_facilities (facility_id INT, name VARCHAR(50), type VARCHAR(50), population INT, city VARCHAR(50), state VARCHAR(50)); \n\n What is the total population of clinics in 'New York' in the 'health_...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Code Assistant.", "role": "system" }, { "content": "CREATE TABLE Officers (id INT, name VARCHAR(50), rank VARCHAR(20), department VARCHAR(20)); INSERT INTO Officers (id, name, rank, department) VALUES (1, 'John Doe', 'Captain', 'Intelligence'), (2, 'Jane Smith', 'L...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE Concerts (ConcertId INT, Venue VARCHAR(255), Location VARCHAR(255), Attendees INT); INSERT INTO Concerts (ConcertId, Venue, Location, Attendees) VALUES (1, 'Madison Square Garden', 'New York, NY', 15000), ...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE Vessels (ID INT, Name VARCHAR(50), Type VARCHAR(50)); CREATE TABLE SafetyIncidents (ID INT, VesselID INT, Location VARCHAR(50), IncidentType VARCHAR(50)); INSERT INTO Vessels (ID, Name, Type) VALUES (1, 'O...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Code Assistant.", "role": "system" }, { "content": "CREATE TABLE CircularEconomy (initiative_id INT, country VARCHAR(50), type VARCHAR(50)); \n\n How many circular economy initiatives are there in Australia and New Zealand?", "role": "user" }, { "conten...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE articles (title VARCHAR(255), media_literacy_score INT); \n\n Find the number of articles with a media literacy score above 70 in the 'articles' table.", "role": "user" }, { "content": "```sql\...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE Warehouse (id INT, country VARCHAR(255), items_quantity INT); INSERT INTO Warehouse (id, country, items_quantity) VALUES (1, 'China', 300), (2, 'USA', 400); \n\n What is the total quantity of items shipped...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE GameDesignData (Game VARCHAR(20), Genre VARCHAR(20), Players INT); INSERT INTO GameDesignData (Game, Genre, Players) VALUES ('Fortnite', 'Battle Royale', 50000), ('Call of Duty', 'FPS', 30000), ('Minecraft...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE Sales (Product VARCHAR(50), Sales FLOAT, Date DATE); INSERT INTO Sales (Product, Sales, Date) VALUES ('T-Shirt', 500, '2022-01-01'), ('Trousers', 700, '2022-01-01'), ('Jacket', 300, '2022-01-01'), ('T-Shir...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE BuildingPermits (PermitID INT, PermitDate DATE, State TEXT); INSERT INTO BuildingPermits VALUES (1, '2022-01-01', 'California'), (2, '2022-01-15', 'Texas'), (3, '2022-02-05', 'Florida'); \n\n Which buildin...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Code Assistant.", "role": "system" }, { "content": "CREATE TABLE garments_2 (garment_id INT, brand_id INT, quantity INT); INSERT INTO garments_2 (garment_id, brand_id, quantity) VALUES (1, 1, 10), (2, 1, 0), (3, 2, 30), (4, 2, 0), (5, 3, 5), (6, 3, 0); \n\n Determi...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE articles (pub_date DATE, title TEXT, author TEXT); \n\n What is the number of articles published per month in the 'articles' table?", "role": "user" }, { "content": "```sql\nSELECT DATE_TRUNC('...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE athletes (athlete_id INT, name VARCHAR(50), age INT, sport VARCHAR(30)); INSERT INTO athletes (athlete_id, name, age, sport) VALUES (1, 'John Doe', 25, 'Basketball'), (2, 'Jane Smith', 30, 'Soccer'); \n\n ...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE Buildings (BuildingID INT, BuildingName VARCHAR(50)); INSERT INTO Buildings (BuildingID, BuildingName) VALUES (1, 'Adams Hall'); INSERT INTO Buildings (BuildingID, BuildingName) VALUES (2, 'Brown Hall'); C...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Code Assistant.", "role": "system" }, { "content": "CREATE TABLE organizations (name TEXT, region TEXT, offers_wellbeing BOOLEAN); INSERT INTO organizations (name, region, offers_wellbeing) VALUES ('ABC Non-Profit', 'Middle East', TRUE), ('XYZ Financial Institution...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE Construction_Permits (id INT, permit_number VARCHAR(20), issue_date DATE, state VARCHAR(20)); INSERT INTO Construction_Permits (id, permit_number, issue_date, state) VALUES (1, 'CP12345', '2018-01-01', 'Ge...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Code Assistant.", "role": "system" }, { "content": "CREATE TABLE electric_vehicles (id INT, vehicle_id INT, vehicle_type VARCHAR(50), registration_date TIMESTAMP); INSERT INTO electric_vehicles (id, vehicle_id, vehicle_type, registration_date) VALUES (1, 1234, 'Car...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE community_development_srilanka (id INT, country VARCHAR(255), initiative VARCHAR(255), cost FLOAT, year INT); INSERT INTO community_development_srilanka (id, country, initiative, cost, year) VALUES (1, 'Sr...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE Flight_Data (aircraft_model VARCHAR(255), region VARCHAR(255), flight_time INT); INSERT INTO Flight_Data (aircraft_model, region, flight_time) VALUES ('B737', 'North', 200), ('A320', 'South', 220), ('B737'...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE projects_cost_by_quarter (id INT, project_name VARCHAR(255), completion_quarter INT, completion_year INT, total_cost FLOAT); INSERT INTO projects_cost_by_quarter (id, project_name, completion_quarter, comp...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE Restaurant (id INT, name VARCHAR(50), type VARCHAR(50), location VARCHAR(50)); INSERT INTO Restaurant (id, name, type, location) VALUES (1, 'Plant-Based Bistro', 'Vegan', 'California'); INSERT INTO Restaur...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE athletes (athlete_id INT, athlete_location VARCHAR(50)); CREATE TABLE wellbeing_programs (program_id INT, athlete_id INT, cost DECIMAL(5,2)); INSERT INTO athletes (athlete_id, athlete_location) VALUES (1, ...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE artist_exhibitions (id INT, artist_id INT, year INT); INSERT INTO artist_exhibitions (id, artist_id, year) VALUES (1, 1, 2015), (2, 2, 2017), (3, 3, 2018), (4, 1, 2020); \n\n Which artists have not had any...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Code Assistant.", "role": "system" }, { "content": "CREATE TABLE Streams (id INT, artist VARCHAR(100), country VARCHAR(100), streams INT); INSERT INTO Streams (id, artist, country, streams) VALUES (1, 'Ariana Grande', 'Germany', 1000000); \n\n How many streams did ...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI SQL Code Assistant.", "role": "system" }, { "content": "CREATE TABLE journalists (id INT, name VARCHAR(50), last_article_date DATE); INSERT INTO journalists (id, name, last_article_date) VALUES (1, 'Jane Smith', '2022-01-15'); \n\n List the names of journalists who...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE regions (id INT, region TEXT, population INT); INSERT INTO regions (id, region, population) VALUES (1, 'Region 1', 500000), (2, 'Region 2', 750000), (3, 'Region 3', 600000); CREATE TABLE emergency_incident...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE articles (article_id INT, title VARCHAR(100), category VARCHAR(50), publication_date DATE, views INT); INSERT INTO articles (article_id, title, category, publication_date, views) VALUES (1, 'News from the ...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Code Assistant.", "role": "system" }, { "content": "CREATE TABLE spill_reports (report_id INT, location VARCHAR(50), year INT, reported_spill BOOLEAN); \n\n What is the total number of reported oil spills in the Gulf of Mexico since 2010?", "role": "user" }, ...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE art_pieces (id INT, style VARCHAR(20), year_sold INT, revenue DECIMAL(10,2)); CREATE VIEW impressionist_sales AS SELECT * FROM art_pieces WHERE style = 'Impressionist'; \n\n What was the total revenue for ...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Code Assistant.", "role": "system" }, { "content": "CREATE TABLE species (name VARCHAR(255), conservation_priority FLOAT, region VARCHAR(255)); INSERT INTO species (name, conservation_priority, region) VALUES ('Krill', 0.6, 'Southern Ocean'), ('Blue Whale', 0.55, '...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE IngredientCategories (id INT, name VARCHAR(255), carbon_footprint INT); \n\n What is the total carbon footprint for each ingredient category?", "role": "user" }, { "content": "```sql\nSELECT na...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Code Assistant.", "role": "system" }, { "content": "CREATE TABLE Employees (EmployeeID INT, HireYear INT, Department VARCHAR(20)); CREATE TABLE Trainings (TrainingID INT, EmployeeID INT, TrainingYear INT, Cost FLOAT); INSERT INTO Employees (EmployeeID, HireYear, De...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE Employees (EmployeeID INT, Salary DECIMAL(10, 2), Department VARCHAR(50)); INSERT INTO Employees (EmployeeID, Salary, Department) VALUES (1, 50000, 'HR'), (2, 55000, 'IT'), (3, 60000, 'IT'), (4, 45000, 'HR...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE weather (region VARCHAR(255), temperature INT, date DATE); INSERT INTO weather (region, temperature, date) VALUES ('North', 25, '2022-07-01'), ('South', 30, '2022-07-01'), ('East', 28, '2022-07-01'), ('Wes...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE ships(id INT, name VARCHAR(100), type VARCHAR(50), gross_tonnage INT);INSERT INTO ships(id, name, type, gross_tonnage) VALUES (1, 'Ever Given', 'Container', 200000); INSERT INTO ships(id, name, type, gross...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE mines (id INT PRIMARY KEY, name VARCHAR(255), location VARCHAR(255), year_opened INT, total_employees INT); INSERT INTO mines (id, name, location, year_opened, total_employees) VALUES (1, 'Golden Ridge Min...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE complaints (complaint_id INT, complaint_date DATE, complaint_status VARCHAR(50)); \n\n What is the total number of mental health parity complaints resolved in the last 6 months?", "role": "user" }, ...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE FOOD_ITEMS (id INT, name VARCHAR(50), category VARCHAR(50), is_organic BOOLEAN, avg_calories FLOAT); INSERT INTO FOOD_ITEMS (id, name, category, is_organic, avg_calories) VALUES (1, 'Apple', 'Fruit', true,...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE wind_farms (name VARCHAR(255), location VARCHAR(255), capacity FLOAT, monthly_production FLOAT); INSERT INTO wind_farms VALUES ('Farm A', 'USA', 100, 2000), ('Farm B', 'Canada', 150, 3000), ('Farm C', 'Ger...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE Artwork (ArtworkID INT, Title VARCHAR(100), Category VARCHAR(50), Price FLOAT); CREATE TABLE Sales (SaleID INT, ArtworkID INT, SaleDate DATE); INSERT INTO Sales VALUES (1, 1, '2010-05-01'); INSERT INTO Sal...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Code Assistant.", "role": "system" }, { "content": "CREATE TABLE Sales(store VARCHAR(20), sale_date DATE, garment_id INT); INSERT INTO Sales(store, sale_date, garment_id) VALUES ('Eco_Friendly', '2021-10-01', 1), ('Eco_Friendly', '2021-10-02', 2); \n\n How many gar...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE GameDesign (GameID INT, GameName VARCHAR(20), Platform VARCHAR(10), VR BIT); \n\n Identify the total number of virtual reality (VR) games designed for PC and console platforms, and list the game names.", ...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Code Assistant.", "role": "system" }, { "content": "CREATE TABLE Applications (ApplicationID int, JobType varchar(20), Date datetime); INSERT INTO Applications (ApplicationID, JobType, Date) VALUES (1, 'Marketing', '2022-01-01'); INSERT INTO Applications (Applicati...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE Temperature_Data (location TEXT, temperature NUMERIC); INSERT INTO Temperature_Data (location, temperature) VALUES ('Arctic Ocean Surface', -1.8), ('Arctic Ocean Deep', -1.5), ('North Pole Surface', -1.8),...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE Mining_Equipment (equipment_id INT, manufacturer VARCHAR(255), model VARCHAR(255), purchase_date DATE); \n\n Delete all mining equipment records that are older than 10 years", "role": "user" }, { ...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE volunteer_hours (id INT, volunteer_name TEXT, gender TEXT, hours INT, volunteer_date DATE); INSERT INTO volunteer_hours (id, volunteer_name, gender, hours, volunteer_date) VALUES (1, 'Alice', 'Female', 5, ...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE students (student_id INT, dept_id INT, graduated BOOLEAN, num_publications INT);CREATE TABLE departments (dept_id INT, dept_name VARCHAR(255)); \n\n Calculate the percentage of graduate students per depart...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE eco_hotels (hotel_id INT, name TEXT, city TEXT, rating FLOAT); \n\n Insert a new eco-friendly hotel in Rome with a rating of 4.7", "role": "user" }, { "content": "```sql\nINSERT INTO eco_hotels...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE soil_moisture (field VARCHAR(255), moisture FLOAT, timestamp TIMESTAMP); \n\n Update the soil moisture for 'Field_4' to 50 in the 'soil_moisture' table.", "role": "user" }, { "content": "```sql...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE Products (productID INT, productName VARCHAR(50), productType VARCHAR(50), price DECIMAL(10,2), upcycled BOOLEAN, country VARCHAR(50)); CREATE TABLE Sales (saleID INT, productID INT, saleDate DATE); \n\n W...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE military_soldiers (id INT, soldier_name TEXT, country TEXT, num_soldiers INT); INSERT INTO military_soldiers (id, soldier_name, country, num_soldiers) VALUES (1, 'John Smith', 'USA', 1), (2, 'Jane Doe', 'U...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE hydro_plants (name VARCHAR(255), capacity FLOAT); INSERT INTO hydro_plants (name, capacity) VALUES ('Plant1', 1200.5), ('Plant2', 1800.2), ('Plant3', 2400.9); \n\n What is the average capacity of hydroelec...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE ocean_pollution (pollution_id INTEGER, source TEXT, location TEXT, pollution_amount REAL); INSERT INTO ocean_pollution (pollution_id, source, location, pollution_amount) VALUES (1, 'Oil Spills', 'Gulf of M...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE account (account_id INT, client_id INT, region VARCHAR(50), account_type VARCHAR(50), open_date DATE); INSERT INTO account (account_id, client_id, region, account_type, open_date) VALUES (1, 1, 'Middle Eas...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE FashionTrends (TrendID INT, TrendName VARCHAR(50), Category VARCHAR(50), UpdateDate DATE); \n\n Delete records of fashion trends that were discontinued in the last year, based on the UpdateDate in the Fash...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE patients (patient_id INT, age INT, treatment VARCHAR(20)); INSERT INTO patients (patient_id, age, treatment) VALUES (1, 35, 'CBT'), (2, 40, 'DBT'), (3, 50, 'CBT'); \n\n What is the average age of patients ...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE ai_chatbots_adoption (chatbot_id INT, hotel_id INT, region VARCHAR(20), adoption_date DATE); \n\n How many hotels have adopted AI-powered chatbots in the 'Americas' region?", "role": "user" }, { ...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE hydroelectric_plants (plant_id INT, country VARCHAR(50), river VARCHAR(50), generation_mwh FLOAT); \n\n What is the maximum renewable energy generation (in MWh) from hydroelectric power plants, grouped by ...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE clothing_production (id INT PRIMARY KEY, country VARCHAR(50), item_type VARCHAR(50), production_cost FLOAT); INSERT INTO clothing_production (id, country, item_type, production_cost) VALUES (1, 'United Sta...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE security_incidents (id INT, timestamp TIMESTAMP, country VARCHAR(255), incident_type VARCHAR(255)); \n\n What are the top 3 countries with the most security incidents, in the last year?", "role": "user...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE student_mental_health (student_id INT, mental_health_score INT, gender VARCHAR(255), school_district VARCHAR(255), date DATE); INSERT INTO student_mental_health (student_id, mental_health_score, gender, sc...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Code Assistant.", "role": "system" }, { "content": "CREATE TABLE fish_species (id INT, species TEXT, biomass_tolerance FLOAT);CREATE TABLE fish_population (id INT, species TEXT, population INT, biomass FLOAT, date DATE); \n\n What is the average biomass of fish in ...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE SCHEMA GreenEnergy; CREATE TABLE RenewableProjects (project_id INT, name VARCHAR(50), location VARCHAR(50), installed_capacity FLOAT); INSERT INTO RenewableProjects (project_id, name, location, installed_capacit...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE Sustainable_Building_Projects (Project_ID INT, State TEXT); INSERT INTO Sustainable_Building_Projects (Project_ID, State) VALUES (1, 'California'), (2, 'California'), (3, 'Texas'), (4, 'Texas'), (5, 'New Y...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE hospitals (id INT, region VARCHAR(255), name VARCHAR(255), patient_capacity INT); INSERT INTO hospitals (id, region, name, patient_capacity) VALUES (1, 'Northeast', 'Hospital A', 100), (2, 'West', 'Hospita...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Code Assistant.", "role": "system" }, { "content": "CREATE TABLE ReportedCrimes (ID INT, State VARCHAR(20), Year INT, Crimes INT); INSERT INTO ReportedCrimes (ID, State, Year, Crimes) VALUES (1, 'Texas', 2020, 1000); \n\n What is the total number of reported crimes...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Code Assistant.", "role": "system" }, { "content": "CREATE SCHEMA renewable_energy; CREATE TABLE wind_farms (id INT, name VARCHAR(100), capacity FLOAT); INSERT INTO wind_farms (id, name, capacity) VALUES (1, 'Wind Farm A', 50.0), (2, 'Wind Farm B', 75.0); \n\n What...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE facilities (facility_id INT, facility_type VARCHAR(20), province_abbr VARCHAR(2)); INSERT INTO facilities (facility_id, facility_type, province_abbr) VALUES (1, 'Mental Health Clinic', 'ON'), (2, 'Hospital...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE Sales_Data (sales_rep VARCHAR(255), sale_date DATE, equipment_type VARCHAR(255), country VARCHAR(255), sale_value FLOAT); INSERT INTO Sales_Data (sales_rep, sale_date, equipment_type, country, sale_value) ...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Code Assistant.", "role": "system" }, { "content": "CREATE TABLE LinenProduction (country VARCHAR(50), water_usage INT); INSERT INTO LinenProduction VALUES ('France', 1200), ('Germany', 1000), ('France', 1500), ('Italy', 800); \n\n What is the average water usage o...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Code Assistant.", "role": "system" }, { "content": "CREATE TABLE Donors (donor_id INT, name VARCHAR(50), donor_type VARCHAR(20), donation_amount DECIMAL(10,2)); \n\n What is the minimum donation amount for each donor_type in the 'Donors' table?", "role": "user"...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE Members (Id INT, Name VARCHAR(50), Age INT, Nationality VARCHAR(50)); INSERT INTO Members (Id, Name, Age, Nationality) VALUES (1, 'John Doe', 30, 'USA'), (2, 'Jane Smith', 25, 'Canada'); \n\n What is the t...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE timber_production (production_id INT, year INT, volume FLOAT); \n\n List all the timber_production data for a specific year, such as 2020?", "role": "user" }, { "content": "```sql\nSELECT * FRO...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE ticket_sales (id INT, game_date DATE, game_type VARCHAR(10), quantity INT); \n\n What is the total number of tickets sold for all games in the last year, and what is the percentage that was sold for basket...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE forestry_data.young_forest (tree_id INT, species VARCHAR(50), age INT, height INT, location VARCHAR(50));CREATE TABLE forestry_data.mature_forest (tree_id INT, species VARCHAR(50), age INT, height INT, loc...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE systems (system_id INT, system_name VARCHAR(255), operating_system VARCHAR(255), vulnerability_score INT); INSERT INTO systems (system_id, system_name, operating_system, vulnerability_score) VALUES (1, 'We...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Code Assistant.", "role": "system" }, { "content": "CREATE TABLE sustainability (id INT, project_id INT, sustainable_material VARCHAR(255), amount_used INT); INSERT INTO sustainability (id, project_id, sustainable_material, amount_used) VALUES (1, 1, 'Recycled Stee...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE museum_operations (id INT, museum_name VARCHAR(50), location VARCHAR(50), annual_visitors INT); INSERT INTO museum_operations (id, museum_name, location, annual_visitors) VALUES (1, 'Metropolitan Museum of...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Code Assistant.", "role": "system" }, { "content": "CREATE TABLE poolhotels (id INT, name VARCHAR(255), region VARCHAR(255), revenue FLOAT, has_pool BOOLEAN); INSERT INTO poolhotels (id, name, region, revenue, has_pool) VALUES (1, 'Pool Hotel', 'North America', 350...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE social_housing_projects (project_id INT, project_name TEXT, country TEXT, total_investment FLOAT); CREATE TABLE esg_scores (project_id INT, esg_score INT); INSERT INTO social_housing_projects (project_id, ...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE City (Id INT, Name VARCHAR(50), Population INT, TransportationBudget DECIMAL(10,2), InfrastructureBudget DECIMAL(10,2)); INSERT INTO City (Id, Name, Population, TransportationBudget, InfrastructureBudget) ...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE CommunityDev (id INT, initiative VARCHAR(255), country VARCHAR(255), coordinator VARCHAR(255)); INSERT INTO CommunityDev (id, initiative, country, coordinator) VALUES (1, 'Youth Empowerment', 'Brazil', 'Ma...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Code Assistant.", "role": "system" }, { "content": "CREATE TABLE approval_times (drug_name TEXT, approval_time INT); CREATE TABLE drug_types (drug_name TEXT, drug_type TEXT); INSERT INTO approval_times (drug_name, approval_time) VALUES ('DrugX', 12), ('DrugY', 18),...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE carbon_offset_initiatives (id INT, name VARCHAR(255), description TEXT, total_carbon_offset FLOAT, country VARCHAR(50)); \n\n Get the names and total carbon offset of all carbon offset initiatives located ...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE Players (PlayerID INT, Age INT, Gender VARCHAR(10));CREATE TABLE EsportsEvents (EventID INT, PlayerID INT, EventType VARCHAR(20)); \n\n Delete the records of players who have not participated in any esport...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Code Assistant.", "role": "system" }, { "content": "CREATE TABLE mining_sites (id INT, site_name TEXT, total_resources_available INT);CREATE TABLE resources_depleted (site_id INT, amount_depleted INT); \n\n What is the total amount of resources depleted by each min...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE portland_prop(id INT, owner1 VARCHAR(20), owner2 VARCHAR(20), lease_exp DATE); INSERT INTO portland_prop VALUES (1, 'Alice', 'Bob', '2023-06-01'), (2, 'Charlie', 'David', '2023-01-15'); \n\n Find all the c...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE accidents (id INT, report_date DATE, city TEXT, type TEXT); INSERT INTO accidents (id, report_date, city, type) VALUES (1, '2022-01-01', 'Houston', 'minor'); \n\n How many traffic accidents were reported i...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Code Assistant.", "role": "system" }, { "content": "CREATE TABLE InfectiousDiseases (Type VARCHAR(50), Country VARCHAR(50), Year INT, InfectiousDiseases INT); INSERT INTO InfectiousDiseases (Type, Country, Year, InfectiousDiseases) VALUES ('Influenza', 'USA', 2019,...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE MarineLife (id INT PRIMARY KEY, species VARCHAR(255), population INT); \n\n Find the total number of marine species in the 'MarineLife' table", "role": "user" }, { "content": "```sql\nSELECT CO...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Code Assistant.", "role": "system" }, { "content": "CREATE TABLE companies (id INT, name TEXT, industry TEXT, founding_date DATE, founder_gender TEXT); \n\n What is the average founding date for companies with at least one female founder?", "role": "user" }, ...
gretelai/synthetic_text_to_sql-10k
[ { "content": "You are a helpful AI Assistant.", "role": "system" }, { "content": "CREATE TABLE climate_funding (country VARCHAR(255), year INT, funding_amount FLOAT); \n\n Identify the top 3 countries with the most funding for climate communication programs in 2020 and their respective funding amoun...
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
1