Dataset Preview
Full Screen Viewer
Full Screen
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code: DatasetGenerationError Exception: TypeError Message: Couldn't cast array of type list<item: string> to string Traceback: Traceback (most recent call last): File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2011, in _prepare_split_single writer.write_table(table) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 585, in write_table pa_table = table_cast(pa_table, self._schema) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2302, in table_cast return cast_table_to_schema(table, schema) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2261, in cast_table_to_schema arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()] File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2261, in <listcomp> arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()] File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 1802, in wrapper return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks]) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 1802, in <listcomp> return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks]) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2116, in cast_array_to_feature return array_cast( File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 1804, in wrapper return func(array, *args, **kwargs) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 1964, in array_cast raise TypeError(f"Couldn't cast array of type {_short_str(array.type)} to {_short_str(pa_type)}") TypeError: Couldn't cast array of type list<item: string> to string The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1529, in compute_config_parquet_and_info_response parquet_operations = convert_to_parquet(builder) File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1154, in convert_to_parquet builder.download_and_prepare( File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1027, in download_and_prepare self._download_and_prepare( File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1122, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1882, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2038, in _prepare_split_single raise DatasetGenerationError("An error occurred while generating the dataset") from e datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
result
string | difficulty
string | results_description
string | query_description
string | table_id
string | query
string | table_name
string |
---|---|---|---|---|---|---|
,Address,count of member
0,Bridgeport,1
| aggregate_group_by | There is one member in Bridgeport. | Find the number of members living in each address. | member | SELECT COUNT(*) AS "count of member", address
FROM member
GROUP BY address | member |
,acceptance Result,submission Author
0,Accepted,Sammy Green
| join | The paper of Sammy Green was accepted | Show the authors of submissions and the acceptance results of their submissions. | acceptance, submission | SELECT T2.Author AS "submission Author", T1.Result AS "acceptance Result"
FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID | acceptance, submission |
,Documents document_name,Projects project_details
0,King Book,Human Resource project
| join | The document named "King Book" has the project details "Human Resource project". | What is the project detail for the project with document "King Book"? | Projects, Documents | SELECT T1.project_details AS "Projects project_details", T2.document_name AS "Documents document_name"
FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id
WHERE T2.document_name = 'King Book' | Projects, Documents |
,director,Movie title,Rating stars,maximum stars,Movie director
0,James Cameron,Avatar,5,5,James Cameron
| join_aggregate | The movie Avatar was directed by James Cameron, with rating of 5 out of the 5 maximum stars | For each director, return the director's name together with the title of the movie they directed that received the highest rating among all of their movies, and the value of that rating. Ignore movies whose director is NULL. | Rating, Movie | SELECT T2.title AS "Movie title", T1.stars AS "Rating stars", T2.director AS "Movie director", MAX(T1.stars) AS "maximum stars", director
FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID
WHERE director <> 'null'
GROUP BY director | Rating, Movie |
,Wheels,Location
0,4-4-0,York
| small_select | The wheel 4-4-0 are located in York. | List the wheels and locations of the railways. | railway | SELECT Wheels, LOCATION
FROM railway | railway |
,Suppliers supplier_name,Suppliers supplier_phone,addresses address_details
0,AB Store,1-483-283-4742,"0258 Kessler Mountains Suite 688
Mooreside, ME 41586-5022"
| join | Supplier "AB Store" is located in 0258 Kessler Mountains Suite 688 Mooreside, ME 41586-5022. Their phone no. is 1-483-283-4742. | List the name and phone number of all suppliers in the alphabetical order of their addresses. | Suppliers, supplier_addresses, addresses | SELECT T1.supplier_name AS "Suppliers supplier_name", T1.supplier_phone AS "Suppliers supplier_phone", T3.address_details AS "addresses address_details"
FROM Suppliers AS T1 JOIN supplier_addresses AS T2 ON T1.supplier_id = T2.supplier_id JOIN addresses AS T3 ON T2.address_id = T3.address_id ORDER BY T3.address_details | Suppliers, supplier_addresses, addresses |
,city,name,country,elevation
0,New York,La Guardia Airport,United States,21
| large_select | The airport La Guardia Airport is in New York in the United States and has an elevation of 21. | Find the name, city, country, and altitude (or elevation) of the airports in the city of New York. | airports | SELECT name, city, country, elevation
FROM airports
WHERE city = 'New York' | airports |
,product_type_code,average product_price
0,Clothes,715.5366666666666
| aggregate_group_by | The average price of clothes is 715.53 | Return the average price for each product type. | products | SELECT product_type_code, AVG(product_price) AS "average product_price"
FROM products
GROUP BY product_type_code | products |
,average Age,STUDENT city_code,VOTING_RECORD Election_Cycle
0,22.0,NYC,Spring
| join_aggregate | The average age is 22 for the students in NYC city and their election cycle is Spring. | What is the average age of students who have city code "NYC" and have secretary votes for the spring election cycle? | STUDENT, VOTING_RECORD | SELECT AVG(T1.Age) AS "average Age", T1.city_code AS "STUDENT city_code", T2.Election_Cycle AS "VOTING_RECORD Election_Cycle"
FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote
WHERE T1.city_code = 'NYC' AND T2.Election_Cycle = 'Spring' | STUDENT, VOTING_RECORD |
,sum of room_count,Apartment_Buildings building_short_name
0,29,Columbus Square
| join_aggregate | There are 29 rooms in the building with short name Columbus Square. | Show the total number of rooms of the apartments in the building with short name "Columbus Square". | Apartment_Buildings, Apartments | SELECT SUM(T2.room_count) AS "sum of room_count", T1.building_short_name AS "Apartment_Buildings building_short_name"
FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id
WHERE T1.building_short_name = 'Columbus Square' | Apartment_Buildings, Apartments |
,origin,destination,arrival_date,departure_date
0,Los Angeles,Honolulu,04/12/2005 11:15,04/12/2005 09:15
| small_select | The flight from Los Angeles to Honolulu has the departure date of 04/12/2005 09:15 and the arrival date of 04/12/2005 11:15. | What are the departure and arrival dates of all flights from LA to Honolulu? | Flight | SELECT departure_date, arrival_date, origin, destination
FROM Flight
WHERE origin = 'Los Angeles' AND destination = 'Honolulu' | Flight |
,Major,maximum Age,minimum Age
0,600,27,16
| aggregate | The maximum age of students with a major of 600 is 27, while the minimum age is 16 | What are the maximum and minimum age of students with major 600? | STUDENT | SELECT MAX(Age) AS "maximum Age", MIN(Age) AS "minimum Age", Major
FROM STUDENT
WHERE Major = 600 | STUDENT |
,city,count of station
0,Mountain View,7
| aggregate | There are 7 stations in Mountain View. | How many stations are in Mountain View? | station | SELECT COUNT(*) AS "count of station", city
FROM station
WHERE city = 'Mountain View' | station |
,Sex,count of dependent
0,F,4
| aggregate | The number of female dependents is 4 | how many female dependents are there? | dependent | SELECT COUNT(*) AS "count of dependent", sex
FROM dependent
WHERE sex = 'F' | dependent |
,count of journalist
0,11
| aggregate | There are 11 journalists | How many journalists are there? | journalist | SELECT COUNT(*) AS "count of journalist"
FROM journalist | journalist |
,Company,Headquarters,Main_Industry
0,Royal Dutch Shell,Netherlands,Oil and gas
| small_select | The Royal Dutch Shell has its headquarters in the Netherlands and specialises in the oil and gas industry | What are the companies and main industries of all companies that are not headquartered in the United States? | company | SELECT company, main_industry, headquarters
FROM company
WHERE headquarters <> 'USA' | company |
,Name,Dates_active,Number_Deaths
0,Two,August3–August10,7
| large_select | The storm named Two which was active from August 3 - August 10, caused 7 deaths. | What are the names, dates active, and number of deaths for storms that had 1 or more death? | storm | SELECT name, dates_active, number_deaths
FROM storm
WHERE number_deaths >= 1 | storm |
,accounts name,sum of balance
0,Wang,1000310299.0
| join_aggregate | The accounts under the name "Wang" have a total balance of 1000310299 | Find the total savings balance of all accounts except the account with name ‘Brown’. | accounts, savings | SELECT SUM(T2.balance) AS "sum of balance", T1.name AS "accounts name"
FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid
WHERE T1.name <> 'Brown' | accounts, savings |
,debate Date,people Name,debate Venue
0,"October 21, 2011",Charles Van Wyck,"Manama , Bahrain"
| join | The debate in October 21, 2011 had a person named Charles Van Wyck and the venue was in Manama, Bahrain. | Show the names of people, and dates and venues of debates they are on the negative side, ordered in ascending alphabetical order of name. | debate_people, debate, people | SELECT T3.Name AS "people Name", T2.Date AS "debate Date", T2.Venue AS "debate Venue"
FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Negative = T3.People_ID ORDER BY T3.Name ASC | debate_people, debate, people |
,Skills skill_description,Part_Faults fault_short_name
0,Mechanical,TW
| join | A mechanical skill is needed in order to fix a TW part fault | For all the faults of different parts, what are all the decriptions of the skills required to fix them? List the name of the faults and the skill description. | Part_Faults, Skills_Required_To_Fix, Skills | SELECT T1.fault_short_name AS "Part_Faults fault_short_name", T3.skill_description AS "Skills skill_description"
FROM Part_Faults AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.part_fault_id = T2.part_fault_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id | Part_Faults, Skills_Required_To_Fix, Skills |
,Age,count of editor
0,20.0,1.0
| aggregate_group_by | There is 1 editor at the age of 20. | What are the different ages of editors? Show each age along with the number of editors of that age. | editor | SELECT Age, COUNT(*) AS "count of editor"
FROM editor
GROUP BY Age | editor |
,count of enzyme
0,8
| aggregate | The total number of enzymes is 8 | What is the total count of enzymes? | enzyme | SELECT COUNT(*) AS "count of enzyme"
FROM enzyme | enzyme |
,Advisor
0,1121
| aggregate_group_by | The advisor 1121 has more than 2 students. | Report the distinct advisors who have more than 2 students. | STUDENT | SELECT Advisor
FROM STUDENT
GROUP BY Advisor
HAVING COUNT(*) > 2 | STUDENT |
,City,BirthDate
0,Edmonton,1962-02-18 00:00:00
| small_select | The employee who lives in the city of Edmonton has a birth date of 1962-02-18 00:00:00 | Find the birth dates corresponding to employees who live in the city of Edmonton. | EMPLOYEE | SELECT BirthDate, City
FROM EMPLOYEE
WHERE City = 'Edmonton' | EMPLOYEE |
,DEPT_CODE,sum of stu_hrs
0,ACCT,165
| aggregate_group_by | Students spent a total of 165 hours studying in the dept. with code "ACCT" | How many hours do the students spend studying in each department? | student | SELECT SUM(stu_hrs) AS "sum of stu_hrs", dept_code
FROM student
GROUP BY dept_code | student |
,last_name,first_name,middle_name
0,Sawayn,Janessa,Amara
| large_select | The first name is Janessa the middle name is Amara and last name is Sawayn | List the first name middle name and last name of all staff. | Staff | SELECT first_name, middle_name, last_name
FROM Staff | Staff |
,Age,Sex,Fname,LName
0,18,F,Linda,Smith
| large_select | Linda Smith is a 18 years old female. | Show first name, last name, age for all female students. Their sex is F. | Student | SELECT Fname, Lname, Age, Sex
FROM Student
WHERE Sex = 'F' | Student |
,course_name,course_description
0,database,database
| small_select | The description of the course database is database. | What are the descriptions of the courses with name "database"? | COURSES | SELECT course_description, course_name
FROM COURSES
WHERE course_name = 'database' | COURSES |
,personal_name,count of Students
0,Wilson,2
| aggregate | There are 2 students with the word "son" in their personal names. | Find the number of students who have the word "son" in their personal names. | Students | SELECT COUNT(*) AS "count of Students", personal_name
FROM Students
WHERE personal_name LIKE '%son%' | Students |
,employee emp_fname,department dept_name,professor prof_office,course crs_description
0,Arnelle,Accounting,KLR 229D,Accounting I
| join | Arnelle is from the Accounting department and has taught the course KLR 229D with course description Accounting I | Find the first names and offices of all instructors who have taught some course and the course description and the department name. | CLASS, employee, course, professor, department | SELECT T2.emp_fname AS "employee emp_fname", T4.prof_office AS "professor prof_office", T3.crs_description AS "course crs_description", T5.dept_name AS "department dept_name"
FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num JOIN department AS T5 ON T4.dept_code = T5.dept_code | CLASS, employee, course, professor, department |
,accounts name,savings balance,checking balance
0,Wang,999999999.0,2000.0
| join | The account with name Wang has a savings balance of 999999999 and a checking balance of 2000. | Find the name, checking balance and savings balance of all accounts in the bank sorted by their total checking and savings balance in descending order. | accounts, checking, savings | SELECT T2.balance AS "checking balance", T3.balance AS "savings balance", T1.name AS "accounts name"
FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance + T3.balance DESC | accounts, checking, savings |
,count of Addresses,state_province_county
0,2,Georgia
| aggregate | There are 2 addresses in the county of Georgia. | How many employees live in Georgia? | Addresses | SELECT COUNT(*) AS "count of Addresses", state_province_county
FROM Addresses
WHERE state_province_county = 'Georgia' | Addresses |
,languages,song_name
0,english,My love
| small_select | The song My love is in English. | Find the names of all English songs. | song | SELECT song_name, languages
FROM song
WHERE languages = 'english' | song |
,Name,Revenue
0,Sony,120.0
| small_select | Sony has a revenue of 120 | Find the name of companies whose revenue is between 100 and 150. | manufacturers | SELECT name, revenue
FROM manufacturers
WHERE revenue BETWEEN 100 AND 150 | manufacturers |
,count of campuses
0,23
| aggregate | There are 23 campuses. | What is the total number of campuses? | campuses | SELECT COUNT(*) AS "count of campuses"
FROM campuses | campuses |
,personal_name,address_line_1
0,Cathrine,"756 Monahan Mews
Spinkashire, NJ 64230-5098"
| small_select | The tutor Cathrine live in 756 Monahan Mews Spinkashire, NJ 64230-5098. | Return the addresses of the course authors or tutors whose personal name is "Cathrine". | Course_Authors_and_Tutors | SELECT address_line_1, personal_name
FROM Course_Authors_and_Tutors
WHERE personal_name = 'Cathrine' | Course_Authors_and_Tutors |
,GType,count of Video_games
0,Massively multiplayer online game,1
| aggregate | There is 1 vide fame of type Massively multiplayer online game. | How many video games have type Massively multiplayer online game? | Video_games | SELECT COUNT(*) AS "count of Video_games", gtype
FROM Video_games
WHERE gtype = 'Massively multiplayer online game' | Video_games |
,club clubname,student fname,student lname,member_of_club position
0,Hopkins Student Enterprises,Jandy,Nelson,CTO
| join | Jandy Nelson is the CTO of Hopkins Student Enterprises | Who is the "CTO" of club "Hopkins Student Enterprises"? Show the first name and last name. | club, member_of_club, student | SELECT t3.fname AS "student fname", t3.lname AS "student lname", t2.position AS "member_of_club position", t1.clubname AS "club clubname"
FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid
WHERE t1.clubname = 'Hopkins Student Enterprises' AND t2.position = 'CTO' | club, member_of_club, student |
,people height,people weight,body_builder snatch
0,182.0,80.0,142.5
| join | The bodybuilder with a height of 182 and weight equal to 80 has a snatch score of 142.5 | List the weight of the body builders who have snatch score higher than 140 or have the height greater than 200. | body_builder, people | SELECT T2.weight AS "people weight", T2.height AS "people height", T1.snatch AS "body_builder snatch"
FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id = T2.people_id
WHERE T1.snatch > 140 OR T2.height > 200 | body_builder, people |
,Role_Name,Role_Description
0,Proof Reader,Ut sed quae eaque mollitia qui hic. Natus ea expedita et odio illum fugiat qui natus. Consequatur velit ut dolorem cum ullam esse deserunt dignissimos. Enim non non rem officiis quis.
| small_select | The description for role name Proof Reader is Ut sed quae eaque mollitia qui hic. Natus ea expedita et odio illum fugiat qui natus. Consequatur velit ut dolorem cum ullam esse deserunt dignissimos. Enim non non rem officiis quis. | Show the description for role name "Proof Reader". | ROLES | SELECT role_description, role_name
FROM ROLES
WHERE role_name = 'Proof Reader' | ROLES |
,scientists name
0,Michael Rogers
| join | The scientist who is assigned to some project is Michael Rogers | Find the name of scientists who are assigned to some project. | assignedto, scientists | SELECT T2.name AS "scientists name"
FROM assignedto AS T1 JOIN scientists AS T2 ON T1.scientist = T2.ssn | assignedto, scientists |
,Population,Official_Name
0,5706.0,Grand Falls/Grand-Sault
| small_select | The city named Grand Falls/Grand-Sault has a population of 5706 | Find the official names of cities with population bigger than 1500 or smaller than 500. | city | SELECT Official_Name, Population
FROM city
WHERE Population > 1500 OR Population < 500 | city |
,club name,player Position
0,BK Slide,Right Wing
| join | The club BK Slide has a player at the position Right Wing. | What are the names of the clubs that have players in the position of "Right Wing"? | club, player | SELECT T1.name AS "club name", T2.Position AS "player Position"
FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID
WHERE T2.Position = 'Right Wing' | club, player |
,count of Documents,Ref_Shipping_Agents shipping_agent_code,Ref_Shipping_Agents shipping_agent_name
0,6,UP,UPS
| join_aggregate | The shipping agent named UPS with shipping agent code UP has shipped 6 documents | Which shipping agent shipped the most documents? List the shipping agent name and the number of documents. | Ref_Shipping_Agents, Documents | SELECT Ref_Shipping_Agents.shipping_agent_name AS "Ref_Shipping_Agents shipping_agent_name", COUNT(Documents.document_id) AS "count of Documents", Ref_Shipping_Agents.shipping_agent_code AS "Ref_Shipping_Agents shipping_agent_code"
FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code
GROUP BY Ref_Shipping_Agents.shipping_agent_code ORDER BY COUNT(Documents.document_id) DESC | Ref_Shipping_Agents, Documents |
,DEPARTMENT_ID
0,50
| aggregate_group_by | The department with id 50 has more than ten employees work who got a commission percentage. | display those departments where more than ten employees work who got a commission percentage. | employees | SELECT department_id
FROM employees
GROUP BY department_id
HAVING COUNT(commission_pct) > 10 | employees |
,price_range
0,2914989.571
| small_select | The price range is 2914989.571. | Tell me the price ranges for all the hotels. | HOTELS | SELECT price_range
FROM HOTELS | HOTELS |
,languages,resolution,artist_name
0,english,1080,Enrique
| aggregate_group_by | Enrique has a song in english with a resolution of 1080 | What is the language that was used most often in songs with resolution above 500? | song | SELECT artist_name, resolution, languages
FROM song
WHERE resolution > 500
GROUP BY languages ORDER BY COUNT(*) DESC | song |
,average Gold
0,5.833333333333333
| aggregate | The average number of gold medals for clubs is 5.833333333333333 | What is the average number of gold medals for clubs? | club_rank | SELECT AVG(Gold) AS "average Gold"
FROM club_rank | club_rank |
,ClubDesc,ClubName
0,Play pen and paper games on campus.,Pen and Paper Gaming
| small_select | The description of the club with name Pen and Paper Gaming is Play pen and paper games on campus | Find the description of the club "Pen and Paper Gaming". | club | SELECT clubdesc, clubname
FROM club
WHERE clubname = 'Pen and Paper Gaming' | club |
,count of Invoices
0,15
| aggregate | There are 15 invoices. | Count the number of invoices. | Invoices | SELECT COUNT(*) AS "count of Invoices"
FROM Invoices | Invoices |
,count of roller_coaster
0,6
| aggregate | There are 6 roller coasters. | How many roller coasters are there? | roller_coaster | SELECT COUNT(*) AS "count of roller_coaster"
FROM roller_coaster | roller_coaster |
,title,special_features
0,ACADEMY DINOSAUR,"Deleted Scenes,Behind the Scenes"
| small_select | The film ACADEMY DINOSAUR includes 'Deleted Scenes' in its special feature section | Return the titles of films that include 'Deleted Scenes' in their special feature section. | film | SELECT title, special_features
FROM film
WHERE special_features LIKE '%Deleted Scenes%' | film |
,HOTELS price_range,Ref_Hotel_Star_Ratings star_rating_description
0,2914989.571,star
| join | The hotels with star rating descriptions have a price range of 2914989.571 | What are the star rating descriptions of the hotels with price above 10000? | HOTELS, Ref_Hotel_Star_Ratings | SELECT T2.star_rating_description AS "Ref_Hotel_Star_Ratings star_rating_description", T1.price_range AS "HOTELS price_range"
FROM HOTELS AS T1 JOIN Ref_Hotel_Star_Ratings AS T2 ON T1.star_rating_code = T2.star_rating_code
WHERE T1.price_range > 10000 | HOTELS, Ref_Hotel_Star_Ratings |
,state,acc_type,no_of_loans,credit_score
0,New York,saving,0,210
| large_select | The customer with number of loan 0 is in the state of New York, has an account type saving and his credit score is 210. | Find the state, account type, and credit score of the customer whose number of loan is 0. | customer | SELECT state, acc_type, credit_score, no_of_loans
FROM customer
WHERE no_of_loans = 0 | customer |
,volume Song,music_festival Result
0, The Way,Nominated
| join | The song The Way was nominated in a festival. | What are the songs in volumes that have resulted in a nomination at music festivals? | music_festival, volume | SELECT T2.Song AS "volume Song", T1.Result AS "music_festival Result"
FROM music_festival AS T1 JOIN volume AS T2 ON T1.Volume = T2.Volume_ID
WHERE T1.Result = 'Nominated' | music_festival, volume |
,count of Ref_calendar
0,15
| aggregate | There are 15 calendar items. | Count the number of all the calendar items. | Ref_calendar | SELECT COUNT(*) AS "count of Ref_calendar"
FROM Ref_calendar | Ref_calendar |
,StuID,Advisor
0,1004,8423
| small_select | The student with id 1004 has the advisor 8423. | Who advises student 1004? | Student | SELECT Advisor, StuID
FROM Student
WHERE StuID = 1004 | Student |
,Minister,Took_office
0,Dr. Kwame Nkrumah (MP),1957
| small_select | The minister Dr. Kwame Nkrumah (MP) took office at 1957 | Who are the ministers who took office after 1961 or before 1959? | party | SELECT minister, took_office
FROM party
WHERE took_office > 1961 OR took_office < 1959 | party |
,name,milliseconds
0,Fast As a Shark,230619
| small_select | The Fast As a Shark has a duration of 230619 milliseconds. | How many milliseconds long is Fast As a Shark? | tracks | SELECT milliseconds, name
FROM tracks
WHERE name = 'Fast As a Shark' | tracks |
,papers title,authors fname
0,Functional Pearl: Modular Rollback through Control Logging,Olin
| join | The author with first name Olin has written the paper Functional Pearl: Modular Rollback through Control Logging. | Find the first names of all the authors who have written a paper with title containing the word "Functional". | authors, authorship, papers | SELECT t1.fname AS "authors fname", t3.title AS "papers title"
FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid
WHERE t3.title LIKE '%Functional%' | authors, authorship, papers |
,product_category_code,products product_name,Ref_colors color_description,products product_description
0,Herbs,basil,red,officia
| join | The product basil has the category code Herbs, has the red color and its description is officia. | List the names, color descriptions and product descriptions of products with category "Herbs". | products, Ref_colors | SELECT T1.product_name AS "products product_name", T2.color_description AS "Ref_colors color_description", T1.product_description AS "products product_description", product_category_code
FROM products AS T1 JOIN Ref_colors AS T2 ON T1.color_code = T2.color_code
WHERE product_category_code = 'Herbs' | products, Ref_colors |
,name,dept_name
0,Soisalon-Soininen,Psychology
| small_select | Soisalon-Soininen is an instructor at the department of Psychology. | What is the name of the department with an instructure who has a name like 'Soisalon'? | instructor | SELECT dept_name, name
FROM instructor
WHERE name LIKE '%Soisalon%' | instructor |
,physician name
0,John Dorian
| join | Physician John Dorian had an appointment | List the name of physicians who took some appointment. | appointment, physician | SELECT T2.name AS "physician name"
FROM appointment AS T1 JOIN physician AS T2 ON T1.Physician = T2.EmployeeID | appointment, physician |
,average Profits_billion
0,17.063157894736843
| aggregate | The average profits of companies are 17.063157894736843. | What are the average profits of companies? | Companies | SELECT AVG(Profits_billion) AS "average Profits_billion"
FROM Companies | Companies |
,decor,roomName
0,modern,Recluse and defiance
| small_select | The decor of room "Recluse and defiance" is modern. | What is the decor of room Recluse and defiance? | Rooms | SELECT decor, roomName
FROM Rooms
WHERE roomName = 'Recluse and defiance' | Rooms |
,count of film
0,13
| aggregate | The count of films is 13. | Count the number of films. | film | SELECT COUNT(*) AS "count of film"
FROM film | film |
,ClubName
0,Bootup Baltimore
| small_select | The club name is Bootup Baltimore. | Give me the name of each club. | club | SELECT clubname
FROM club | club |
,Aircraft name,Employee name
0,Boeing 737-800,John Williams
| join | The employee named John Williams flies the aircraft Boeing 737-800. | Show names for all aircrafts of which John Williams has certificates. | Employee, Certificate, Aircraft | SELECT T3.name AS "Aircraft name", T1.name AS "Employee name"
FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid
WHERE T1.name = 'John Williams' | Employee, Certificate, Aircraft |
,gender_code,date_of_birth
0,Male,1995-11-04 07:09:57
| small_select | The male guest was born in 1995-11-04 07:09:57. | Return the date of birth for all the guests with gender code "Male". | Guests | SELECT date_of_birth, gender_code
FROM Guests
WHERE gender_code = 'Male' | Guests |
,people Name,people Height
0,Paul Hamm,1.71
| join | Paul Hamm has a height of 1.71 | What are the names of gymnasts, ordered by their heights ascending? | gymnast, people | SELECT T2.Name AS "people Name", T2.Height AS "people Height"
FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T2.Height ASC | gymnast, people |
,City,Open_year,count of branch
0,London,2001,2
| aggregate_group_by | London city has 2 branches opened before 2010. | Show the city and the number of branches opened before 2010 for each city. | branch | SELECT city, COUNT(*) AS "count of branch", open_year
FROM branch
WHERE open_year < 2010
GROUP BY city | branch |
,origin
0,Chennai
| aggregate_group_by | Chennai is the origin of more than 1 trains. | Find the origins from which more than 1 train starts. | train | SELECT origin
FROM train
GROUP BY origin
HAVING COUNT(*) > 1 | train |
,count of CUSTOMERS
0,15
| aggregate | There are 15 customers. | Count the number of customers recorded. | CUSTOMERS | SELECT COUNT(*) AS "count of CUSTOMERS"
FROM CUSTOMERS | CUSTOMERS |
,Student age,sum of gamesplayed,sum of hoursperweek
0,18,257,158
| join_aggregate | There are 257 games played by students under 20, with 158 total hours per week. | What is the total number of hours per week and number of games played by students under 20? | Sportsinfo, Student | SELECT SUM(hoursperweek) AS "sum of hoursperweek", SUM(gamesplayed) AS "sum of gamesplayed", T2.age AS "Student age"
FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID
WHERE T2.age < 20 | Sportsinfo, Student |
,papers title,authors fname,authors lname
0,Functional Pearl: Modular Rollback through Control Logging,Olin,Shivers
| join | The paper "Functional Pearl: Modular Rollback through Control Logging" was written by Olin Shivers | Which papers did the author "Olin Shivers" write? Give me the paper titles. | authors, authorship, papers | SELECT t3.title AS "papers title", t1.lname AS "authors lname", t1.fname AS "authors fname"
FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid
WHERE t1.fname = 'Olin' AND t1.lname = 'Shivers' | authors, authorship, papers |
,average balance
0,4583.428571428572
| aggregate | The average checking balance is 4583.428571428572 | Find the average checking balance. | checking | SELECT AVG(balance) AS "average balance"
FROM checking | checking |
,Advisor,count of Student
0,1121,3
| aggregate | The number of students with advisor 1121 is 3. | Advisor 1121 has how many students? | Student | SELECT COUNT(*) AS "count of Student", Advisor
FROM Student
WHERE Advisor = 1121 | Student |
,acc_bal,cust_name
0,2000,Mary
| small_select | The customer named Mary has an account balance of 2000 | Find the name and account balance of the customer whose name includes the letter ‘a’. | customer | SELECT cust_name, acc_bal
FROM customer
WHERE cust_name LIKE '%a%' | customer |
,Position
0,Defender
| aggregate_group_by | The position Defender is the most common among players in match seasons. | What is the position that is most common among players in match seasons? | match_season | SELECT POSITION
FROM match_season
GROUP BY POSITION ORDER BY COUNT(*) DESC | match_season |
,customers last_name,customers first_name,invoices invoice_date
0,Pareek,Manoj,2011-12-22 00:00:00
| join | The customer named Pareek Manoj made a purchase on 2011-12-22 00:00:00 | Find out 5 customers who most recently purchased something. List customers' first and last name. | customers, invoices | SELECT T1.first_name AS "customers first_name", T1.last_name AS "customers last_name", T2.invoice_date AS "invoices invoice_date"
FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY T2.invoice_date DESC | customers, invoices |
,Description
0,Light utility helicopter
| small_select | The aircraft's description is "Light utility helicopter". | List the description of all aircrafts. | aircraft | SELECT Description
FROM aircraft | aircraft |
,card_number,date_valid_to,date_valid_from
0,4560596484842,2018-03-07 17:06:19,2011-04-17 09:05:28
| small_select | The card with card number 4560596484842 has a date valid from 2011-04-17 09:05:28 and a date valid to 2018-03-07 17:06:19 | Show the date valid from and the date valid to for the card with card number '4560596484842'. | Customers_cards | SELECT date_valid_from, date_valid_to, card_number
FROM Customers_cards
WHERE card_number = '4560596484842' | Customers_cards |
,count of STUDENT
0,34
| aggregate | There are 34 students in total. | How many students are there in total? | STUDENT | SELECT COUNT(*) AS "count of STUDENT"
FROM STUDENT | STUDENT |
,average Order_Quantity,maximum Order_Quantity,minimum Order_Quantity
0,1.6,2,1
| aggregate | The average quantity ordered is 1.6, the maximum is 2 and the minimum is 1. | What are the minimum, average, and maximum quantities ordered? Check all the invoices. | INVOICES | SELECT MIN(Order_Quantity) AS "minimum Order_Quantity", AVG(Order_Quantity) AS "average Order_Quantity", MAX(Order_Quantity) AS "maximum Order_Quantity"
FROM INVOICES | INVOICES |
,date_of_transaction,transaction_type_code
0,1988-09-16 19:02:51,SALE
| small_select | The date of transaction with type code SALE is 1988-09-16 19:02:51. | Show all dates of transactions whose type code is "SALE". | TRANSACTIONS | SELECT date_of_transaction, transaction_type_code
FROM TRANSACTIONS
WHERE transaction_type_code = 'SALE' | TRANSACTIONS |
,year,semester,count of SECTION
0,2001,Fall,2
| aggregate_group_by | For the year 2001 in the fall semester there were 2 sections. | How many courses are provided in each semester and year? | SECTION | SELECT COUNT(*) AS "count of SECTION", semester, YEAR
FROM SECTION
GROUP BY semester, YEAR | SECTION |
,College
0,Virginia
| aggregate_group_by | Virginia is the most common college of players in match seasons | Show the top 3 most common colleges of players in match seasons. | match_season | SELECT College
FROM match_season
GROUP BY College ORDER BY COUNT(*) DESC | match_season |
,decor,sum of maxOccupancy
0,modern,10
| aggregate | The modern decorated rooms have a total occupancy of 10. | What is the total number of people who could stay in the modern rooms in this inn? | Rooms | SELECT SUM(maxOccupancy) AS "sum of maxOccupancy", decor
FROM Rooms
WHERE decor = 'modern' | Rooms |
,pPos,count of tryout
0,goalie,3
| aggregate | There were 3 tryouts for the goalie position. | What is the number of students playing as a goalie? | tryout | SELECT COUNT(*) AS "count of tryout", pPos
FROM tryout
WHERE pPos = 'goalie' | tryout |
,Founder,Headquarter
0,James,Los Angeles
| small_select | The headquarter in Los Angeles was found by James. | What is the headquarter of the company whose founder is James? | manufacturers | SELECT headquarter, founder
FROM manufacturers
WHERE founder = 'James' | manufacturers |
,country,count of airlines
0,United States,1099
| aggregate_group_by | There are 1099 airlines operating in the US | How many airlines operate out of each country in descending order? | airlines | SELECT country, COUNT(*) AS "count of airlines"
FROM airlines
GROUP BY country ORDER BY COUNT(*) DESC | airlines |
,song genre_is,minimum rating,minimum duration
0,blues,6,5:23
| join_aggregate | The song was of blues genre, had a minimum rating of 6 and a minimum duration 5:23. | What is the shortest and most poorly rated song for each genre, ordered alphabetically by genre? | files, song | SELECT MIN(T1.duration) AS "minimum duration", MIN(T2.rating) AS "minimum rating", T2.genre_is AS "song genre_is"
FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id
GROUP BY T2.genre_is ORDER BY T2.genre_is | files, song |
,PROF_HIGH_DEGREE,count of professor
0,Ph.D.,20
| aggregate | There are 20 professors with a high degree of a Ph.D. | How many professors attained either Ph.D. or Masters degrees? | professor | SELECT COUNT(*) AS "count of professor", prof_high_degree
FROM professor
WHERE prof_high_degree = 'Ph.D.' OR prof_high_degree = 'MA' | professor |
,building,average capacity,maximum capacity
0,Alumni,36.5,47
| aggregate_group_by | In the Alumni building, the average capacity is 36.5, while the maximum capacity is 47 | What are the greatest and average capacity for rooms in each building? | classroom | SELECT MAX(capacity) AS "maximum capacity", AVG(capacity) AS "average capacity", building
FROM classroom
GROUP BY building | classroom |
,count of services
0,15
| aggregate | There are 15 services | How many services are there? | services | SELECT COUNT(*) AS "count of services"
FROM services | services |
,staff staff_name,staff staff_gender,staff_department_assignments date_assigned_from
0,Zakary,1,2016-09-20 02:59:15
| join | The staff named Zakary has gender of 1 and was assigned on 2016-09-20 02:59:15 | What are the names and genders of staff who were assigned in 2016? | staff, staff_department_assignments | SELECT T1.staff_name AS "staff staff_name", T1.staff_gender AS "staff staff_gender", T2.date_assigned_from AS "staff_department_assignments date_assigned_from"
FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id
WHERE T2.date_assigned_from LIKE '2016%' | staff, staff_department_assignments |
,country,zip_postcode,state_province_county
0,USA,416,Colorado
| small_select | The Colorado state of the USA country has the post code 416. | What are the state and country of all the cities that have post codes starting with 4.\ | addresses | SELECT state_province_county, country, zip_postcode
FROM addresses
WHERE zip_postcode LIKE '4%' | addresses |
,average age
0,32.75
| aggregate | The average size is 32.75. | What is the average age for all person? | Person | SELECT AVG(age) AS "average age"
FROM Person | Person |
,people Name,people Hometown
0,Lorraine Súarez Carmona,Bonao
| join | Lorraine Súarez Carmona grew up in Bonao | Return the names of gymnasts who did not grow up in Santo Domingo. | gymnast, people | SELECT T2.Name AS "people Name", T2.Hometown AS "people Hometown"
FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID
WHERE T2.Hometown <> 'Santo Domingo' | gymnast, people |
,Room,count of stay
0,112,1
| aggregate | In room 112 there is 1 patient. | How many patients stay in room 112? | stay | SELECT COUNT(patient) AS "count of stay", room
FROM stay
WHERE room = 112 | stay |
End of preview.
README.md exists but content is empty.
- Downloads last month
- 28