Dataset Viewer
Auto-converted to Parquet Duplicate
db_id
stringclasses
140 values
messages
listlengths
2
2
department_management
[ { "content": "Translate the following question to SQL: How many heads of the departments are older than 56 ?\n\nSchema: CREATE TABLE department (\n Department_ID INT PRIMARY KEY,\n Name TEXT,\n Creation TEXT,\n Ranking INT,\n Budget_in_Billions REAL,\n Num_Employees REAL,\n UNIQUE (Depart...
department_management
[ { "content": "Translate the following question to SQL: List the name, born state and age of the heads of departments ordered by age.\n\nSchema: CREATE TABLE department (\n Department_ID INT PRIMARY KEY,\n Name TEXT,\n Creation TEXT,\n Ranking INT,\n Budget_in_Billions REAL,\n Num_Employees R...
department_management
[ { "content": "Translate the following question to SQL: List the creation year, name and budget of each department.\n\nSchema: CREATE TABLE department (\n Department_ID INT PRIMARY KEY,\n Name TEXT,\n Creation TEXT,\n Ranking INT,\n Budget_in_Billions REAL,\n Num_Employees REAL,\n UNIQUE (...
department_management
[ { "content": "Translate the following question to SQL: What are the maximum and minimum budget of the departments?\n\nSchema: CREATE TABLE department (\n Department_ID INT PRIMARY KEY,\n Name TEXT,\n Creation TEXT,\n Ranking INT,\n Budget_in_Billions REAL,\n Num_Employees REAL,\n UNIQUE (...
department_management
[ { "content": "Translate the following question to SQL: What is the average number of employees of the departments whose rank is between 10 and 15?\n\nSchema: CREATE TABLE department (\n Department_ID INT PRIMARY KEY,\n Name TEXT,\n Creation TEXT,\n Ranking INT,\n Budget_in_Billions REAL,\n N...
department_management
[ { "content": "Translate the following question to SQL: What are the names of the heads who are born outside the California state?\n\nSchema: CREATE TABLE department (\n Department_ID INT PRIMARY KEY,\n Name TEXT,\n Creation TEXT,\n Ranking INT,\n Budget_in_Billions REAL,\n Num_Employees REAL...
department_management
[ { "content": "Translate the following question to SQL: What are the distinct creation years of the departments managed by a secretary born in state 'Alabama'?\n\nSchema: CREATE TABLE department (\n Department_ID INT PRIMARY KEY,\n Name TEXT,\n Creation TEXT,\n Ranking INT,\n Budget_in_Billions ...
department_management
[ { "content": "Translate the following question to SQL: What are the names of the states where at least 3 heads were born?\n\nSchema: CREATE TABLE department (\n Department_ID INT PRIMARY KEY,\n Name TEXT,\n Creation TEXT,\n Ranking INT,\n Budget_in_Billions REAL,\n Num_Employees REAL,\n U...
department_management
[ { "content": "Translate the following question to SQL: In which year were most departments established?\n\nSchema: CREATE TABLE department (\n Department_ID INT PRIMARY KEY,\n Name TEXT,\n Creation TEXT,\n Ranking INT,\n Budget_in_Billions REAL,\n Num_Employees REAL,\n UNIQUE (Department_...
department_management
[ { "content": "Translate the following question to SQL: Show the name and number of employees for the departments managed by heads whose temporary acting value is 'Yes'?\n\nSchema: CREATE TABLE department (\n Department_ID INT PRIMARY KEY,\n Name TEXT,\n Creation TEXT,\n Ranking INT,\n Budget_in...
department_management
[ { "content": "Translate the following question to SQL: How many acting statuses are there?\n\nSchema: CREATE TABLE department (\n Department_ID INT PRIMARY KEY,\n Name TEXT,\n Creation TEXT,\n Ranking INT,\n Budget_in_Billions REAL,\n Num_Employees REAL,\n UNIQUE (Department_ID)\n);\n\nCR...
department_management
[ { "content": "Translate the following question to SQL: How many departments are led by heads who are not mentioned?\n\nSchema: CREATE TABLE department (\n Department_ID INT PRIMARY KEY,\n Name TEXT,\n Creation TEXT,\n Ranking INT,\n Budget_in_Billions REAL,\n Num_Employees REAL,\n UNIQUE ...
department_management
[ { "content": "Translate the following question to SQL: What are the distinct ages of the heads who are acting?\n\nSchema: CREATE TABLE department (\n Department_ID INT PRIMARY KEY,\n Name TEXT,\n Creation TEXT,\n Ranking INT,\n Budget_in_Billions REAL,\n Num_Employees REAL,\n UNIQUE (Depa...
department_management
[ { "content": "Translate the following question to SQL: List the states where both the secretary of 'Treasury' department and the secretary of 'Homeland Security' were born.\n\nSchema: CREATE TABLE department (\n Department_ID INT PRIMARY KEY,\n Name TEXT,\n Creation TEXT,\n Ranking INT,\n Budge...
department_management
[ { "content": "Translate the following question to SQL: Which department has more than 1 head at a time? List the id, name and the number of heads.\n\nSchema: CREATE TABLE department (\n Department_ID INT PRIMARY KEY,\n Name TEXT,\n Creation TEXT,\n Ranking INT,\n Budget_in_Billions REAL,\n N...
department_management
[ { "content": "Translate the following question to SQL: Which head's name has the substring 'Ha'? List the id and name.\n\nSchema: CREATE TABLE department (\n Department_ID INT PRIMARY KEY,\n Name TEXT,\n Creation TEXT,\n Ranking INT,\n Budget_in_Billions REAL,\n Num_Employees REAL,\n UNIQ...
farm
[ { "content": "Translate the following question to SQL: How many farms are there?\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking TEXT,\n UNIQUE (City_ID)\n);\n\nCREATE TABLE farm (\n Fa...
farm
[ { "content": "Translate the following question to SQL: Count the number of farms.\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking TEXT,\n UNIQUE (City_ID)\n);\n\nCREATE TABLE farm (\n F...
farm
[ { "content": "Translate the following question to SQL: List the total number of horses on farms in ascending order.\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking TEXT,\n UNIQUE (City_ID)...
farm
[ { "content": "Translate the following question to SQL: What is the total horses record for each farm, sorted ascending?\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking TEXT,\n UNIQUE (City...
farm
[ { "content": "Translate the following question to SQL: What are the hosts of competitions whose theme is not \"Aliens\"?\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking TEXT,\n UNIQUE (Cit...
farm
[ { "content": "Translate the following question to SQL: Return the hosts of competitions for which the theme is not Aliens?\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking TEXT,\n UNIQUE (C...
farm
[ { "content": "Translate the following question to SQL: What are the themes of farm competitions sorted by year in ascending order?\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking TEXT,\n U...
farm
[ { "content": "Translate the following question to SQL: Return the themes of farm competitions, sorted by year ascending.\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking TEXT,\n UNIQUE (Cit...
farm
[ { "content": "Translate the following question to SQL: What is the average number of working horses of farms with more than 5000 total number of horses?\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Censu...
farm
[ { "content": "Translate the following question to SQL: Give the average number of working horses on farms with more than 5000 total horses.\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking TEX...
farm
[ { "content": "Translate the following question to SQL: What are the maximum and minimum number of cows across all farms.\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking TEXT,\n UNIQUE (Cit...
farm
[ { "content": "Translate the following question to SQL: Return the maximum and minimum number of cows across all farms.\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking TEXT,\n UNIQUE (City_...
farm
[ { "content": "Translate the following question to SQL: How many different statuses do cities have?\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking TEXT,\n UNIQUE (City_ID)\n);\n\nCREATE TA...
farm
[ { "content": "Translate the following question to SQL: Count the number of different statuses.\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking TEXT,\n UNIQUE (City_ID)\n);\n\nCREATE TABLE ...
farm
[ { "content": "Translate the following question to SQL: List official names of cities in descending order of population.\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking TEXT,\n UNIQUE (City...
farm
[ { "content": "Translate the following question to SQL: What are the official names of cities, ordered descending by population?\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking TEXT,\n UNIQ...
farm
[ { "content": "Translate the following question to SQL: List the official name and status of the city with the largest population.\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking TEXT,\n UN...
farm
[ { "content": "Translate the following question to SQL: What is the official name and status of the city with the most residents?\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking TEXT,\n UNI...
farm
[ { "content": "Translate the following question to SQL: Show the years and the official names of the host cities of competitions.\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking TEXT,\n UNI...
farm
[ { "content": "Translate the following question to SQL: Give the years and official names of the cities of each competition.\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking TEXT,\n UNIQUE (...
farm
[ { "content": "Translate the following question to SQL: Show the official names of the cities that have hosted more than one competition.\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking TEXT,\...
farm
[ { "content": "Translate the following question to SQL: What are the official names of cities that have hosted more than one competition?\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking TEXT,\...
farm
[ { "content": "Translate the following question to SQL: Show the status of the city that has hosted the greatest number of competitions.\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking TEXT,\n...
farm
[ { "content": "Translate the following question to SQL: What is the status of the city that has hosted the most competitions?\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking TEXT,\n UNIQUE ...
farm
[ { "content": "Translate the following question to SQL: Please show the themes of competitions with host cities having populations larger than 1000.\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ran...
farm
[ { "content": "Translate the following question to SQL: What are the themes of competitions that have corresponding host cities with more than 1000 residents?\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n ...
farm
[ { "content": "Translate the following question to SQL: Please show the different statuses of cities and the average population of cities with each status.\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Cen...
farm
[ { "content": "Translate the following question to SQL: What are the statuses and average populations of each city?\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking TEXT,\n UNIQUE (City_ID)\...
farm
[ { "content": "Translate the following question to SQL: Please show the different statuses, ordered by the number of cities that have each.\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking TEXT...
farm
[ { "content": "Translate the following question to SQL: Return the different statuses of cities, ascending by frequency.\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking TEXT,\n UNIQUE (City...
farm
[ { "content": "Translate the following question to SQL: List the most common type of Status across cities.\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking TEXT,\n UNIQUE (City_ID)\n);\n\nCR...
farm
[ { "content": "Translate the following question to SQL: What is the most common status across all cities?\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking TEXT,\n UNIQUE (City_ID)\n);\n\nCRE...
farm
[ { "content": "Translate the following question to SQL: List the official names of cities that have not held any competition.\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking TEXT,\n UNIQUE ...
farm
[ { "content": "Translate the following question to SQL: What are the official names of cities that have not hosted a farm competition?\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking TEXT,\n ...
farm
[ { "content": "Translate the following question to SQL: Show the status shared by cities with population bigger than 1500 and smaller than 500.\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking ...
farm
[ { "content": "Translate the following question to SQL: Which statuses correspond to both cities that have a population over 1500 and cities that have a population lower than 500?\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n P...
farm
[ { "content": "Translate the following question to SQL: Find the official names of cities with population bigger than 1500 or smaller than 500.\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking ...
farm
[ { "content": "Translate the following question to SQL: What are the official names of cities that have population over 1500 or less than 500?\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking T...
farm
[ { "content": "Translate the following question to SQL: Show the census ranking of cities whose status are not \"Village\".\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking TEXT,\n UNIQUE (C...
farm
[ { "content": "Translate the following question to SQL: What are the census rankings of cities that do not have the status \"Village\"?\n\nSchema: CREATE TABLE city (\n City_ID INT PRIMARY KEY,\n Official_Name TEXT,\n Status TEXT,\n Area_km_2 REAL,\n Population REAL,\n Census_Ranking TEXT,\n ...
student_assessment
[ { "content": "Translate the following question to SQL: which course has most number of registered students?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode CHAR(20),\n state_province_...
student_assessment
[ { "content": "Translate the following question to SQL: What is the name of the course with the most registered students?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode CHAR(20),\n st...
student_assessment
[ { "content": "Translate the following question to SQL: what is id of students who registered some courses but the least number of courses in these students?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),...
student_assessment
[ { "content": "Translate the following question to SQL: What are the ids of the students who registered for some courses but had the least number of courses for all students?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n ...
student_assessment
[ { "content": "Translate the following question to SQL: what are the first name and last name of all candidates?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode CHAR(20),\n state_provi...
student_assessment
[ { "content": "Translate the following question to SQL: What are the first and last names of all the candidates?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode CHAR(20),\n state_provi...
student_assessment
[ { "content": "Translate the following question to SQL: List the id of students who never attends courses?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode CHAR(20),\n state_province_co...
student_assessment
[ { "content": "Translate the following question to SQL: What are the ids of every student who has never attended a course?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode CHAR(20),\n ...
student_assessment
[ { "content": "Translate the following question to SQL: List the id of students who attended some courses?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode CHAR(20),\n state_province_co...
student_assessment
[ { "content": "Translate the following question to SQL: What are the ids of all students who have attended at least one course?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode CHAR(20),\n...
student_assessment
[ { "content": "Translate the following question to SQL: What are the ids of all students for courses and what are the names of those courses?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postco...
student_assessment
[ { "content": "Translate the following question to SQL: What is detail of the student who most recently registered course?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode CHAR(20),\n s...
student_assessment
[ { "content": "Translate the following question to SQL: What details do we have on the students who registered for courses most recently?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode C...
student_assessment
[ { "content": "Translate the following question to SQL: How many students attend course English?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode CHAR(20),\n state_province_county VARCH...
student_assessment
[ { "content": "Translate the following question to SQL: How many students are attending English courses?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode CHAR(20),\n state_province_coun...
student_assessment
[ { "content": "Translate the following question to SQL: How many courses do the student whose id is 171 attend?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode CHAR(20),\n state_provin...
student_assessment
[ { "content": "Translate the following question to SQL: How many courses does the student with id 171 actually attend?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode CHAR(20),\n state...
student_assessment
[ { "content": "Translate the following question to SQL: Find id of the candidate whose email is stanley.monahan@example.org?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode CHAR(20),\n ...
student_assessment
[ { "content": "Translate the following question to SQL: What is the id of the candidate whose email is stanley.monahan@example.org?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode CHAR(20...
student_assessment
[ { "content": "Translate the following question to SQL: Find id of the candidate who most recently accessed the course?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode CHAR(20),\n stat...
student_assessment
[ { "content": "Translate the following question to SQL: What is the id of the candidate who most recently accessed the course?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode CHAR(20),\n ...
student_assessment
[ { "content": "Translate the following question to SQL: What is detail of the student who registered the most number of courses?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode CHAR(20),\...
student_assessment
[ { "content": "Translate the following question to SQL: What are the details of the student who registered for the most number of courses?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode ...
student_assessment
[ { "content": "Translate the following question to SQL: List the id of students who registered some courses and the number of their registered courses?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n ...
student_assessment
[ { "content": "Translate the following question to SQL: For every student who is registered for some course, how many courses are they registered for?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n z...
student_assessment
[ { "content": "Translate the following question to SQL: How many registed students do each course have? List course name and the number of their registered students?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARC...
student_assessment
[ { "content": "Translate the following question to SQL: For each course id, how many students are registered and what are the course names?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode...
student_assessment
[ { "content": "Translate the following question to SQL: Find id of candidates whose assessment code is \"Pass\"?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode CHAR(20),\n state_provi...
student_assessment
[ { "content": "Translate the following question to SQL: What are the ids of the candidates that have an outcome code of Pass?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode CHAR(20),\n ...
student_assessment
[ { "content": "Translate the following question to SQL: Find the cell mobile number of the candidates whose assessment code is \"Fail\"?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode CH...
student_assessment
[ { "content": "Translate the following question to SQL: What are the cell phone numbers of the candidates that received an assessment code of \"Fail\"?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n ...
student_assessment
[ { "content": "Translate the following question to SQL: What are the id of students who registered course 301?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode CHAR(20),\n state_provinc...
student_assessment
[ { "content": "Translate the following question to SQL: What are the ids of the students who registered for course 301?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode CHAR(20),\n stat...
student_assessment
[ { "content": "Translate the following question to SQL: What is the id of the student who most recently registered course 301?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode CHAR(20),\n ...
student_assessment
[ { "content": "Translate the following question to SQL: What are the ids of the students who registered for course 301 most recently?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode CHAR(...
student_assessment
[ { "content": "Translate the following question to SQL: Find distinct cities of addresses of people?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode CHAR(20),\n state_province_county V...
student_assessment
[ { "content": "Translate the following question to SQL: What are the different cities where people live?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode CHAR(20),\n state_province_coun...
student_assessment
[ { "content": "Translate the following question to SQL: Find distinct cities of address of students?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode CHAR(20),\n state_province_county V...
student_assessment
[ { "content": "Translate the following question to SQL: What are the different cities where students live?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode CHAR(20),\n state_province_co...
student_assessment
[ { "content": "Translate the following question to SQL: List the names of courses in alphabetical order?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode CHAR(20),\n state_province_coun...
student_assessment
[ { "content": "Translate the following question to SQL: What are the names of the courses in alphabetical order?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode CHAR(20),\n state_provi...
student_assessment
[ { "content": "Translate the following question to SQL: List the first names of people in alphabetical order?\n\nSchema: CREATE TABLE Addresses (\n address_id INTEGER NOT NULL PRIMARY KEY,\n line_1 VARCHAR(80),\n line_2 VARCHAR(80),\n city VARCHAR(50),\n zip_postcode CHAR(20),\n state_province...
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
4