db_id stringclasses 40
values | query stringlengths 22 608 | question stringlengths 22 185 |
|---|---|---|
aan_1 | SELECT venue FROM paper GROUP BY venue ORDER BY count(*) LIMIT 1 | Which venue has the fewest publications? |
aan_1 | SELECT count(*) FROM Citation WHERE cited_paper_id = "A00-1002" | How many papers cite paper with id A00-1002? |
aan_1 | SELECT count(*) FROM Citation WHERE cited_paper_id = "A00-1002" | Count the number of papers which cited a paper with id A00-1002. |
aan_1 | SELECT count(*) FROM Citation WHERE paper_id = "D12-1027" | How many reference papers does paper with id D12-1027 have? |
aan_1 | SELECT count(*) FROM Citation WHERE paper_id = "D12-1027" | Count the number of references the paper with id D12-1027 has. |
aan_1 | SELECT paper_id , count(*) FROM Citation GROUP BY cited_paper_id ORDER BY count(*) DESC LIMIT 1 | What is the id and the number of citations of the most cited paper? |
aan_1 | SELECT paper_id , count(*) FROM Citation GROUP BY cited_paper_id ORDER BY count(*) DESC LIMIT 1 | Give the id and the number of citations of the most cited paper. |
aan_1 | 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 | Give the title of the paper which cites most number of papers? |
aan_1 | 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 | What is the title of the paper which cites the most other papers? |
aan_1 | SELECT paper_id , count(*) FROM Citation GROUP BY cited_paper_id ORDER BY count(*) DESC LIMIT 10 | List top 10 most cited papers and their numbers of citations. |
aan_1 | SELECT paper_id , count(*) FROM Citation GROUP BY cited_paper_id ORDER BY count(*) DESC LIMIT 10 | What are the 10 most cited papers, and how many citations did each have? |
aan_1 | 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" | How many citations does Mckeown , Kathleen have ? |
aan_1 | 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" | Count the number of citations Mckeown , Kathleen has . |
aan_1 | 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" | How many papers does Mckeown , Kathleen cite ? |
aan_1 | 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" | Count the number of papers Mckeown , Kathleen has cited . |
aan_1 | 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 | Find the name and number of citations of the author who has most citations among all authors? |
aan_1 | 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 | What is the name and number of citations of the author with the greatest number of citations among authors? |
aan_1 | 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" | What are the venues and years where Mckeown , Kathleen had papers ? |
aan_1 | 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" | Which venues and years did Mckeown , Kathleen have papers ? |
aan_1 | 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" | What are the venues and years where Columbia University had papers ? |
aan_1 | 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" | Which venues and years did Columbia University have papers ? |
aan_1 | 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 | Which author had the most papers in the year 2009? |
aan_1 | 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 | What is the name of the author with the most papers in 2009? |
aan_1 | 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 | What are the names of the top 3 affiliations that have the most papers in year 2009? |
aan_1 | 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 | Which 3 affiliations had the most papers in 2009? |
aan_1 | 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" | How many papers does Columbia University have in or before 2009 ? |
aan_1 | 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" | Count the number of papers Columbia University had during or prior to 2009 . |
aan_1 | 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" | How many papers does Stanford University have between 2000 and 2009? |
aan_1 | 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" | Count the number of papers Stanford University had between 2000 and 2009. |
aan_1 | 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 | What is the title of the paper that has most number of authors? |
aan_1 | 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 | Give the title of the paper with the most authors. |
aan_1 | 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" | How many collaborators has Mckeown , Kathleen had ? |
aan_1 | 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" | Count the number of collaborators that Mckeown , Kathleen has had . |
aan_1 | 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 | Who has the most papers co-authored with Mckeown , Kathleen ? |
aan_1 | 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 | What is the name of the author who has co-authored the most papers with Mckeown , Kathleen ? |
aan_1 | SELECT paper_id FROM Paper WHERE title LIKE "%translation%" | Find the id of the papers whose title has the key word 'translation'. |
aan_1 | SELECT paper_id FROM Paper WHERE title LIKE "%translation%" | What are the ids for papers with titles containing 'translation'? |
aan_1 | SELECT paper_id , title FROM Paper WHERE paper_id NOT IN (SELECT cited_paper_id FROM Citation) | Find the id and title of the papers that are never cited by others. |
aan_1 | SELECT paper_id , title FROM Paper WHERE paper_id NOT IN (SELECT cited_paper_id FROM Citation) | What are the ids and titles for papers that have never been cited? |
aan_1 | 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 | Find the name of the affiliation whose address contains 'China' and publishes the greatest number of papers. |
aan_1 | 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 | What is the name of the affiliation which publishes the greatest number of papers among those whose address contains 'China'. |
aan_1 | SELECT count(*) , venue , YEAR FROM Paper GROUP BY venue , YEAR | Find the number of papers published in different conferences each year. |
aan_1 | SELECT count(*) , venue , YEAR FROM Paper GROUP BY venue , YEAR | How many papers are published in each venue in each year? |
aan_1 | 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 | Find the total number of papers for each affiliation. |
aan_1 | 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 | How many papers has each affiliation published? |
aan_1 | 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 | Find the titles of papers that have more than 50 citations. |
aan_1 | 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 | What are the titles for papers with more than 50 citations? |
aan_1 | 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) | Find the number of authors who did not publish any paper that is cited more than 50 times. |
aan_1 | 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) | How many authors have not published a paper with more than 50 citations? |
aan_1 | 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... | Find the names of authors who published some paper on NAACL and ACL in the year 2009. |
aan_1 | 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... | What are the names of authors who published in both NAACL and ACL in 2009? |
aan_1 | 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") | Find the name of authors who have never published a paper in ACL. |
aan_1 | 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") | What are the names of authors who have not published a paper in ACL? |
conference | SELECT count(*) FROM conference | How many conferences are there? |
conference | SELECT count(*) FROM conference | What is the total number of conferences? |
conference | SELECT DISTINCT conference_name FROM conference | List all distinct conference names. |
conference | SELECT DISTINCT conference_name FROM conference | What are the different conference names? |
conference | SELECT conference_name , YEAR , LOCATION FROM conference | List all conference name, year, and location. |
conference | SELECT conference_name , YEAR , LOCATION FROM conference | What are the names, years, and locations of all conferences? |
conference | SELECT conference_name , count(*) FROM conference GROUP BY conference_name | Show all conference names and the number of times each conference has. |
conference | SELECT conference_name , count(*) FROM conference GROUP BY conference_name | For each conference name, how many times has it occurred? |
conference | SELECT YEAR , count(*) FROM conference GROUP BY YEAR | show all years and the number of conferences in each year. |
conference | SELECT YEAR , count(*) FROM conference GROUP BY YEAR | How many conferences occur every year? |
conference | SELECT YEAR FROM conference GROUP BY YEAR ORDER BY count(*) LIMIT 1 | which year has least number of conferences? |
conference | SELECT YEAR FROM conference GROUP BY YEAR ORDER BY count(*) LIMIT 1 | What year had the fewest conferences? |
conference | SELECT LOCATION FROM conference GROUP BY LOCATION HAVING count(*) >= 2 | Show all locations where at least two conferences are located. |
conference | SELECT LOCATION FROM conference GROUP BY LOCATION HAVING count(*) >= 2 | What are all locations that have hosted at least two conferences? |
conference | SELECT institution_name , LOCATION , founded FROM institution | Show the institution name, location and founded year of all institutions. |
conference | SELECT institution_name , LOCATION , founded FROM institution | What are the names, locations, and founding years for all institutions? |
conference | SELECT count(*) FROM institution WHERE founded BETWEEN 1850 AND 1900 | How many institution are founded between 1850 and 1900? |
conference | SELECT count(*) FROM institution WHERE founded BETWEEN 1850 AND 1900 | How many institutions were founded between 1850 and 1900? |
conference | SELECT institution_name , LOCATION FROM institution ORDER BY founded DESC LIMIT 1 | Show the institution name and location of institution that is most recently founded. |
conference | SELECT institution_name , LOCATION FROM institution ORDER BY founded DESC LIMIT 1 | What are the names and locations of the most recently-founded institution? |
conference | 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 | Show the institution name and the number of staff for each institution founded after 1800. |
conference | 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 | For each institution id , how many staff members does each institution have that was founded after 1800 ? return their names . |
conference | SELECT institution_name FROM institution WHERE institution_id NOT IN (SELECT institution_id FROM staff) | Show institution name which there is no staff in our record. |
conference | SELECT institution_name FROM institution WHERE institution_id NOT IN (SELECT institution_id FROM staff) | What is the name of the institution with no staff in the records? |
conference | SELECT name FROM staff WHERE age > (SELECT avg(age) FROM staff) | Show all staff name who are above the average age. |
conference | SELECT name FROM staff WHERE age > (SELECT avg(age) FROM staff) | What are the names of all staff members who are older than average? |
conference | SELECT max(age) , min(age) FROM staff | What is the maximum and minimum age of all staff from the United States? |
conference | SELECT max(age) , min(age) FROM staff | What are the maximum and minimum ages for all staff? |
conference | 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" | Show all conference names which the staff from Canada attends. |
conference | 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" | What are the names of all the conferences that has staff from Canada attending? |
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' | Show all staff names who have been both speaker and sponsor in some conference. |
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' | What are the names of the staff members who have been both a speaker and a sponsor at some conference? |
conference | 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.... | Show all names who have been in both ACL and Naccl. |
conference | 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.... | What are the names of everbody who has participated in both the ACL and NACCL conferences? |
conference | 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 | Show all staff names who attend a conference in 2003 or 2004. |
conference | 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 | What are the staff names who participated in conferences between 2003 or 2004? |
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 | Show the conference name and year and the number of participants for each conference. |
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 | For each conference id, what are their names, year, and number of participants? |
conference | 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 | Find the name of the conferences that have the top 2 most number of attendants. |
conference | 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 | What are the names of the conferences that have the top 2 most people attending? |
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") | Find the name and nationality of the people who did not participate in any ACL conference. |
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") | What are the names and nationalities of the people who did not participate in any ACL conferences? |
conference | 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) | Find the name and location of the universities that did not have any staff participated in any conference in 2004. |
conference | 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) | What are the names and locations of the universities that did not have any staff participating in any conferences in 2004? |
pilot_1 | SELECT pilot_name FROM PilotSkills ORDER BY age DESC LIMIT 1 | What is the name of the oldest pilot? |
pilot_1 | SELECT pilot_name FROM PilotSkills ORDER BY age DESC LIMIT 1 | Return the name of the oldest pilot. |
pilot_1 | SELECT pilot_name FROM PilotSkills WHERE age < (SELECT avg(age) FROM PilotSkills) ORDER BY age | What are the names of pilots whose age is below the average age, ordered by age? |
Subsets and Splits
World Countries Non-English Languages
The query filters specific database entries based on a particular query pattern, providing limited insight as it simply retrieves rows that match a specific condition.