Question: Return the template type code of the template that is used by a document named Data base.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

ref_template_types : template_type_code (text) , template_type_code (number) | templates : template_type_code (text) , template_id (number) , template_id (number) | documents : template_id (number) , document_name (text) , document_id (number)


Question: Show all document names using templates with template type code BK.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : document_name (text) , template_id (number) , document_id (number) | templates : template_id (number) , template_type_code (text) , template_id (number) | ref_template_types : template_type_code (text) , template_type_code (number)


Question: What are the names of documents that use templates with the code BK?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : document_name (text) , template_id (number) , document_id (number) | templates : template_id (number) , template_type_code (text) , template_id (number) | ref_template_types : template_type_code (text) , template_type_code (number)


Question: Show all template type codes and the number of documents using each type.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

ref_template_types : template_type_code (text) , template_type_code (number) | templates : template_type_code (text) , template_id (number) , template_id (number) | documents : template_id (number) , document_id (number)


Question: What are the different template type codes, and how many documents use each type?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

ref_template_types : template_type_code (text) , template_type_code (number) | templates : template_type_code (text) , template_id (number) , template_id (number) | documents : template_id (number) , document_id (number)


Question: Which template type code is used by most number of documents?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

ref_template_types : template_type_code (text) , template_type_code (number) | templates : template_type_code (text) , template_id (number) , template_id (number) | documents : template_id (number) , document_id (number)


Question: Return the code of the template type that is most commonly used in documents.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

ref_template_types : template_type_code (text) , template_type_code (number) | templates : template_type_code (text) , template_id (number) , template_id (number) | documents : template_id (number) , document_id (number)


Question: Show all template type codes that are not used by any document.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

ref_template_types : template_type_code (text) , template_type_code (number) | templates : template_type_code (text) , template_id (number) , template_id (number) | documents : template_id (number) , document_id (number)


Question: What are the codes of template types that are not used for any document?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

ref_template_types : template_type_code (text) , template_type_code (number) | templates : template_type_code (text) , template_id (number) , template_id (number) | documents : template_id (number) , document_id (number)


Question: Show all template type codes and descriptions.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

ref_template_types : template_type_code (text) , template_type_description (text) , template_type_code (number) | templates : template_type_code (text) , template_id (number)


Question: What are the type codes and descriptions for all template types?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

ref_template_types : template_type_code (text) , template_type_description (text) , template_type_code (number) | templates : template_type_code (text) , template_id (number)


Question: What is the template type descriptions for template type code "AD".

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

ref_template_types : template_type_description (text) , template_type_code (text) , template_type_code (number) | templates : template_type_code (text) , template_id (number)


Question: Return the template type description of the template type with the code AD.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

ref_template_types : template_type_description (text) , template_type_code (text) , template_type_code (number) | templates : template_type_code (text) , template_id (number)


Question: What is the template type code for template type description "Book".

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

ref_template_types : template_type_code (text) , template_type_description (text) , template_type_code (number) | templates : template_type_code (text) , template_id (number)


Question: Return the type code of the template type with the description "Book".

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

ref_template_types : template_type_code (text) , template_type_description (text) , template_type_code (number) | templates : template_type_code (text) , template_id (number)


Question: What are the distinct template type descriptions for the templates ever used by any document?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

ref_template_types : template_type_description (text) , template_type_code (text) , template_type_code (number) | templates : template_type_code (text) , template_id (number) , template_id (number) | documents : template_id (number) , document_id (number)


Question: Return the different descriptions for templates that have been used in a document.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

ref_template_types : template_type_description (text) , template_type_code (text) , template_type_code (number) | templates : template_type_code (text) , template_id (number) , template_id (number) | documents : template_id (number) , document_id (number)


Question: What are the template ids with template type description "Presentation".

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

templates : template_id (number) , template_type_code (text) , template_id (number) | documents : template_id (number) , document_id (number) | ref_template_types : template_type_code (text) , template_type_description (text) , template_type_code (number)


Question: Return the ids corresponding to templates with the description 'Presentation'.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

