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 course
course.Staring_Date: TEXT - staring date
Sample values: "5 May", "6 May", "7 May", "9 May", "10 May"
course.Course_ID: INT PRIMARY KEY - course id
Sample values: "1", "2", "3", "4", "5"
course.Course: TEXT - course
Sample values: "Language Arts", "Math", "Science", "Hist... | [
{
"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 each teacher and what course they teach? | 400 | course_teach | [
"SELECT T3.Name , T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID"
] |
spider | dev | Database Schema:
Table course
course.Staring_Date: TEXT - staring date
Sample values: "5 May", "6 May", "7 May", "9 May", "10 May"
course.Course_ID: INT PRIMARY KEY - course id
Sample values: "1", "2", "3", "4", "5"
course.Course: TEXT - course
Sample values: "Language Arts", "Math", "Science", "Hist... | [
{
"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 names of teachers and the courses they are arranged to teach in ascending alphabetical order of the teacher's name. | 401 | course_teach | [
"SELECT T3.Name , T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID ORDER BY T3.Name"
] |
spider | dev | Database Schema:
Table course
course.Staring_Date: TEXT - staring date
Sample values: "5 May", "6 May", "7 May", "9 May", "10 May"
course.Course_ID: INT PRIMARY KEY - course id
Sample values: "1", "2", "3", "4", "5"
course.Course: TEXT - course
Sample values: "Language Arts", "Math", "Science", "Hist... | [
{
"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 teachers and the courses they teach in ascending alphabetical order by the name of the teacher? | 402 | course_teach | [
"SELECT T3.Name , T2.Course FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID ORDER BY T3.Name"
] |
spider | dev | Database Schema:
Table course
course.Staring_Date: TEXT - staring date
Sample values: "5 May", "6 May", "7 May", "9 May", "10 May"
course.Course_ID: INT PRIMARY KEY - course id
Sample values: "1", "2", "3", "4", "5"
course.Course: TEXT - course
Sample values: "Math"
Table teacher
teacher.Hometown:... | [
{
"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 name of the teacher for the math course. | 403 | course_teach | [
"SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = \"Math\""
] |
spider | dev | Database Schema:
Table course
course.Staring_Date: TEXT - staring date
Sample values: "5 May", "6 May", "7 May", "9 May", "10 May"
course.Course_ID: INT PRIMARY KEY - course id
Sample values: "1", "2", "3", "4", "5"
course.Course: TEXT - course
Sample values: "Math"
Table teacher
teacher.Hometown:... | [
{
"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 people who teach math courses? | 404 | course_teach | [
"SELECT T3.Name FROM course_arrange AS T1 JOIN course AS T2 ON T1.Course_ID = T2.Course_ID JOIN teacher AS T3 ON T1.Teacher_ID = T3.Teacher_ID WHERE T2.Course = \"Math\""
] |
spider | dev | Database Schema:
Table course
course.Staring_Date: TEXT - staring date
Sample values: "5 May", "6 May", "7 May", "9 May", "10 May"
course.Course_ID: INT PRIMARY KEY - course id
Sample values: "1", "2", "3", "4", "5"
course.Course: TEXT - course
Sample values: "Language Arts", "Math", "Science", "Hist... | [
{
"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 names of teachers and the number of courses they teach. | 405 | course_teach | [
"SELECT T2.Name , COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name"
] |
spider | dev | Database Schema:
Table course
course.Staring_Date: TEXT - staring date
Sample values: "5 May", "6 May", "7 May", "9 May", "10 May"
course.Course_ID: INT PRIMARY KEY - course id
Sample values: "1", "2", "3", "4", "5"
course.Course: TEXT - course
Sample values: "Language Arts", "Math", "Science", "Hist... | [
{
"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 teachers and how many courses do they teach? | 406 | course_teach | [
"SELECT T2.Name , COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name"
] |
spider | dev | Database Schema:
Table course
course.Staring_Date: TEXT - staring date
Sample values: "5 May", "6 May", "7 May", "9 May", "10 May"
course.Course_ID: INT PRIMARY KEY - course id
Sample values: "1", "2", "3", "4", "5"
course.Course: TEXT - course
Sample values: "Language Arts", "Math", "Science", "Hist... | [
{
"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 names of teachers that teach at least two courses. | 407 | course_teach | [
"SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*) >= 2"
] |
spider | dev | Database Schema:
Table course
course.Staring_Date: TEXT - staring date
Sample values: "5 May", "6 May", "7 May", "9 May", "10 May"
course.Course_ID: INT PRIMARY KEY - course id
Sample values: "1", "2", "3", "4", "5"
course.Course: TEXT - course
Sample values: "Language Arts", "Math", "Science", "Hist... | [
{
"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 teachers who teach at least two courses? | 408 | course_teach | [
"SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*) >= 2"
] |
spider | dev | Database Schema:
Table course
course.Staring_Date: TEXT - staring date
Sample values: "5 May", "6 May", "7 May", "9 May", "10 May"
course.Course_ID: INT PRIMARY KEY - course id
Sample values: "1", "2", "3", "4", "5"
course.Course: TEXT - course
Sample values: "Language Arts", "Math", "Science", "Hist... | [
{
"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 teachers who have not been arranged to teach courses. | 409 | course_teach | [
"SELECT Name FROM teacher WHERE Teacher_id NOT IN (SELECT Teacher_id FROM course_arrange)"
] |
spider | dev | Database Schema:
Table course
course.Staring_Date: TEXT - staring date
Sample values: "5 May", "6 May", "7 May", "9 May", "10 May"
course.Course_ID: INT PRIMARY KEY - course id
Sample values: "1", "2", "3", "4", "5"
course.Course: TEXT - course
Sample values: "Language Arts", "Math", "Science", "Hist... | [
{
"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 teachers whose courses have not been arranged? | 410 | course_teach | [
"SELECT Name FROM teacher WHERE Teacher_id NOT IN (SELECT Teacher_id FROM course_arrange)"
] |
spider | dev | Database Schema:
Table visit
visit.visitor_ID: TEXT PRIMARY KEY - customer id
Sample values: "5", "3", "6"
visit.Total_spent: REAL - total spent
Sample values: "320.14", "89.98", "320.44", "209.98", "20.44"
visit.Num_of_Ticket: INT - num of ticket
Sample values: "20", "4", "10", "24", "3"
visit.Mus... | [
{
"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 visitors below age 30 are there? | 411 | museum_visit | [
"SELECT count(*) FROM visitor WHERE age < 30"
] |
spider | dev | Database Schema:
Table visit
visit.visitor_ID: TEXT PRIMARY KEY - customer id
Sample values: "5", "3", "6"
visit.Total_spent: REAL - total spent
Sample values: "320.14", "89.98", "320.44", "209.98", "20.44"
visit.Num_of_Ticket: INT - num of ticket
Sample values: "4"
visit.Museum_ID: INT PRIMARY KEY... | [
{
"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 names of the visitors whose membership level is higher than 4, and order the results by the level from high to low. | 412 | museum_visit | [
"SELECT name FROM visitor WHERE Level_of_membership > 4 ORDER BY Level_of_membership DESC"
] |
spider | dev | Database Schema:
Table visit
visit.visitor_ID: TEXT PRIMARY KEY - customer id
Sample values: "5", "3", "6"
visit.Total_spent: REAL - total spent
Sample values: "320.14", "89.98", "320.44", "209.98", "20.44"
visit.Num_of_Ticket: INT - num of ticket
Sample values: "4"
visit.Museum_ID: INT PRIMARY KEY... | [
{
"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 visitors whose membership level is not higher than 4? | 413 | museum_visit | [
"SELECT avg(age) FROM visitor WHERE Level_of_membership <= 4"
] |
spider | dev | Database Schema:
Table visit
visit.visitor_ID: TEXT PRIMARY KEY - customer id
Sample values: "5", "3", "6"
visit.Total_spent: REAL - total spent
Sample values: "320.14", "89.98", "320.44", "209.98", "20.44"
visit.Num_of_Ticket: INT - num of ticket
Sample values: "4"
visit.Museum_ID: INT PRIMARY KEY... | [
{
"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 name and membership level of the visitors whose membership level is higher than 4, and sort by their age from old to young. | 414 | museum_visit | [
"SELECT name , Level_of_membership FROM visitor WHERE Level_of_membership > 4 ORDER BY age DESC"
] |
spider | dev | Database Schema:
Table visit
visit.visitor_ID: TEXT PRIMARY KEY - customer id
Sample values: "5", "3", "6"
visit.Total_spent: REAL - total spent
Sample values: "320.14", "89.98", "320.44", "209.98", "20.44"
visit.Num_of_Ticket: INT - num of ticket
Sample values: "20", "4", "10", "24", "3"
visit.Mus... | [
{
"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 name of the museum that has the most staff members? | 415 | museum_visit | [
"SELECT museum_id , name FROM museum ORDER BY num_of_staff DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table visit
visit.visitor_ID: TEXT PRIMARY KEY - customer id
Sample values: "5", "3", "6"
visit.Total_spent: REAL - total spent
Sample values: "320.14", "89.98", "320.44", "209.98", "20.44"
visit.Num_of_Ticket: INT - num of ticket
Sample values: "20", "4", "10", "24", "3"
visit.Mus... | [
{
"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 number of staff working for the museums that were open before 2009. | 416 | museum_visit | [
"SELECT avg(num_of_staff) FROM museum WHERE open_year < 2009"
] |
spider | dev | Database Schema:
Table visit
visit.visitor_ID: TEXT PRIMARY KEY - customer id
Sample values: "5", "3", "6"
visit.Total_spent: REAL - total spent
Sample values: "320.14", "89.98", "320.44", "209.98", "20.44"
visit.Num_of_Ticket: INT - num of ticket
Sample values: "20", "4", "10", "24", "3"
visit.Mus... | [
{
"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 opening year and staff number of the museum named Plaza Museum? | 417 | museum_visit | [
"SELECT Num_of_Staff , Open_Year FROM museum WHERE name = 'Plaza Museum'"
] |
spider | dev | Database Schema:
Table visit
visit.visitor_ID: TEXT PRIMARY KEY - customer id
Sample values: "5", "3", "6"
visit.Total_spent: REAL - total spent
Sample values: "320.14", "89.98", "320.44", "209.98", "20.44"
visit.Num_of_Ticket: INT - num of ticket
Sample values: "20", "4", "10", "24", "3"
visit.Mus... | [
{
"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 names of museums which have more staff than the minimum staff number of all museums opened after 2010. | 418 | museum_visit | [
"SELECT name FROM museum WHERE num_of_staff > (SELECT min(num_of_staff) FROM museum WHERE open_year > 2010)"
] |
spider | dev | Database Schema:
Table visit
visit.visitor_ID: TEXT PRIMARY KEY - customer id
Sample values: "5", "3", "6"
visit.Total_spent: REAL - total spent
Sample values: "320.14", "89.98", "320.44", "209.98", "20.44"
visit.Num_of_Ticket: INT - num of ticket
Sample values: "20", "4", "10", "24", "3"
visit.Mus... | [
{
"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, name and age for visitors who visited some museums more than once. | 419 | museum_visit | [
"SELECT t1.id , t1.name , t1.age FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t1.id HAVING count(*) > 1"
] |
spider | dev | Database Schema:
Table visit
visit.visitor_ID: TEXT PRIMARY KEY - customer id
Sample values: "5", "3", "6"
visit.Total_spent: REAL - total spent
Sample values: "320.14", "89.98", "320.44", "209.98", "20.44"
visit.Num_of_Ticket: INT - num of ticket
Sample values: "20", "4", "10", "24", "3"
visit.Mus... | [
{
"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, name and membership level of visitors who have spent the largest amount of money in total in all museum tickets? | 420 | museum_visit | [
"SELECT t2.visitor_id , t1.name , t1.Level_of_membership FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t2.visitor_id ORDER BY sum(t2.Total_spent) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table visit
visit.visitor_ID: TEXT PRIMARY KEY - customer id
Sample values: "5", "3", "6"
visit.Total_spent: REAL - total spent
Sample values: "320.14", "89.98", "320.44", "209.98", "20.44"
visit.Num_of_Ticket: INT - num of ticket
Sample values: "20", "4", "10", "24", "3"
visit.Mus... | [
{
"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 and name of the museum visited most times? | 421 | museum_visit | [
"SELECT t2.Museum_ID , t1.name FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID = t2.Museum_ID GROUP BY t2.Museum_ID ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table visit
visit.visitor_ID: TEXT PRIMARY KEY - customer id
Sample values: "5", "3", "6"
visit.Total_spent: REAL - total spent
Sample values: "320.14", "89.98", "320.44", "209.98", "20.44"
visit.Num_of_Ticket: INT - num of ticket
Sample values: "20", "4", "10", "24", "3"
visit.Mus... | [
{
"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 museum that had no visitor yet? | 422 | museum_visit | [
"SELECT name FROM museum WHERE Museum_ID NOT IN (SELECT museum_id FROM visit)"
] |
spider | dev | Database Schema:
Table visit
visit.visitor_ID: TEXT PRIMARY KEY - customer id
Sample values: "5", "3", "6"
visit.Total_spent: REAL - total spent
Sample values: "320.14", "89.98", "320.44", "209.98", "20.44"
visit.Num_of_Ticket: INT - num of ticket
Sample values: "20", "4", "10", "24", "3"
visit.Mus... | [
{
"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 name and age of the visitor who bought the most tickets at once. | 423 | museum_visit | [
"SELECT t1.name , t1.age FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id ORDER BY t2.num_of_ticket DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table visit
visit.visitor_ID: TEXT PRIMARY KEY - customer id
Sample values: "5", "3", "6"
visit.Total_spent: REAL - total spent
Sample values: "320.14", "89.98", "320.44", "209.98", "20.44"
visit.Num_of_Ticket: INT - num of ticket
Sample values: "20", "4", "10", "24", "3"
visit.Mus... | [
{
"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 average and maximum number of tickets bought in all visits? | 424 | museum_visit | [
"SELECT avg(num_of_ticket) , max(num_of_ticket) FROM visit"
] |
spider | dev | Database Schema:
Table visit
visit.visitor_ID: TEXT PRIMARY KEY - customer id
Sample values: "5", "3", "6"
visit.Total_spent: REAL - total spent
Sample values: "320.14", "89.98", "320.44", "209.98", "20.44"
visit.Num_of_Ticket: INT - num of ticket
Sample values: "20", "4", "10", "24", "3"
visit.Mus... | [
{
"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 total ticket expense of the visitors whose membership level is 1? | 425 | museum_visit | [
"SELECT sum(t2.Total_spent) FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id WHERE t1.Level_of_membership = 1"
] |
spider | dev | Database Schema:
Table visit
visit.visitor_ID: TEXT PRIMARY KEY - customer id
Sample values: "5", "3", "6"
visit.Total_spent: REAL - total spent
Sample values: "320.14", "89.98", "320.44", "209.98", "20.44"
visit.Num_of_Ticket: INT - num of ticket
Sample values: "20", "4", "10", "24", "3"
visit.Mus... | [
{
"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 visitor who visited both a museum opened before 2009 and a museum opened after 2011? | 426 | museum_visit | [
"SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year < 2009 INTERSECT SELECT t1.name FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id JOIN museum AS t3 ON t3.Museum_ID = t2.Museum_ID WHERE t3.open_year ... |
spider | dev | Database Schema:
Table visit
visit.visitor_ID: TEXT PRIMARY KEY - customer id
Sample values: "5", "3", "6"
visit.Total_spent: REAL - total spent
Sample values: "320.14", "89.98", "320.44", "209.98", "20.44"
visit.Num_of_Ticket: INT - num of ticket
Sample values: "20", "4", "10", "24", "3"
visit.Mus... | [
{
"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 visitors who did not visit any museum opened after 2010. | 427 | museum_visit | [
"SELECT count(*) FROM visitor WHERE id NOT IN (SELECT t2.visitor_id FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID = t2.Museum_ID WHERE t1.open_year > 2010)"
] |
spider | dev | Database Schema:
Table visit
visit.visitor_ID: TEXT PRIMARY KEY - customer id
Sample values: "5", "3", "6"
visit.Total_spent: REAL - total spent
Sample values: "320.14", "89.98", "320.44", "209.98", "20.44"
visit.Num_of_Ticket: INT - num of ticket
Sample values: "20", "4", "10", "24", "3"
visit.Mus... | [
{
"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 museums were opened after 2013 or before 2008? | 428 | museum_visit | [
"SELECT count(*) FROM museum WHERE open_year > 2013 OR open_year < 2008"
] |
spider | dev | Database Schema:
Table players
players.first_name: TEXT - first name
Sample values: "Martina", "Mirjana", "Justine", "Kerry Anne", "Jolene"
players.country_code: TEXT - country code
Sample values: "SUI", "CRO", "BEL", "AUS", "USA"
players.last_name: TEXT - last name
Sample values: "Hingis", "Lucic", ... | [
{
"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 total number of players. | 429 | wta_1 | [
"SELECT count(*) FROM players"
] |
spider | dev | Database Schema:
Table players
players.first_name: TEXT - first name
Sample values: "Martina", "Mirjana", "Justine", "Kerry Anne", "Jolene"
players.country_code: TEXT - country code
Sample values: "SUI", "CRO", "BEL", "AUS", "USA"
players.last_name: TEXT - last name
Sample values: "Mani", "Howes"
p... | [
{
"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 players are there? | 430 | wta_1 | [
"SELECT count(*) FROM players"
] |
spider | dev | Database Schema:
Table matches
matches.best_of: INT - best of
Sample values: "3"
matches.draw_size: INT - draw size
Sample values: "4", "32", "128", "64", "8"
matches.minutes: INT
Sample values: "82", "72", "64", "84", "58"
matches.tourney_id: TEXT - tourney id
Sample values: "2013-W-WT-TUR-01A... | [
{
"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 total number of matches. | 431 | wta_1 | [
"SELECT count(*) FROM matches"
] |
spider | dev | Database Schema:
Table matches
matches.best_of: INT - best of
Sample values: "3"
matches.draw_size: INT - draw size
Sample values: "4", "32", "128", "64", "8"
matches.minutes: INT
Sample values: "82", "72", "64", "84", "58"
matches.tourney_id: TEXT - tourney id
Sample values: "2013-W-WT-TUR-01A... | [
{
"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 matches. | 432 | wta_1 | [
"SELECT count(*) FROM matches"
] |
spider | dev | Database Schema:
Table players
players.first_name: TEXT - first name
Sample values: "Birthe"
players.country_code: TEXT - country code
Sample values: "USA"
players.last_name: TEXT - last name
Sample values: "Date", "Moll Alles", "Date Krumm"
players.hand: TEXT
Sample values: "R", "L", "U"
pla... | [
{
"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 and birth date of all players from the country with code USA. | 433 | wta_1 | [
"SELECT first_name , birth_date FROM players WHERE country_code = 'USA'"
] |
spider | dev | Database Schema:
Table players
players.first_name: TEXT - first name
Sample values: "Birthe"
players.country_code: TEXT - country code
Sample values: "USA"
players.last_name: TEXT - last name
Sample values: "Date", "Date Krumm"
players.hand: TEXT
Sample values: "R", "L", "U"
players.player_id... | [
{
"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 names and birth dates of players from the USA? | 434 | wta_1 | [
"SELECT first_name , birth_date FROM players WHERE country_code = 'USA'"
] |
spider | dev | Database Schema:
Table matches
matches.winner_ht: INT - winner ht
Sample values: "175", "183", "173", "172", "180"
matches.winner_hand: TEXT - winner hand
Sample values: "R", "L"
matches.tourney_id: TEXT - tourney id
Sample values: "2013-W-WT-TUR-01A-2013", "2016-1049", "2016-M020", "2016-1050", "201... | [
{
"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 losers and winners of all matches. | 435 | wta_1 | [
"SELECT avg(loser_age) , avg(winner_age) FROM matches"
] |
spider | dev | Database Schema:
Table matches
matches.winner_ht: INT - winner ht
Sample values: "175", "183", "173", "172", "180"
matches.winner_hand: TEXT - winner hand
Sample values: "R", "L"
matches.tourney_id: TEXT - tourney id
Sample values: "2013-W-WT-TUR-01A-2013", "2016-1049", "2016-M020", "2016-1050", "201... | [
{
"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 average ages of losers and winners across matches? | 436 | wta_1 | [
"SELECT avg(loser_age) , avg(winner_age) FROM matches"
] |
spider | dev | Database Schema:
Table matches
matches.winner_ht: INT - winner ht
Sample values: "175", "183", "173", "172", "180"
matches.winner_hand: TEXT - winner hand
Sample values: "R", "L"
matches.minutes: INT
Sample values: "82", "72", "64", "84", "58"
matches.loser_rank: INT - loser rank
Sample values:... | [
{
"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 rank of winners in all matches. | 437 | wta_1 | [
"SELECT avg(winner_rank) FROM matches"
] |
spider | dev | Database Schema:
Table matches
matches.winner_ht: INT - winner ht
Sample values: "175", "183", "173", "172", "180"
matches.winner_hand: TEXT - winner hand
Sample values: "R", "L"
matches.minutes: INT
Sample values: "82", "72", "64", "84", "58"
matches.loser_rank: INT - loser rank
Sample values:... | [
{
"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 rank for winners in all matches? | 438 | wta_1 | [
"SELECT avg(winner_rank) FROM matches"
] |
spider | dev | Database Schema:
Table matches
matches.winner_ht: INT - winner ht
Sample values: "175", "183", "173", "172", "180"
matches.winner_hand: TEXT - winner hand
Sample values: "R", "L"
matches.loser_rank: INT - loser rank
Sample values: "4", "6", "9", "2", "7"
matches.loser_entry: TEXT - loser entry
ma... | [
{
"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 highest rank of losers in all matches. | 439 | wta_1 | [
"SELECT min(loser_rank) FROM matches"
] |
spider | dev | Database Schema:
Table matches
matches.winner_ht: INT - winner ht
Sample values: "175", "183", "173", "172", "180"
matches.winner_hand: TEXT - winner hand
Sample values: "R", "L"
matches.loser_rank: INT - loser rank
Sample values: "4", "6", "9", "2", "7"
matches.loser_entry: TEXT - loser entry
ma... | [
{
"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 best rank of losers across all matches? | 440 | wta_1 | [
"SELECT min(loser_rank) FROM matches"
] |
spider | dev | Database Schema:
Table players
players.first_name: TEXT - first name
Sample values: "Martina", "Mirjana", "Justine", "Kerry Anne", "Jolene"
players.country_code: TEXT - country code
Sample values: "SUI", "CRO", "BEL", "AUS", "USA"
players.last_name: TEXT - last name
Sample values: "Moll Alles"
play... | [
{
"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 distinct country codes of all players. | 441 | wta_1 | [
"SELECT count(DISTINCT country_code) FROM players"
] |
spider | dev | Database Schema:
Table players
players.first_name: TEXT - first name
Sample values: "Do Hee", "Eduarda Nardi Dos", "Fernanda Luvizotto Do"
players.country_code: TEXT - country code
Sample values: "SUI", "CRO", "BEL", "AUS", "USA"
players.last_name: TEXT - last name
Sample values: "Mani", "Howes", "Do... | [
{
"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 distinct countries do players come from? | 442 | wta_1 | [
"SELECT count(DISTINCT country_code) FROM players"
] |
spider | dev | Database Schema:
Table matches
matches.winner_ht: INT - winner ht
Sample values: "175", "183", "173", "172", "180"
matches.winner_hand: TEXT - winner hand
Sample values: "R", "L"
matches.loser_rank: INT - loser rank
Sample values: "4", "6", "9", "2", "7"
matches.round: TEXT
Sample values: "RR",... | [
{
"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 distinct name of losers. | 443 | wta_1 | [
"SELECT count(DISTINCT loser_name) FROM matches"
] |
spider | dev | Database Schema:
Table matches
matches.winner_ht: INT - winner ht
Sample values: "175", "183", "173", "172", "180"
matches.winner_hand: TEXT - winner hand
Sample values: "R", "L"
matches.tourney_id: TEXT - tourney id
Sample values: "2013-W-WT-TUR-01A-2013", "2016-1049", "2016-M020", "2016-1050", "201... | [
{
"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 different loser names are there? | 444 | wta_1 | [
"SELECT count(DISTINCT loser_name) FROM matches"
] |
spider | dev | Database Schema:
Table rankings
rankings.ranking: INT
Sample values: "10"
rankings.player_id: INT - player id
Sample values: "200748", "200033", "200020", "200124", "200120"
rankings.tours: INT
Sample values: "10"
rankings.ranking_points: INT - ranking points
Sample values: "10"
Table matches
... | [
{
"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 name of tourney that has more than 10 matches. | 445 | wta_1 | [
"SELECT tourney_name FROM matches GROUP BY tourney_name HAVING count(*) > 10"
] |
spider | dev | Database Schema:
Table players
players.first_name: TEXT - first name
Sample values: "Martina", "Mirjana", "Justine", "Kerry Anne", "Jolene"
players.last_name: TEXT - last name
Sample values: "Mores"
players.player_id: INT PRIMARY KEY - player id
Sample values: "200001", "200002", "200003", "200004", ... | [
{
"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 tournaments that have more than 10 matches? | 446 | wta_1 | [
"SELECT tourney_name FROM matches GROUP BY tourney_name HAVING count(*) > 10"
] |
spider | dev | Database Schema:
Table matches
matches.winner_ht: INT - winner ht
Sample values: "175", "183", "173", "172", "180"
matches.winner_hand: TEXT - winner hand
Sample values: "R", "L"
matches.tourney_id: TEXT - tourney id
Sample values: "2013-W-WT-TUR-01A-2013", "2016-1049", "2016-M006", "2016-M007", "201... | [
{
"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 all winners who played in both 2013 and 2016. | 447 | wta_1 | [
"SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016"
] |
spider | dev | Database Schema:
Table matches
matches.winner_ht: INT - winner ht
Sample values: "175", "183", "173", "172", "180"
matches.winner_hand: TEXT - winner hand
Sample values: "R", "L"
matches.tourney_id: TEXT - tourney id
Sample values: "2013-W-WT-TUR-01A-2013", "2016-1049", "2016-M006", "2016-M007", "201... | [
{
"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 players who won in both 2013 and 2016? | 448 | wta_1 | [
"SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016"
] |
spider | dev | Database Schema:
Table matches
matches.winner_hand: TEXT - winner hand
Sample values: "R", "L"
matches.draw_size: INT - draw size
Sample values: "4", "32", "128", "64", "8"
matches.tourney_id: TEXT - tourney id
Sample values: "2013-W-WT-TUR-01A-2013", "2016-1049", "2016-M006", "2016-M007", "2016-0804... | [
{
"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 number of all matches who played in years of 2013 or 2016. | 449 | wta_1 | [
"SELECT count(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016"
] |
spider | dev | Database Schema:
Table matches
matches.draw_size: INT - draw size
Sample values: "4", "32", "128", "64", "8"
matches.tourney_id: TEXT - tourney id
Sample values: "2013-W-WT-TUR-01A-2013", "2016-1049", "2016-M006", "2016-M007", "2016-0804"
matches.minutes: INT
Sample values: "82", "72", "64", "84", "5... | [
{
"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 matches were played in 2013 or 2016? | 450 | wta_1 | [
"SELECT count(*) FROM matches WHERE YEAR = 2013 OR YEAR = 2016"
] |
spider | dev | Database Schema:
Table matches
matches.winner_ht: INT - winner ht
Sample values: "175", "183", "173", "172", "180"
matches.winner_hand: TEXT - winner hand
Sample values: "R", "L"
matches.tourney_id: TEXT - tourney id
Sample values: "2013-W-WT-TUR-01A-2013", "2016-1049", "2016-M020", "2016-1050", "201... | [
{
"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 country code and first name of the players who won in both tourney WTA Championships and Australian Open? | 451 | wta_1 | [
"SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'WTA Championships' INTERSECT SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'Australian... |
spider | dev | Database Schema:
Table matches
matches.winner_ht: INT - winner ht
Sample values: "175", "183", "173", "172", "180"
matches.winner_hand: TEXT - winner hand
Sample values: "R", "L"
matches.tourney_id: TEXT - tourney id
Sample values: "2013-W-WT-TUR-01A-2013", "2016-1049", "2016-M020", "2016-1050", "201... | [
{
"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 names and country codes for players who won both the WTA Championships and the Australian Open? | 452 | wta_1 | [
"SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'WTA Championships' INTERSECT SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'Australian... |
spider | dev | Database Schema:
Table players
players.first_name: TEXT - first name
Sample values: "Martina", "Mirjana", "Justine", "Kerry Anne", "Jolene"
players.country_code: TEXT - country code
Sample values: "SUI", "CRO", "BEL", "AUS", "USA"
players.last_name: TEXT - last name
Sample values: "Hingis", "Lucic", ... | [
{
"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 name and country code of the oldest player. | 453 | wta_1 | [
"SELECT first_name , country_code FROM players ORDER BY birth_date LIMIT 1"
] |
spider | dev | Database Schema:
Table players
players.first_name: TEXT - first name
Sample values: "Martina", "Mirjana", "Justine", "Kerry Anne", "Jolene"
players.country_code: TEXT - country code
Sample values: "SUI", "CRO", "BEL", "AUS", "USA"
players.last_name: TEXT - last name
Sample values: "Hingis", "Lucic", ... | [
{
"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 first name and country code of the oldest player? | 454 | wta_1 | [
"SELECT first_name , country_code FROM players ORDER BY birth_date LIMIT 1"
] |
spider | dev | Database Schema:
Table players
players.first_name: TEXT - first name
Sample values: "Birthe"
players.country_code: TEXT - country code
Sample values: "SUI", "CRO", "BEL", "AUS", "USA"
players.last_name: TEXT - last name
Sample values: "Last", "Date", "Moll Alles", "Date Krumm"
players.hand: TEXT
... | [
{
"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 and last name of all players in the order of birth date. | 455 | wta_1 | [
"SELECT first_name , last_name FROM players ORDER BY birth_date"
] |
spider | dev | Database Schema:
Table players
players.first_name: TEXT - first name
Sample values: "Birthe"
players.country_code: TEXT - country code
Sample values: "SUI", "CRO", "BEL", "AUS", "USA"
players.last_name: TEXT - last name
Sample values: "Date", "Moll Alles", "Date Krumm"
players.hand: TEXT
Sample... | [
{
"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 full names of all players, sorted by birth date? | 456 | wta_1 | [
"SELECT first_name , last_name FROM players ORDER BY birth_date"
] |
spider | dev | Database Schema:
Table players
players.first_name: TEXT - first name
Sample values: "Hande", "Birthe", "L", "Caryssa L", "Taylor L"
players.country_code: TEXT - country code
Sample values: "SUI", "CRO", "BEL", "AUS", "USA"
players.last_name: TEXT - last name
Sample values: "Last", "Date", "Hande", "M... | [
{
"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 and last name of all players who are left / L hand in the order of birth date. | 457 | wta_1 | [
"SELECT first_name , last_name FROM players WHERE hand = 'L' ORDER BY birth_date"
] |
spider | dev | Database Schema:
Table players
players.first_name: TEXT - first name
Sample values: "Hande", "Birthe"
players.country_code: TEXT - country code
Sample values: "SUI", "CRO", "BEL", "AUS", "USA"
players.last_name: TEXT - last name
Sample values: "Date", "Hande", "Moll Alles", "Marfini Hand", "Date Krum... | [
{
"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 full names of all left handed players, in order of birth date? | 458 | wta_1 | [
"SELECT first_name , last_name FROM players WHERE hand = 'L' ORDER BY birth_date"
] |
spider | dev | Database Schema:
Table players
players.first_name: TEXT - first name
Sample values: "Martina", "Mirjana", "Justine", "Kerry Anne", "Jolene"
players.country_code: TEXT - country code
Sample values: "SUI", "CRO", "BEL", "AUS", "USA"
players.last_name: TEXT - last name
Sample values: "Toure", "Tour"
p... | [
{
"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 name and country code of the player who did the most number of tours. | 459 | wta_1 | [
"SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table players
players.first_name: TEXT - first name
Sample values: "Martina", "Mirjana", "Justine", "Kerry Anne", "Jolene"
players.country_code: TEXT - country code
Sample values: "SUI", "CRO", "BEL", "AUS", "USA"
players.last_name: TEXT - last name
Sample values: "Toure", "Tour"
p... | [
{
"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 first name and country code of the player with the most tours? | 460 | wta_1 | [
"SELECT T1.country_code , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table matches
matches.draw_size: INT - draw size
Sample values: "4", "32", "128", "64", "8"
matches.minutes: INT
Sample values: "82", "72", "64", "84", "58"
matches.tourney_id: TEXT - tourney id
Sample values: "2013-W-WT-TUR-01A-2013", "2016-1049", "2016-M020", "2016-1050", "2016-M00... | [
{
"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 year that has the most number of matches. | 461 | wta_1 | [
"SELECT YEAR FROM matches GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table rankings
rankings.ranking: INT
Sample values: "3", "4", "28", "31", "43"
rankings.player_id: INT - player id
Sample values: "200748", "200033", "200020", "200124", "200120"
Table matches
matches.best_of: INT - best of
Sample values: "3"
matches.draw_size: INT - draw size
... | [
{
"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 year had the most matches? | 462 | wta_1 | [
"SELECT YEAR FROM matches GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table matches
matches.winner_ht: INT - winner ht
Sample values: "175", "183", "173", "172", "180"
matches.winner_hand: TEXT - winner hand
Sample values: "R", "L"
matches.loser_rank: INT - loser rank
Sample values: "4", "6", "9", "2", "7"
matches.loser_entry: TEXT - loser entry
ma... | [
{
"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 name and rank points of the winner who won the most times. | 463 | wta_1 | [
"SELECT winner_name , winner_rank_points FROM matches GROUP BY winner_name ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table matches
matches.winner_ht: INT - winner ht
Sample values: "175", "183", "173", "172", "180"
matches.winner_hand: TEXT - winner hand
Sample values: "R", "L"
matches.loser_rank: INT - loser rank
Sample values: "4", "6", "9", "2", "7"
matches.loser_entry: TEXT - loser entry
ma... | [
{
"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 winner who has won the most matches, and how many rank points does this player have? | 464 | wta_1 | [
"SELECT winner_name , winner_rank_points FROM matches GROUP BY winner_name ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table matches
matches.winner_ht: INT - winner ht
Sample values: "175", "183", "173", "172", "180"
matches.winner_hand: TEXT - winner hand
Sample values: "R", "L"
matches.tourney_id: TEXT - tourney id
Sample values: "2013-W-WT-TUR-01A-2013", "2016-1049", "2016-M020", "2016-1050", "201... | [
{
"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 name of the winner who has the highest rank points and participated in the Australian Open tourney. | 465 | wta_1 | [
"SELECT winner_name FROM matches WHERE tourney_name = 'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table matches
matches.winner_ht: INT - winner ht
Sample values: "175", "183", "173", "172", "180"
matches.winner_hand: TEXT - winner hand
Sample values: "R", "L"
matches.loser_rank: INT - loser rank
Sample values: "4", "6", "9", "2", "7"
matches.loser_entry: TEXT - loser entry
ma... | [
{
"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 winner with the most rank points who participated in the Australian Open tournament? | 466 | wta_1 | [
"SELECT winner_name FROM matches WHERE tourney_name = 'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table matches
matches.winner_ht: INT - winner ht
Sample values: "175", "183", "173", "172", "180"
matches.winner_hand: TEXT - winner hand
Sample values: "R", "L"
matches.minutes: INT
Sample values: "82", "72", "64", "84", "58"
matches.loser_rank: INT - loser rank
Sample values:... | [
{
"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 names of loser and winner who played in the match with greatest number of minutes. | 467 | wta_1 | [
"SELECT winner_name , loser_name FROM matches ORDER BY minutes DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table matches
matches.winner_ht: INT - winner ht
Sample values: "175", "183", "173", "172", "180"
matches.winner_hand: TEXT - winner hand
Sample values: "R", "L"
matches.minutes: INT
Sample values: "82", "72", "64", "84", "58"
matches.loser_rank: INT - loser rank
Sample values:... | [
{
"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 winner and loser who played in the longest match? | 468 | wta_1 | [
"SELECT winner_name , loser_name FROM matches ORDER BY minutes DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table players
players.first_name: TEXT - first name
Sample values: "Martina", "Mirjana", "Justine", "Kerry Anne", "Jolene"
players.country_code: TEXT - country code
Sample values: "SUI", "CRO", "BEL", "AUS", "USA"
players.last_name: TEXT - last name
Sample values: "Hingis", "Lucic", ... | [
{
"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 ranking for each player and their first name. | 469 | wta_1 | [
"SELECT avg(ranking) , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name"
] |
spider | dev | Database Schema:
Table players
players.first_name: TEXT - first name
Sample values: "Martina", "Mirjana", "Justine", "Kerry Anne", "Jolene"
players.country_code: TEXT - country code
Sample values: "SUI", "CRO", "BEL", "AUS", "USA"
players.last_name: TEXT - last name
Sample values: "Moll Alles"
play... | [
{
"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 names of all players, and their average rankings? | 470 | wta_1 | [
"SELECT avg(ranking) , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name"
] |
spider | dev | Database Schema:
Table players
players.first_name: TEXT - first name
Sample values: "Martina", "Mirjana", "Justine", "Kerry Anne", "Jolene"
players.country_code: TEXT - country code
Sample values: "SUI", "CRO", "BEL", "AUS", "USA"
players.last_name: TEXT - last name
Sample values: "Hingis", "Lucic", ... | [
{
"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 total ranking points for each player and their first name. | 471 | wta_1 | [
"SELECT sum(ranking_points) , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name"
] |
spider | dev | Database Schema:
Table players
players.first_name: TEXT - first name
Sample values: "Martina", "Mirjana", "Justine", "Kerry Anne", "Jolene"
players.country_code: TEXT - country code
Sample values: "SUI", "CRO", "BEL", "AUS", "USA"
players.last_name: TEXT - last name
Sample values: "Moll Alles"
play... | [
{
"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 names of all players, and their total ranking points? | 472 | wta_1 | [
"SELECT sum(ranking_points) , T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name"
] |
spider | dev | Database Schema:
Table players
players.first_name: TEXT - first name
Sample values: "Martina", "Mirjana", "Justine", "Kerry Anne", "Jolene"
players.country_code: TEXT - country code
Sample values: "SUI", "CRO", "BEL", "AUS", "USA"
players.last_name: TEXT - last name
Sample values: "Hingis", "Lucic", ... | [
{
"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 players for each country. | 473 | wta_1 | [
"SELECT count(*) , country_code FROM players GROUP BY country_code"
] |
spider | dev | Database Schema:
Table players
players.first_name: TEXT - first name
Sample values: "Martina", "Mirjana", "Justine", "Kerry Anne", "Jolene"
players.country_code: TEXT - country code
Sample values: "SUI", "CRO", "BEL", "AUS", "USA"
players.last_name: TEXT - last name
Sample values: "Mani", "Howes"
p... | [
{
"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 players are from each country? | 474 | wta_1 | [
"SELECT count(*) , country_code FROM players GROUP BY country_code"
] |
spider | dev | Database Schema:
Table players
players.first_name: TEXT - first name
Sample values: "Ha Young", "Viet Ha", "Ha Yang", "Ha Eun", "Jung Ha"
players.country_code: TEXT - country code
Sample values: "SUI", "CRO", "BEL", "AUS", "USA"
players.last_name: TEXT - last name
Sample values: "Ha", "Ha Nul"
play... | [
{
"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 code of the country where has the greatest number of players. | 475 | wta_1 | [
"SELECT country_code FROM players GROUP BY country_code ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table players
players.first_name: TEXT - first name
Sample values: "Martina", "Mirjana", "Justine", "Kerry Anne", "Jolene"
players.country_code: TEXT - country code
Sample values: "SUI", "CRO", "BEL", "AUS", "USA"
players.last_name: TEXT - last name
Sample values: "Hingis", "Lucic", ... | [
{
"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 code of the country with the most players? | 476 | wta_1 | [
"SELECT country_code FROM players GROUP BY country_code ORDER BY count(*) DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table players
players.first_name: TEXT - first name
Sample values: "Martina", "Mirjana", "Justine", "Kerry Anne", "Jolene"
players.country_code: TEXT - country code
Sample values: "SUI", "CRO", "BEL", "AUS", "USA"
players.last_name: TEXT - last name
Sample values: "Mores"
players.h... | [
{
"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 codes of countries that have more than 50 players. | 477 | wta_1 | [
"SELECT country_code FROM players GROUP BY country_code HAVING count(*) > 50"
] |
spider | dev | Database Schema:
Table players
players.first_name: TEXT - first name
Sample values: "Martina", "Mirjana", "Justine", "Kerry Anne", "Jolene"
players.country_code: TEXT - country code
Sample values: "SUI", "CRO", "BEL", "AUS", "USA"
players.last_name: TEXT - last name
Sample values: "Mores"
players.h... | [
{
"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 codes of countries with more than 50 players? | 478 | wta_1 | [
"SELECT country_code FROM players GROUP BY country_code HAVING count(*) > 50"
] |
spider | dev | Database Schema:
Table rankings
rankings.ranking: INT
Sample values: "3", "4", "28", "31", "43"
rankings.ranking_date: DATE - ranking date
Sample values: "20000101", "20000103", "20000110", "20000117", "20000124"
rankings.player_id: INT - player id
Sample values: "200748", "200033", "200020", "200124... | [
{
"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 total number of tours for each ranking date. | 479 | wta_1 | [
"SELECT sum(tours) , ranking_date FROM rankings GROUP BY ranking_date"
] |
spider | dev | Database Schema:
Table players
players.first_name: TEXT - first name
Sample values: "Martina", "Mirjana", "Justine", "Kerry Anne", "Jolene"
players.player_id: INT PRIMARY KEY - player id
Sample values: "200001", "200002", "200003", "200004", "200005"
Table rankings
rankings.ranking: INT
Sample value... | [
{
"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 total tours were there for each ranking date? | 480 | wta_1 | [
"SELECT sum(tours) , ranking_date FROM rankings GROUP BY ranking_date"
] |
spider | dev | Database Schema:
Table matches
matches.draw_size: INT - draw size
Sample values: "4", "32", "128", "64", "8"
matches.tourney_id: TEXT - tourney id
Sample values: "2013-W-WT-TUR-01A-2013", "2016-1049", "2016-M020", "2016-1050", "2016-M001"
matches.minutes: INT
Sample values: "82", "72", "64", "84", "5... | [
{
"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 matches happened in each year. | 481 | wta_1 | [
"SELECT count(*) , YEAR FROM matches GROUP BY YEAR"
] |
spider | dev | Database Schema:
Table rankings
rankings.ranking: INT
Sample values: "3", "4", "28", "31", "43"
rankings.ranking_date: DATE - ranking date
Sample values: "20000101", "20000103", "20000110", "20000117", "20000124"
rankings.player_id: INT - player id
Sample values: "200748", "200033", "200020", "200124... | [
{
"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 matches were played in each year? | 482 | wta_1 | [
"SELECT count(*) , YEAR FROM matches GROUP BY YEAR"
] |
spider | dev | Database Schema:
Table matches
matches.winner_ht: INT - winner ht
Sample values: "175", "183", "173", "172", "180"
matches.winner_hand: TEXT - winner hand
Sample values: "R", "L"
matches.loser_rank: INT - loser rank
Sample values: "3"
matches.winner_id: INT - winner id
Sample values: "200033", ... | [
{
"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 name and rank of the 3 youngest winners across all matches. | 483 | wta_1 | [
"SELECT DISTINCT winner_name , winner_rank FROM matches ORDER BY winner_age LIMIT 3"
] |
spider | dev | Database Schema:
Table matches
matches.winner_ht: INT - winner ht
Sample values: "175", "183", "173", "172", "180"
matches.winner_hand: TEXT - winner hand
Sample values: "R", "L"
matches.loser_rank: INT - loser rank
Sample values: "4", "6", "9", "2", "7"
matches.winner_id: INT - winner id
Sampl... | [
{
"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 and ranks of the three youngest winners across all matches? | 484 | wta_1 | [
"SELECT DISTINCT winner_name , winner_rank FROM matches ORDER BY winner_age LIMIT 3"
] |
spider | dev | Database Schema:
Table matches
matches.winner_ht: INT - winner ht
Sample values: "175", "183", "173", "172", "180"
matches.winner_hand: TEXT - winner hand
Sample values: "R", "L"
matches.tourney_id: TEXT - tourney id
Sample values: "2013-W-WT-TUR-01A-2013", "2016-1049", "2016-M020", "2016-1050", "201... | [
{
"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 different winners both participated in the WTA Championships and were left handed? | 485 | wta_1 | [
"SELECT count(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L'"
] |
spider | dev | Database Schema:
Table matches
matches.winner_ht: INT - winner ht
Sample values: "175", "183", "173", "172", "180"
matches.winner_hand: TEXT - winner hand
Sample values: "R", "L"
matches.tourney_id: TEXT - tourney id
Sample values: "2013-W-WT-TUR-01A-2013", "2016-1049", "2016-M020", "2016-1050", "201... | [
{
"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 left handed winners who participated in the WTA Championships. | 486 | wta_1 | [
"SELECT count(DISTINCT winner_name) FROM matches WHERE tourney_name = 'WTA Championships' AND winner_hand = 'L'"
] |
spider | dev | Database Schema:
Table matches
matches.winner_ht: INT - winner ht
Sample values: "175", "183", "173", "172", "180"
matches.winner_hand: TEXT - winner hand
Sample values: "R", "L"
matches.loser_rank: INT - loser rank
Sample values: "4", "6", "9", "2", "7"
matches.winner_id: INT - winner id
Sampl... | [
{
"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 name, country code and birth date of the winner who has the highest rank points in all matches. | 487 | wta_1 | [
"SELECT T1.first_name , T1.country_code , T1.birth_date FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id ORDER BY T2.winner_rank_points DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table matches
matches.winner_ht: INT - winner ht
Sample values: "175", "183", "173", "172", "180"
matches.winner_hand: TEXT - winner hand
Sample values: "R", "L"
matches.minutes: INT
Sample values: "82", "72", "64", "84", "58"
matches.winner_id: INT - winner id
Sample values: "... | [
{
"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 first name, country code, and birth date of the player with the most winner rank points across all matches? | 488 | wta_1 | [
"SELECT T1.first_name , T1.country_code , T1.birth_date FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id ORDER BY T2.winner_rank_points DESC LIMIT 1"
] |
spider | dev | Database Schema:
Table players
players.first_name: TEXT - first name
Sample values: "Hande"
players.country_code: TEXT - country code
Sample values: "SUI", "CRO", "BEL", "AUS", "USA"
players.last_name: TEXT - last name
Sample values: "Hande", "Marfini Hand"
players.hand: TEXT
Sample values: "R"... | [
{
"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 players for each hand type. | 489 | wta_1 | [
"SELECT count(*) , hand FROM players GROUP BY hand"
] |
spider | dev | Database Schema:
Table players
players.first_name: TEXT - first name
Sample values: "Hande"
players.country_code: TEXT - country code
Sample values: "SUI", "CRO", "BEL", "AUS", "USA"
players.last_name: TEXT - last name
Sample values: "Mani", "Howes", "Hande", "Marfini Hand"
players.hand: TEXT
S... | [
{
"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 players are there for each hand type? | 490 | wta_1 | [
"SELECT count(*) , hand FROM players GROUP BY hand"
] |
spider | dev | Database Schema:
Table battle
battle.bulgarian_commander: TEXT - bulgarian commander
Sample values: "Kaloyan", "Unknown", "Boril", "Ivan Asen II"
battle.id: INT PRIMARY KEY
Sample values: "1", "2", "3", "4", "5"
battle.latin_commander: TEXT - latin commander
Sample values: "Baldwin I", "Unknown", "Th... | [
{
"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 ships ended up being 'Captured'? | 491 | battle_death | [
"SELECT count(*) FROM ship WHERE disposition_of_ship = 'Captured'"
] |
spider | dev | Database Schema:
Table battle
battle.bulgarian_commander: TEXT - bulgarian commander
Sample values: "Kaloyan", "Unknown", "Boril", "Ivan Asen II"
battle.id: INT PRIMARY KEY
Sample values: "1", "2", "3", "4", "5"
battle.latin_commander: TEXT - latin commander
Sample values: "Baldwin I", "Unknown", "Th... | [
{
"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 name and tonnage ordered by in descending alphaetical order for the names. | 492 | battle_death | [
"SELECT name , tonnage FROM ship ORDER BY name DESC"
] |
spider | dev | Database Schema:
Table battle
battle.bulgarian_commander: TEXT - bulgarian commander
Sample values: "Kaloyan", "Unknown", "Boril", "Ivan Asen II"
battle.id: INT PRIMARY KEY
Sample values: "1", "2", "3", "4", "5"
battle.latin_commander: TEXT - latin commander
Sample values: "Baldwin I", "Unknown", "Th... | [
{
"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 name, date and result of each battle. | 493 | battle_death | [
"SELECT name , date FROM battle"
] |
spider | dev | Database Schema:
Table battle
battle.bulgarian_commander: TEXT - bulgarian commander
Sample values: "Kaloyan", "Unknown", "Boril", "Ivan Asen II"
battle.id: INT PRIMARY KEY
Sample values: "1", "2", "3", "4", "5"
battle.latin_commander: TEXT - latin commander
Sample values: "Baldwin I", "Unknown", "Th... | [
{
"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 maximum and minimum death toll caused each time? | 494 | battle_death | [
"SELECT max(killed) , min(killed) FROM death"
] |
spider | dev | Database Schema:
Table battle
battle.bulgarian_commander: TEXT - bulgarian commander
Sample values: "Kaloyan", "Unknown", "Boril", "Ivan Asen II"
battle.id: INT PRIMARY KEY
Sample values: "1", "2", "3", "4", "5"
battle.latin_commander: TEXT - latin commander
Sample values: "Baldwin I", "Unknown", "Th... | [
{
"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 number of injuries caused each time? | 495 | battle_death | [
"SELECT avg(injured) FROM death"
] |
spider | dev | Database Schema:
Table battle
battle.bulgarian_commander: TEXT - bulgarian commander
Sample values: "Kaloyan", "Unknown", "Boril", "Ivan Asen II"
battle.id: INT PRIMARY KEY
Sample values: "1", "2", "3", "4", "5"
battle.latin_commander: TEXT - latin commander
Sample values: "Baldwin I", "Unknown", "Th... | [
{
"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 death and injury situations caused by the ship with tonnage 't'? | 496 | battle_death | [
"SELECT T1.killed , T1.injured FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id WHERE T2.tonnage = 't'"
] |
spider | dev | Database Schema:
Table battle
battle.bulgarian_commander: TEXT - bulgarian commander
Sample values: "Boril"
battle.id: INT PRIMARY KEY
Sample values: "1", "2", "3", "4", "5"
battle.latin_commander: TEXT - latin commander
Sample values: "Baldwin I", "Unknown", "Thierry de Termond", "Boniface of Montfe... | [
{
"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 name and results of the battles when the bulgarian commander is not 'Boril' | 497 | battle_death | [
"SELECT name , RESULT FROM battle WHERE bulgarian_commander != 'Boril'"
] |
spider | dev | Database Schema:
Table battle
battle.bulgarian_commander: TEXT - bulgarian commander
Sample values: "Kaloyan", "Unknown", "Boril", "Ivan Asen II"
battle.id: INT PRIMARY KEY
Sample values: "1", "2", "3", "4", "5"
battle.latin_commander: TEXT - latin commander
Sample values: "Baldwin I", "Unknown", "Th... | [
{
"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 different ids and names of the battles that lost any 'Brig' type shipes? | 498 | battle_death | [
"SELECT DISTINCT T1.id , T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.ship_type = 'Brig'"
] |
spider | dev | Database Schema:
Table battle
battle.bulgarian_commander: TEXT - bulgarian commander
Sample values: "Kaloyan", "Unknown", "Boril", "Ivan Asen II"
battle.id: INT PRIMARY KEY
Sample values: "1", "2", "3", "4", "5"
battle.latin_commander: TEXT - latin commander
Sample values: "Baldwin I", "Unknown", "Th... | [
{
"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 ids and names of the battles that led to more than 10 people killed in total. | 499 | battle_death | [
"SELECT T1.id , T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle JOIN death AS T3 ON T2.id = T3.caused_by_ship_id GROUP BY T1.id HAVING sum(T3.killed) > 10"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.