query_id
int64
0
2.15k
database_id
stringclasses
40 values
table_id
listlengths
1
4
query
stringlengths
22
185
answer
stringlengths
22
608
difficulty
stringclasses
4 values
1,000
aan_1
[ "paper" ]
Which venue has the fewest publications?
SELECT venue FROM paper GROUP BY venue ORDER BY count(*) LIMIT 1
hard
1,001
aan_1
[ "citation" ]
How many papers cite paper with id A00-1002?
SELECT count(*) FROM Citation WHERE cited_paper_id = "A00-1002"
easy
1,002
aan_1
[ "citation" ]
Count the number of papers which cited a paper with id A00-1002.
SELECT count(*) FROM Citation WHERE cited_paper_id = "A00-1002"
easy
1,003
aan_1
[ "citation" ]
How many reference papers does paper with id D12-1027 have?
SELECT count(*) FROM Citation WHERE paper_id = "D12-1027"
easy
1,004
aan_1
[ "citation" ]
Count the number of references the paper with id D12-1027 has.
SELECT count(*) FROM Citation WHERE paper_id = "D12-1027"
easy
1,005
aan_1
[ "citation" ]
What is the id and the number of citations of the most cited paper?
SELECT paper_id , count(*) FROM Citation GROUP BY cited_paper_id ORDER BY count(*) DESC LIMIT 1
hard
1,006
aan_1
[ "citation" ]
Give the id and the number of citations of the most cited paper.
SELECT paper_id , count(*) FROM Citation GROUP BY cited_paper_id ORDER BY count(*) DESC LIMIT 1
hard
1,007
aan_1
[ "paper", "citation" ]
Give the title of the paper which cites most number of papers?
SELECT T2.title FROM Citation AS T1 JOIN Paper AS T2 ON T2.paper_id = T1.paper_id GROUP BY T1.paper_id ORDER BY count(*) DESC LIMIT 1
extra
1,008
aan_1
[ "paper", "citation" ]
What is the title of the paper which cites the most other papers?
SELECT T2.title FROM Citation AS T1 JOIN Paper AS T2 ON T2.paper_id = T1.paper_id GROUP BY T1.paper_id ORDER BY count(*) DESC LIMIT 1
extra
1,009
aan_1
[ "citation" ]
List top 10 most cited papers and their numbers of citations.
SELECT paper_id , count(*) FROM Citation GROUP BY cited_paper_id ORDER BY count(*) DESC LIMIT 10
hard
1,010
aan_1
[ "citation" ]
What are the 10 most cited papers, and how many citations did each have?
SELECT paper_id , count(*) FROM Citation GROUP BY cited_paper_id ORDER BY count(*) DESC LIMIT 10
hard
1,011
aan_1
[ "author", "citation", "author_list" ]
How many citations does Mckeown , Kathleen have ?
select count(*) from citation as t1 join author_list as t2 on t1.cited_paper_id = t2.paper_id join author as t3 on t2.author_id = t3.author_id where t3.name = "mckeown , kathleen"
hard
1,012
aan_1
[ "author", "citation", "author_list" ]
Count the number of citations Mckeown , Kathleen has .
select count(*) from citation as t1 join author_list as t2 on t1.cited_paper_id = t2.paper_id join author as t3 on t2.author_id = t3.author_id where t3.name = "mckeown , kathleen"
hard
1,013
aan_1
[ "author", "citation", "author_list" ]
How many papers does Mckeown , Kathleen cite ?
select count(*) from citation as t1 join author_list as t2 on t1.paper_id = t2.paper_id join author as t3 on t2.author_id = t3.author_id where t3.name = "mckeown , kathleen"
hard
1,014
aan_1
[ "author", "citation", "author_list" ]
Count the number of papers Mckeown , Kathleen has cited .
select count(*) from citation as t1 join author_list as t2 on t1.paper_id = t2.paper_id join author as t3 on t2.author_id = t3.author_id where t3.name = "mckeown , kathleen"
hard
1,015
aan_1
[ "author", "author_list", "citation" ]
Find the name and number of citations of the author who has most citations among all authors?
SELECT T3.name , count(*) FROM Citation AS T1 JOIN Author_list AS T2 ON T1.cited_paper_id = T2.paper_id JOIN Author AS T3 ON T2.author_id = T3.author_id GROUP BY T2.author_id ORDER BY count(*) DESC LIMIT 1
extra
1,016
aan_1
[ "author", "author_list", "citation" ]
What is the name and number of citations of the author with the greatest number of citations among authors?
SELECT T3.name , count(*) FROM Citation AS T1 JOIN Author_list AS T2 ON T1.cited_paper_id = T2.paper_id JOIN Author AS T3 ON T2.author_id = T3.author_id GROUP BY T2.author_id ORDER BY count(*) DESC LIMIT 1
extra
1,017
aan_1
[ "author", "paper", "author_list" ]
What are the venues and years where Mckeown , Kathleen had papers ?
select distinct t1.venue , t1.year from paper as t1 join author_list as t2 on t1.paper_id = t2.paper_id join author as t3 on t2.author_id = t3.author_id where t3.name = "mckeown , kathleen"
hard
1,018
aan_1
[ "author", "paper", "author_list" ]
Which venues and years did Mckeown , Kathleen have papers ?
select distinct t1.venue , t1.year from paper as t1 join author_list as t2 on t1.paper_id = t2.paper_id join author as t3 on t2.author_id = t3.author_id where t3.name = "mckeown , kathleen"
hard
1,019
aan_1
[ "paper", "affiliation", "author_list" ]
What are the venues and years where Columbia University had papers ?
select distinct t1.venue , t1.year from paper as t1 join author_list as t2 on t1.paper_id = t2.paper_id join affiliation as t3 on t2.affiliation_id = t3.affiliation_id where t3.name = "columbia university"
hard
1,020
aan_1
[ "paper", "affiliation", "author_list" ]
Which venues and years did Columbia University have papers ?
select distinct t1.venue , t1.year from paper as t1 join author_list as t2 on t1.paper_id = t2.paper_id join affiliation as t3 on t2.affiliation_id = t3.affiliation_id where t3.name = "columbia university"
hard
1,021
aan_1
[ "author", "paper", "author_list" ]
Which author had the most papers in the year 2009?
SELECT T3.name FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Author AS T3 ON T3.author_id = T2.author_id WHERE T1.year = 2009 GROUP BY T2.author_id ORDER BY count(*) DESC LIMIT 1
extra
1,022
aan_1
[ "author", "paper", "author_list" ]
What is the name of the author with the most papers in 2009?
SELECT T3.name FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Author AS T3 ON T3.author_id = T2.author_id WHERE T1.year = 2009 GROUP BY T2.author_id ORDER BY count(*) DESC LIMIT 1
extra
1,023
aan_1
[ "paper", "author_list", "affiliation" ]
What are the names of the top 3 affiliations that have the most papers in year 2009?
SELECT T3.name FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Affiliation AS T3 ON T2.affiliation_id = T3.affiliation_id WHERE T1.year = 2009 GROUP BY T2.affiliation_id ORDER BY count(*) DESC LIMIT 3
extra
1,024
aan_1
[ "paper", "author_list", "affiliation" ]
Which 3 affiliations had the most papers in 2009?
SELECT T3.name FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Affiliation AS T3 ON T2.affiliation_id = T3.affiliation_id WHERE T1.year = 2009 GROUP BY T2.affiliation_id ORDER BY count(*) DESC LIMIT 3
extra
1,025
aan_1
[ "paper", "affiliation", "author_list" ]
How many papers does Columbia University have in or before 2009 ?
select count(distinct t1.paper_id) from paper as t1 join author_list as t2 on t1.paper_id = t2.paper_id join affiliation as t3 on t2.affiliation_id = t3.affiliation_id where t1.year <= 2009 and t3.name = "columbia university"
hard
1,026
aan_1
[ "paper", "affiliation", "author_list" ]
Count the number of papers Columbia University had during or prior to 2009 .
select count(distinct t1.paper_id) from paper as t1 join author_list as t2 on t1.paper_id = t2.paper_id join affiliation as t3 on t2.affiliation_id = t3.affiliation_id where t1.year <= 2009 and t3.name = "columbia university"
hard
1,027
aan_1
[ "paper", "author_list", "affiliation" ]
How many papers does Stanford University have between 2000 and 2009?
SELECT count(DISTINCT T1.paper_id) FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Affiliation AS T3 ON T2.affiliation_id = T3.affiliation_id WHERE T1.year >= 2000 AND T1.year <= 2009 AND T3.name LIKE "Stanford University"
extra
1,028
aan_1
[ "paper", "author_list", "affiliation" ]
Count the number of papers Stanford University had between 2000 and 2009.
SELECT count(DISTINCT T1.paper_id) FROM Paper AS T1 JOIN Author_list AS T2 ON T1.paper_id = T2.paper_id JOIN Affiliation AS T3 ON T2.affiliation_id = T3.affiliation_id WHERE T1.year >= 2000 AND T1.year <= 2009 AND T3.name LIKE "Stanford University"
extra
1,029
aan_1
[ "paper", "author_list" ]
What is the title of the paper that has most number of authors?
SELECT T2.title FROM Author_list AS T1 JOIN Paper AS T2 ON T1.paper_id = T2.paper_id GROUP BY T2.paper_id ORDER BY count(*) DESC LIMIT 1
extra
1,030
aan_1
[ "paper", "author_list" ]
Give the title of the paper with the most authors.
SELECT T2.title FROM Author_list AS T1 JOIN Paper AS T2 ON T1.paper_id = T2.paper_id GROUP BY T2.paper_id ORDER BY count(*) DESC LIMIT 1
extra
1,031
aan_1
[ "author", "author_list" ]
How many collaborators has Mckeown , Kathleen had ?
select count (distinct t2.author_id) from author_list as t1 join author_list as t2 on t1.paper_id = t2.paper_id and t1.author_id != t2.author_id join author as t3 on t1.author_id = t3.author_id where t3.name = "mckeown , kathleen"
hard
1,032
aan_1
[ "author", "author_list" ]
Count the number of collaborators that Mckeown , Kathleen has had .
select count (distinct t2.author_id) from author_list as t1 join author_list as t2 on t1.paper_id = t2.paper_id and t1.author_id != t2.author_id join author as t3 on t1.author_id = t3.author_id where t3.name = "mckeown , kathleen"
hard
1,033
aan_1
[ "author", "author_list" ]
Who has the most papers co-authored with Mckeown , Kathleen ?
select t4.name from author_list as t1 join author_list as t2 on t1.paper_id = t2.paper_id and t1.author_id != t2.author_id join author as t3 on t1.author_id = t3.author_id join author as t4 on t2.author_id = t4.author_id where t3.name = "mckeown , kathleen" group by t2.author_id order by count(*) desc limit 1
extra
1,034
aan_1
[ "author", "author_list" ]
What is the name of the author who has co-authored the most papers with Mckeown , Kathleen ?
select t4.name from author_list as t1 join author_list as t2 on t1.paper_id = t2.paper_id and t1.author_id != t2.author_id join author as t3 on t1.author_id = t3.author_id join author as t4 on t2.author_id = t4.author_id where t3.name = "mckeown , kathleen" group by t2.author_id order by count(*) desc limit 1
extra
1,035
aan_1
[ "paper" ]
Find the id of the papers whose title has the key word 'translation'.
SELECT paper_id FROM Paper WHERE title LIKE "%translation%"
medium
1,036
aan_1
[ "paper" ]
What are the ids for papers with titles containing 'translation'?
SELECT paper_id FROM Paper WHERE title LIKE "%translation%"
medium
1,037
aan_1
[ "paper", "citation" ]
Find the id and title of the papers that are never cited by others.
SELECT paper_id , title FROM Paper WHERE paper_id NOT IN (SELECT cited_paper_id FROM Citation)
extra
1,038
aan_1
[ "paper", "citation" ]
What are the ids and titles for papers that have never been cited?
SELECT paper_id , title FROM Paper WHERE paper_id NOT IN (SELECT cited_paper_id FROM Citation)
extra
1,039
aan_1
[ "author_list", "affiliation" ]
Find the name of the affiliation whose address contains 'China' and publishes the greatest number of papers.
SELECT T1.name FROM Affiliation AS T1 JOIN Author_list AS T2 ON T1.affiliation_id = T2.affiliation_id WHERE T1.address LIKE "%China%" GROUP BY T1.affiliation_id ORDER BY count(*) DESC LIMIT 1
extra
1,040
aan_1
[ "author_list", "affiliation" ]
What is the name of the affiliation which publishes the greatest number of papers among those whose address contains 'China'.
SELECT T1.name FROM Affiliation AS T1 JOIN Author_list AS T2 ON T1.affiliation_id = T2.affiliation_id WHERE T1.address LIKE "%China%" GROUP BY T1.affiliation_id ORDER BY count(*) DESC LIMIT 1
extra
1,041
aan_1
[ "paper" ]
Find the number of papers published in different conferences each year.
SELECT count(*) , venue , YEAR FROM Paper GROUP BY venue , YEAR
medium
1,042
aan_1
[ "paper" ]
How many papers are published in each venue in each year?
SELECT count(*) , venue , YEAR FROM Paper GROUP BY venue , YEAR
medium
1,043
aan_1
[ "author_list", "affiliation" ]
Find the total number of papers for each affiliation.
SELECT count(DISTINCT T2.paper_id) , T1.name FROM Affiliation AS T1 JOIN Author_list AS T2 ON T1.affiliation_id = T2.affiliation_id GROUP BY T1.affiliation_id
medium
1,044
aan_1
[ "author_list", "affiliation" ]
How many papers has each affiliation published?
SELECT count(DISTINCT T2.paper_id) , T1.name FROM Affiliation AS T1 JOIN Author_list AS T2 ON T1.affiliation_id = T2.affiliation_id GROUP BY T1.affiliation_id
medium
1,045
aan_1
[ "paper", "citation" ]
Find the titles of papers that have more than 50 citations.
SELECT T2.title FROM Citation AS T1 JOIN Paper AS T2 ON T1.cited_paper_id = T2.paper_id GROUP BY T1.cited_paper_id HAVING count(*) > 50
medium
1,046
aan_1
[ "paper", "citation" ]
What are the titles for papers with more than 50 citations?
SELECT T2.title FROM Citation AS T1 JOIN Paper AS T2 ON T1.cited_paper_id = T2.paper_id GROUP BY T1.cited_paper_id HAVING count(*) > 50
medium
1,047
aan_1
[ "author", "author_list", "citation" ]
Find the number of authors who did not publish any paper that is cited more than 50 times.
SELECT count(*) FROM Author WHERE Author_id NOT IN ( SELECT T2.author_id FROM Citation AS T1 JOIN Author_list AS T2 ON T1.cited_paper_id = T2.paper_id GROUP BY T1.cited_paper_id HAVING count(DISTINCT T1.paper_id) > 50)
extra
1,048
aan_1
[ "author", "author_list", "citation" ]
How many authors have not published a paper with more than 50 citations?
SELECT count(*) FROM Author WHERE Author_id NOT IN ( SELECT T2.author_id FROM Citation AS T1 JOIN Author_list AS T2 ON T1.cited_paper_id = T2.paper_id GROUP BY T1.cited_paper_id HAVING count(DISTINCT T1.paper_id) > 50)
extra
1,049
aan_1
[ "author", "paper", "author_list" ]
Find the names of authors who published some paper on NAACL and ACL in the year 2009.
SELECT name FROM Author WHERE author_id IN (SELECT T1.author_id FROM Author_list AS T1 JOIN Paper AS T2 ON T1.paper_id = T2.paper_id WHERE T2.venue = "ACL" AND T2.year = 2009 INTERSECT SELECT T1.author_id FROM Author_list AS T1 JOIN Paper AS T2 ON T1.paper_id = T2.paper_id WHERE T2.venue = "NAACL" AND T2.year = 2009)
hard
1,050
aan_1
[ "author", "paper", "author_list" ]
What are the names of authors who published in both NAACL and ACL in 2009?
SELECT name FROM Author WHERE author_id IN (SELECT T1.author_id FROM Author_list AS T1 JOIN Paper AS T2 ON T1.paper_id = T2.paper_id WHERE T2.venue = "ACL" AND T2.year = 2009 INTERSECT SELECT T1.author_id FROM Author_list AS T1 JOIN Paper AS T2 ON T1.paper_id = T2.paper_id WHERE T2.venue = "NAACL" AND T2.year = 2009)
hard
1,051
aan_1
[ "author", "paper", "author_list" ]
Find the name of authors who have never published a paper in ACL.
SELECT name FROM Author WHERE author_id NOT IN (SELECT T1.author_id FROM Author_list AS T1 JOIN Paper AS T2 ON T1.paper_id = T2.paper_id WHERE T2.venue = "ACL")
hard
1,052
aan_1
[ "author", "paper", "author_list" ]
What are the names of authors who have not published a paper in ACL?
SELECT name FROM Author WHERE author_id NOT IN (SELECT T1.author_id FROM Author_list AS T1 JOIN Paper AS T2 ON T1.paper_id = T2.paper_id WHERE T2.venue = "ACL")
hard
1,053
conference
[ "conference" ]
How many conferences are there?
SELECT count(*) FROM conference
easy
1,054
conference
[ "conference" ]
What is the total number of conferences?
SELECT count(*) FROM conference
easy
1,055
conference
[ "conference" ]
List all distinct conference names.
SELECT DISTINCT conference_name FROM conference
easy
1,056
conference
[ "conference" ]
What are the different conference names?
SELECT DISTINCT conference_name FROM conference
easy
1,057
conference
[ "conference" ]
List all conference name, year, and location.
SELECT conference_name , YEAR , LOCATION FROM conference
medium
1,058
conference
[ "conference" ]
What are the names, years, and locations of all conferences?
SELECT conference_name , YEAR , LOCATION FROM conference
medium
1,059
conference
[ "conference" ]
Show all conference names and the number of times each conference has.
SELECT conference_name , count(*) FROM conference GROUP BY conference_name
medium
1,060
conference
[ "conference" ]
For each conference name, how many times has it occurred?
SELECT conference_name , count(*) FROM conference GROUP BY conference_name
medium
1,061
conference
[ "conference" ]
show all years and the number of conferences in each year.
SELECT YEAR , count(*) FROM conference GROUP BY YEAR
medium
1,062
conference
[ "conference" ]
How many conferences occur every year?
SELECT YEAR , count(*) FROM conference GROUP BY YEAR
medium
1,063
conference
[ "conference" ]
which year has least number of conferences?
SELECT YEAR FROM conference GROUP BY YEAR ORDER BY count(*) LIMIT 1
hard
1,064
conference
[ "conference" ]
What year had the fewest conferences?
SELECT YEAR FROM conference GROUP BY YEAR ORDER BY count(*) LIMIT 1
hard
1,065
conference
[ "conference" ]
Show all locations where at least two conferences are located.
SELECT LOCATION FROM conference GROUP BY LOCATION HAVING count(*) >= 2
easy
1,066
conference
[ "conference" ]
What are all locations that have hosted at least two conferences?
SELECT LOCATION FROM conference GROUP BY LOCATION HAVING count(*) >= 2
easy
1,067
conference
[ "institution" ]
Show the institution name, location and founded year of all institutions.
SELECT institution_name , LOCATION , founded FROM institution
medium
1,068
conference
[ "institution" ]
What are the names, locations, and founding years for all institutions?
SELECT institution_name , LOCATION , founded FROM institution
medium
1,069
conference
[ "institution" ]
How many institution are founded between 1850 and 1900?
SELECT count(*) FROM institution WHERE founded BETWEEN 1850 AND 1900
easy
1,070
conference
[ "institution" ]
How many institutions were founded between 1850 and 1900?
SELECT count(*) FROM institution WHERE founded BETWEEN 1850 AND 1900
easy
1,071
conference
[ "institution" ]
Show the institution name and location of institution that is most recently founded.
SELECT institution_name , LOCATION FROM institution ORDER BY founded DESC LIMIT 1
medium
1,072
conference
[ "institution" ]
What are the names and locations of the most recently-founded institution?
SELECT institution_name , LOCATION FROM institution ORDER BY founded DESC LIMIT 1
medium
1,073
conference
[ "institution", "staff" ]
Show the institution name and the number of staff for each institution founded after 1800.
SELECT T1.institution_name , count(*) FROM institution AS T1 JOIN staff AS T2 ON T1.institution_id = T2.institution_id WHERE T1.founded > 1800 GROUP BY T2.institution_id
hard
1,074
conference
[ "institution", "staff" ]
For each institution id , how many staff members does each institution have that was founded after 1800 ? return their names .
select t1.institution_name , count(*) from institution as t1 join staff as t2 on t1.institution_id = t2.institution_id where t1.founded > 1800 group by t2.institution_id
hard
1,075
conference
[ "institution", "staff" ]
Show institution name which there is no staff in our record.
SELECT institution_name FROM institution WHERE institution_id NOT IN (SELECT institution_id FROM staff)
hard
1,076
conference
[ "institution", "staff" ]
What is the name of the institution with no staff in the records?
SELECT institution_name FROM institution WHERE institution_id NOT IN (SELECT institution_id FROM staff)
hard
1,077
conference
[ "staff" ]
Show all staff name who are above the average age.
SELECT name FROM staff WHERE age > (SELECT avg(age) FROM staff)
hard
1,078
conference
[ "staff" ]
What are the names of all staff members who are older than average?
SELECT name FROM staff WHERE age > (SELECT avg(age) FROM staff)
hard
1,079
conference
[ "staff" ]
What is the maximum and minimum age of all staff from the United States?
SELECT max(age) , min(age) FROM staff
medium
1,080
conference
[ "staff" ]
What are the maximum and minimum ages for all staff?
SELECT max(age) , min(age) FROM staff
medium
1,081
conference
[ "conference", "conference_participation", "staff" ]
Show all conference names which the staff from Canada attends.
SELECT T1.conference_name FROM conference AS T1 JOIN conference_participation AS T2 ON T1.conference_id = T2.conference_id JOIN staff AS T3 ON T2.staff_id = T3.staff_id WHERE T3.nationality = "Canada"
hard
1,082
conference
[ "conference", "conference_participation", "staff" ]
What are the names of all the conferences that has staff from Canada attending?
SELECT T1.conference_name FROM conference AS T1 JOIN conference_participation AS T2 ON T1.conference_id = T2.conference_id JOIN staff AS T3 ON T2.staff_id = T3.staff_id WHERE T3.nationality = "Canada"
hard
1,083
conference
[ "conference_participation", "staff" ]
Show all staff names who have been both speaker and sponsor in some conference.
SELECT T1.name FROM staff AS T1 JOIN conference_participation AS T2 ON T1.staff_id = T2.staff_id WHERE T2.role = 'Speaker' INTERSECT SELECT T1.name FROM staff AS T1 JOIN conference_participation AS T2 ON T1.staff_id = T2.staff_id WHERE T2.role = 'Sponsor'
extra
1,084
conference
[ "conference_participation", "staff" ]
What are the names of the staff members who have been both a speaker and a sponsor at some conference?
SELECT T1.name FROM staff AS T1 JOIN conference_participation AS T2 ON T1.staff_id = T2.staff_id WHERE T2.role = 'Speaker' INTERSECT SELECT T1.name FROM staff AS T1 JOIN conference_participation AS T2 ON T1.staff_id = T2.staff_id WHERE T2.role = 'Sponsor'
extra
1,085
conference
[ "conference", "conference", "conference_participation", "staff" ]
Show all names who have been in both ACL and Naccl.
SELECT T1.name FROM staff AS T1 JOIN conference_participation AS T2 JOIN Conference AS T3 ON T1.staff_id = T2.staff_id AND T2.conference_id = T3.conference_id WHERE T3.Conference_name = 'ACL' INTERSECT SELECT T1.name FROM staff AS T1 JOIN conference_participation AS T2 JOIN conference AS T3 ON T1.staff_id = T2.staff_id AND T2.conference_id = T3.conference_id WHERE T3.Conference_name = 'Naccl'
extra
1,086
conference
[ "conference", "conference", "conference_participation", "staff" ]
What are the names of everbody who has participated in both the ACL and NACCL conferences?
SELECT T1.name FROM staff AS T1 JOIN conference_participation AS T2 JOIN Conference AS T3 ON T1.staff_id = T2.staff_id AND T2.conference_id = T3.conference_id WHERE T3.Conference_name = 'ACL' INTERSECT SELECT T1.name FROM staff AS T1 JOIN conference_participation AS T2 JOIN conference AS T3 ON T1.staff_id = T2.staff_id AND T2.conference_id = T3.conference_id WHERE T3.Conference_name = 'Naccl'
extra
1,087
conference
[ "conference", "conference_participation", "staff" ]
Show all staff names who attend a conference in 2003 or 2004.
SELECT DISTINCT T1.name FROM staff AS T1 JOIN conference_participation AS T2 JOIN Conference AS T3 ON T1.staff_id = T2.staff_id AND T2.conference_id = T3.conference_id WHERE T3.year = 2003 OR T3.year = 2004
extra
1,088
conference
[ "conference", "conference_participation", "staff" ]
What are the staff names who participated in conferences between 2003 or 2004?
SELECT DISTINCT T1.name FROM staff AS T1 JOIN conference_participation AS T2 JOIN Conference AS T3 ON T1.staff_id = T2.staff_id AND T2.conference_id = T3.conference_id WHERE T3.year = 2003 OR T3.year = 2004
extra
1,089
conference
[ "conference_participation", "conference" ]
Show the conference name and year and the number of participants for each conference.
SELECT T1.conference_name , T1.year , count(*) FROM Conference AS T1 JOIN Conference_participation AS T2 ON T1.conference_id = T2.conference_id GROUP BY T2.conference_id
medium
1,090
conference
[ "conference_participation", "conference" ]
For each conference id, what are their names, year, and number of participants?
SELECT T1.conference_name , T1.year , count(*) FROM Conference AS T1 JOIN Conference_participation AS T2 ON T1.conference_id = T2.conference_id GROUP BY T2.conference_id
medium
1,091
conference
[ "conference_participation", "conference" ]
Find the name of the conferences that have the top 2 most number of attendants.
SELECT T1.conference_name FROM Conference AS T1 JOIN Conference_participation AS T2 ON T1.conference_id = T2.conference_id GROUP BY T2.conference_id ORDER BY count(*) DESC LIMIT 2
extra
1,092
conference
[ "conference_participation", "conference" ]
What are the names of the conferences that have the top 2 most people attending?
SELECT T1.conference_name FROM Conference AS T1 JOIN Conference_participation AS T2 ON T1.conference_id = T2.conference_id GROUP BY T2.conference_id ORDER BY count(*) DESC LIMIT 2
extra
1,093
conference
[ "conference_participation", "conference", "staff" ]
Find the name and nationality of the people who did not participate in any ACL conference.
SELECT name , nationality FROM staff WHERE staff_id NOT IN (SELECT T2.staff_id FROM Conference AS T1 JOIN Conference_participation AS T2 ON T1.conference_id = T2.conference_id WHERE T1.Conference_Name = "ACL")
extra
1,094
conference
[ "conference_participation", "conference", "staff" ]
What are the names and nationalities of the people who did not participate in any ACL conferences?
SELECT name , nationality FROM staff WHERE staff_id NOT IN (SELECT T2.staff_id FROM Conference AS T1 JOIN Conference_participation AS T2 ON T1.conference_id = T2.conference_id WHERE T1.Conference_Name = "ACL")
extra
1,095
conference
[ "conference_participation", "conference", "institution", "staff" ]
Find the name and location of the universities that did not have any staff participated in any conference in 2004.
SELECT T1.Institution_Name , T1.location FROM institution AS T1 JOIN staff AS T2 ON T1.institution_id = T2.institution_id WHERE T2.staff_id NOT IN (SELECT T4.staff_id FROM Conference AS T3 JOIN Conference_participation AS T4 ON T3.conference_id = T4.conference_id WHERE T3.year = 2004)
extra
1,096
conference
[ "conference_participation", "conference", "institution", "staff" ]
What are the names and locations of the universities that did not have any staff participating in any conferences in 2004?
SELECT T1.Institution_Name , T1.location FROM institution AS T1 JOIN staff AS T2 ON T1.institution_id = T2.institution_id WHERE T2.staff_id NOT IN (SELECT T4.staff_id FROM Conference AS T3 JOIN Conference_participation AS T4 ON T3.conference_id = T4.conference_id WHERE T3.year = 2004)
extra
1,097
pilot_1
[ "pilotskills" ]
What is the name of the oldest pilot?
SELECT pilot_name FROM PilotSkills ORDER BY age DESC LIMIT 1
medium
1,098
pilot_1
[ "pilotskills" ]
Return the name of the oldest pilot.
SELECT pilot_name FROM PilotSkills ORDER BY age DESC LIMIT 1
medium
1,099
pilot_1
[ "pilotskills" ]
What are the names of pilots whose age is below the average age, ordered by age?
SELECT pilot_name FROM PilotSkills WHERE age < (SELECT avg(age) FROM PilotSkills) ORDER BY age
extra