templates : template_id (number) , template_type_code (text) , template_id (number) | documents : template_id (number) , document_id (number) | ref_template_types : template_type_code (text) , template_type_description (text) , template_type_code (number)


Question: How many paragraphs in total?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)


Question: Count the number of paragraphs.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)


Question: How many paragraphs for the document with name 'Summer Show'?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : document_id (number) , document_name (text) , document_id (number) | paragraphs : document_id (number) , paragraph_id (number)


Question: Count the number of paragraphs in the document named 'Summer Show'.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : document_id (number) , document_name (text) , document_id (number) | paragraphs : document_id (number) , paragraph_id (number)


Question: Show paragraph details for paragraph with text 'Korea ' .

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : other_details (text) , document_id (number) | paragraphs : other_details (text) , paragraph_text (text) , paragraph_id (number)


Question: What are the details for the paragraph that includes the text 'Korea ' ?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : other_details (text) , document_id (number) | paragraphs : other_details (text) , paragraph_text (text) , paragraph_id (number)


Question: Show all paragraph ids and texts for the document with name 'Welcome to NY'.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

paragraphs : paragraph_id (number) , paragraph_text (text) , document_id (number) , paragraph_id (number) | documents : document_id (number) , document_name (text) , document_id (number)


Question: What are the ids and texts of paragraphs in the document titled 'Welcome to NY'?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

paragraphs : paragraph_id (number) , paragraph_text (text) , document_id (number) , paragraph_id (number) | documents : document_id (number) , document_name (text) , document_id (number)


Question: Show all paragraph texts for the document "Customer reviews".

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

paragraphs : paragraph_text (text) , document_id (number) , paragraph_id (number) | documents : document_id (number) , document_name (text) , document_id (number)


Question: What are the paragraph texts for the document with the name 'Customer reviews'?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

paragraphs : paragraph_text (text) , document_id (number) , paragraph_id (number) | documents : document_id (number) , document_name (text) , document_id (number)


Question: Show all document ids and the number of paragraphs in each document. Order by document id.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : document_id (number) , document_id (number) | paragraphs : document_id (number) , paragraph_id (number)


Question: Return the different document ids along with the number of paragraphs corresponding to each, ordered by id.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : document_id (number) , document_id (number) | paragraphs : document_id (number) , paragraph_id (number)


Question: Show all document ids, names and the number of paragraphs in each document.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : document_id (number) , document_name (text) , document_id (number) | paragraphs : document_id (number) , paragraph_id (number)


Question: What are the ids and names of each document, as well as the number of paragraphs in each?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : document_id (number) , document_name (text) , document_id (number) | paragraphs : document_id (number) , paragraph_id (number)


Question: List all document ids with at least two paragraphs.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : document_id (number) , document_id (number) | paragraphs : document_id (number) , paragraph_id (number)


Question: What are the ids of documents that have 2 or more paragraphs?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : document_id (number) , document_id (number) | paragraphs : document_id (number) , paragraph_id (number)


Question: What is the document id and name with greatest number of paragraphs?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : document_id (number) , document_name (text) , document_id (number) | paragraphs : document_id (number) , paragraph_id (number)


Question: Return the id and name of the document with the most paragraphs.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : document_id (number) , document_name (text) , document_id (number) | paragraphs : document_id (number) , paragraph_id (number)


Question: What is the document id with least number of paragraphs?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : document_id (number) , document_id (number) | paragraphs : document_id (number) , paragraph_id (number)


Question: Return the id of the document with the fewest paragraphs.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : document_id (number) , document_id (number) | paragraphs : document_id (number) , paragraph_id (number)


Question: What is the document id with 1 to 2 paragraphs?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : document_id (number) , document_id (number) | paragraphs : document_id (number) , paragraph_id (number)


Question: Give the ids of documents that have between one and two paragraphs.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : document_id (number) , document_id (number) | paragraphs : document_id (number) , paragraph_id (number)


Question: Show the document id with paragraph text 'Brazil' and 'Ireland'.

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : document_id (number) , document_id (number) | paragraphs : document_id (number) , paragraph_text (text) , paragraph_id (number)


Question: What are the ids of documents that contain the paragraph text 'Brazil' and 'Ireland'?

