sentence1 stringlengths 223 9.31k | labels stringclasses 6
values | metadata stringlengths 207 261 |
|---|---|---|
Question: Show the names of festivals that have nominated artworks of type "Program Talent Show".
Database columns:
all rows (*) (text)
festival_detail.Festival_ID (number)
festival_detail.Festival_Name (text)
festival_detail.Chair_Name (text)
festival_detail.Location (text)
festival_detail.Year (number)
festival_detai... | none | {"database_id": "entertainment_awards", "id": "f15715bef8b69acc0a33bc8b465d341b0659f4c67adc030ef8aa3c8bcdc02ed9", "query_sha256": "6ffe0bfcef1c1db27a4f1a18ff3b333ee00d34adc1dbe0f9c0c0a48e2ec77af1", "split_group_id": "entertainment_awards"} |
Question: List the most common type of artworks.
Database columns:
all rows (*) (text)
festival_detail.Festival_ID (number)
festival_detail.Festival_Name (text)
festival_detail.Chair_Name (text)
festival_detail.Location (text)
festival_detail.Year (number)
festival_detail.Num_of_Audience (number)
artwork.Artwork_ID (nu... | none | {"database_id": "entertainment_awards", "id": "3cec6b5508b7c06a908207546a27e2623cfcfc4945c4e11c3ef9b24af5218067", "query_sha256": "13ff2e7f356faaa6d086500f892d17732b8e67820f8d60ee39d5cfc4b4dc86b3", "split_group_id": "entertainment_awards"} |
Question: List the year in which there are more than one festivals.
Database columns:
all rows (*) (text)
festival_detail.Festival_ID (number)
festival_detail.Festival_Name (text)
festival_detail.Chair_Name (text)
festival_detail.Location (text)
festival_detail.Year (number)
festival_detail.Num_of_Audience (number)
art... | none | {"database_id": "entertainment_awards", "id": "4fcb27836268f45db383a2020204301fb0ec2c1f8882dc57a8d0aa1eee0b3dc3", "query_sha256": "4ed7fb97efe605eaccb7c209a31edc4db9ab85b6e26911f53be84299dc6ac395", "split_group_id": "entertainment_awards"} |
Question: List the name of artworks that are not nominated.
Database columns:
all rows (*) (text)
festival_detail.Festival_ID (number)
festival_detail.Festival_Name (text)
festival_detail.Chair_Name (text)
festival_detail.Location (text)
festival_detail.Year (number)
festival_detail.Num_of_Audience (number)
artwork.Art... | none | {"database_id": "entertainment_awards", "id": "63d50f07d6aed03cf14e2ebf6783d5e63386ee88b0fa48251638f1b5ce36447b", "query_sha256": "539afba1319f9e9ba9eb09d72bf06ec4d422d4ff34b1bdf7e210d4f573d4d87c", "split_group_id": "entertainment_awards"} |
Question: Show the number of audience in year 2008 or 2010.
Database columns:
all rows (*) (text)
festival_detail.Festival_ID (number)
festival_detail.Festival_Name (text)
festival_detail.Chair_Name (text)
festival_detail.Location (text)
festival_detail.Year (number)
festival_detail.Num_of_Audience (number)
artwork.Art... | none | {"database_id": "entertainment_awards", "id": "23747e91dc93dab06b2d4556e6347837914ff2d359c9a4ea6fce7ee7a0a067e5", "query_sha256": "51127af3c61351e54311a843bee0ffd0b8aa89a4b2394a540e7ac2709172f81b", "split_group_id": "entertainment_awards"} |
Question: What are the total number of the audiences who visited any of the festivals?
Database columns:
all rows (*) (text)
festival_detail.Festival_ID (number)
festival_detail.Festival_Name (text)
festival_detail.Chair_Name (text)
festival_detail.Location (text)
festival_detail.Year (number)
festival_detail.Num_of_Au... | sum | {"database_id": "entertainment_awards", "id": "625955216f83a97697bfc910140688a1df3a6ba9287a4ed0a12f8092dcea5a61", "query_sha256": "76d2ed40e4c0e05048ba072e5eec7b38bd21d9a247cca66297d90e9622e8b2e4", "split_group_id": "entertainment_awards"} |
Question: How many premises are there?
Database columns:
all rows (*) (text)
Premises.premise_id (number)
Premises.premises_type (text)
Premises.premise_details (text)
Products.product_id (number)
Products.product_category (text)
Products.product_name (text)
Customers.customer_id (number)
Customers.payment_method (text... | count | {"database_id": "customers_campaigns_ecommerce", "id": "88f60a741393cb6f42c79207ad7a599b3c48da6d4ca60da7f20c4c224e338dd0", "query_sha256": "e1162f8e5956575499f33f7f23331cdeeb3422ebf8a42fbfd1d9c912b8c9c95b", "split_group_id": "customers_campaigns_ecommerce"} |
Question: What are all the distinct premise types?
Database columns:
all rows (*) (text)
Premises.premise_id (number)
Premises.premises_type (text)
Premises.premise_details (text)
Products.product_id (number)
Products.product_category (text)
Products.product_name (text)
Customers.customer_id (number)
Customers.payment_... | none | {"database_id": "customers_campaigns_ecommerce", "id": "beb5843d9c77373bbb7726f82cdf2b1cd4d68535d046f8d89fb12c95b888f2a4", "query_sha256": "14d923446923fc94717a7c0b6bfbad249494c5253ee8ab6adf529c656973976f", "split_group_id": "customers_campaigns_ecommerce"} |
Question: Show the names of customers who have at least 2 mailshots with outcome code 'Order'.
Database columns:
all rows (*) (text)
Premises.premise_id (number)
Premises.premises_type (text)
Premises.premise_details (text)
Products.product_id (number)
Products.product_category (text)
Products.product_name (text)
Custo... | none | {"database_id": "customers_campaigns_ecommerce", "id": "5fa3c6f633268957b0bd17136208c38964a0ef362ddfb614c58fa136bfec2afc", "query_sha256": "5ed3907dd72578b0826371967d56bf2f73418dbc9d03e2e55bd3941abb73dfb6", "split_group_id": "customers_campaigns_ecommerce"} |
Question: Show the names of customers who have the most mailshots.
Database columns:
all rows (*) (text)
Premises.premise_id (number)
Premises.premises_type (text)
Premises.premise_details (text)
Products.product_id (number)
Products.product_category (text)
Products.product_name (text)
Customers.customer_id (number)
Cu... | none | {"database_id": "customers_campaigns_ecommerce", "id": "dd346560fb09aaaa61dd26734914572d8d1b0b0d1f4421f7ccdfe4954b5c6ad7", "query_sha256": "98909672614e297d1c61cd0b6d7a2a77ca171c3d787644d3d2a551a9ff68be5a", "split_group_id": "customers_campaigns_ecommerce"} |
Question: What are the distinct address type codes for all customer addresses?
Database columns:
all rows (*) (text)
Premises.premise_id (number)
Premises.premises_type (text)
Premises.premise_details (text)
Products.product_id (number)
Products.product_category (text)
Products.product_name (text)
Customers.customer_id... | none | {"database_id": "customers_campaigns_ecommerce", "id": "8a88fa8ca0f57067e6dceac40d3a5cb2ddc8a9471c8afc0b9881974fc9a1f773", "query_sha256": "24223b9d01dd1bc2acd1a7460d437d7c252253e5c0a6a0fe28e0631bc7bfd704", "split_group_id": "customers_campaigns_ecommerce"} |
Question: Show the names of customers having an order with shipping method FedEx and order status Paid.
Database columns:
all rows (*) (text)
Premises.premise_id (number)
Premises.premises_type (text)
Premises.premise_details (text)
Products.product_id (number)
Products.product_category (text)
Products.product_name (te... | none | {"database_id": "customers_campaigns_ecommerce", "id": "9de30d4a01790e51b758fd29cb2f800d3f0ab65af969926b6be29944f8b8cb57", "query_sha256": "eba6288f858ebe08006d784087d9028ed22fa8da1ab34c5b8ce9924748e90f83", "split_group_id": "customers_campaigns_ecommerce"} |
Question: How many courses are there in total?
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number)
Faculty.Lname (text)
Faculty.Fname... | count | {"database_id": "college_3", "id": "28cd7b54ea66c181b6f74d27f7b8b578610b91d4959eb981e147d69d2edac5a7", "query_sha256": "b5d76ca9ea2164d9f841b6c47c9f08694b121a8dbe9554dcf975990cc5d5bf42", "split_group_id": "college_3"} |
Question: Count the number of courses.
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number)
Faculty.Lname (text)
Faculty.Fname (text)
... | count | {"database_id": "college_3", "id": "d059e54cc79d09bc9c0662e6d3ffc766abbb21eb1eb7d83e09659a1d9cc6f967", "query_sha256": "b5d76ca9ea2164d9f841b6c47c9f08694b121a8dbe9554dcf975990cc5d5bf42", "split_group_id": "college_3"} |
Question: How many courses have more than 2 credits?
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number)
Faculty.Lname (text)
Faculty... | count | {"database_id": "college_3", "id": "800f353bfefa50d1c19fcbd09c5a2355fa01d8ad197fd18d469bdeef7a692411", "query_sha256": "79a75480eb7a0fdf377aa18d999e797e9cb0035a68628eccfdb040fb7aaf846f", "split_group_id": "college_3"} |
Question: Count the number of courses with more than 2 credits.
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number)
Faculty.Lname (te... | count | {"database_id": "college_3", "id": "7310e9e4fc0bc32c2602b2d348d85cc2ea00a784f6a46741bff5b7c2cb9cdd65", "query_sha256": "79a75480eb7a0fdf377aa18d999e797e9cb0035a68628eccfdb040fb7aaf846f", "split_group_id": "college_3"} |
Question: List all names of courses with 1 credit?
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number)
Faculty.Lname (text)
Faculty.F... | none | {"database_id": "college_3", "id": "39a22ae4702e1441259705676d75a618ec5cbe736bb486dd7bff438083288371", "query_sha256": "46e9a79281d04ce8c5e9846eb636d49119a43439d3ee1e0b0b436ff6e535fca1", "split_group_id": "college_3"} |
Question: What are the names of courses with 1 credit?
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number)
Faculty.Lname (text)
Facul... | none | {"database_id": "college_3", "id": "e57acaeafb07b80a0231d1f95ea1c71ecc54f093accf455cd3227cdb60f2e1a8", "query_sha256": "46e9a79281d04ce8c5e9846eb636d49119a43439d3ee1e0b0b436ff6e535fca1", "split_group_id": "college_3"} |
Question: Which courses are taught on days MTW?
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number)
Faculty.Lname (text)
Faculty.Fnam... | none | {"database_id": "college_3", "id": "c029eeb4439d365e7ed0e5c137519b394386949b651d8fadd9b6c70bed9148f8", "query_sha256": "531c6b8145a67d603d694ce2246c5fe515f5de43fcb1e959a96239f4191e1899", "split_group_id": "college_3"} |
Question: What are the course names for courses taught on MTW?
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number)
Faculty.Lname (tex... | none | {"database_id": "college_3", "id": "76c0d8d622f66c6b844d2586926af8be1fd3686f324cd7a51594a82f1f46601b", "query_sha256": "531c6b8145a67d603d694ce2246c5fe515f5de43fcb1e959a96239f4191e1899", "split_group_id": "college_3"} |
Question: What is the number of departments in Division "AS"?
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number)
Faculty.Lname (text... | count | {"database_id": "college_3", "id": "139b0909ee666c63dec2d571446f7576a9c5df5b21c87125d18d43c934bdef7d", "query_sha256": "c5de1b2e4902ff3d00911575bef9ccb5c15870bba1a200d7b477d26e470e93ff", "split_group_id": "college_3"} |
Question: How many departments are in the division AS?
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number)
Faculty.Lname (text)
Facul... | count | {"database_id": "college_3", "id": "42b846d9c4ac28121e206dff231ce6ff641e39a00d5c025523deb41b86e2af6e", "query_sha256": "c5de1b2e4902ff3d00911575bef9ccb5c15870bba1a200d7b477d26e470e93ff", "split_group_id": "college_3"} |
Question: What are the phones of departments in Room 268?
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number)
Faculty.Lname (text)
Fa... | none | {"database_id": "college_3", "id": "f692016faa3119ee603448f36d0f46b9972ffa2dd8cec03ce2e974189109341b", "query_sha256": "d7a94d4e1ecc32151ddc64052d03003fb53042dfa35946f8002fc4b58edd30d0", "split_group_id": "college_3"} |
Question: Give the phones for departments in room 268.
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number)
Faculty.Lname (text)
Facul... | none | {"database_id": "college_3", "id": "2cb63784b8a1b84c5db2b48bdec7af895957bdc9a8a7c2cd3071e3c279da08c0", "query_sha256": "d7a94d4e1ecc32151ddc64052d03003fb53042dfa35946f8002fc4b58edd30d0", "split_group_id": "college_3"} |
Question: Find the number of students that have at least one grade "B".
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number)
Faculty.L... | count | {"database_id": "college_3", "id": "d26f45a5c2013ab9fd519b6d98562c9ba28712494dce377b91f945494fc01fd8", "query_sha256": "e0e2f66c778b5784897f20543e757ada58da0ccd95c57816f099535132c3f64c", "split_group_id": "college_3"} |
Question: How many students have had at least one "B" grade?
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number)
Faculty.Lname (text)... | count | {"database_id": "college_3", "id": "ffcad9cbedfec3c92d8c683d3bbb8296918a414cfa14f9a765bf303ff10d1ad8", "query_sha256": "e0e2f66c778b5784897f20543e757ada58da0ccd95c57816f099535132c3f64c", "split_group_id": "college_3"} |
Question: Find the first names of students whose first names contain letter "a".
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number)
... | none | {"database_id": "college_3", "id": "13d83f1e4ef8c1fcc2abfc4d135161cb70467633fbf169381af54f76881816a8", "query_sha256": "7aede73ec93c1c92e686fc6b535b8caa77682d94b8277bd9ee8a5d1b42fdec71", "split_group_id": "college_3"} |
Question: What are the first names for students who have an "a" in their first name?
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (numb... | none | {"database_id": "college_3", "id": "bed8a0892808a9b3127b81f05b980b0d72298e31661b4ee0330e0de3fa8549d3", "query_sha256": "7aede73ec93c1c92e686fc6b535b8caa77682d94b8277bd9ee8a5d1b42fdec71", "split_group_id": "college_3"} |
Question: Find the rooms of faculties with rank professor who live in building NEB.
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (numbe... | none | {"database_id": "college_3", "id": "ce32e57ab28301146a51b81f1b9a4648b63309e54ce63a32d8b4711def39d4ef", "query_sha256": "7f920f2be512aee5ca4379793c0c407546ebf38cce095722e47fbb37bc1a3f7e", "split_group_id": "college_3"} |
Question: What are the rooms for members of the faculty who are professors and who live in building NEB?
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)... | none | {"database_id": "college_3", "id": "03a6ffc430d391d129d256118cd6e0f47539a31f1f8104a46c49cfb5d964bd74", "query_sha256": "7f920f2be512aee5ca4379793c0c407546ebf38cce095722e47fbb37bc1a3f7e", "split_group_id": "college_3"} |
Question: Find the department name that is in Building "Mergenthaler".
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number)
Faculty.Ln... | none | {"database_id": "college_3", "id": "27d730e87959f85cf133733fddd133b8a649a6a0316283308a0afdccd1b509c7", "query_sha256": "26148e46945c20672b1d64c6327940d47100eb708b894ee9b8b5a24b54894ed4", "split_group_id": "college_3"} |
Question: What is the name of the department in the Building Mergenthaler?
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number)
Facult... | none | {"database_id": "college_3", "id": "379c7aaeae142d3d44c2e13ecf7d3ce878984fce4cecc7002e8daea67f394eb8", "query_sha256": "26148e46945c20672b1d64c6327940d47100eb708b894ee9b8b5a24b54894ed4", "split_group_id": "college_3"} |
Question: List all information about courses sorted by credits in the ascending order.
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (nu... | none | {"database_id": "college_3", "id": "aa8c72e0d85d3681f00fa62977e1d8a813dc08d7a9349083cda194d14e31e79f", "query_sha256": "8d8294e6d99d1b85f9a7642d356747c4cad5eb488a2e31b17a8633718e493429", "split_group_id": "college_3"} |
Question: What is all the information about courses, ordered by credits ascending?
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number... | none | {"database_id": "college_3", "id": "826c2316c86abbcb891436f6a333a3538a4b127518db16c2bb1a02dd6cf12a2f", "query_sha256": "8d8294e6d99d1b85f9a7642d356747c4cad5eb488a2e31b17a8633718e493429", "split_group_id": "college_3"} |
Question: List the course name of courses sorted by credits.
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number)
Faculty.Lname (text)... | none | {"database_id": "college_3", "id": "375c2e3528d831cf2c1761f88d184b7fa12b8d5e618a926e23e971bd16c03761", "query_sha256": "f200085299bd49a4e376484df18d9080f4536a4e7f4bf5f9b338c17b39ab416c", "split_group_id": "college_3"} |
Question: What are the course names, ordered by credits?
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number)
Faculty.Lname (text)
Fac... | none | {"database_id": "college_3", "id": "1b48cd1732e1192f23a69d655b843035eaa971ad37dab74daeb3bc748a8a598d", "query_sha256": "f200085299bd49a4e376484df18d9080f4536a4e7f4bf5f9b338c17b39ab416c", "split_group_id": "college_3"} |
Question: Find the first name of students in the descending order of age.
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number)
Faculty... | none | {"database_id": "college_3", "id": "2f15bfc6d74a8d13dc540489be6dbfe2ae080eeb6af23f342fd2dac1a0cfcd24", "query_sha256": "26870ca31d81b410761946c3a68d93154335692cb50342f6f403c698799ee7eb", "split_group_id": "college_3"} |
Question: What are the first names of students, ordered by age from greatest to least?
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (nu... | none | {"database_id": "college_3", "id": "8dcac528cf7424fa390ba2a6b9a5ef37a6ee8e1e849b100ddd50b1ac6cc449b8", "query_sha256": "26870ca31d81b410761946c3a68d93154335692cb50342f6f403c698799ee7eb", "split_group_id": "college_3"} |
Question: Find the last name of female (sex is F) students in the descending order of age.
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID... | none | {"database_id": "college_3", "id": "6d55a48650a9b6e564cfe0e1d60fabda67fe14331bb6642d466d7a84730dc662", "query_sha256": "b0ebd416e3c88f7d11d33cd44fdf5bc257827fb721c30b5f46190bf22839810e", "split_group_id": "college_3"} |
Question: What are the last names of female students, ordered by age descending?
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number)
... | none | {"database_id": "college_3", "id": "1e24ff9c34d7e4261f725d792e274d5965899a1cdd8b05525dd1542ce5fd8568", "query_sha256": "b0ebd416e3c88f7d11d33cd44fdf5bc257827fb721c30b5f46190bf22839810e", "split_group_id": "college_3"} |
Question: Find the last names of faculties in building Barton in alphabetic order.
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number... | none | {"database_id": "college_3", "id": "95888a0fff2f5fd524e9142ade76123e3d0b90adf3b91fafe5c292dae7f74092", "query_sha256": "239332817c1ff17298f41d5a8372ce705d87b998217eddcd27def4292d8b0f2d", "split_group_id": "college_3"} |
Question: What are the last names of faculty in building Barton, sorted by last name?
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (num... | none | {"database_id": "college_3", "id": "4218afe1bfa7aee49135c8029fcaacc2a906cbc991cf1b40a4b7b6b83d8ce8e7", "query_sha256": "239332817c1ff17298f41d5a8372ce705d87b998217eddcd27def4292d8b0f2d", "split_group_id": "college_3"} |
Question: Find the first names of faculties of rank Professor in alphabetic order.
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number... | none | {"database_id": "college_3", "id": "15f3a5b21807c507847ac22450df7d1e71207d313a3d8a44cafac20f03270ee4", "query_sha256": "a4042dfdb4eb067aba936bdaa8a2609ad0a2921e2782d3b405c8c840d70ff07e", "split_group_id": "college_3"} |
Question: What are the first names for all faculty professors, ordered by first name?
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (num... | none | {"database_id": "college_3", "id": "ed70c79ce439a079643156f24ebca4e703dfe907cd1ed81a9c102d894b1cd342", "query_sha256": "a4042dfdb4eb067aba936bdaa8a2609ad0a2921e2782d3b405c8c840d70ff07e", "split_group_id": "college_3"} |
Question: Find the name of the department that has the biggest number of students minored in?
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.Fa... | none | {"database_id": "college_3", "id": "3bf6b5529a060812f598ee533affc861533d4170fe0209af829c147b2a243c40", "query_sha256": "d4ae72c5ff4e28c47fee86a81ba876f1b3cc1c0084087bc7c4224f5020d1f419", "split_group_id": "college_3"} |
Question: What is the name of the department with the most students minoring in it?
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (numbe... | none | {"database_id": "college_3", "id": "cc3aa042a70188d315dfa3f5b397ef44032450b5e36bc1bbafeb8d00487bdcc3", "query_sha256": "d4ae72c5ff4e28c47fee86a81ba876f1b3cc1c0084087bc7c4224f5020d1f419", "split_group_id": "college_3"} |
Question: Find the name of the department that has the fewest members.
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number)
Faculty.Ln... | none | {"database_id": "college_3", "id": "b97bd0e3099243b2d4aba6ccd4a46eb2ac1217731afb82a9656b7851d34fcf36", "query_sha256": "d7ded8909c183b5adac2e1021d245cc5dbf1bf640ce7a7b25cf5c38200dc6651", "split_group_id": "college_3"} |
Question: What is the name of the department with the fewest members?
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number)
Faculty.Lna... | none | {"database_id": "college_3", "id": "ce19bee57a4564ad921ea3fd4b10c0a5def4dfc7e32856b4e69cef46975a4af9", "query_sha256": "d7ded8909c183b5adac2e1021d245cc5dbf1bf640ce7a7b25cf5c38200dc6651", "split_group_id": "college_3"} |
Question: Find the rank of the faculty that the fewest faculties belong to.
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number)
Facul... | none | {"database_id": "college_3", "id": "74554786f86f34caf6b684d751f3a70708eb66301ae6a11127769bda51fd5062", "query_sha256": "cc6b36ee4008cbdaf57e5804e63ffd6f56fd614d69e182b2fce96342be866183", "split_group_id": "college_3"} |
Question: What is the least common faculty rank?
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number)
Faculty.Lname (text)
Faculty.Fna... | none | {"database_id": "college_3", "id": "0a481b85fb68e9bef9f719eb4d7fea9b6de35e74b7ece7f84c63030f8e119b6a", "query_sha256": "cc6b36ee4008cbdaf57e5804e63ffd6f56fd614d69e182b2fce96342be866183", "split_group_id": "college_3"} |
Question: Which building does the instructor who teaches the most number of courses live in?
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.Fac... | none | {"database_id": "college_3", "id": "f63d40e64a6a44f37d1ea4e5049895f0819070bf8fb51cc6e83590ddf85a7987", "query_sha256": "cfc87b0b507d77e51e9b1b3800143c07632f987d72bba2c255f73d9bd71290e5", "split_group_id": "college_3"} |
Question: Give the building that the instructor who teaches the greatest number of courses lives in.
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Fac... | none | {"database_id": "college_3", "id": "1a45e9875fc760ac7ac4ddc7b6fba90e6eafbb9a5c2d013865a41d25703c6b5c", "query_sha256": "cfc87b0b507d77e51e9b1b3800143c07632f987d72bba2c255f73d9bd71290e5", "split_group_id": "college_3"} |
Question: What are the name of courses that have at least five enrollments?
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number)
Facul... | none | {"database_id": "college_3", "id": "71857e4940c6faac1fb718ed098c70d94f6dc2fe2feee9e0d7d22fb7f307eb24", "query_sha256": "5bd7a615d8e004787b6b249fcd4671eab15b343c56c29b45e5d6e968a98bf4b0", "split_group_id": "college_3"} |
Question: Give the names of the courses with at least five enrollments.
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number)
Faculty.L... | none | {"database_id": "college_3", "id": "b8d991590c49ae55ecded0c3ae64a6752d2d55559f7c4ee3001db9cf0f6d35cd", "query_sha256": "5bd7a615d8e004787b6b249fcd4671eab15b343c56c29b45e5d6e968a98bf4b0", "split_group_id": "college_3"} |
Question: Find the distinct student first names of all students that have grade point at least 3.8 in one course.
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_co... | none | {"database_id": "college_3", "id": "c1bee4189055528d20ea5e4812320e133992d34e73326c07a9270f55e22fdcdc", "query_sha256": "b8c9d999634a24df9f54ad178c33c2c2fb9cb4b21301e5be064e9ece8c7bf9d0", "split_group_id": "college_3"} |
Question: What are the distinct first names for students with a grade point of 3.8 or above in at least one course?
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_... | none | {"database_id": "college_3", "id": "03946dc77a026391bbb5ea4a7aaf2eb90d835900a72e3698eaa39919f26e145a", "query_sha256": "b8c9d999634a24df9f54ad178c33c2c2fb9cb4b21301e5be064e9ece8c7bf9d0", "split_group_id": "college_3"} |
Question: Find the last names of faculties who are members of computer science department.
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID... | none | {"database_id": "college_3", "id": "792d4a5ea4b1d3cc4cbad99b9a78a63ffd2a681ffa4f35043708eb844f0ecf24", "query_sha256": "092990b98639eee9025e2d6610340c1be3b7c8044e1ba58fcc3a00f2505b7960", "split_group_id": "college_3"} |
Question: What are the last names of faculty who are part of the computer science department?
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.Fa... | none | {"database_id": "college_3", "id": "095ac819636fc8a319b6ad0b2f2c8f31b4cf28ad8d6e15820f8b1871b044588f", "query_sha256": "092990b98639eee9025e2d6610340c1be3b7c8044e1ba58fcc3a00f2505b7960", "split_group_id": "college_3"} |
Question: Find the average grade point of student whose last name is Smith.
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number)
Facul... | average | {"database_id": "college_3", "id": "8cc38c69844caf019962d2dfbe38d3db17c49175d74ac436baca044614781162", "query_sha256": "daa571c012be16d53386d0c16f63a5a69aa9841ff95d46e6543f02d4e3c0cd74", "split_group_id": "college_3"} |
Question: What is the average gradepoint for students with the last name Smith?
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number)
F... | average | {"database_id": "college_3", "id": "b7fd855baa3005d78ec36b20be3f94b15b5d048f7efd8b1ce6693dc0d095626f", "query_sha256": "daa571c012be16d53386d0c16f63a5a69aa9841ff95d46e6543f02d4e3c0cd74", "split_group_id": "college_3"} |
Question: Find the first name of students not enrolled in any course.
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (number)
Faculty.Lna... | none | {"database_id": "college_3", "id": "c7cb99a10b598c48310fc8ccae6885c634f983e5123cfb400b7fe3f4e30071d5", "query_sha256": "b38cb7910c4681af477cefff14e0e0b2e888a959061d8fb9efe31797c1797318", "split_group_id": "college_3"} |
Question: What are the first names of all students that are not enrolled in courses?
Database columns:
all rows (*) (text)
Student.StuID (number)
Student.LName (text)
Student.Fname (text)
Student.Age (number)
Student.Sex (text)
Student.Major (number)
Student.Advisor (number)
Student.city_code (text)
Faculty.FacID (numb... | none | {"database_id": "college_3", "id": "bbc4abcd37e739b7f3baf2c693b51c1b9d3edf7a4528a4bcd982b83e0f1c4024", "query_sha256": "b38cb7910c4681af477cefff14e0e0b2e888a959061d8fb9efe31797c1797318", "split_group_id": "college_3"} |
Question: What are the ids of the top three products that were purchased in the largest amount?
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Suppliers.supplier... | none | {"database_id": "department_store", "id": "6b0a9e4b41780a6c7bccbb5339ee78ac408feb96b212454a420df898c2d3f795", "query_sha256": "33e28bf1e6ecf3e5da2764a1324391e2ddd3a25980975b3386192e27a626b3c2", "split_group_id": "department_store"} |
Question: Give the ids of the three products purchased in the largest amounts.
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Suppliers.supplier_name (text)
Supp... | none | {"database_id": "department_store", "id": "2a58e23dfd36effdbdb0337d9de24e52f6db1612a0ec993e86b7daa3c44435b1", "query_sha256": "33e28bf1e6ecf3e5da2764a1324391e2ddd3a25980975b3386192e27a626b3c2", "split_group_id": "department_store"} |
Question: Find the number of different product types.
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Suppliers.supplier_name (text)
Suppliers.supplier_phone (tex... | count | {"database_id": "department_store", "id": "9da20e58209e46ba473498b46357c997a7020d5f382e0ac852d90e75382f9ed0", "query_sha256": "12a47580bf6223fa7866b3dcd2bc0ce80af2b43e19ded56071b2ceac77fbc145", "split_group_id": "department_store"} |
Question: Count the number of distinct product types.
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Suppliers.supplier_name (text)
Suppliers.supplier_phone (tex... | count | {"database_id": "department_store", "id": "06285cf8e74cdc544b58cb8b13ec9efd023fceb6ed17eeced71094181d4b4c1d", "query_sha256": "12a47580bf6223fa7866b3dcd2bc0ce80af2b43e19ded56071b2ceac77fbc145", "split_group_id": "department_store"} |
Question: Return the address of customer 10.
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Suppliers.supplier_name (text)
Suppliers.supplier_phone (text)
Depart... | none | {"database_id": "department_store", "id": "04da22c4ed72586955657d677f4a83d11bb966778ccbb1eb99e3ebece320e323", "query_sha256": "22408b3a31641cbe69c81059972de4a40f226c5c1b347701ddf508dc227eaa55", "split_group_id": "department_store"} |
Question: What is the address for the customer with id 10?
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Suppliers.supplier_name (text)
Suppliers.supplier_phone... | none | {"database_id": "department_store", "id": "80a4903132073045a6a7700ffd7db27feaf920a08e9daa6e93d8ef2b3781474b", "query_sha256": "22408b3a31641cbe69c81059972de4a40f226c5c1b347701ddf508dc227eaa55", "split_group_id": "department_store"} |
Question: What is the id of the product that was ordered the most often?
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Suppliers.supplier_name (text)
Suppliers.... | none | {"database_id": "department_store", "id": "be9e51f327c2ad847440c1a9aa2c2ede3cd8327f6b06c4ba2c00032e718e8582", "query_sha256": "9245a54d45d0e44344e55639530796260f6190e699a861c0554dee2af1816c23", "split_group_id": "department_store"} |
Question: Give the product id for the product that was ordered most frequently.
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Suppliers.supplier_name (text)
Sup... | none | {"database_id": "department_store", "id": "3af5a7295594285c7c7bc5b179a4b9c59c70205bd11bf1359fea173c7474d073", "query_sha256": "9245a54d45d0e44344e55639530796260f6190e699a861c0554dee2af1816c23", "split_group_id": "department_store"} |
Question: How many department stores does the store chain South have?
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Suppliers.supplier_name (text)
Suppliers.sup... | count | {"database_id": "department_store", "id": "1f8c1e3d7063309e3efa332a4776a1b76bb19eeee2f92a883b24723af7e1407a", "query_sha256": "979dabd6daa3d2c17a99da19fdacf8aa89c748ab650052f2e19da84e255a3a73", "split_group_id": "department_store"} |
Question: Count the number of stores the chain South has.
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Suppliers.supplier_name (text)
Suppliers.supplier_phone ... | count | {"database_id": "department_store", "id": "2190f338fd2ddcdabb5d9a1f60ee86ab8a3d47a2b4cdff543d185e42f679738e", "query_sha256": "979dabd6daa3d2c17a99da19fdacf8aa89c748ab650052f2e19da84e255a3a73", "split_group_id": "department_store"} |
Question: Return the distinct name of customers whose order status is Pending, in the order of customer id.
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Suppli... | none | {"database_id": "department_store", "id": "a342f911f0cf13f699f7a73fdc4fd1d9fc54bac4c41bbeff217809199e952cc8", "query_sha256": "a51dd8194ca539f50e5c72a38cc123d04b4087c0a948c8d4f52eae6d0eb76d02", "split_group_id": "department_store"} |
Question: What are the distinct names of customers with an order status of Pending, sorted by customer id?
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Supplie... | none | {"database_id": "department_store", "id": "bffb80d1f27aa32df9a71111d31eb67defe47d53c25ccfd7077ebf4ca26545a6", "query_sha256": "a51dd8194ca539f50e5c72a38cc123d04b4087c0a948c8d4f52eae6d0eb76d02", "split_group_id": "department_store"} |
Question: Return ids of all the products that are supplied by supplier id 2 and are more expensive than the average price of all products.
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppli... | none | {"database_id": "department_store", "id": "41e7c8b9489a0df26ae439f0fad940657eef420a97ada7e879c94332070af10c", "query_sha256": "79002b42ad9be6f13c7fe9041a8bdf3be87faa1ffb15729381a21cef5cb9c3b7", "split_group_id": "department_store"} |
Question: What are the ids of products from the supplier with id 2, which are more expensive than the average price across all products?
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Supplier... | none | {"database_id": "department_store", "id": "5403d5fb8632796528c084e91703f74f08ce1baf4e2664ae30024ad34ce22b38", "query_sha256": "79002b42ad9be6f13c7fe9041a8bdf3be87faa1ffb15729381a21cef5cb9c3b7", "split_group_id": "department_store"} |
Question: What are the ids of the two department store chains with the largest number of department stores?
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Suppli... | none | {"database_id": "department_store", "id": "0de5579062fa23bea77d3474c16a45e0e775ddd29e8a407ff37f004c29caad03", "query_sha256": "564cf033c098a309b4e381d1f552f0d6876178376c63605641df534941db97c0", "split_group_id": "department_store"} |
Question: Return the ids of the two department store chains with the most department stores.
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Suppliers.supplier_na... | none | {"database_id": "department_store", "id": "189eeb974a96368b0af326d4d4463786038f689aadc1b236568b8091516d472d", "query_sha256": "564cf033c098a309b4e381d1f552f0d6876178376c63605641df534941db97c0", "split_group_id": "department_store"} |
Question: What is the id of the department with the least number of staff?
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Suppliers.supplier_name (text)
Supplier... | none | {"database_id": "department_store", "id": "21192fb5bcb1f49cb1f12315e91afd5ce6ff6e453858991e2b7ca10136cf8081", "query_sha256": "ecb0a5c79a57542d72a2c260217694bc87fc97ff4700ae942660f10de22a59ae", "split_group_id": "department_store"} |
Question: Return the id of the department with the fewest staff assignments.
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Suppliers.supplier_name (text)
Suppli... | none | {"database_id": "department_store", "id": "761ce81a21a55debbd351139aef3f098dc9f91f001197ed28ea8075f40933723", "query_sha256": "ecb0a5c79a57542d72a2c260217694bc87fc97ff4700ae942660f10de22a59ae", "split_group_id": "department_store"} |
Question: Find the product type whose average price is higher than the average price of all products.
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Suppliers.su... | none | {"database_id": "department_store", "id": "134a61f70149e3d2ab71ae0d02855c40a01c37ff0b238c0a2fe2ee16ec5a373f", "query_sha256": "168ae987624958dc170cedcc40e1f16c832ebb4ac02c83f3bf84576c5c682b65", "split_group_id": "department_store"} |
Question: What is the code of the product type with an average price higher than the average price of all products?
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number... | none | {"database_id": "department_store", "id": "bfbf7c0f55026c42c276281493e6946aa02553da502cc8da894f4cc7ca523342", "query_sha256": "168ae987624958dc170cedcc40e1f16c832ebb4ac02c83f3bf84576c5c682b65", "split_group_id": "department_store"} |
Question: Find the ids of all distinct customers who made order after some orders that were Cancelled.
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Suppliers.s... | none | {"database_id": "department_store", "id": "4a8305a40ec96157f1fb1b5b421108d495c0af4cf12f00d20e2d16e4b51f37a7", "query_sha256": "651ab9541bbf48dd21a2bc816dda3ae9893b00c4eca380451868d315d19fac5b", "split_group_id": "department_store"} |
Question: What are the distinct ids of customers who made an order after any order that was Cancelled?
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Suppliers.s... | none | {"database_id": "department_store", "id": "0f04650223df3a9e32999a051d935e7766ba2f0891abbbbea1f4672de6965c03", "query_sha256": "651ab9541bbf48dd21a2bc816dda3ae9893b00c4eca380451868d315d19fac5b", "split_group_id": "department_store"} |
Question: What is id of the staff who had a Staff Department Assignment earlier than any Clerical Staff?
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Suppliers... | none | {"database_id": "department_store", "id": "9004fac03950c226a52267cc90fdf11bc6e77af87d73c727bef8d8eca6ad791e", "query_sha256": "f56284d87b38a1e7ab3ea9390bea50a6abe22ec5c665d2602995e10f83d8bdc6", "split_group_id": "department_store"} |
Question: Return the id of the staff whose Staff Department Assignment was earlier than that of any Clerical Staff.
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number... | none | {"database_id": "department_store", "id": "be0d05cf5bceecefab67df1c4204b84bba2672c71c49206d200bc966e279149d", "query_sha256": "f56284d87b38a1e7ab3ea9390bea50a6abe22ec5c665d2602995e10f83d8bdc6", "split_group_id": "department_store"} |
Question: List the name of staff who has been assigned multiple jobs.
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Suppliers.supplier_name (text)
Suppliers.sup... | none | {"database_id": "department_store", "id": "ad1cbe34f008fb497dc1578424400b4d047d6f51faf8fdf7ba50c9e7c6964ddc", "query_sha256": "63bace2d9018cc6ee72d253c8e580fb515497783f9ba9261d2002acdded04d4d", "split_group_id": "department_store"} |
Question: What are the names of staff who have been assigned multiple jobs?
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Suppliers.supplier_name (text)
Supplie... | none | {"database_id": "department_store", "id": "dca7bf2d43875cd7a5c5eeac412d4432061af95f7a13daa7161aae444bbfa4b3", "query_sha256": "63bace2d9018cc6ee72d253c8e580fb515497783f9ba9261d2002acdded04d4d", "split_group_id": "department_store"} |
Question: Find the id of suppliers whose average amount purchased for each product is above 50000 or below 30000.
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
... | none | {"database_id": "department_store", "id": "4e0545762bf45e9dc4dd899e6be85ec2d6c6fe66a8419ddb3e2ca8c7f33b0da2", "query_sha256": "9d6c2ee0287b0c42fdd2eb6a70d6f96f048bc4a095519abd6be7bb986cf742f2", "split_group_id": "department_store"} |
Question: What are the ids of suppliers which have an average amount purchased of above 50000 or below 30000?
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Supp... | none | {"database_id": "department_store", "id": "a4c329ef02c481e1d782aef1841a6c9d33f3686e1a2536495eaed178beeb072b", "query_sha256": "9d6c2ee0287b0c42fdd2eb6a70d6f96f048bc4a095519abd6be7bb986cf742f2", "split_group_id": "department_store"} |
Question: List the names of all the distinct customers who bought a keyboard.
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Suppliers.supplier_name (text)
Suppl... | none | {"database_id": "department_store", "id": "2d9edf5664a6fcaa9afce31df994d51950463337ba6b88e493903019b21b938e", "query_sha256": "a229f1376b74ebd144e9e2488099c906ed6d75f16bece679688509ed491c8a8f", "split_group_id": "department_store"} |
Question: What are the distinct names of customers who have purchased a keyboard?
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Suppliers.supplier_name (text)
S... | none | {"database_id": "department_store", "id": "90ca7c7b16a8999e6e9dd7fb9eef7b22777f3e255af850890490a6d4cc24a9c6", "query_sha256": "a229f1376b74ebd144e9e2488099c906ed6d75f16bece679688509ed491c8a8f", "split_group_id": "department_store"} |
Question: Find the names of products that were bought by at least two distinct customers.
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Suppliers.supplier_name ... | none | {"database_id": "department_store", "id": "aac385072f626781adc0e2238a81a8da749c7878a4d4b33034ae343f07120b3e", "query_sha256": "5d3da1bc391f569d8524ed7c489f24ea0e46a35ee654e4b0394d24cd747f3f87", "split_group_id": "department_store"} |
Question: What are the distinct names of products purchased by at least two different customers?
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Suppliers.supplie... | none | {"database_id": "department_store", "id": "fdb4c3ee1f0e0d1d6aa7d2f4f76e93dde53260af4ba93487c6d584d0021f3f1e", "query_sha256": "5d3da1bc391f569d8524ed7c489f24ea0e46a35ee654e4b0394d24cd747f3f87", "split_group_id": "department_store"} |
Question: Find the names of customers who have bought by at least three distinct products.
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Suppliers.supplier_name... | none | {"database_id": "department_store", "id": "8f27e232781102e3a788c2ee8397f1203c940acfc32be922b9908f7ce801be0e", "query_sha256": "5a05644f09107812fe59caad2947d391a8ccdf29f11b4a6fa39ec9a52906a7de", "split_group_id": "department_store"} |
Question: What are the distinct names of customers who have purchased at least three different products?
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Suppliers... | none | {"database_id": "department_store", "id": "284ef878cb21433b90e918dd6a12d884b465c9f65747aa836a0cd4acc28abcf5", "query_sha256": "5a05644f09107812fe59caad2947d391a8ccdf29f11b4a6fa39ec9a52906a7de", "split_group_id": "department_store"} |
Question: Find the average price of all product clothes.
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Suppliers.supplier_name (text)
Suppliers.supplier_phone (... | average | {"database_id": "department_store", "id": "71008b98af3cff0aea116849a0f16cb33f227f38f936635cb1ee5890a3ad1ec9", "query_sha256": "2368e55c8b5d3d299ac1e38baee3f7eb25966c3dc99aee0220d35d837b294921", "split_group_id": "department_store"} |
Question: What is the average price of clothes?
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Suppliers.supplier_name (text)
Suppliers.supplier_phone (text)
Dep... | average | {"database_id": "department_store", "id": "b355f8d5ca1467b6055429099e0b9ff6e515c0b8b7554cdbb0f5896cc0c9bb85", "query_sha256": "2368e55c8b5d3d299ac1e38baee3f7eb25966c3dc99aee0220d35d837b294921", "split_group_id": "department_store"} |
Question: Find the name of the most expensive hardware product.
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Suppliers.supplier_name (text)
Suppliers.supplier_... | none | {"database_id": "department_store", "id": "ada4da7b7becbc127ea7657800c87e8d7cbab9981dc3d04c5d3a5d55a6bf57e4", "query_sha256": "9cfd88abee0dd82c4a4a73091db77841d996e516faa28055cc5cda1f21a91319", "split_group_id": "department_store"} |
Question: What is the name of the hardware product with the greatest price?
Database columns:
all rows (*) (text)
Addresses.address_id (number)
Addresses.address_details (text)
Staff.staff_id (number)
Staff.staff_gender (text)
Staff.staff_name (text)
Suppliers.supplier_id (number)
Suppliers.supplier_name (text)
Supplie... | none | {"database_id": "department_store", "id": "4f6be57b6e884d759a56d5a5688924c7a7a8ae8175030dfce747f6166d7b94d8", "query_sha256": "9cfd88abee0dd82c4a4a73091db77841d996e516faa28055cc5cda1f21a91319", "split_group_id": "department_store"} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.