dataset_name stringclasses 1
value | split stringclasses 1
value | prompt_raw stringlengths 897 4.29k | messages listlengths 2 2 | question stringlengths 18 174 | sample_id int64 0 1.03k | db_id stringclasses 20
values | groundtruth_sqls listlengths 1 1 |
|---|---|---|---|---|---|---|---|
spider | dev | Database Schema:
Table Friend
Friend.student_id: INT PRIMARY KEY - student id
Sample values: "1101", "1247", "1304", "1316", "1381"
Friend.friend_id: INT PRIMARY KEY - friend id
Sample values: "1381", "1689", "1709", "1247", "1782"
Table Highschooler
Highschooler.ID: INT PRIMARY KEY - id
Sample valu... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show name of all students who have some friends and also are liked by someone else. | 900 | network_1 | [
"SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id INTERSECT SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.liked_id = T2.id"
] |
spider | dev | Database Schema:
Table Friend
Friend.student_id: INT PRIMARY KEY - student id
Sample values: "1101", "1247", "1304", "1316", "1381"
Friend.friend_id: INT PRIMARY KEY - friend id
Sample values: "1381", "1689", "1709", "1247", "1782"
Table Highschooler
Highschooler.ID: INT PRIMARY KEY - id
Sample valu... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the names of high schoolers who both have friends and are liked? | 901 | network_1 | [
"SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id INTERSECT SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.liked_id = T2.id"
] |
spider | dev | Database Schema:
Table Friend
Friend.student_id: INT PRIMARY KEY - student id
Sample values: "1101", "1247", "1304", "1316", "1381"
Friend.friend_id: INT PRIMARY KEY - friend id
Sample values: "1381", "1689", "1709", "1247", "1782"
Table Highschooler
Highschooler.ID: INT PRIMARY KEY - id
Sample valu... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Count the number of likes for each student id. | 902 | network_1 | [
"SELECT student_id , count(*) FROM Likes GROUP BY student_id"
] |
spider | dev | Database Schema:
Table Friend
Friend.student_id: INT PRIMARY KEY - student id
Sample values: "1101", "1247", "1304", "1316", "1381"
Friend.friend_id: INT PRIMARY KEY - friend id
Sample values: "1381", "1689", "1709", "1247", "1782"
Table Highschooler
Highschooler.ID: INT PRIMARY KEY - id
Sample valu... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many likes correspond to each student id? | 903 | network_1 | [
"SELECT student_id , count(*) FROM Likes GROUP BY student_id"
] |
spider | dev | Database Schema:
Table Friend
Friend.student_id: INT PRIMARY KEY - student id
Sample values: "1101", "1247", "1304", "1316", "1381"
Friend.friend_id: INT PRIMARY KEY - friend id
Sample values: "1381", "1689", "1709", "1247", "1782"
Table Highschooler
Highschooler.ID: INT PRIMARY KEY - id
Sample valu... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show the names of high schoolers who have likes, and numbers of likes for each. | 904 | network_1 | [
"SELECT T2.name , count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id"
] |
spider | dev | Database Schema:
Table Friend
Friend.student_id: INT PRIMARY KEY - student id
Sample values: "1101", "1247", "1304", "1316", "1381"
Friend.friend_id: INT PRIMARY KEY - friend id
Sample values: "1381", "1689", "1709", "1247", "1782"
Table Highschooler
Highschooler.ID: INT PRIMARY KEY - id
Sample valu... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the names of high schoolers who have likes, and how many likes does each have? | 905 | network_1 | [
"SELECT T2.name , count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id"
] |
spider | dev | Database Schema:
Table Friend
Friend.student_id: INT PRIMARY KEY - student id
Sample values: "1101", "1247", "1304", "1316", "1381"
Friend.friend_id: INT PRIMARY KEY - friend id
Sample values: "1381", "1689", "1709", "1247", "1782"
Table Highschooler
Highschooler.ID: INT PRIMARY KEY - id
Sample valu... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the name of the high schooler who has the greatest number of likes? | 906 | network_1 | [
"SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table Friend
Friend.student_id: INT PRIMARY KEY - student id
Sample values: "1101", "1247", "1304", "1316", "1381"
Friend.friend_id: INT PRIMARY KEY - friend id
Sample values: "1381", "1689", "1709", "1247", "1782"
Table Highschooler
Highschooler.ID: INT PRIMARY KEY - id
Sample valu... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Give the name of the student with the most likes. | 907 | network_1 | [
"SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table Friend
Friend.student_id: INT PRIMARY KEY - student id
Sample values: "1101", "1247", "1304", "1316", "1381"
Friend.friend_id: INT PRIMARY KEY - friend id
Sample values: "1381", "1689", "1709", "1247", "1782"
Table Highschooler
Highschooler.ID: INT PRIMARY KEY - id
Sample valu... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show the names of students who have at least 2 likes. | 908 | network_1 | [
"SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING count(*) >= 2"
] |
spider | dev | Database Schema:
Table Friend
Friend.student_id: INT PRIMARY KEY - student id
Sample values: "1101", "1247", "1304", "1316", "1381"
Friend.friend_id: INT PRIMARY KEY - friend id
Sample values: "1381", "1689", "1709", "1247", "1782"
Table Highschooler
Highschooler.ID: INT PRIMARY KEY - id
Sample valu... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the names of students who have 2 or more likes? | 909 | network_1 | [
"SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id HAVING count(*) >= 2"
] |
spider | dev | Database Schema:
Table Friend
Friend.student_id: INT PRIMARY KEY - student id
Sample values: "1101", "1247", "1304", "1316", "1381"
Friend.friend_id: INT PRIMARY KEY - friend id
Sample values: "1381", "1689", "1709", "1247", "1782"
Table Highschooler
Highschooler.ID: INT PRIMARY KEY - id
Sample valu... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show the names of students who have a grade higher than 5 and have at least 2 friends. | 910 | network_1 | [
"SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.grade > 5 GROUP BY T1.student_id HAVING count(*) >= 2"
] |
spider | dev | Database Schema:
Table Friend
Friend.student_id: INT PRIMARY KEY - student id
Sample values: "1101", "1247", "1304", "1316", "1381"
Friend.friend_id: INT PRIMARY KEY - friend id
Sample values: "1381", "1689", "1709", "1247", "1782"
Table Highschooler
Highschooler.ID: INT PRIMARY KEY - id
Sample valu... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the names of high schoolers who have a grade of over 5 and have 2 or more friends? | 911 | network_1 | [
"SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.grade > 5 GROUP BY T1.student_id HAVING count(*) >= 2"
] |
spider | dev | Database Schema:
Table Friend
Friend.student_id: INT PRIMARY KEY - student id
Sample values: "1101", "1247", "1304", "1316", "1381"
Friend.friend_id: INT PRIMARY KEY - friend id
Sample values: "1381", "1689", "1709", "1247", "1782"
Table Highschooler
Highschooler.ID: INT PRIMARY KEY - id
Sample valu... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many likes does Kyle have? | 912 | network_1 | [
"SELECT count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\""
] |
spider | dev | Database Schema:
Table Friend
Friend.student_id: INT PRIMARY KEY - student id
Sample values: "1101", "1247", "1304", "1316", "1381"
Friend.friend_id: INT PRIMARY KEY - friend id
Sample values: "1381", "1689", "1709", "1247", "1782"
Table Highschooler
Highschooler.ID: INT PRIMARY KEY - id
Sample valu... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Return the number of likes that the high schooler named Kyle has. | 913 | network_1 | [
"SELECT count(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id WHERE T2.name = \"Kyle\""
] |
spider | dev | Database Schema:
Table Friend
Friend.student_id: INT PRIMARY KEY - student id
Sample values: "1101", "1247", "1304", "1316", "1381"
Friend.friend_id: INT PRIMARY KEY - friend id
Sample values: "1381", "1689", "1709", "1247", "1782"
Table Highschooler
Highschooler.ID: INT PRIMARY KEY - id
Sample valu... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the average grade of all students who have some friends. | 914 | network_1 | [
"SELECT avg(grade) FROM Highschooler WHERE id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id)"
] |
spider | dev | Database Schema:
Table Friend
Friend.student_id: INT PRIMARY KEY - student id
Sample values: "1101", "1247", "1304", "1316", "1381"
Friend.friend_id: INT PRIMARY KEY - friend id
Sample values: "1381", "1689", "1709", "1247", "1782"
Table Highschooler
Highschooler.ID: INT PRIMARY KEY - id
Sample valu... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the average grade of students who have friends? | 915 | network_1 | [
"SELECT avg(grade) FROM Highschooler WHERE id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id)"
] |
spider | dev | Database Schema:
Table Friend
Friend.student_id: INT PRIMARY KEY - student id
Sample values: "1101", "1247", "1304", "1316", "1381"
Friend.friend_id: INT PRIMARY KEY - friend id
Sample values: "1381", "1689", "1709", "1247", "1782"
Table Highschooler
Highschooler.ID: INT PRIMARY KEY - id
Sample valu... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the minimum grade of students who have no friends. | 916 | network_1 | [
"SELECT min(grade) FROM Highschooler WHERE id NOT IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id)"
] |
spider | dev | Database Schema:
Table Friend
Friend.student_id: INT PRIMARY KEY - student id
Sample values: "1101", "1247", "1304", "1316", "1381"
Friend.friend_id: INT PRIMARY KEY - friend id
Sample values: "1381", "1689", "1709", "1247", "1782"
Table Highschooler
Highschooler.ID: INT PRIMARY KEY - id
Sample valu... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the lowest grade of students who do not have any friends? | 917 | network_1 | [
"SELECT min(grade) FROM Highschooler WHERE id NOT IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id)"
] |
spider | dev | Database Schema:
Table Professionals
Professionals.street: VARCHAR(50)
Sample values: "6915 Oberbrunner Point Suite 491 Gleasonville, LA", "88665 Terence Lodge Apt. 904 Corneliusfort, NC 194", "68589 Bradly Manor New Audrey, IN 91497", "72532 Hane Course Lake Berylland, ND 95283", "188 VonRueden Tunnel Suite 630... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which states have both owners and professionals living there? | 918 | dog_kennels | [
"SELECT state FROM Owners INTERSECT SELECT state FROM Professionals"
] |
spider | dev | Database Schema:
Table Professionals
Professionals.street: VARCHAR(50)
Sample values: "6915 Oberbrunner Point Suite 491 Gleasonville, LA", "88665 Terence Lodge Apt. 904 Corneliusfort, NC 194", "68589 Bradly Manor New Audrey, IN 91497", "72532 Hane Course Lake Berylland, ND 95283", "188 VonRueden Tunnel Suite 630... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the states where both owners and professionals live. | 919 | dog_kennels | [
"SELECT state FROM Owners INTERSECT SELECT state FROM Professionals"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.date_adopted: DATETI... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the average age of the dogs who have gone through any treatments? | 920 | dog_kennels | [
"SELECT avg(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.date_adopted: DATETI... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the average age of the dogs who went through treatments. | 921 | dog_kennels | [
"SELECT avg(age) FROM Dogs WHERE dog_id IN ( SELECT dog_id FROM Treatments )"
] |
spider | dev | Database Schema:
Table Professionals
Professionals.street: VARCHAR(50)
Sample values: "6915 Oberbrunner Point Suite 491 Gleasonville, LA", "88665 Terence Lodge Apt. 904 Corneliusfort, NC 194", "68589 Bradly Manor New Audrey, IN 91497", "72532 Hane Course Lake Berylland, ND 95283", "188 VonRueden Tunnel Suite 630... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which professionals live in the state of Indiana or have done treatment on more than 2 treatments? List his or her id, last name and cell phone. | 922 | dog_kennels | [
"SELECT professional_id , last_name , cell_number FROM Professionals WHERE state = 'Indiana' UNION SELECT T1.professional_id , T1.last_name , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) > 2"
] |
spider | dev | Database Schema:
Table Professionals
Professionals.street: VARCHAR(50)
Sample values: "6915 Oberbrunner Point Suite 491 Gleasonville, LA", "88665 Terence Lodge Apt. 904 Corneliusfort, NC 194", "68589 Bradly Manor New Audrey, IN 91497", "72532 Hane Course Lake Berylland, ND 95283", "188 VonRueden Tunnel Suite 630... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the id, last name and cell phone of the professionals who live in the state of Indiana or have performed more than two treatments. | 923 | dog_kennels | [
"SELECT professional_id , last_name , cell_number FROM Professionals WHERE state = 'Indiana' UNION SELECT T1.professional_id , T1.last_name , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) > 2"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.owner_id: INTEGER - ... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which dogs have not cost their owner more than 1000 for treatment ? List the dog names . | 924 | dog_kennels | [
"select name from dogs where dog_id not in ( select dog_id from treatments group by dog_id having sum(cost_of_treatment) > 1000 )"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.owner_id: INTEGER - ... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the names of the dogs for which the owner has not spend more than 1000 for treatment ? | 925 | dog_kennels | [
"select name from dogs where dog_id not in ( select dog_id from treatments group by dog_id having sum(cost_of_treatment) > 1000 )"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.owner_id: INTEGER - owner id
Sample values: "3", "11", "1", "14", "7"
Dogs.breed_code: VARCHAR(1... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which first names are used for professionals or owners but are not used as dog names? | 926 | dog_kennels | [
"SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs"
] |
spider | dev | Database Schema:
Table Professionals
Professionals.street: VARCHAR(50)
Sample values: "6915 Oberbrunner Point Suite 491 Gleasonville, LA", "88665 Terence Lodge Apt. 904 Corneliusfort, NC 194", "68589 Bradly Manor New Audrey, IN 91497", "72532 Hane Course Lake Berylland, ND 95283", "188 VonRueden Tunnel Suite 630... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the first names that are used for professionals or owners but are not used as dog names. | 927 | dog_kennels | [
"SELECT first_name FROM Professionals UNION SELECT first_name FROM Owners EXCEPT SELECT name FROM Dogs"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.owner_id: INTEGER - ... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which professional did not operate any treatment on dogs? List the professional's id, role and email. | 928 | dog_kennels | [
"SELECT professional_id , role_code , email_address FROM Professionals EXCEPT SELECT T1.professional_id , T1.role_code , T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id"
] |
spider | dev | Database Schema:
Table Professionals
Professionals.street: VARCHAR(50)
Sample values: "6915 Oberbrunner Point Suite 491 Gleasonville, LA", "88665 Terence Lodge Apt. 904 Corneliusfort, NC 194", "68589 Bradly Manor New Audrey, IN 91497", "72532 Hane Course Lake Berylland, ND 95283", "188 VonRueden Tunnel Suite 630... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Give me the id, role and email of the professionals who did not perform any treatment on dogs. | 929 | dog_kennels | [
"SELECT professional_id , role_code , email_address FROM Professionals EXCEPT SELECT T1.professional_id , T1.role_code , T1.email_address FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.date_adopted: DATETI... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which owner owns the most dogs? List the owner id, first name and last name. | 930 | dog_kennels | [
"SELECT T1.owner_id , T2.first_name , T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.weight: VARCHAR(20)
... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Return the owner id, first name and last name of the owner who has the most dogs. | 931 | dog_kennels | [
"SELECT T1.owner_id , T2.first_name , T2.last_name FROM Dogs AS T1 JOIN Owners AS T2 ON T1.owner_id = T2.owner_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table Professionals
Professionals.street: VARCHAR(50)
Sample values: "6915 Oberbrunner Point Suite 491 Gleasonville, LA", "88665 Terence Lodge Apt. 904 Corneliusfort, NC 194", "68589 Bradly Manor New Audrey, IN 91497", "72532 Hane Course Lake Berylland, ND 95283", "188 VonRueden Tunnel Suite 630... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which professionals have done at least two treatments? List the professional's id, role, and first name. | 932 | dog_kennels | [
"SELECT T1.professional_id , T1.role_code , T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2"
] |
spider | dev | Database Schema:
Table Professionals
Professionals.street: VARCHAR(50)
Sample values: "6915 Oberbrunner Point Suite 491 Gleasonville, LA", "88665 Terence Lodge Apt. 904 Corneliusfort, NC 194", "68589 Bradly Manor New Audrey, IN 91497", "72532 Hane Course Lake Berylland, ND 95283", "188 VonRueden Tunnel Suite 630... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the id, role, and first name of the professionals who have performed two or more treatments? | 933 | dog_kennels | [
"SELECT T1.professional_id , T1.role_code , T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.date_adopted: DATETI... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the name of the breed with the most dogs? | 934 | dog_kennels | [
"SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code = T2.breed_code GROUP BY T1.breed_name ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.date_adopted: DATETI... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which breed do the most dogs have? Give me the breed name. | 935 | dog_kennels | [
"SELECT T1.breed_name FROM Breeds AS T1 JOIN Dogs AS T2 ON T1.breed_code = T2.breed_code GROUP BY T1.breed_name ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.owner_id: INTEGER - ... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which owner has paid for the most treatments on his or her dogs? List the owner id and last name. | 936 | dog_kennels | [
"SELECT T1.owner_id , T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.owner_id: INTEGER - ... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Tell me the owner id and last name of the owner who spent the most on treatments of his or her dogs. | 937 | dog_kennels | [
"SELECT T1.owner_id , T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table Sizes
Sizes.size_description: VARCHAR(80) - size description
Sample values: "Small", "Medium", "Large"
Sizes.size_code: VARCHAR(10) PRIMARY KEY - size code
Sample values: "LGE", "MED", "SML"
Table Dogs
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4"... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the description of the treatment type that costs the least money in total? | 938 | dog_kennels | [
"SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code = T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY sum(cost_of_treatment) ASC LIMIT 1"
] |
spider | dev | Database Schema:
Table Sizes
Sizes.size_description: VARCHAR(80) - size description
Sample values: "Small", "Medium", "Large"
Sizes.size_code: VARCHAR(10) PRIMARY KEY - size code
Sample values: "LGE", "MED", "SML"
Table Dogs
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4"... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Give me the description of the treatment type whose total cost is the lowest. | 939 | dog_kennels | [
"SELECT T1.treatment_type_description FROM Treatment_types AS T1 JOIN Treatments AS T2 ON T1.treatment_type_code = T2.treatment_type_code GROUP BY T1.treatment_type_code ORDER BY sum(cost_of_treatment) ASC LIMIT 1"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.date_arrived: DATETI... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which owner has paid the largest amount of money in total for their dogs? Show the owner id and zip code. | 940 | dog_kennels | [
"SELECT T1.owner_id , T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY sum(T3.cost_of_treatment) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.weight: VARCHAR(20)
... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the owner id and zip code of the owner who spent the most money in total for his or her dogs. | 941 | dog_kennels | [
"SELECT T1.owner_id , T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY sum(T3.cost_of_treatment) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table Owners
Owners.home_phone: VARCHAR(20) - home phone
Sample values: "1-682-845-0116x63235", "(799)563-0260x454", "916.976.9480x13851", "1-332-849-1908", "(544)034-1670"
Owners.first_name: VARCHAR(50) - first name
Sample values: "Nora", "Melisa", "Jaclyn", "Tre", "Johann"
Owners.last_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which professionals have done at least two types of treatments? List the professional id and cell phone. | 942 | dog_kennels | [
"SELECT T1.professional_id , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2"
] |
spider | dev | Database Schema:
Table Professionals
Professionals.street: VARCHAR(50)
Sample values: "6915 Oberbrunner Point Suite 491 Gleasonville, LA", "88665 Terence Lodge Apt. 904 Corneliusfort, NC 194", "68589 Bradly Manor New Audrey, IN 91497", "72532 Hane Course Lake Berylland, ND 95283", "188 VonRueden Tunnel Suite 630... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the id and cell phone of the professionals who operate two or more types of treatments. | 943 | dog_kennels | [
"SELECT T1.professional_id , T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING count(*) >= 2"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.owner_id: INTEGER - owner id
Sample values: "3", "11", "1", "14", "7"
Table Charges
Charges.cha... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the first name and last name of the professionals who have done treatment with cost below average? | 944 | dog_kennels | [
"SELECT DISTINCT T1.first_name , T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 WHERE cost_of_treatment < ( SELECT avg(cost_of_treatment) FROM Treatments )"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.owner_id: INTEGER - owner id
Sample values: "3", "11", "1", "14", "7"
Table Owners
Owners.home_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which professionals have operated a treatment that costs less than the average? Give me theor first names and last names. | 945 | dog_kennels | [
"SELECT DISTINCT T1.first_name , T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 WHERE cost_of_treatment < ( SELECT avg(cost_of_treatment) FROM Treatments )"
] |
spider | dev | Database Schema:
Table Professionals
Professionals.street: VARCHAR(50)
Sample values: "6915 Oberbrunner Point Suite 491 Gleasonville, LA", "88665 Terence Lodge Apt. 904 Corneliusfort, NC 194", "68589 Bradly Manor New Audrey, IN 91497", "72532 Hane Course Lake Berylland, ND 95283", "188 VonRueden Tunnel Suite 630... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | List the date of each treatment, together with the first name of the professional who operated it. | 946 | dog_kennels | [
"SELECT T1.date_of_treatment , T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id = T2.professional_id"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.date_arrived: DATETIME - date arrived
Sample values: "2017-09-08 20:10:13", "2017-12-22 05:02:02",... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the date and the operating professional's first name of each treatment? | 947 | dog_kennels | [
"SELECT T1.date_of_treatment , T2.first_name FROM Treatments AS T1 JOIN Professionals AS T2 ON T1.professional_id = T2.professional_id"
] |
spider | dev | Database Schema:
Table Sizes
Sizes.size_description: VARCHAR(80) - size description
Sample values: "Small", "Medium", "Large"
Sizes.size_code: VARCHAR(10) PRIMARY KEY - size code
Sample values: "LGE", "MED", "SML"
Table Dogs
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4"... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | List the cost of each treatment and the corresponding treatment type description. | 948 | dog_kennels | [
"SELECT T1.cost_of_treatment , T2.treatment_type_description FROM Treatments AS T1 JOIN treatment_types AS T2 ON T1.treatment_type_code = T2.treatment_type_code"
] |
spider | dev | Database Schema:
Table Owners
Owners.home_phone: VARCHAR(20) - home phone
Sample values: "1-682-845-0116x63235", "(799)563-0260x454", "916.976.9480x13851", "1-332-849-1908", "(544)034-1670"
Owners.first_name: VARCHAR(50) - first name
Sample values: "Nora", "Melisa", "Jaclyn", "Tre", "Johann"
Owners.owner... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the cost and treatment type description of each treatment? | 949 | dog_kennels | [
"SELECT T1.cost_of_treatment , T2.treatment_type_description FROM Treatments AS T1 JOIN treatment_types AS T2 ON T1.treatment_type_code = T2.treatment_type_code"
] |
spider | dev | Database Schema:
Table Sizes
Sizes.size_description: VARCHAR(80) - size description
Sample values: "Small", "Medium", "Large"
Sizes.size_code: VARCHAR(10) PRIMARY KEY - size code
Sample values: "LGE", "MED", "SML"
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Housto... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | List each owner's first name, last name, and the size of his for her dog. | 950 | dog_kennels | [
"SELECT T1.first_name , T1.last_name , T2.size_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id"
] |
spider | dev | Database Schema:
Table Sizes
Sizes.size_description: VARCHAR(80) - size description
Sample values: "Small", "Medium", "Large"
Sizes.size_code: VARCHAR(10) PRIMARY KEY - size code
Sample values: "LGE", "MED", "SML"
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Housto... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are each owner's first name, last name, and the size of their dog? | 951 | dog_kennels | [
"SELECT T1.first_name , T1.last_name , T2.size_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.weight: VARCHAR(20)
... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | List pairs of the owner's first name and the dogs's name. | 952 | dog_kennels | [
"SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.date_adopted: DATETI... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are each owner's first name and their dogs's name? | 953 | dog_kennels | [
"SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.date_adopted: DATETI... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | List the names of the dogs of the rarest breed and the treatment dates of them. | 954 | dog_kennels | [
"SELECT T1.name , T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id WHERE T1.breed_code = ( SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY count(*) ASC LIMIT 1 )"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.date_adopted: DATETI... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which dogs are of the rarest breed? Show their names and treatment dates. | 955 | dog_kennels | [
"SELECT T1.name , T2.date_of_treatment FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id WHERE T1.breed_code = ( SELECT breed_code FROM Dogs GROUP BY breed_code ORDER BY count(*) ASC LIMIT 1 )"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.date_adopted: DATETI... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which dogs are owned by someone who lives in Virginia? List the owner's first name and the dog's name. | 956 | dog_kennels | [
"SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state = 'Virginia'"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.date_adopted: DATETI... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the first names of owners living in Virginia and the names of dogs they own. | 957 | dog_kennels | [
"SELECT T1.first_name , T2.name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T1.state = 'Virginia'"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.date_adopted: DATETI... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the arriving date and the departing date of the dogs who have gone through a treatment? | 958 | dog_kennels | [
"SELECT DISTINCT T1.date_arrived , T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.date_adopted: DATETI... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the arriving date and the departing date of the dogs that received a treatment. | 959 | dog_kennels | [
"SELECT DISTINCT T1.date_arrived , T1.date_departed FROM Dogs AS T1 JOIN Treatments AS T2 ON T1.dog_id = T2.dog_id"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.date_adopted: DATETI... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | List the last name of the owner owning the youngest dog. | 960 | dog_kennels | [
"SELECT T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T2.age = ( SELECT max(age) FROM Dogs )"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.date_adopted: DATETI... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Who owns the youngest dog? Give me his or her last name. | 961 | dog_kennels | [
"SELECT T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id WHERE T2.age = ( SELECT max(age) FROM Dogs )"
] |
spider | dev | Database Schema:
Table Professionals
Professionals.street: VARCHAR(50)
Sample values: "6915 Oberbrunner Point Suite 491 Gleasonville, LA", "88665 Terence Lodge Apt. 904 Corneliusfort, NC 194", "68589 Bradly Manor New Audrey, IN 91497", "72532 Hane Course Lake Berylland, ND 95283", "188 VonRueden Tunnel Suite 630... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | List the emails of the professionals who live in the state of Hawaii or the state of Wisconsin. | 962 | dog_kennels | [
"SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin'"
] |
spider | dev | Database Schema:
Table Professionals
Professionals.street: VARCHAR(50)
Sample values: "6915 Oberbrunner Point Suite 491 Gleasonville, LA", "88665 Terence Lodge Apt. 904 Corneliusfort, NC 194", "68589 Bradly Manor New Audrey, IN 91497", "72532 Hane Course Lake Berylland, ND 95283", "188 VonRueden Tunnel Suite 630... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the emails of the professionals living in either the state of Hawaii or the state of Wisconsin? | 963 | dog_kennels | [
"SELECT email_address FROM Professionals WHERE state = 'Hawaii' OR state = 'Wisconsin'"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.date_adopted: DATETI... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the arriving date and the departing date of all the dogs? | 964 | dog_kennels | [
"SELECT date_arrived , date_departed FROM Dogs"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.date_adopted: DATETI... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | List the arrival date and the departure date for all the dogs. | 965 | dog_kennels | [
"SELECT date_arrived , date_departed FROM Dogs"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.date_adopted: DATETI... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many dogs went through any treatments? | 966 | dog_kennels | [
"SELECT count(DISTINCT dog_id) FROM Treatments"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.date_adopted: DATETI... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Count the number of dogs that went through a treatment. | 967 | dog_kennels | [
"SELECT count(DISTINCT dog_id) FROM Treatments"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.owner_id: INTEGER - owner id
Sample values: "3", "11", "1", "14", "7"
Dogs.breed_code: VARCHAR(1... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many professionals have performed any treatment to dogs? | 968 | dog_kennels | [
"SELECT count(DISTINCT professional_id) FROM Treatments"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.owner_id: INTEGER - ... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the number of professionals who have ever treated dogs. | 969 | dog_kennels | [
"SELECT count(DISTINCT professional_id) FROM Treatments"
] |
spider | dev | Database Schema:
Table Professionals
Professionals.street: VARCHAR(50)
Sample values: "09615 McKenzie Stravenue Apt. 128 West Elliottview"
Professionals.role_code: VARCHAR(10) - role code
Sample values: "Employee", "Veterenarian"
Professionals.state: VARCHAR(20)
Sample values: "Indiana", "Connecticut... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which professionals live in a city containing the substring 'West'? List his or her role, street, city and state. | 970 | dog_kennels | [
"SELECT role_code , street , city , state FROM professionals WHERE city LIKE '%West%'"
] |
spider | dev | Database Schema:
Table Professionals
Professionals.street: VARCHAR(50)
Sample values: "09615 McKenzie Stravenue Apt. 128 West Elliottview"
Professionals.role_code: VARCHAR(10) - role code
Sample values: "Employee", "Veterenarian"
Professionals.cell_number: VARCHAR(20) - cell number
Sample values: "(2... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the role, street, city and state of the professionals living in a city that contains the substring 'West'. | 971 | dog_kennels | [
"SELECT role_code , street , city , state FROM professionals WHERE city LIKE '%West%'"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.owner_id: INTEGER - owner id
Sample values: "3", "11", "1", "14", "7"
Table Owners
Owners.home_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Which owners live in the state whose name contains the substring 'North'? List his first name, last name and email. | 972 | dog_kennels | [
"SELECT first_name , last_name , email_address FROM Owners WHERE state LIKE '%North%'"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.owner_id: INTEGER - owner id
Sample values: "3", "11", "1", "14", "7"
Table Owners
Owners.home_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Return the first name, last name and email of the owners living in a state whose name contains the substring 'North'. | 973 | dog_kennels | [
"SELECT first_name , last_name , email_address FROM Owners WHERE state LIKE '%North%'"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.date_adopted: DATETI... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many dogs have an age below the average? | 974 | dog_kennels | [
"SELECT count(*) FROM Dogs WHERE age < ( SELECT avg(age) FROM Dogs )"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.date_adopted: DATETI... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Count the number of dogs of an age below the average. | 975 | dog_kennels | [
"SELECT count(*) FROM Dogs WHERE age < ( SELECT avg(age) FROM Dogs )"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.owner_id: INTEGER - owner id
Sample values: "3", "11", "1", "14", "7"
Dogs.breed_code: VARCHAR(10) - breed code
Sample values: "ESK", "BUL", "HUS"
Dogs.size_code: VARCHAR(10) - size cod... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How much does the most recent treatment cost? | 976 | dog_kennels | [
"SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.owner_id: INTEGER - owner id
Sample values: "3", "11", "1", "14", "7"
Dogs.breed_code: VARCHAR(10) - breed code
Sample values: "ESK", "BUL", "HUS"
Dogs.size_code: VARCHAR(10) - size cod... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Show me the cost of the most recently performed treatment. | 977 | dog_kennels | [
"SELECT cost_of_treatment FROM Treatments ORDER BY date_of_treatment DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.date_adopted: DATETI... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many dogs have not gone through any treatment? | 978 | dog_kennels | [
"SELECT count(*) FROM Dogs WHERE dog_id NOT IN ( SELECT dog_id FROM Treatments )"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.date_adopted: DATETI... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Tell me the number of dogs that have not received any treatment . | 979 | dog_kennels | [
"select count(*) from dogs where dog_id not in ( select dog_id from treatments )"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.date_adopted: DATETI... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many owners temporarily do not have any dogs? | 980 | dog_kennels | [
"SELECT count(*) FROM Owners WHERE owner_id NOT IN ( SELECT owner_id FROM Dogs )"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.date_adopted: DATETI... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the number of owners who do not own any dogs at this moment. | 981 | dog_kennels | [
"SELECT count(*) FROM Owners WHERE owner_id NOT IN ( SELECT owner_id FROM Dogs )"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.owner_id: INTEGER - ... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How many professionals did not operate any treatment on dogs? | 982 | dog_kennels | [
"SELECT count(*) FROM Professionals WHERE professional_id NOT IN ( SELECT professional_id FROM Treatments )"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.owner_id: INTEGER - ... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the number of professionals who have not treated any dogs. | 983 | dog_kennels | [
"SELECT count(*) FROM Professionals WHERE professional_id NOT IN ( SELECT professional_id FROM Treatments )"
] |
spider | dev | Database Schema:
Table Sizes
Sizes.size_description: VARCHAR(80) - size description
Sample values: "Small", "Medium", "Large"
Sizes.size_code: VARCHAR(10) PRIMARY KEY - size code
Sample values: "LGE", "MED", "SML"
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Housto... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | List the dog name, age and weight of the dogs who have been abandoned? 1 stands for yes, and 0 stands for no. | 984 | dog_kennels | [
"SELECT name , age , weight FROM Dogs WHERE abandoned_yn = 1"
] |
spider | dev | Database Schema:
Table Sizes
Sizes.size_description: VARCHAR(80) - size description
Sample values: "Small", "Medium", "Large"
Sizes.size_code: VARCHAR(10) PRIMARY KEY - size code
Sample values: "LGE", "MED", "SML"
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Housto... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the dog name, age and weight of the dogs that were abandoned? Note that 1 stands for yes, and 0 stands for no in the tables. | 985 | dog_kennels | [
"SELECT name , age , weight FROM Dogs WHERE abandoned_yn = 1"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.date_adopted: DATETI... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the average age of all the dogs? | 986 | dog_kennels | [
"SELECT avg(age) FROM Dogs"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.date_adopted: DATETI... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Compute the average age of all the dogs. | 987 | dog_kennels | [
"SELECT avg(age) FROM Dogs"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.date_adopted: DATETI... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the age of the oldest dog? | 988 | dog_kennels | [
"SELECT max(age) FROM Dogs"
] |
spider | dev | Database Schema:
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Houston", "Jeffrey"
Dogs.dog_id: INTEGER PRIMARY KEY - dog id
Sample values: "1", "2", "3", "4", "5"
Dogs.abandoned_yn: VARCHAR(1) - abandoned yes or no
Sample values: "1", "0"
Dogs.date_adopted: DATETI... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Tell me the age of the oldest dog. | 989 | dog_kennels | [
"SELECT max(age) FROM Dogs"
] |
spider | dev | Database Schema:
Table Owners
Owners.home_phone: VARCHAR(20) - home phone
Sample values: "1-682-845-0116x63235", "(799)563-0260x454", "916.976.9480x13851", "1-332-849-1908", "(544)034-1670"
Owners.first_name: VARCHAR(50) - first name
Sample values: "Nora", "Melisa", "Jaclyn", "Tre", "Johann"
Owners.last_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How much does each charge type costs? List both charge type and amount. | 990 | dog_kennels | [
"SELECT charge_type , charge_amount FROM Charges"
] |
spider | dev | Database Schema:
Table Owners
Owners.home_phone: VARCHAR(20) - home phone
Sample values: "1-682-845-0116x63235", "(799)563-0260x454", "916.976.9480x13851", "1-332-849-1908", "(544)034-1670"
Owners.first_name: VARCHAR(50) - first name
Sample values: "Nora", "Melisa", "Jaclyn", "Tre", "Johann"
Owners.last_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | List each charge type and its amount. | 991 | dog_kennels | [
"SELECT charge_type , charge_amount FROM Charges"
] |
spider | dev | Database Schema:
Table Owners
Owners.home_phone: VARCHAR(20) - home phone
Sample values: "1-682-845-0116x63235", "(799)563-0260x454", "916.976.9480x13851", "1-332-849-1908", "(544)034-1670"
Owners.first_name: VARCHAR(50) - first name
Sample values: "Nora", "Melisa", "Jaclyn", "Tre", "Johann"
Owners.last_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | How much does the most expensive charge type costs? | 992 | dog_kennels | [
"SELECT max(charge_amount) FROM Charges"
] |
spider | dev | Database Schema:
Table Owners
Owners.home_phone: VARCHAR(20) - home phone
Sample values: "1-682-845-0116x63235", "(799)563-0260x454", "916.976.9480x13851", "1-332-849-1908", "(544)034-1670"
Owners.first_name: VARCHAR(50) - first name
Sample values: "Nora", "Melisa", "Jaclyn", "Tre", "Johann"
Owners.last_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What is the charge amount of the most expensive charge type? | 993 | dog_kennels | [
"SELECT max(charge_amount) FROM Charges"
] |
spider | dev | Database Schema:
Table Professionals
Professionals.street: VARCHAR(50)
Sample values: "6915 Oberbrunner Point Suite 491 Gleasonville, LA", "88665 Terence Lodge Apt. 904 Corneliusfort, NC 194", "68589 Bradly Manor New Audrey, IN 91497", "72532 Hane Course Lake Berylland, ND 95283", "188 VonRueden Tunnel Suite 630... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | List the email, cell phone and home phone of all the professionals. | 994 | dog_kennels | [
"SELECT email_address , cell_number , home_phone FROM professionals"
] |
spider | dev | Database Schema:
Table Professionals
Professionals.street: VARCHAR(50)
Sample values: "6915 Oberbrunner Point Suite 491 Gleasonville, LA", "88665 Terence Lodge Apt. 904 Corneliusfort, NC 194", "68589 Bradly Manor New Audrey, IN 91497", "72532 Hane Course Lake Berylland, ND 95283", "188 VonRueden Tunnel Suite 630... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are the email, cell phone and home phone of each professional? | 995 | dog_kennels | [
"SELECT email_address , cell_number , home_phone FROM professionals"
] |
spider | dev | Database Schema:
Table Sizes
Sizes.size_description: VARCHAR(80) - size description
Sample values: "Small", "Medium", "Large"
Sizes.size_code: VARCHAR(10) PRIMARY KEY - size code
Sample values: "LGE", "MED", "SML"
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Housto... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are all the possible breed type and size type combinations? | 996 | dog_kennels | [
"SELECT DISTINCT breed_code , size_code FROM dogs"
] |
spider | dev | Database Schema:
Table Sizes
Sizes.size_description: VARCHAR(80) - size description
Sample values: "Small", "Medium", "Large"
Sizes.size_code: VARCHAR(10) PRIMARY KEY - size code
Sample values: "LGE", "MED", "SML"
Table Dogs
Dogs.name: VARCHAR(50)
Sample values: "Kacey", "Hipolito", "Mavis", "Housto... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | Find the distinct breed type and size type combinations for dogs. | 997 | dog_kennels | [
"SELECT DISTINCT breed_code , size_code FROM dogs"
] |
spider | dev | Database Schema:
Table Professionals
Professionals.street: VARCHAR(50)
Sample values: "6915 Oberbrunner Point Suite 491 Gleasonville, LA", "88665 Terence Lodge Apt. 904 Corneliusfort, NC 194", "68589 Bradly Manor New Audrey, IN 91497", "72532 Hane Course Lake Berylland, ND 95283", "188 VonRueden Tunnel Suite 630... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | List the first name of all the professionals along with the description of the treatment they have done. | 998 | dog_kennels | [
"SELECT DISTINCT T1.first_name , T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code = T3.treatment_type_code"
] |
spider | dev | Database Schema:
Table Professionals
Professionals.street: VARCHAR(50)
Sample values: "6915 Oberbrunner Point Suite 491 Gleasonville, LA", "88665 Terence Lodge Apt. 904 Corneliusfort, NC 194", "68589 Bradly Manor New Audrey, IN 91497", "72532 Hane Course Lake Berylland, ND 95283", "188 VonRueden Tunnel Suite 630... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text.\n- Out... | What are each professional's first name and description of the treatment they have performed? | 999 | dog_kennels | [
"SELECT DISTINCT T1.first_name , T3.treatment_type_description FROM professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id JOIN Treatment_types AS T3 ON T2.treatment_type_code = T3.treatment_type_code"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.