ref_template_types : template_type_code (text) , template_type_description (text) | templates : template_id (number) , version_number (number) , template_type_code (text) , date_effective_from (time) , date_effective_to (time) , template_details (text) | documents : document_id (number) , template_id (number) , document_name (text) , document_description (text) , other_details (text) | paragraphs : paragraph_id (number) , document_id (number) , paragraph_text (text) , other_details (text)

documents : document_id (number) , document_id (number) | paragraphs : document_id (number) , paragraph_text (text) , paragraph_id (number)


Question: How many teachers are there?

course : course_id (number) , staring_date (text) , course (text) | teacher : teacher_id (number) , name (text) , age (text) , hometown (text) | course_arrange : course_id (number) , teacher_id (number) , grade (number)


Question: What is the total count of teachers?

course : course_id (number) , staring_date (text) , course (text) | teacher : teacher_id (number) , name (text) , age (text) , hometown (text) | course_arrange : course_id (number) , teacher_id (number) , grade (number)


Question: List the names of teachers in ascending order of age.

course : course_id (number) , staring_date (text) , course (text) | teacher : teacher_id (number) , name (text) , age (text) , hometown (text) | course_arrange : course_id (number) , teacher_id (number) , grade (number)

teacher : name (text) , age (text) , teacher_id (number)


Question: What are the names of the teachers ordered by ascending age?

course : course_id (number) , staring_date (text) , course (text) | teacher : teacher_id (number) , name (text) , age (text) , hometown (text) | course_arrange : course_id (number) , teacher_id (number) , grade (number)

teacher : name (text) , age (text) , teacher_id (number)


Question: What are the age and hometown of teachers?

course : course_id (number) , staring_date (text) , course (text) | teacher : teacher_id (number) , name (text) , age (text) , hometown (text) | course_arrange : course_id (number) , teacher_id (number) , grade (number)

teacher : age (text) , hometown (text) , teacher_id (number)


Question: What is the age and hometown of every teacher?

course : course_id (number) , staring_date (text) , course (text) | teacher : teacher_id (number) , name (text) , age (text) , hometown (text) | course_arrange : course_id (number) , teacher_id (number) , grade (number)

teacher : age (text) , hometown (text) , teacher_id (number)


Question: List the name of teachers whose hometown is not `` Little Lever Urban District '' .

course : course_id (number) , staring_date (text) , course (text) | teacher : teacher_id (number) , name (text) , age (text) , hometown (text) | course_arrange : course_id (number) , teacher_id (number) , grade (number)

teacher : name (text) , hometown (text) , teacher_id (number)


Question: What are the names of the teachers whose hometown is not `` Little Lever Urban District '' ?

course : course_id (number) , staring_date (text) , course (text) | teacher : teacher_id (number) , name (text) , age (text) , hometown (text) | course_arrange : course_id (number) , teacher_id (number) , grade (number)

teacher : name (text) , hometown (text) , teacher_id (number)


Question: Show the name of teachers aged either 32 or 33?

course : course_id (number) , staring_date (text) , course (text) | teacher : teacher_id (number) , name (text) , age (text) , hometown (text) | course_arrange : course_id (number) , teacher_id (number) , grade (number)

teacher : name (text) , age (text) , teacher_id (number)


Question: What are the names of the teachers who are aged either 32 or 33?

course : course_id (number) , staring_date (text) , course (text) | teacher : teacher_id (number) , name (text) , age (text) , hometown (text) | course_arrange : course_id (number) , teacher_id (number) , grade (number)

teacher : name (text) , age (text) , teacher_id (number)


Question: What is the hometown of the youngest teacher?

course : course_id (number) , staring_date (text) , course (text) | teacher : teacher_id (number) , name (text) , age (text) , hometown (text) | course_arrange : course_id (number) , teacher_id (number) , grade (number)

teacher : hometown (text) , age (text) , teacher_id (number)


Question: Where is the youngest teacher from?

course : course_id (number) , staring_date (text) , course (text) | teacher : teacher_id (number) , name (text) , age (text) , hometown (text) | course_arrange : course_id (number) , teacher_id (number) , grade (number)

