aherntech/spider-syn huggingface dataset:
Database: cre_Doc_Template_Mgt
Question: What is the version number and template type code for the template with version number later than 5?
Paraphrased question: What is the edition number and layout type for the layout with edition number later than 5?
SQL: SELECT version_number ,  template_type_code FROM Templates WHERE version_number  >  5
Database: cre_Doc_Template_Mgt
Question: Return the version numbers and template type codes of templates with a version number greater than 5.
Paraphrased question: Return the edition numbers and layout type names of layout with a edition number greater than 5.
SQL: SELECT version_number ,  template_type_code FROM Templates WHERE version_number  >  5
Database: cre_Doc_Template_Mgt
Question: Show all template type codes and number of templates for each.
Paraphrased question: Show all layout type codes and number of layout for each.
SQL: SELECT template_type_code ,  count(*) FROM Templates GROUP BY template_type_code
Database: cre_Doc_Template_Mgt
Question: What are the different template type codes, and how many templates correspond to each?
Paraphrased question: What are the different layout type, and how many layout correspond to each?
SQL: SELECT template_type_code ,  count(*) FROM Templates GROUP BY template_type_code
Database: cre_Doc_Template_Mgt
Question: Which template type code has most number of templates?
Paraphrased question: Which layout type code has most number of layout?
SQL: SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY count(*) DESC LIMIT 1
Database: cre_Doc_Template_Mgt
Question: Return the type code of the template type that the most templates belong to.
Paraphrased question: Return the type name of the layout type that the most layout belong to.
SQL: SELECT template_type_code FROM Templates GROUP BY template_type_code ORDER BY count(*) DESC LIMIT 1
Database: cre_Doc_Template_Mgt
Question: Show all template type codes with less than three templates.
Paraphrased question: Show all layout types with less than three layouts.
SQL: SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING count(*)  <  3
Database: cre_Doc_Template_Mgt
Question: What are the codes of template types that have fewer than 3 templates?
Paraphrased question: What are the names of layout types that have fewer than 3 layouts?
SQL: SELECT template_type_code FROM Templates GROUP BY template_type_code HAVING count(*)  <  3
Database: cre_Doc_Template_Mgt
Question: What the smallest version number and its template type code?
Paraphrased question: What the smallest edition number and its layout type code?
SQL: SELECT min(Version_Number) ,  template_type_code FROM Templates
Database: cre_Doc_Template_Mgt
Question: Return the lowest version number, along with its corresponding template type code.
Paraphrased question: Return the lowest edition number, along with its corresponding layout type code.
SQL: SELECT min(Version_Number) ,  template_type_code FROM Templates
Database: cre_Doc_Template_Mgt
Question: What is the template type code of the template used by document with the name "Data base"?
Paraphrased question: What is the layout type code of the layout used by layout with the name "Data base"?
SQL: SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id WHERE T2.document_name  =  "Data base"
Database: cre_Doc_Template_Mgt
Question: Return the template type code of the template that is used by a document named Data base.
Paraphrased question: Return the layout type code of the layout that is used by a text file named Data base.
SQL: SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id WHERE T2.document_name  =  "Data base"
Database: cre_Doc_Template_Mgt
Question: Show all document names using templates with template type code BK.
Paraphrased question: Show all text file names using layout with layout type code BK.
SQL: SELECT T2.document_name FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id WHERE T1.template_type_code  =  "BK"
Database: cre_Doc_Template_Mgt
Question: What are the names of documents that use templates with the code BK?
Paraphrased question: What are the names of papers that use layouts with the code BK?
SQL: SELECT T2.document_name FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id WHERE T1.template_type_code  =  "BK"
Database: cre_Doc_Template_Mgt
Question: Show all template type codes and the number of documents using each type.
Paraphrased question: Show all layout type names and the number of papers using each type.
SQL: SELECT T1.template_type_code ,  count(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id GROUP BY T1.template_type_code
Database: cre_Doc_Template_Mgt
Question: What are the different template type codes, and how many documents use each type?
Paraphrased question: What are the different layout types, and how many papers use each type?
SQL: SELECT T1.template_type_code ,  count(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id GROUP BY T1.template_type_code
Database: cre_Doc_Template_Mgt
Question: Which template type code is used by most number of documents?
Paraphrased question: Which layout type is used by most number of text files?
SQL: SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id GROUP BY T1.template_type_code ORDER BY count(*) DESC LIMIT 1
Database: cre_Doc_Template_Mgt
Question: Return the code of the template type that is most commonly used in documents.
Paraphrased question: Return the code of the layout type that is most commonly used in text files.
SQL: SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id GROUP BY T1.template_type_code ORDER BY count(*) DESC LIMIT 1
Database: cre_Doc_Template_Mgt
Question: Show all template type codes that are not used by any document.
Paraphrased question: Show all layout types that are not used by any text file.
SQL: SELECT template_type_code FROM Templates EXCEPT SELECT template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id
Database: cre_Doc_Template_Mgt
Question: What are the codes of template types that are not used for any document?
Paraphrased question: What are the names of layout types that are not used for any text file?
SQL: SELECT template_type_code FROM Templates EXCEPT SELECT template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id  =  T2.template_id
Database: cre_Doc_Template_Mgt
Question: Show all template type codes and descriptions.
Paraphrased question: Show all layout type names and describing details.
SQL: SELECT template_type_code ,  template_type_description FROM Ref_template_types
Database: cre_Doc_Template_Mgt
Question: What are the type codes and descriptions for all template types?
Paraphrased question: What are the type names and describing details for all layout types?
SQL: SELECT template_type_code ,  template_type_description FROM Ref_template_types
Database: cre_Doc_Template_Mgt
Question: What is the template type descriptions for template type code "AD".
Paraphrased question: What is the layout type describing content for layout type code "AD".
SQL: SELECT template_type_description FROM Ref_template_types WHERE template_type_code  =  "AD"
Database: cre_Doc_Template_Mgt
Question: Return the template type description of the template type with the code AD.
Paraphrased question: Return the layout type describing content of the layout type with the code AD.
SQL: SELECT template_type_description FROM Ref_template_types WHERE template_type_code  =  "AD"
Database: cre_Doc_Template_Mgt
Question: What is the template type code for template type description "Book".
Paraphrased question: What is the layout type name for layout type description "Book".
SQL: SELECT template_type_code FROM Ref_template_types WHERE template_type_description  =  "Book"
Database: cre_Doc_Template_Mgt
Question: Return the type code of the template type with the description "Book".
Paraphrased question: Return the type of the layout type with the description "Book".
SQL: SELECT template_type_code FROM Ref_template_types WHERE template_type_description  =  "Book"
Database: cre_Doc_Template_Mgt
Question: What are the distinct template type descriptions for the templates ever used by any document?
Paraphrased question: What are the distinct layout type descriptions for the layouts ever used by any text file?
SQL: SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code  = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID  =  T3.template_ID
Database: cre_Doc_Template_Mgt
Question: Return the different descriptions for templates that have been used in a document.
Paraphrased question: Return the different describing content for layouts that have been used in a text file.
SQL: SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code  = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID  =  T3.template_ID
Database: cre_Doc_Template_Mgt
Question: What are the template ids with template type description "Presentation".
Paraphrased question: What are the layout ids with layout type describing content "Presentation".
SQL: SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code  = T2.template_type_code WHERE T1.template_type_description  =  "Presentation"
Database: cre_Doc_Template_Mgt
Question: Return the ids corresponding to templates with the description 'Presentation'.
Paraphrased question: Return the ids corresponding to layouts with the describing content 'Presentation'.
SQL: SELECT T2.template_id FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code  = T2.template_type_code WHERE T1.template_type_description  =  "Presentation"
Database: cre_Doc_Template_Mgt
Question: How many paragraphs in total?
Paraphrased question: How many paragraphs in total?
SQL: SELECT count(*) FROM Paragraphs
Database: cre_Doc_Template_Mgt
Question: Count the number of paragraphs.
Paraphrased question: Count the number of paragraphs.
SQL: SELECT count(*) FROM Paragraphs
Database: cre_Doc_Template_Mgt
Question: How many paragraphs for the document with name 'Summer Show'?
Paraphrased question: How many paragraphs for the text file with name 'Summer Show'?
SQL: SELECT count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID  =  T2.document_ID WHERE T2.document_name  =  'Summer Show'
Database: cre_Doc_Template_Mgt
Question: Count the number of paragraphs in the document named 'Summer Show'.
Paraphrased question: Count the number of paragraphs in the text file named 'Summer Show'.
SQL: SELECT count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_ID  =  T2.document_ID WHERE T2.document_name  =  'Summer Show'
Database: cre_Doc_Template_Mgt
Question: Show paragraph details for paragraph with text 'Korea'.
Paraphrased question: Show paragraph details for paragraph with text 'Korea'.
SQL: SELECT Other_Details FROM Paragraphs WHERE paragraph_text  =  'Korea'
Database: cre_Doc_Template_Mgt
Question: What are the details for the paragraph that includes the text 'Korea'?
Paraphrased question: What are the details for the paragraph that includes the text 'Korea'?
SQL: SELECT Other_Details FROM Paragraphs WHERE paragraph_text  =  'Korea'
Database: cre_Doc_Template_Mgt
Question: Show all paragraph ids and texts for the document with name 'Welcome to NY'.
Paraphrased question: Show all paragraph ids and content for the text file with name 'Welcome to NY'.
SQL: SELECT T1.paragraph_id ,   T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id  =  T2.document_id WHERE T2.Document_Name  =  'Welcome to NY'
Database: cre_Doc_Template_Mgt
Question: What are the ids and texts of paragraphs in the document titled 'Welcome to NY'?
Paraphrased question: What are the ids and content of paragraphs in the text file titled 'Welcome to NY'?
SQL: SELECT T1.paragraph_id ,   T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id  =  T2.document_id WHERE T2.Document_Name  =  'Welcome to NY'
Database: cre_Doc_Template_Mgt
Question: Show all paragraph texts for the document "Customer reviews".
Paraphrased question: Show all paragraph content for the text file "Customer reviews".
SQL: SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id  =  T2.document_id WHERE T2.document_name  =  "Customer reviews"
Database: cre_Doc_Template_Mgt
Question: What are the paragraph texts for the document with the name 'Customer reviews'?
Paraphrased question: What are the paragraph content for the text file with the name 'Customer reviews'?
SQL: SELECT T1.paragraph_text FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id  =  T2.document_id WHERE T2.document_name  =  "Customer reviews"
Database: cre_Doc_Template_Mgt
Question: Show all document ids and the number of paragraphs in each document. Order by document id.
Paraphrased question: Show all paper ids and the number of paragraphs in each text file. Order by paper id.
SQL: SELECT document_id ,  count(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id
Database: cre_Doc_Template_Mgt
Question: Return the different document ids along with the number of paragraphs corresponding to each, ordered by id.
Paraphrased question: Return the different paper ids along with the number of paragraphs corresponding to each, ordered by id.
SQL: SELECT document_id ,  count(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id
Database: cre_Doc_Template_Mgt
Question: Show all document ids, names and the number of paragraphs in each document.
Paraphrased question: Show all text file ids, names and the number of paragraphs in each paper.
SQL: SELECT T1.document_id ,  T2.document_name ,  count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id  =  T2.document_id GROUP BY T1.document_id
Database: cre_Doc_Template_Mgt
Question: What are the ids and names of each document, as well as the number of paragraphs in each?
Paraphrased question: What are the ids and names of each paper, as well as the number of paragraphs in each?
SQL: SELECT T1.document_id ,  T2.document_name ,  count(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id  =  T2.document_id GROUP BY T1.document_id
Database: cre_Doc_Template_Mgt
Question: List all document ids with at least two paragraphs.
Paraphrased question: List all name ids with at least two paragraphs.
SQL: SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*)  >=  2
Database: cre_Doc_Template_Mgt
Question: What are the ids of documents that have 2 or more paragraphs?
Paraphrased question: What are the ids of text files that have 2 or more paragraphs?
SQL: SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*)  >=  2
Database: cre_Doc_Template_Mgt
Question: What is the document id and name with greatest number of paragraphs?
Paraphrased question: What is the text file id and name with greatest number of paragraphs?
SQL: SELECT T1.document_id ,  T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id  =  T2.document_id GROUP BY T1.document_id ORDER BY count(*) DESC LIMIT 1
Database: cre_Doc_Template_Mgt
Question: Return the id and name of the document with the most paragraphs.
Paraphrased question: Return the id and name of the paper with the most paragraphs.
SQL: SELECT T1.document_id ,  T2.document_name FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id  =  T2.document_id GROUP BY T1.document_id ORDER BY count(*) DESC LIMIT 1
Database: cre_Doc_Template_Mgt
Question: What is the document id with least number of paragraphs?
Paraphrased question: What is the paper id with least number of paragraphs?
SQL: SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY count(*) ASC LIMIT 1
Database: cre_Doc_Template_Mgt
Question: Return the id of the document with the fewest paragraphs.
Paraphrased question: Return the id of the paper with the fewest paragraphs.
SQL: SELECT document_id FROM Paragraphs GROUP BY document_id ORDER BY count(*) ASC LIMIT 1
Database: cre_Doc_Template_Mgt
Question: What is the document id with 1 to 2 paragraphs?
Paraphrased question: What is the paper id with 1 to 2 paragraphs?
SQL: SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) BETWEEN 1 AND 2
Database: cre_Doc_Template_Mgt
Question: Give the ids of documents that have between one and two paragraphs.
Paraphrased question: Give the ids of text files that have between one and two paragraphs.
SQL: SELECT document_id FROM Paragraphs GROUP BY document_id HAVING count(*) BETWEEN 1 AND 2
Database: cre_Doc_Template_Mgt
Question: Show the document id with paragraph text 'Brazil' and 'Ireland'.
Paraphrased question: Show the paper id with paragraph text 'Brazil' and 'Ireland'.
SQL: SELECT document_id FROM Paragraphs WHERE paragraph_text  =  'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text  =  'Ireland'
Database: cre_Doc_Template_Mgt
Question: What are the ids of documents that contain the paragraph text 'Brazil' and 'Ireland'?
Paraphrased question: What are the ids of text files that contain the paragraph text 'Brazil' and 'Ireland'?
SQL: SELECT document_id FROM Paragraphs WHERE paragraph_text  =  'Brazil' INTERSECT SELECT document_id FROM Paragraphs WHERE paragraph_text  =  'Ireland'
Database: course_teach
Question: How many teachers are there?
Paraphrased question: How many instructors are there?
SQL: SELECT count(*) FROM teacher
Database: course_teach
Question: What is the total count of teachers?
Paraphrased question: What is the total count of faculties?
SQL: SELECT count(*) FROM teacher
Database: course_teach
Question: List the names of teachers in ascending order of age.
Paraphrased question: List the names of faculties in ascending order of age.
SQL: SELECT Name FROM teacher ORDER BY Age ASC
Database: course_teach
Question: What are the names of the teachers ordered by ascending age?
Paraphrased question: What are the names of the faculties ordered by ascending age?
SQL: SELECT Name FROM teacher ORDER BY Age ASC
Database: course_teach
Question: What are the age and hometown of teachers?
Paraphrased question: What are the age and birthplace of instructors?
SQL: SELECT Age ,  Hometown FROM teacher
Database: course_teach
Question: What is the age and hometown of every teacher?
Paraphrased question: What is the age and birthplace of every instructor?
SQL: SELECT Age ,  Hometown FROM teacher
Database: course_teach
Question: List the name of teachers whose hometown is not "Little Lever Urban District".
Paraphrased question: List the name of faculties whose birthplace is not "Little Lever Urban District".
SQL: SELECT Name FROM teacher WHERE Hometown != "Little Lever Urban District"
Database: course_teach
Question: What are the names of the teachers whose hometown is not "Little Lever Urban District"?
Paraphrased question: What are the names of the faculties whose birthplace is not "Little Lever Urban District"?
SQL: SELECT Name FROM teacher WHERE Hometown != "Little Lever Urban District"
Database: course_teach
Question: Show the name of teachers aged either 32 or 33?
Paraphrased question: Show the name of faculties aged either 32 or 33?
SQL: SELECT Name FROM teacher WHERE Age  =  32 OR Age  =  33
Database: course_teach
Question: What are the names of the teachers who are aged either 32 or 33?
Paraphrased question: What are the names of the instructors who are aged either 32 or 33?
SQL: SELECT Name FROM teacher WHERE Age  =  32 OR Age  =  33
Database: course_teach
Question: What is the hometown of the youngest teacher?
Paraphrased question: What is the birthplace of the youngest instructor?
SQL: SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1
Database: course_teach
Question: Where is the youngest teacher from?
Paraphrased question: Where is the youngest instructor from?
SQL: SELECT Hometown FROM teacher ORDER BY Age ASC LIMIT 1
Database: course_teach
Question: Show different hometown of teachers and the number of teachers from each hometown.
Paraphrased question: Show different birthplace of instructors and the number of instructors from each birthplace.
SQL: SELECT Hometown ,  COUNT(*) FROM teacher GROUP BY Hometown
Database: course_teach
Question: For each hometown, how many teachers are there?
Paraphrased question: For each birthplace, how many instructors are there?
SQL: SELECT Hometown ,  COUNT(*) FROM teacher GROUP BY Hometown
Database: course_teach
Question: List the most common hometown of teachers.
Paraphrased question: List the most common birthplace of instructors.
SQL: SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1
Database: course_teach
Question: What is the most commmon hometowns for teachers?
Paraphrased question: What is the most commmon birthplaces for faculties?
SQL: SELECT Hometown FROM teacher GROUP BY Hometown ORDER BY COUNT(*) DESC LIMIT 1
Database: course_teach
Question: Show the hometowns shared by at least two teachers.
Paraphrased question: Show the birthplaces shared by at least two faculties.
SQL: SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*)  >=  2
Database: course_teach
Question: What are the towns from which at least two teachers come from?
Paraphrased question: What are the towns from which at least two instructors come from?
SQL: SELECT Hometown FROM teacher GROUP BY Hometown HAVING COUNT(*)  >=  2
Database: course_teach
Question: Show names of teachers and the courses they are arranged to teach.
Paraphrased question: Show names of instructors and the curriculums they are arranged to teach.
SQL: 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
Database: course_teach
Question: What is the name of each teacher and what course they teach?
Paraphrased question: What is the name of each faculty and what curriculum they teach?
SQL: 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
Database: course_teach
Question: Show names of teachers and the courses they are arranged to teach in ascending alphabetical order of the teacher's name.
Paraphrased question: Show names of faculties and the curriculums they are arranged to teach in ascending alphabetical order of the faculty's name.
SQL: 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
Database: course_teach
Question: What are the names of the teachers and the courses they teach in ascending alphabetical order by the name of the teacher?
Paraphrased question: What are the names of the faculties and the curriculums they teach in ascending alphabetical order by the name of the faculty?
SQL: 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
Database: course_teach
Question: Show the name of the teacher for the math course.
Paraphrased question: Show the name of the faculty for the math curriculum.
SQL: 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"
Database: course_teach
Question: What are the names of the people who teach math courses?
Paraphrased question: What are the names of the people who teach math?
SQL: 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"
Database: course_teach
Question: Show names of teachers and the number of courses they teach.
Paraphrased question: Show names of faculties and the number of curriculums they teach.
SQL: SELECT T2.Name ,  COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID  =  T2.Teacher_ID GROUP BY T2.Name
Database: course_teach
Question: What are the names of the teachers and how many courses do they teach?
Paraphrased question: What are the names of the instructors and how many curriculums do they teach?
SQL: SELECT T2.Name ,  COUNT(*) FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID  =  T2.Teacher_ID GROUP BY T2.Name
Database: course_teach
Question: Show names of teachers that teach at least two courses.
Paraphrased question: Show names of instructors that teach at least two curriculums.
SQL: 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
Database: course_teach
Question: What are the names of the teachers who teach at least two courses?
Paraphrased question: What are the names of the faculties who teach at least two curriculums?
SQL: 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
Database: course_teach
Question: List the names of teachers who have not been arranged to teach courses.
Paraphrased question: List the names of instructors who have not been arranged to teach curriculums.
SQL: SELECT Name FROM teacher WHERE Teacher_id NOT IN (SELECT Teacher_id FROM course_arrange)
Database: course_teach
Question: What are the names of the teachers whose courses have not been arranged?
Paraphrased question: What are the names of the instructors whose curriculums have not been arranged?
SQL: SELECT Name FROM teacher WHERE Teacher_id NOT IN (SELECT Teacher_id FROM course_arrange)
Database: museum_visit
Question: How many visitors below age 30 are there?
Paraphrased question: How many guests below age 30 are there?
SQL: SELECT count(*) FROM visitor WHERE age  <  30
Database: museum_visit
Question: Find the names of the visitors whose membership level is higher than 4, and order the results by the level from high to low.
Paraphrased question: Find the names of the guests whose membership level is higher than 4, and order the results by the level from high to low.
SQL: SELECT name FROM visitor WHERE Level_of_membership  >  4 ORDER BY Level_of_membership DESC
Database: museum_visit
Question: What is the average age of the visitors whose membership level is not higher than 4?
Paraphrased question: What is the average age of the guests whose membership level is not higher than 4?
SQL: SELECT avg(age) FROM visitor WHERE Level_of_membership  <=  4
Database: museum_visit
Question: 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.
Paraphrased question: Find the name and membership level of the guests whose membership level is higher than 4, and sort by their age from old to young.
SQL: SELECT name ,  Level_of_membership FROM visitor WHERE Level_of_membership  >  4 ORDER BY age DESC
Database: museum_visit
Question: Find the id and name of the museum that has the most staff members?
Paraphrased question: Find the id and name of the museum that has the most workers?
SQL: SELECT museum_id ,  name FROM museum ORDER BY num_of_staff DESC LIMIT 1
Database: museum_visit
Question: Find the average number of staff working for the museums that were open before 2009.
Paraphrased question: Find the average number of worker working for the museums that were open before 2009.
SQL: SELECT avg(num_of_staff) FROM museum WHERE open_year  <  2009
Database: museum_visit
Question: What are the opening year and staff number of the museum named Plaza Museum?
Paraphrased question: What are the opening year and worker number of the museum named Plaza Museum?
SQL: SELECT Num_of_Staff ,  Open_Year FROM museum WHERE name  =  'Plaza Museum'
Database: museum_visit
Question: find the names of museums which have more staff than the minimum staff number of all museums opened after 2010.
Paraphrased question: find the names of museums which have more worker than the minimum worker number of all museums opened after 2010.
SQL: SELECT name FROM museum WHERE num_of_staff  >  (SELECT min(num_of_staff) FROM museum WHERE open_year  >  2010)
Database: museum_visit
Question: find the id, name and age for visitors who visited some museums more than once.
Paraphrased question: find the id, name and age for guests who visited some museums more than once.
SQL: 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
Database: museum_visit
Question: What are the id, name and membership level of visitors who have spent the largest amount of money in total in all museum tickets?
Paraphrased question: What are the id, name and membership level of guests who have spent the largest amount of money in total in all museum tickets?
SQL: 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
Database: museum_visit
Question: What are the id and name of the museum visited most times?
Paraphrased question: What are the id and name of the museum visited most times?
SQL: 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
Database: museum_visit
Question: What is the name of the museum that had no visitor yet?
Paraphrased question: What is the name of the museum that had no tourist yet?
SQL: SELECT name FROM museum WHERE Museum_ID NOT IN (SELECT museum_id FROM visit)
Database: museum_visit
Question: Find the name and age of the visitor who bought the most tickets at once.
Paraphrased question: Find the name and age of the tourist who bought the most tickets at once.
SQL: 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
Database: museum_visit
Question: What are the average and maximum number of tickets bought in all visits?
Paraphrased question: What are the average and maximum number of tickets bought in all guests?
SQL: SELECT avg(num_of_ticket) ,  max(num_of_ticket) FROM visit
Database: museum_visit
Question: What is the total ticket expense of the visitors whose membership level is 1?
Paraphrased question: What is the total ticket expense of the guests whose membership level is 1?
SQL: 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
Database: museum_visit
Question: What is the name of the visitor who visited both a museum opened before 2009 and a museum opened after 2011?
Paraphrased question: What is the name of the tourist who visited both a museum opened before 2009 and a museum opened after 2011?
SQL: 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  >  2011
Database: museum_visit
Question: Find the number of visitors who did not visit any museum opened after 2010.
Paraphrased question: Find the number of guests who did not visit any museum opened after 2010.
SQL: 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)
Database: museum_visit
Question: How many museums were opened after 2013 or before 2008?
Paraphrased question: How many museums were opened after 2013 or before 2008?
SQL: SELECT count(*) FROM museum WHERE open_year  >  2013 OR open_year  <  2008
Database: wta_1
Question: Find the total number of players.
Paraphrased question: Find the total number of participants.
SQL: SELECT count(*) FROM players
Database: wta_1
Question: How many players are there?
Paraphrased question: How many participants are there?
SQL: SELECT count(*) FROM players
Database: wta_1
Question: Find the total number of matches.
Paraphrased question: Find the total number of competitions.
SQL: SELECT count(*) FROM matches
Database: wta_1
Question: Count the number of matches.
Paraphrased question: Count the number of competitions.
SQL: SELECT count(*) FROM matches
Database: wta_1
Question: List the first name and birth date of all players from the country with code USA.
Paraphrased question: List the given name and birth date of all participants from the country with code USA.
SQL: SELECT first_name ,  birth_date FROM players WHERE country_code  =  'USA'
Database: wta_1
Question: What are the first names and birth dates of players from the USA?
Paraphrased question: What are the given names and birth dates of participants from the USA?
SQL: SELECT first_name ,  birth_date FROM players WHERE country_code  =  'USA'
Database: wta_1
Question: Find the average age of losers and winners of all matches.
Paraphrased question: Find the average age of losers and winners of all games.
SQL: SELECT avg(loser_age) ,  avg(winner_age) FROM matches
Database: wta_1
Question: What are the average ages of losers and winners across matches?
Paraphrased question: What are the average ages of losers and winners across games?
SQL: SELECT avg(loser_age) ,  avg(winner_age) FROM matches
Database: wta_1
Question: Find the average rank of winners in all matches.
Paraphrased question: Find the average rank of winners in all games.
SQL: SELECT avg(winner_rank) FROM matches
Database: wta_1
Question: What is the average rank for winners in all matches?
Paraphrased question: What is the average rank for winners in all competitions?
SQL: SELECT avg(winner_rank) FROM matches
Database: wta_1
Question: Find the highest rank of losers in all matches.
Paraphrased question: Find the highest rank of losers in all competitions.
SQL: SELECT min(loser_rank) FROM matches
Database: wta_1
Question: What is the best rank of losers across all matches?
Paraphrased question: What is the best rank of losers across all contest?
SQL: SELECT min(loser_rank) FROM matches
Database: wta_1
Question: find the number of distinct country codes of all players.
Paraphrased question: find the number of distinct State codes of all participants.
SQL: SELECT count(DISTINCT country_code) FROM players
Database: wta_1
Question: How many distinct countries do players come from?
Paraphrased question: How many distinct States do participants come from?
SQL: SELECT count(DISTINCT country_code) FROM players
Database: wta_1
Question: Find the number of distinct name of losers.
Paraphrased question: Find the number of distinct name of losers.
SQL: SELECT count(DISTINCT loser_name) FROM matches
Database: wta_1
Question: How many different loser names are there?
Paraphrased question: How many different loser names are there?
SQL: SELECT count(DISTINCT loser_name) FROM matches
Database: wta_1
Question: Find the name of tourney that has more than 10 matches.
Paraphrased question: Find the names of tourney that has more than 10 competitions.
SQL: SELECT tourney_name FROM matches GROUP BY tourney_name HAVING count(*)  >  10
Database: wta_1
Question: What are the names of tournaments that have more than 10 matches?
Paraphrased question: What are the names of tournaments that have more than 10 competitions?
SQL: SELECT tourney_name FROM matches GROUP BY tourney_name HAVING count(*)  >  10
Database: wta_1
Question: List the names of all winners who played in both 2013 and 2016.
Paraphrased question: List the names of all winners who played in both 2013 and 2016.
SQL: SELECT winner_name FROM matches WHERE YEAR  =  2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR  =  2016
Database: wta_1
Question: What are the names of players who won in both 2013 and 2016?
Paraphrased question: What are the names of participants who won in both 2013 and 2016?
SQL: SELECT winner_name FROM matches WHERE YEAR  =  2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR  =  2016
Database: wta_1
Question: List the number of all matches who played in years of 2013 or 2016.
Paraphrased question: List the number of all competitions who played in years of 2013 or 2016.
SQL: SELECT count(*) FROM matches WHERE YEAR  =  2013 OR YEAR  =  2016
Database: wta_1
Question: How many matches were played in 2013 or 2016?
Paraphrased question: How many competitions were played in 2013 or 2016?
SQL: SELECT count(*) FROM matches WHERE YEAR  =  2013 OR YEAR  =  2016
Database: wta_1
Question: What are the country code and first name of the players who won in both tourney WTA Championships and Australian Open?
Paraphrased question: What are the nation code and given name of the participants who won in both tourney WTA Championships and Australian Open?
SQL: 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 Open'
Database: wta_1
Question: What are the first names and country codes for players who won both the WTA Championships and the Australian Open?
Paraphrased question: What are the given names and State codes for participants who won both the WTA Championships and the Australian Open?
SQL: 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 Open'
Database: wta_1
Question: Find the first name and country code of the oldest player.
Paraphrased question: Find the given name and State abbreviation of the oldest participant.
SQL: SELECT first_name ,  country_code FROM players ORDER BY birth_date LIMIT 1
Database: wta_1
Question: What is the first name and country code of the oldest player?
Paraphrased question: What is the given name and nation abbreviation of the oldest participant?
SQL: SELECT first_name ,  country_code FROM players ORDER BY birth_date LIMIT 1
Database: wta_1
Question: List the first and last name of all players in the order of birth date.
Paraphrased question: List the given and family name of all participants in the order of birth date.
SQL: SELECT first_name ,  last_name FROM players ORDER BY birth_date
Database: wta_1
Question: What are the full names of all players, sorted by birth date?
Paraphrased question: What are the full names of all participants, sorted by birth date?
SQL: SELECT first_name ,  last_name FROM players ORDER BY birth_date
Database: wta_1
Question: List the first and last name of all players who are left / L hand in the order of birth date.
Paraphrased question: List the given and family name of all participants who are left / L hand in the order of birth date.
SQL: SELECT first_name ,  last_name FROM players WHERE hand  =  'L' ORDER BY birth_date
Database: wta_1
Question: What are the full names of all left handed players, in order of birth date?
Paraphrased question: What are the full names of all left handed participants, in order of birth date?
SQL: SELECT first_name ,  last_name FROM players WHERE hand  =  'L' ORDER BY birth_date
Database: wta_1
Question: Find the first name and country code of the player who did the most number of tours.
Paraphrased question: Find the given name and nation abbreviation of the participant who did the most number of tours.
SQL: 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
Database: wta_1
Question: What is the first name and country code of the player with the most tours?
Paraphrased question: What is the given name and State code of the participant with the most tours?
SQL: 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
Database: wta_1
Question: Find the year that has the most number of matches.
Paraphrased question: Find the year that has the most number of competitions.
SQL: SELECT YEAR FROM matches GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1
Database: wta_1
Question: Which year had the most matches?
Paraphrased question: Which year had the most competitions?
SQL: SELECT YEAR FROM matches GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1
Database: wta_1
Question: Find the name and rank points of the winner who won the most times.
Paraphrased question: Find the name and rank points of the winner who won the most times.
SQL: SELECT winner_name ,  winner_rank_points FROM matches GROUP BY winner_name ORDER BY count(*) DESC LIMIT 1
Database: wta_1
Question: What is the name of the winner who has won the most matches, and how many rank points does this player have?
Paraphrased question: What is the name of the winner who has won the most matches, and how many rank points does this player have?
SQL: SELECT winner_name ,  winner_rank_points FROM matches GROUP BY winner_name ORDER BY count(*) DESC LIMIT 1
Database: wta_1
Question: Find the name of the winner who has the highest rank points and participated in the Australian Open tourney.
Paraphrased question: Find the name of the winner who has the highest rank points and participated in the Australian Open tourney.
SQL: SELECT winner_name FROM matches WHERE tourney_name  =  'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1
Database: wta_1
Question: What is the name of the winner with the most rank points who participated in the Australian Open tournament?
Paraphrased question: What is the name of the winner with the most rank points who participated in the Australian Open tournament?
SQL: SELECT winner_name FROM matches WHERE tourney_name  =  'Australian Open' ORDER BY winner_rank_points DESC LIMIT 1
Database: wta_1
Question: find the names of loser and winner who played in the match with greatest number of minutes.
Paraphrased question: find the names of loser and winner who played in the competition with greatest number of minutes.
SQL: SELECT winner_name ,  loser_name FROM matches ORDER BY minutes DESC LIMIT 1
Database: wta_1
Question: What are the names of the winner and loser who played in the longest match?
Paraphrased question: What are the names of the winner and loser who played in the longest competition?
SQL: SELECT winner_name ,  loser_name FROM matches ORDER BY minutes DESC LIMIT 1
Database: wta_1
Question: Find the average ranking for each player and their first name.
Paraphrased question: Find the average ranking for each participant and their given name.
SQL: 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
Database: wta_1
Question: What are the first names of all players, and their average rankings?
Paraphrased question: What are the given names of all participants, and their average rankings?
SQL: 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
Database: wta_1
Question: Find the total ranking points for each player and their first name.
Paraphrased question: Find the total ranking points for each participant and their given name.
SQL: 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
Database: wta_1
Question: What are the first names of all players, and their total ranking points?
Paraphrased question: What are the given names of all participants, and their total ranking points?
SQL: 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
Database: wta_1
Question: find the number of players for each country.
Paraphrased question: find the number of participants for each State.
SQL: SELECT count(*) ,  country_code FROM players GROUP BY country_code
Database: wta_1
Question: How many players are from each country?
Paraphrased question: How many participants are from each State?
SQL: SELECT count(*) ,  country_code FROM players GROUP BY country_code
Database: wta_1
Question: find the code of the country where has the greatest number of players.
Paraphrased question: find the abbreviation of the State where has the greatest number of participants.
SQL: SELECT country_code FROM players GROUP BY country_code ORDER BY count(*) DESC LIMIT 1
Database: wta_1
Question: What is the code of the country with the most players?
Paraphrased question: What is the abbreviation of the nation with the most participants?
SQL: SELECT country_code FROM players GROUP BY country_code ORDER BY count(*) DESC LIMIT 1
Database: wta_1
Question: Find the codes of countries that have more than 50 players.
Paraphrased question: Find the abbreviations of nations that have more than 50 participants.
SQL: SELECT country_code FROM players GROUP BY country_code HAVING count(*)  >  50
Database: wta_1
Question: What are the codes of countries with more than 50 players?
Paraphrased question: What are the abbreviations of nations with more than 50 participants?
SQL: SELECT country_code FROM players GROUP BY country_code HAVING count(*)  >  50
Database: wta_1
Question: Find the total number of tours for each ranking date.
Paraphrased question: Find the total number of trips for each ranking time.
SQL: SELECT sum(tours) ,  ranking_date FROM rankings GROUP BY ranking_date
Database: wta_1
Question: How many total tours were there for each ranking date?
Paraphrased question: How many total travels were there for each ranking time?
SQL: SELECT sum(tours) ,  ranking_date FROM rankings GROUP BY ranking_date
Database: wta_1
Question: Find the number of matches happened in each year.
Paraphrased question: Find the number of games happened in each year.
SQL: SELECT count(*) ,  YEAR FROM matches GROUP BY YEAR
Database: wta_1
Question: How many matches were played in each year?
Paraphrased question: How many games were played in each year?
SQL: SELECT count(*) ,  YEAR FROM matches GROUP BY YEAR
Database: wta_1
Question: Find the name and rank of the 3 youngest winners across all matches.
Paraphrased question: Find the name and rank of the 3 youngest winners across all competitions.
SQL: SELECT DISTINCT winner_name ,  winner_rank FROM matches ORDER BY winner_age LIMIT 3
Database: wta_1
Question: What are the names and ranks of the three youngest winners across all matches?
Paraphrased question: What are the names and ranks of the three youngest winners across all games?
SQL: SELECT DISTINCT winner_name ,  winner_rank FROM matches ORDER BY winner_age LIMIT 3
Database: wta_1
Question: How many different winners both participated in the WTA Championships and were left handed?
Paraphrased question: How many different winners both participated in the WTA Championships and were left handed?
SQL: SELECT count(DISTINCT winner_name) FROM matches WHERE tourney_name  =  'WTA Championships' AND winner_hand  =  'L'
Database: wta_1
Question: Find the number of left handed winners who participated in the WTA Championships.
Paraphrased question: Find the number of left handed winners who participated in the WTA Championships.
SQL: SELECT count(DISTINCT winner_name) FROM matches WHERE tourney_name  =  'WTA Championships' AND winner_hand  =  'L'
Database: wta_1
Question: Find the first name, country code and birth date of the winner who has the highest rank points in all matches.
Paraphrased question: Find the given name, nation abbreviation and birth date of the winner who has the highest rank points in all games.
SQL: 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
Database: wta_1
Question: What is the first name, country code, and birth date of the player with the most winner rank points across all matches?
Paraphrased question: What is the given name, nation abbreviation, and birth date of the participant with the most winner rank points across all competitions?
SQL: 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
Database: wta_1
Question: Find the number of players for each hand type.
Paraphrased question: Find the number of participants for each hand type.
SQL: SELECT count(*) ,  hand FROM players GROUP BY hand