Database: orchestra
# conductor ( conductor_id , name , age , nationality , year_of_work )
# orchestra ( orchestra_id , orchestra , conductor_id , record_company , year_of_founded , major_record_format )
# performance ( performance_id , orchestra_id , type , date , official_ratings_(millions) , weekly_rank , share )
# show ( show_id , performance_id , if_first_show , result , attendance )
# orchestra.conductor_id = conductor.conductor_id
# performance.orchestra_id = orchestra.orchestra_id
# show.performance_id = performance.performance_id

Question: How many conductors are there?
SQL: select count ( * ) from conductor

Question: Count the number of conductors.
SQL: select count ( * ) from conductor

Question: List the names of conductors in ascending order of age.
SQL: select name from conductor order by age asc

Question: What are the names of conductors, ordered by age?
SQL: select name from conductor order by age asc

Question: What are the names of conductors whose nationalities are not "USA"?
SQL: select name from conductor where nationality != 'USA'

Question: Return the names of conductors that do not have the nationality "USA".
SQL: select name from conductor where nationality != 'USA'

Question: What are the record companies of orchestras in descending order of years in which they were founded?
SQL: select record_company from orchestra order by year_of_founded desc

Question: Return the record companies of orchestras, sorted descending by the years in which they were founded.
SQL: select record_company from orchestra order by year_of_founded desc

Question: What is the average attendance of shows?
SQL: select avg ( attendance ) from show

Question: Return the average attendance across all shows.
SQL: select avg ( attendance ) from show

Question: What are the maximum and minimum share of performances whose type is not "Live final".
SQL: select max ( share ) , min ( share ) from performance where type != 'Live final'

Question: Return the maximum and minimum shares for performances that do not have the type "Live final".
SQL: select max ( share ) , min ( share ) from performance where type != 'Live final'

Question: How many different nationalities do conductors have?
SQL: select count ( distinct nationality ) from conductor

Question: Count the number of different nationalities of conductors.
SQL: select count ( distinct nationality ) from conductor

Question: List names of conductors in descending order of years of work.
SQL: select name from conductor order by year_of_work desc

Question: What are the names of conductors, sorted descending by the number of years they have worked?
SQL: select name from conductor order by year_of_work desc

Question: List the name of the conductor with the most years of work.
SQL: select name from conductor order by year_of_work desc limit 1

Question: What is the name of the conductor who has worked the greatest number of years?
SQL: select name from conductor order by year_of_work desc limit 1

Question: Show the names of conductors and the orchestras they have conducted.
SQL: select conductor.name , orchestra.orchestra from conductor join orchestra on conductor.conductor_id = orchestra.conductor_id

Question: What are the names of conductors as well as the corresonding orchestras that they have conducted?
SQL: select conductor.name , orchestra.orchestra from conductor join orchestra on conductor.conductor_id = orchestra.conductor_id

Question: Show the names of conductors that have conducted more than one orchestras.
SQL: select conductor.name from conductor join orchestra on conductor.conductor_id = orchestra.conductor_id group by orchestra.conductor_id having count ( * ) > 1

Question: What are the names of conductors who have conducted at more than one orchestra?
SQL: select conductor.name from conductor join orchestra on conductor.conductor_id = orchestra.conductor_id group by orchestra.conductor_id having count ( * ) > 1

Question: Show the name of the conductor that has conducted the most number of orchestras.
SQL: select conductor.name from conductor join orchestra on conductor.conductor_id = orchestra.conductor_id group by orchestra.conductor_id order by count ( * ) desc limit 1

Question: What is the name of the conductor who has conducted the most orchestras?
SQL: select conductor.name from conductor join orchestra on conductor.conductor_id = orchestra.conductor_id group by orchestra.conductor_id order by count ( * ) desc limit 1

Question: Please show the name of the conductor that has conducted orchestras founded after 2008.
SQL: select conductor.name from conductor join orchestra on conductor.conductor_id = orchestra.conductor_id where year_of_founded > 2008

Question: What are the names of conductors who have conducted orchestras founded after the year 2008?
SQL: select conductor.name from conductor join orchestra on conductor.conductor_id = orchestra.conductor_id where year_of_founded > 2008

Question: Please show the different record companies and the corresponding number of orchestras.
SQL: select record_company , count ( * ) from orchestra group by record_company

Question: How many orchestras does each record company manage?
SQL: select record_company , count ( * ) from orchestra group by record_company

Question: Please show the record formats of orchestras in ascending order of count.
SQL: select major_record_format from orchestra group by major_record_format order by count ( * ) asc

Question: What are the major record formats of orchestras, sorted by their frequency?
SQL: select major_record_format from orchestra group by major_record_format order by count ( * ) asc

Question: List the record company shared by the most number of orchestras.
SQL: select record_company from orchestra group by record_company order by count ( * ) desc limit 1

Question: What is the record company used by the greatest number of orchestras?
SQL: select record_company from orchestra group by record_company order by count ( * ) desc limit 1

Question: List the names of orchestras that have no performance.
SQL: select orchestra from orchestra where orchestra_id not in ( select orchestra_id from performance )

Question: What are the orchestras that do not have any performances?
SQL: select orchestra from orchestra where orchestra_id not in ( select orchestra_id from performance )

Question: Show the record companies shared by orchestras founded before 2003 and after 2003.
SQL: select record_company from orchestra where year_of_founded < 2003 intersect select record_company from orchestra where year_of_founded > 2003

Question: What are the record companies that are used by both orchestras founded before 2003 and those founded after 2003?
SQL: select record_company from orchestra where year_of_founded < 2003 intersect select record_company from orchestra where year_of_founded > 2003

Question: Find the number of orchestras whose record format is "CD" or "DVD".
SQL: select count ( * ) from orchestra where major_record_format = 'CD' or major_record_format = 'DVD'

Question: Count the number of orchestras that have CD or DVD as their record format.
SQL: select count ( * ) from orchestra where major_record_format = 'CD' or major_record_format = 'DVD'

Question: Show the years in which orchestras that have given more than one performance are founded.
SQL: select year_of_founded from orchestra join performance on orchestra.orchestra_id = performance.orchestra_id group by performance.orchestra_id having count ( * ) > 1

Question: What are years of founding for orchestras that have had more than a single performance?
SQL: select year_of_founded from orchestra join performance on orchestra.orchestra_id = performance.orchestra_id group by performance.orchestra_id having count ( * ) > 1