teacher : hometown (text) , age (text) , teacher_id (number)


Question: Show different hometown of teachers and the number of teachers from each hometown.

course : course_id (number) , staring_date (text) , course (text) | teacher : teacher_id (number) , name (text) , age (text) , hometown (text) | course_arrange : course_id (number) , teacher_id (number) , grade (number)

teacher : hometown (text) , teacher_id (number)


Question: For each hometown, how many teachers are there?

course : course_id (number) , staring_date (text) , course (text) | teacher : teacher_id (number) , name (text) , age (text) , hometown (text) | course_arrange : course_id (number) , teacher_id (number) , grade (number)

teacher : hometown (text) , teacher_id (number)


Question: List the most common hometown of teachers.

course : course_id (number) , staring_date (text) , course (text) | teacher : teacher_id (number) , name (text) , age (text) , hometown (text) | course_arrange : course_id (number) , teacher_id (number) , grade (number)

teacher : hometown (text) , teacher_id (number)


Question: What is the most commmon hometowns for teachers?

course : course_id (number) , staring_date (text) , course (text) | teacher : teacher_id (number) , name (text) , age (text) , hometown (text) | course_arrange : course_id (number) , teacher_id (number) , grade (number)

teacher : hometown (text) , teacher_id (number)


Question: Show the hometowns shared by at least two teachers.

course : course_id (number) , staring_date (text) , course (text) | teacher : teacher_id (number) , name (text) , age (text) , hometown (text) | course_arrange : course_id (number) , teacher_id (number) , grade (number)

teacher : hometown (text) , teacher_id (number)


Question: What are the towns from which at least two teachers come from?

course : course_id (number) , staring_date (text) , course (text) | teacher : teacher_id (number) , name (text) , age (text) , hometown (text) | course_arrange : course_id (number) , teacher_id (number) , grade (number)

teacher : hometown (text) , teacher_id (number)


Question: Show names of teachers and the courses they are arranged to teach.

course : course_id (number) , staring_date (text) , course (text) | teacher : teacher_id (number) , name (text) , age (text) , hometown (text) | course_arrange : course_id (number) , teacher_id (number) , grade (number)

teacher : name (text) , teacher_id (number) , teacher_id (number) | course : course (text) , course_id (number) , course_id (number) | course_arrange : course_id (number) , teacher_id (number) , course_id (number)


Question: What is the name of each teacher and what course they teach?

course : course_id (number) , staring_date (text) , course (text) | teacher : teacher_id (number) , name (text) , age (text) , hometown (text) | course_arrange : course_id (number) , teacher_id (number) , grade (number)

teacher : name (text) , teacher_id (number) , teacher_id (number) | course : course (text) , course_id (number) , course_id (number) | course_arrange : course_id (number) , teacher_id (number) , course_id (number)


Question: Show names of teachers and the courses they are arranged to teach in ascending alphabetical order of the teacher's name.

course : course_id (number) , staring_date (text) , course (text) | teacher : teacher_id (number) , name (text) , age (text) , hometown (text) | course_arrange : course_id (number) , teacher_id (number) , grade (number)

teacher : name (text) , teacher_id (number) , teacher_id (number) | course : course (text) , course_id (number) , course_id (number) | course_arrange : course_id (number) , teacher_id (number) , course_id (number)


Question: What are the names of the teachers and the courses they teach in ascending alphabetical order by the name of the teacher?

course : course_id (number) , staring_date (text) , course (text) | teacher : teacher_id (number) , name (text) , age (text) , hometown (text) | course_arrange : course_id (number) , teacher_id (number) , grade (number)

teacher : name (text) , teacher_id (number) , teacher_id (number) | course : course (text) , course_id (number) , course_id (number) | course_arrange : course_id (number) , teacher_id (number) , course_id (number)


Question: Show the name of the teacher for the math course.

course : course_id (number) , staring_date (text) , course (text) | teacher : teacher_id (number) , name (text) , age (text) , hometown (text) | course_arrange : course_id (number) , teacher_id (number) , grade (number)

