column_names: -1
*
0
conductor id
0
name
0
age
0
nationality
0
year of work
1
orchestra id
1
orchestra
1
conductor id
1
record company
1
year of founded
1
major record format
2
performance id
2
orchestra id
2
type
2
date
2
official ratings (millions)
2
weekly rank
2
share
3
show id
3
performance id
3
if first show
3
result
3
attendance
column_names_original: -1
*
0
Conductor_ID
0
Name
0
Age
0
Nationality
0
Year_of_Work
1
Orchestra_ID
1
Orchestra
1
Conductor_ID
1
Record_Company
1
Year_of_Founded
1
Major_Record_Format
2
Performance_ID
2
Orchestra_ID
2
Type
2
Date
2
Official_ratings_(millions)
2
Weekly_rank
2
Share
3
Show_ID
3
Performance_ID
3
If_first_show
3
Result
3
Attendance
column_types: text
number
text
number
text
number
number
text
number
text
number
text
number
number
text
text
number
text
text
number
number
others
text
number
db_id: orchestra
table_names: conductor
orchestra
performance
show
table_names_original: conductor
orchestra
performance
show

How many conductors are there?
SELECT count(*) FROM conductor

Count the number of conductors.
SELECT count(*) FROM conductor

List the names of conductors in ascending order of age.
SELECT Name FROM conductor ORDER BY Age ASC

What are the names of conductors, ordered by age?
SELECT Name FROM conductor ORDER BY Age ASC

What are the names of conductors whose nationalities are not "USA"?
SELECT Name FROM conductor WHERE Nationality != 'USA'

Return the names of conductors that do not have the nationality "USA".
SELECT Name FROM conductor WHERE Nationality != 'USA'

What are the record companies of orchestras in descending order of years in which they were founded?
SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC

Return the record companies of orchestras, sorted descending by the years in which they were founded.
SELECT Record_Company FROM orchestra ORDER BY Year_of_Founded DESC

What is the average attendance of shows?
SELECT avg(Attendance) FROM SHOW

Return the average attendance across all shows.
SELECT avg(Attendance) FROM SHOW

What are the maximum and minimum share of performances whose type is not "Live final".
SELECT max(SHARE) ,  min(SHARE) FROM performance WHERE TYPE != "Live final"

Return the maximum and minimum shares for performances that do not have the type "Live final".
SELECT max(SHARE) ,  min(SHARE) FROM performance WHERE TYPE != "Live final"

How many different nationalities do conductors have?
SELECT count(DISTINCT Nationality) FROM conductor

Count the number of different nationalities of conductors.
SELECT count(DISTINCT Nationality) FROM conductor

List names of conductors in descending order of years of work.
SELECT Name FROM conductor ORDER BY Year_of_Work DESC

What are the names of conductors, sorted descending by the number of years they have worked?
SELECT Name FROM conductor ORDER BY Year_of_Work DESC

List the name of the conductor with the most years of work.
SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1

What is the name of the conductor who has worked the greatest number of years?
SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1

Show the names of conductors and the orchestras they have conducted.
SELECT T1.Name ,  T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID

What are the names of conductors as well as the corresonding orchestras that they have conducted?
SELECT T1.Name ,  T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID

Show the names of conductors that have conducted more than one orchestras.
SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*)  >  1

What are the names of conductors who have conducted at more than one orchestra?
SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID GROUP BY T2.Conductor_ID HAVING COUNT(*)  >  1

Show the name of the conductor that has conducted the most number of orchestras.
SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1

What is the name of the conductor who has conducted the most orchestras?
SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID GROUP BY T2.Conductor_ID ORDER BY COUNT(*) DESC LIMIT 1

Please show the name of the conductor that has conducted orchestras founded after 2008.
SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID WHERE Year_of_Founded  >  2008

What are the names of conductors who have conducted orchestras founded after the year 2008?
SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID  =  T2.Conductor_ID WHERE Year_of_Founded  >  2008

Please show the different record companies and the corresponding number of orchestras.
SELECT Record_Company ,  COUNT(*) FROM orchestra GROUP BY Record_Company

How many orchestras does each record company manage?
SELECT Record_Company ,  COUNT(*) FROM orchestra GROUP BY Record_Company

Please show the record formats of orchestras in ascending order of count.
SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC

What are the major record formats of orchestras, sorted by their frequency?
SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) ASC

List the record company shared by the most number of orchestras.
SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1

What is the record company used by the greatest number of orchestras?
SELECT Record_Company FROM orchestra GROUP BY Record_Company ORDER BY COUNT(*) DESC LIMIT 1

List the names of orchestras that have no performance.
SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance)

What are the orchestras that do not have any performances?
SELECT Orchestra FROM orchestra WHERE Orchestra_ID NOT IN (SELECT Orchestra_ID FROM performance)

Show the record companies shared by orchestras founded before 2003 and after 2003.
SELECT Record_Company FROM orchestra WHERE Year_of_Founded  <  2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded  >  2003

What are the record companies that are used by both orchestras founded before 2003 and those founded after 2003?
SELECT Record_Company FROM orchestra WHERE Year_of_Founded  <  2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded  >  2003

Find the number of orchestras whose record format is "CD" or "DVD".
SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format  =  "CD" OR Major_Record_Format  =  "DVD"

Count the number of orchestras that have CD or DVD as their record format.
SELECT COUNT(*) FROM orchestra WHERE Major_Record_Format  =  "CD" OR Major_Record_Format  =  "DVD"

Show the years in which orchestras that have given more than one performance are founded.
SELECT Year_of_Founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID  =  T2.Orchestra_ID GROUP BY T2.Orchestra_ID HAVING COUNT(*)  >  1

What are years of founding for orchestras that have had more than a single performance?
SELECT Year_of_Founded FROM orchestra AS T1 JOIN performance AS T2 ON T1.Orchestra_ID  =  T2.Orchestra_ID GROUP BY T2.Orchestra_ID HAVING COUNT(*)  >  1