teacher : name (text) , teacher_id (number) , teacher_id (number) | course : course (text) , course_id (number) , course_id (number) | course_arrange : course_id (number) , teacher_id (number) , course_id (number)


Question: What are the names of the people who teach math courses?

course : course_id (number) , staring_date (text) , course (text) | teacher : teacher_id (number) , name (text) , age (text) , hometown (text) | course_arrange : course_id (number) , teacher_id (number) , grade (number)

teacher : name (text) , teacher_id (number) , teacher_id (number) | course : course (text) , course_id (number) , course_id (number) | course_arrange : course_id (number) , teacher_id (number) , course_id (number)


Question: Show names of teachers and the number of courses they teach.

course : course_id (number) , staring_date (text) , course (text) | teacher : teacher_id (number) , name (text) , age (text) , hometown (text) | course_arrange : course_id (number) , teacher_id (number) , grade (number)

teacher : name (text) , teacher_id (number) , teacher_id (number) | course_arrange : teacher_id (number) , course_id (number)


Question: What are the names of the teachers and how many courses do they teach?

course : course_id (number) , staring_date (text) , course (text) | teacher : teacher_id (number) , name (text) , age (text) , hometown (text) | course_arrange : course_id (number) , teacher_id (number) , grade (number)

teacher : name (text) , teacher_id (number) , teacher_id (number) | course_arrange : teacher_id (number) , course_id (number)


Question: Show names of teachers that teach at least two courses.

course : course_id (number) , staring_date (text) , course (text) | teacher : teacher_id (number) , name (text) , age (text) , hometown (text) | course_arrange : course_id (number) , teacher_id (number) , grade (number)

teacher : name (text) , teacher_id (number) , teacher_id (number) | course_arrange : teacher_id (number) , course_id (number)


Question: What are the names of the teachers who teach at least two courses?

course : course_id (number) , staring_date (text) , course (text) | teacher : teacher_id (number) , name (text) , age (text) , hometown (text) | course_arrange : course_id (number) , teacher_id (number) , grade (number)

teacher : name (text) , teacher_id (number) , teacher_id (number) | course_arrange : teacher_id (number) , course_id (number)


Question: List the names of teachers who have not been arranged to teach courses.

course : course_id (number) , staring_date (text) , course (text) | teacher : teacher_id (number) , name (text) , age (text) , hometown (text) | course_arrange : course_id (number) , teacher_id (number) , grade (number)

teacher : name (text) , teacher_id (number) , teacher_id (number) | course_arrange : teacher_id (number) , course_id (number)


Question: What are the names of the teachers whose courses have not been arranged?

course : course_id (number) , staring_date (text) , course (text) | teacher : teacher_id (number) , name (text) , age (text) , hometown (text) | course_arrange : course_id (number) , teacher_id (number) , grade (number)

teacher : name (text) , teacher_id (number) , teacher_id (number) | course_arrange : teacher_id (number) , course_id (number)


Question: How many visitors below age 30 are there?

museum : museum_id (number) , name (text) , num_of_staff (number) , open_year (text) | visitor : id (number) , name (text) , level_of_membership (number) , age (number) | visit : museum_id (number) , visitor_id (text) , num_of_ticket (number) , total_spent (number)


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.

museum : museum_id (number) , name (text) , num_of_staff (number) , open_year (text) | visitor : id (number) , name (text) , level_of_membership (number) , age (number) | visit : museum_id (number) , visitor_id (text) , num_of_ticket (number) , total_spent (number)

museum : name (text) , museum_id (number) | visitor : name (text) , level_of_membership (number) , id (number)


Question: What is the average age of the visitors whose membership level is not higher than 4?

museum : museum_id (number) , name (text) , num_of_staff (number) , open_year (text) | visitor : id (number) , name (text) , level_of_membership (number) , age (number) | visit : museum_id (number) , visitor_id (text) , num_of_ticket (number) , total_spent (number)

visitor : age (number) , level_of_membership (number) , id (number)


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.

museum : museum_id (number) , name (text) , num_of_staff (number) , open_year (text) | visitor : id (number) , name (text) , level_of_membership (number) , age (number) | visit : museum_id (number) , visitor_id (text) , num_of_ticket (number) , total_spent (number)

museum : name (text) , museum_id (number) | visitor : name (text) , level_of_membership (number) , age (number) , id (number)


Question: Find the id and name of the museum that has the most staff members?

museum : museum_id (number) , name (text) , num_of_staff (number) , open_year (text) | visitor : id (number) , name (text) , level_of_membership (number) , age (number) | visit : museum_id (number) , visitor_id (text) , num_of_ticket (number) , total_spent (number)

museum : museum_id (number) , name (text) , num_of_staff (number) , museum_id (number) | visit : museum_id (number) , museum_id (number) | visitor : name (text) , id (number)


Question: Find the average number of staff working for the museums that were open before 2009.

museum : museum_id (number) , name (text) , num_of_staff (number) , open_year (text) | visitor : id (number) , name (text) , level_of_membership (number) , age (number) | visit : museum_id (number) , visitor_id (text) , num_of_ticket (number) , total_spent (number)

museum : num_of_staff (number) , open_year (text) , museum_id (number)


Question: What are the opening year and staff number of the museum named Plaza Museum?

museum : museum_id (number) , name (text) , num_of_staff (number) , open_year (text) | visitor : id (number) , name (text) , level_of_membership (number) , age (number) | visit : museum_id (number) , visitor_id (text) , num_of_ticket (number) , total_spent (number)

museum : num_of_staff (number) , open_year (text) , name (text) , museum_id (number) | visitor : name (text) , id (number)


Question: find the names of museums which have more staff than the minimum staff number of all museums opened after 2010.

museum : museum_id (number) , name (text) , num_of_staff (number) , open_year (text) | visitor : id (number) , name (text) , level_of_membership (number) , age (number) | visit : museum_id (number) , visitor_id (text) , num_of_ticket (number) , total_spent (number)

museum : name (text) , num_of_staff (number) , open_year (text) , museum_id (number) | visitor : name (text) , id (number)


Question: find the id, name and age for visitors who visited some museums more than once.

museum : museum_id (number) , name (text) , num_of_staff (number) , open_year (text) | visitor : id (number) , name (text) , level_of_membership (number) , age (number) | visit : museum_id (number) , visitor_id (text) , num_of_ticket (number) , total_spent (number)

visitor : id (number) , name (text) , age (number) , id (number) | museum : name (text) , museum_id (number) | visit : visitor_id (text) , museum_id (number)


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?

museum : museum_id (number) , name (text) , num_of_staff (number) , open_year (text) | visitor : id (number) , name (text) , level_of_membership (number) , age (number) | visit : museum_id (number) , visitor_id (text) , num_of_ticket (number) , total_spent (number)

visit : visitor_id (text) , total_spent (number) , museum_id (number) | museum : name (text) , museum_id (number) | visitor : name (text) , level_of_membership (number) , id (number) , id (number)


Question: What are the id and name of the museum visited most times?

museum : museum_id (number) , name (text) , num_of_staff (number) , open_year (text) | visitor : id (number) , name (text) , level_of_membership (number) , age (number) | visit : museum_id (number) , visitor_id (text) , num_of_ticket (number) , total_spent (number)

museum : museum_id (number) , name (text) , museum_id (number) | visit : museum_id (number) , museum_id (number) | visitor : name (text) , id (number)


Question: What is the name of the museum that had no visitor yet?

museum : museum_id (number) , name (text) , num_of_staff (number) , open_year (text) | visitor : id (number) , name (text) , level_of_membership (number) , age (number) | visit : museum_id (number) , visitor_id (text) , num_of_ticket (number) , total_spent (number)

museum : name (text) , museum_id (number) , museum_id (number) | visitor : name (text) , id (number) | visit : museum_id (number) , museum_id (number)


Question: Find the name and age of the visitor who bought the most tickets at once.

museum : museum_id (number) , name (text) , num_of_staff (number) , open_year (text) | visitor : id (number) , name (text) , level_of_membership (number) , age (number) | visit : museum_id (number) , visitor_id (text) , num_of_ticket (number) , total_spent (number)

museum : name (text) , museum_id (number) | visitor : name (text) , age (number) , id (number) , id (number) | visit : visitor_id (text) , num_of_ticket (number) , museum_id (number)


Question: What are the average and maximum number of tickets bought in all visits?

museum : museum_id (number) , name (text) , num_of_staff (number) , open_year (text) | visitor : id (number) , name (text) , level_of_membership (number) , age (number) | visit : museum_id (number) , visitor_id (text) , num_of_ticket (number) , total_spent (number)

visit : num_of_ticket (number) , museum_id (number)


Question: What is the total ticket expense of the visitors whose membership level is 1?

museum : museum_id (number) , name (text) , num_of_staff (number) , open_year (text) | visitor : id (number) , name (text) , level_of_membership (number) , age (number) | visit : museum_id (number) , visitor_id (text) , num_of_ticket (number) , total_spent (number)

visit : total_spent (number) , visitor_id (text) , museum_id (number) | visitor : id (number) , level_of_membership (number) , id (number)


Question: What is the name of the visitor who visited both a museum opened before 2009 and a museum opened after 2011?

museum : museum_id (number) , name (text) , num_of_staff (number) , open_year (text) | visitor : id (number) , name (text) , level_of_membership (number) , age (number) | visit : museum_id (number) , visitor_id (text) , num_of_ticket (number) , total_spent (number)

museum : name (text) , museum_id (number) , open_year (text) , museum_id (number) | visitor : name (text) , id (number) , id (number) | visit : visitor_id (text) , museum_id (number) , museum_id (number)


Question: Find the number of visitors who did not visit any museum opened after 2010.

museum : museum_id (number) , name (text) , num_of_staff (number) , open_year (text) | visitor : id (number) , name (text) , level_of_membership (number) , age (number) | visit : museum_id (number) , visitor_id (text) , num_of_ticket (number) , total_spent (number)

visitor : id (number) , id (number) | visit : visitor_id (text) , museum_id (number) , museum_id (number) | museum : museum_id (number) , open_year (text) , museum_id (number)


Question: How many museums were opened after 2013 or before 2008?

museum : museum_id (number) , name (text) , num_of_staff (number) , open_year (text) | visitor : id (number) , name (text) , level_of_membership (number) , age (number) | visit : museum_id (number) , visitor_id (text) , num_of_ticket (number) , total_spent (number)

museum : open_year (text) , museum_id (number)


Question: Find the total number of players.

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)


Question: How many players are there?

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)


Question: Find the total number of matches.

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)


Question: Count the number of matches.

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)


Question: List the first name and birth date of all players from the country with code USA.

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)

players : first_name (text) , birth_date (time) , country_code (text) , player_id (number)


Question: What are the first names and birth dates of players from the USA?

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)

players : first_name (text) , birth_date (time) , country_code (text) , player_id (number)


Question: Find the average age of losers and winners of all matches.

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)

matches : loser_age (number) , winner_age (number)


Question: What are the average ages of losers and winners across matches?

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)

matches : loser_age (number) , winner_age (number)


Question: Find the average rank of winners in all matches.

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)


Question: What is the average rank for winners in all matches?

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)


Question: Find the highest rank of losers in all matches.

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)


Question: What is the best rank of losers across all matches?

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)


Question: find the number of distinct country codes of all players.

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)

players : country_code (text) , player_id (number)


Question: How many distinct countries do players come from?

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)

players : country_code (text) , player_id (number)


Question: Find the number of distinct name of losers.

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)


Question: How many different loser names are there?

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)


Question: Find the name of tourney that has more than 10 matches.

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)


Question: What are the names of tournaments that have more than 10 matches?

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)


Question: List the names of all winners who played in both 2013 and 2016.

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)

matches : winner_name (text) , year (number)


Question: What are the names of players who won in both 2013 and 2016?

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)

matches : winner_name (text) , year (number)


Question: List the number of all matches who played in years of 2013 or 2016.

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)


Question: How many matches were played in 2013 or 2016?

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)


Question: What are the country code and first name of the players who won in both tourney WTA Championships and Australian Open?

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)

players : country_code (text) , first_name (text) , player_id (number) , player_id (number) | rankings : player_id (number) | matches : winner_id (number) , tourney_name (text)


Question: What are the first names and country codes for players who won both the WTA Championships and the Australian Open?

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)

players : country_code (text) , first_name (text) , player_id (number) , player_id (number) | rankings : player_id (number) | matches : winner_id (number) , tourney_name (text)


Question: Find the first name and country code of the oldest player.

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)

players : first_name (text) , country_code (text) , birth_date (time) , player_id (number)


Question: What is the first name and country code of the oldest player?

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)

players : first_name (text) , country_code (text) , birth_date (time) , player_id (number)


Question: List the first and last name of all players in the order of birth date.

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)

players : first_name (text) , last_name (text) , birth_date (time) , player_id (number)


Question: What are the full names of all players, sorted by birth date?

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)

players : first_name (text) , last_name (text) , birth_date (time) , player_id (number)


Question: List the first and last name of all players who are left / L hand in the order of birth date.

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)

players : first_name (text) , last_name (text) , hand (text) , birth_date (time) , player_id (number)


Question: What are the full names of all left handed players, in order of birth date?

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)

players : first_name (text) , last_name (text) , hand (text) , birth_date (time) , player_id (number)


Question: Find the first name and country code of the player who did the most number of tours.

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)

players : country_code (text) , first_name (text) , player_id (number) , player_id (number) | rankings : player_id (number) , tours (number)


Question: What is the first name and country code of the player with the most tours?

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)

players : country_code (text) , first_name (text) , player_id (number) , player_id (number) | rankings : player_id (number) , tours (number)


Question: Find the year that has the most number of matches.

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)


Question: Which year had the most matches?

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)


Question: Find the name and rank points of the winner who won the most times.

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)

matches : winner_name (text) , winner_rank_points (number)


Question: What is the name of the winner who has won the most matches, and how many rank points does this player have?

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)

matches : winner_name (text) , winner_rank_points (number)


Question: Find the name of the winner who has the highest rank points and participated in the Australian Open tourney.

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)

matches : winner_name (text) , tourney_name (text) , winner_rank_points (number)


Question: What is the name of the winner with the most rank points who participated in the Australian Open tournament?

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)

matches : winner_name (text) , tourney_name (text) , winner_rank_points (number)


Question: find the names of loser and winner who played in the match with greatest number of minutes.

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)

matches : winner_name (text) , loser_name (text) , minutes (number)


Question: What are the names of the winner and loser who played in the longest match?

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)

matches : winner_name (text) , loser_name (text) , minutes (number)


Question: Find the average ranking for each player and their first name.

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)

rankings : ranking (number) , player_id (number) | players : first_name (text) , player_id (number) , player_id (number)


Question: What are the first names of all players, and their average rankings?

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)

rankings : ranking (number) , player_id (number) | players : first_name (text) , player_id (number) , player_id (number)


Question: Find the total ranking points for each player and their first name.

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)

rankings : ranking_points (number) , player_id (number) | players : first_name (text) , player_id (number) , player_id (number)


Question: What are the first names of all players, and their total ranking points?

players : player_id (number) , first_name (text) , last_name (text) , hand (text) , birth_date (time) , country_code (text) | matches : best_of (number) , draw_size (number) , loser_age (number) , loser_entry (text) , loser_hand (text) , loser_ht (number) , loser_id (number) , loser_ioc (text) , loser_name (text) , loser_rank (number) , loser_rank_points (number) , loser_seed (number) , match_num (number) , minutes (number) , round (text) , score (text) , surface (text) , tourney_date (time) , tourney_id (text) , tourney_level (text) , tourney_name (text) , winner_age (number) , winner_entry (text) , winner_hand (text) , winner_ht (number) , winner_id (number) , winner_ioc (text) , winner_name (text) , winner_rank (number) , winner_rank_points (number) , winner_seed (number) , year (number) | rankings : ranking_date (time) , ranking (number) , player_id (number) , ranking_points (number) , tours (number)

rankings : ranking_points (number) , player_id (number) | players : first_name (text) , player_id (number) , player_id (number)