Chinastark/bird_dataset huggingface dataset:
Database: authors
Note: "Equation Solving in Geometrical Theories" is the title of paper;
Question: How many authors does the paper "Equation Solving in Geometrical Theories" have?
SQL: SELECT count(paperauthor.authorid) FROM paperauthor INNER JOIN paper ON paperauthor.paperid = paper.id WHERE paper.title = 'Equation Solving in Geometrical Theories'
Database: authors
Note: "Area Effects in Cepaea" is the title of paper;
Question: Please list the names of the authors of the paper "Area Effects in Cepaea".
SQL: SELECT paperauthor.name FROM paperauthor INNER JOIN paper ON paperauthor.paperid = paper.id WHERE paper.title = 'Area Effects in Cepaea'
Database: authors
Note: "FIBER: A Generalized Framework for Auto-tuning Software" is the title of paper; affiliated refers to affiliation;  University of Tokyo is the affiliation organization;
Question: Among the authors of the paper "Stitching videos streamed by mobile phones in real-time", how many of them are affiliated with Cairo Microsoft Innovation Lab?
SQL: SELECT count(paperauthor.authorid) FROM paperauthor INNER JOIN paper ON paperauthor.paperid = paper.id WHERE paperauthor.affiliation = 'University of Tokyo' AND paper.title = 'FIBER: A Generalized Framework for Auto-tuning Software'
Database: authors
Note: "Klaus Zimmermann" is the name of author;
Question: Please list the titles of the paper whose authors include Klaus Zimmermann.
SQL: SELECT paper.title FROM paperauthor INNER JOIN paper ON paperauthor.paperid = paper.id WHERE paperauthor.name = 'Klaus Zimmermann'
Database: authors
Note: "Incremental Extraction of Keyterms for Classifying Multilingual Documents in the Web" is the title of paper; affiliated with refers to affiliation; "National Taiwan University Department of Computer Science and Information Engineering Taiwan" is the affiliation organization;
Question: Which author of the paper "Incremental Extraction of Keyterms for Classifying Multilingual Documents in the Web" is affiliated with National Taiwan University Department of Computer Science and Information Engineering Taiwan?
SQL: SELECT paperauthor.name FROM paperauthor INNER JOIN paper ON paperauthor.paperid = paper.id WHERE paper.title = 'Incremental Extraction of Keyterms for Classifying Multilingual Documents in the Web' AND paperauthor.affiliation = 'National Taiwan University Department of Computer Science and Information Engineering Taiwan'
Database: authors
Note: published in 1995 refers to year = 1995; 'Thomas Wiegand' is the name of author;
Question: What is the title of the paper published in 1995 and whose author included Thomas Wiegand?
SQL: SELECT paper.title FROM paperauthor INNER JOIN paper ON paperauthor.paperid = paper.id WHERE paperauthor.name = 'Thomas Wiegand' AND paper.year = 1995
Database: authors
Note: published in 1995 refers to year = 1995; 'Thomas Wiegand' is the name of author;
Question: How many papers whose authors include Thomas Wiegand were published in 1995?
SQL: SELECT count(paper.title) FROM paperauthor INNER JOIN paper ON paperauthor.paperid = paper.id WHERE paperauthor.name = 'Thomas Wiegand' AND paper.year = 1995
Database: authors
Note: "Molecular Brain" is the fullname of journal; year from 2008 to 2011 refers to year BETWEEN 2008 AND 2011; average = Divide (Count(id),4);
Question: What is the average number of papers published in the journal "Molecular Brain" every year from 2008 to 2011?
SQL: SELECT cast(count(paper.id) AS REAL) / count(DISTINCT paper.year) FROM journal INNER JOIN paper ON journal.id = paper.journalid WHERE journal.fullname = 'Molecular Brain' AND paper.year BETWEEN 2008 AND 2011
Database: authors
Note: "Cases journal" and "Molecular Brain" are fullname of journal; more paper in percentage = Subtract(Count(id(fullname = 'Cases journal')), Count(id(fullname = 'Molecular Brain')))/ Count(id(FullNmae = 'Molecular Brain')) * 100;
Question: How many more papers in total were published in the journal "Cases Journal" than in the journal "Molecular Brain" in percentage?
SQL: SELECT sum(CASE WHEN journal.fullname = 'Cases Journal' THEN 1 ELSE 0 END) - sum(CASE WHEN journal.fullname = 'Molecular Brain' THEN 1 ELSE 0 END) AS diff FROM journal INNER JOIN paper ON journal.id = paper.journalid
Database: authors
Note: word computing refers to fullname LIKE '%computing%';
Question: How many journals have a word "computing" in its full name?
SQL: SELECT count(id) FROM journal WHERE fullname LIKE '%computing%'
Database: authors
Note: "Cairo Microsoft Innovation Lab" is the affiliation organization;
Question: Enumerate the paper and author ID of authors with affiliation with Cairo Microsoft Innovation Lab.
SQL: SELECT paperid, authorid FROM paperauthor WHERE affiliation LIKE 'Cairo Microsoft Innovation Lab%'
Database: authors
Question: What is the short name and full name of conference uses the homepage "http://www.informatik.uni-trier.de/~ley/db/conf/ices/index.html"?
SQL: SELECT shortname, fullname FROM conference WHERE homepage = 'http://www.informatik.uni-trier.de/~ley/db/conf/ices/index.html'
Database: authors
Note: "Peter" is the name of author;
Question: List down the author ID of authors with a name of "Peter".
SQL: SELECT authorid FROM paperauthor WHERE name = 'Peter'
Database: authors
Note: conference id from 160 to 170 refers to conferenceid BETWEEN 160 AND 170;
Question: List the title of papers with a conference ID from 160 to 170, include their conference short name.
SQL: SELECT DISTINCT paper.title, conference.shortname FROM paper INNER JOIN conference ON paper.conferenceid = conference.id WHERE paper.conferenceid BETWEEN 160 AND 170
Database: authors
Note: latest published paper refers to Max(year);
Question: What is the title and journal homepage of the latest published paper?
SQL: SELECT paper.title, journal.homepage FROM paper INNER JOIN journal ON paper.journalid = journal.id ORDER BY paper.year DESC LIMIT 1
Database: authors
Note: in year 1999 refers to year = 1999;  someone named "Philip" refers to name LIKE 'Philip%';
Question: In year 1999, list the titles and conference's short name of paper authored by someone named "Philip".
SQL: SELECT paper.title, conference.shortname FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid INNER JOIN conference ON paper.conferenceid = conference.id WHERE paper.year = 1999 AND paperauthor.name LIKE 'Philip%'
Database: authors
Note: id of 187 refers to conferenceid = 187; during 1990 to 2000 refers to year BETWEEN 1990 and 2000; total number of conference refers to Count(conferenceid = 187);
Question: What is the total number and conference's homepage of papers held in a conference with an ID of 187 during 1990 to 2000?
SQL: SELECT count(paper.conferenceid), conference.homepage FROM conference INNER JOIN paper ON conference.id = paper.conferenceid WHERE paper.year BETWEEN 1990 AND 2000 AND paper.conferenceid = 187
Database: authors
Note: published in 2003 refers to year = 2003; 'Department of Network Science, Graduate School of Information Systems, The University of Electro-Communications' is the affiliation organization;
Question: What is the title of the paper published in 2003 by an author with affiliation with Department of Network Science, Graduate School of Information Systems, The University of Electro-Communications?
SQL: SELECT DISTINCT paper.title FROM paperauthor INNER JOIN paper ON paperauthor.paperid = paper.id WHERE paperauthor.affiliation = 'Department of Network Science, Graduate School of Information Systems, The University of Electro-Communications' AND paper.year = 2003
Database: authors
Note: with "chemiluminescence" in its title refers to title LIKE 'chemiluminescence%'; journal id from 245 to 250 refers to journalid BETWEEN 245 AND 250;
Question: List the authors and journal short name of the papers with "chemiluminescence" in its title and has a journal ID from 245 to 250.
SQL: SELECT paperauthor.name, journal.shortname FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid INNER JOIN journal ON paper.journalid = journal.id WHERE paper.journalid BETWEEN 245 AND 250 AND paper.title LIKE '%chemiluminescence%'
Database: authors
Note: conference id of 0 refers to conferenceid = 0; journal id of less than 100 refers to journalid < 100;
Question: Among the papers with conference ID of 0, list down the authors of papers with a journal ID less than 100.
SQL: SELECT DISTINCT paperauthor.name FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid WHERE paper.conferenceid = 0 AND paper.journalid < 100
Database: authors
Note: conference id less than 100 refers to conferenceid < 100; in year 2006 refers to year = 2006;
Question: What is the title and author ID of paper with conference ID less than 100 in year 2006?
SQL: SELECT DISTINCT paper.title, paperauthor.authorid FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid WHERE paper.year = 2006 AND paper.conferenceid < 100
Database: authors
Note: homepage starts with "http://www.informatik.uni-trier.de/~ley/db/conf/" refers to homepage LIKE 'http://www.informatik.uni-trier.de/~ley/db/conf/%';
Question: What are the paper IDs of papers presented in conferences has a homepage starts with "http://www.informatik.uni-trier.de/~ley/db/conf/"?
SQL: SELECT paper.id FROM paper INNER JOIN conference ON paper.conferenceid = conference.id WHERE conference.homepage LIKE 'http://www.informatik.uni-trier.de/~ley/db/conf/%'
Database: authors
Note: in 2000 to 2005 refers to year BETWEEN 2000 AND 2005; a word "social" in its title refers to title = '%SOCIAL%';
Question: What are the journal homepages and author ID of the papers published in 2000 to 2005 with a word "social" in its title?
SQL: SELECT journal.homepage, paperauthor.authorid FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid INNER JOIN journal ON paper.journalid = journal.id WHERE paper.year BETWEEN 2000 AND 2005 AND paper.title LIKE '%SOCIAL%'
Database: authors
Note: published in 2009 refers to year = 2009; journal id of 0 refers to journalid = 0;
Question: What is the author ID and their affiliations of authors of the papers with a journal ID of 0 and published in 2009.
SQL: SELECT DISTINCT paperauthor.authorid, paperauthor.affiliation FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid WHERE paper.journalid = 0 AND paper.year = 2009 AND paperauthor.affiliation IS NOT NULL
Database: authors
Note: journal id of 200 to 300 refers to journalid BETWEEN 200 AND 300; short name starts with A refers to shortname LIKE 'A%'; Percentage = Divide (Count(conferenceid = 0), Count(conferenceid)) * 100;
Question: In papers with journal IDs from 200 to 300 and with its short name starts with A, what is the percentage of papers with conference ID of 0?
SQL: SELECT cast(sum(CASE WHEN paper.conferenceid = 0 THEN 1 ELSE 0 END) AS REAL) * 100 / count(paper.conferenceid) FROM paper INNER JOIN journal ON paper.journalid = journal.id WHERE paper.journalid BETWEEN 200 AND 300 AND journal.shortname LIKE 'A%'
Database: authors
Note: year of 2001 to 2010 refers to year BETWEEN 2001 AND 2010; Percentage = Divide(Count (paperid(year = 2001)), Count (paperid(year BETWEEN 2001 AND 2010))) * 100;
Question: Within the year of 2001 to 2010, find the paper published rate of 2001.
SQL: SELECT cast(sum(CASE WHEN YEAR = 2001 THEN 1 ELSE 0 END) AS REAL) / count(id) FROM paper WHERE YEAR >= 2001 AND YEAR < 2011
Database: authors
Note: "ICWE" is the shortname of conference;
Question: Write down the conference full name of "ICWE" and it's homepage address.
SQL: SELECT fullname, homepage FROM conference WHERE shortname = 'ICWE'
Database: authors
Note: "Standford University" and "Massachusetts Institute of Technolgy" are affiliation organization; affiliated with more author refers to Max(Count(id));
Question: Between "Standford University" and "Massachusetts Institute of Technolgy", which organization had affiliated with more author.?
SQL: SELECT affiliation FROM author WHERE affiliation IN ('Stanford University', 'Massachusetts Institute of Technology') GROUP BY affiliation ORDER BY count(id) DESC LIMIT 1
Database: authors
Note: with affiliation refers to affiliation is not Null; without affiliation refers to affiliation IS NULL; Ration = Count(id(affiliation is NOT NULL)) : Count (id (affiliation IS NULL));
Question: What is the ratio of author with affiliation and without affiliation?
SQL: SELECT cast(sum(CASE WHEN affiliation IS NULL THEN 1 ELSE 0 END) AS REAL) / count(*) FROM author
Database: authors
Note: "University of Oulu" is the affiliation Organization;
Question: Write down the author's name and IDs who are affiliated with Univeristiy of Oulu.
SQL: SELECT name, id FROM author WHERE affiliation = 'University of Oulu'
Database: authors
Note: "Roger J. Marshall" is the name of author; preprinted paper refers to conferenceid = 0 AND journalid = 0;
Question: Write down the title and affiliation of the preprinted paper written by "Roger J.Marshal".
SQL: SELECT paper.title, paperauthor.affiliation FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid WHERE paperauthor.name = 'Roger J. Marshall' AND paper.conferenceid = 0 AND paper.journalid = 0
Database: authors
Note: most number in author refers to Max (Count(paperid));
Question: Find the paper ID, title, published year and journal's full name of the paper which included the most number in author.
SQL: SELECT paper.id, paper.title, paper.year, journal.fullname FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid INNER JOIN journal ON paper.journalid = journal.id GROUP BY paperauthor.authorid ORDER BY count(paperauthor.authorid) DESC LIMIT 1
Database: authors
Note: paper id of 15 refers to paperid = 15;
Question: Describe the paper title, published year, conference's short name and included author names in the paper ID of 15.
SQL: SELECT DISTINCT paper.title, paper.year, conference.shortname, paperauthor.name FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid INNER JOIN conference ON paper.conferenceid = conference.id WHERE paper.id = 15
Database: authors
Note: author id of under 100 refers to authorid < 100; 'Zurich, ETH' is the affiliation;
Question: Among author ID of under 1000, who published the paper in affiliation with Zurich, ETH, provide paper ID, year and keyword if any.
SQL: SELECT paper.id, paper.year, paper.keyword FROM paperauthor INNER JOIN paper ON paperauthor.paperid = paper.id WHERE paperauthor.authorid < 1000 AND paperauthor.affiliation = 'Zurich, ETH'
Database: authors
Note: "Inspection resistant memory: Architectural support for security from physical examination" is the title of paper;  'Microsoft Research, USA' is the affiliation;
Question: Among the author included in the paper of "Inspection resistant memory: Architectural support for security from physical examination", write down the author name and ID who were affiliated with Microsoft Research, USA.
SQL: SELECT paperauthor.name, paper.id FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid WHERE paper.title = 'Inspection resistant memory: Architectural support for security FROM physical examination' AND paperauthor.affiliation = 'Microsoft Research, USA'
Database: authors
Note: "Decreased Saliva Secretion and Down-Regulation of AQP5 in Submandibular Gland in Irradiated Rats" is the title of paper;
Question: Write down the author name, affiliation, jounal short name and full name of the paper "Decreased Saliva Secretion and Down-Regulation of AQP5 in Submandibular Gland in Irradiated Rats".
SQL: SELECT paperauthor.name, paperauthor.affiliation, journal.shortname, journal.fullname FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid INNER JOIN journal ON paper.journalid = journal.id WHERE paper.title = 'Decreased Saliva Secretion and Down-Regulation of AQP5 in Submandibular Gland in Irradiated Rats'
Database: authors
Note: "International Symposium of Robotics Research" is the fullname of conference;
Question: List the paper title and journal ID which were published under the conference name of "International Symposium of Robotics Research".
SQL: SELECT DISTINCT paper.title, paper.journalid FROM conference INNER JOIN paper ON conference.id = paper.conferenceid WHERE conference.fullname = 'International Symposium of Robotics Research' AND paper.year = 2003
Database: authors
Note: "661002" is the authorid;  "Scientific Computing and Imaging Institute, University of Utah, UT 84112, USA" is the affiliation organization;
Question: Name the title, year and keyword of the paper which were written by the author ID of 661002 with the affiliation of "Scientific Computing and Imaging Institute, University of Utah, UT 84112, USA" organization.
SQL: SELECT paper.title, paper.year, paper.keyword FROM paperauthor INNER JOIN paper ON paperauthor.paperid = paper.id WHERE paperauthor.authorid = 661002 AND paperauthor.affiliation = 'Scientific Computing and Imaging Institute, University of Utah, UT 84112, USA'
Database: authors
Note: "IWC" is the shortname of journal;  '2000' and '2010' are year;  Difference = Subtract(Count(paper.id(year = 2000)), Count(paper.id(year = 2010)));
Question: Calculate the differences of the paper number with the journal name of IWC in 2000 and 2010.
SQL: SELECT sum(CASE WHEN paper.year = 2000 THEN 1 ELSE 0 END) - sum(CASE WHEN paper.year = 2010 THEN 1 ELSE 0 END) AS diff FROM journal INNER JOIN paper ON journal.id = paper.journalid WHERE journal.shortname = 'IWC'
Database: authors
Note: valid journal id refers to journalid! = 0 and journalid! = -1; made in 2013 refers to year = 2013;
Question: Provide any four valid Journal ID along with short name and full name of the papers which were made in 2013.
SQL: SELECT DISTINCT paper.journalid, journal.shortname, journal.fullname FROM journal INNER JOIN paper ON journal.id = paper.journalid WHERE paper.year = 2013 AND paper.journalid != 0 AND paper.journalid != -1 LIMIT 4
Database: authors
Note: "MICRO" is the shortname of conference; in 1971 to 1980 refers to year BETWEEN '1971' AND '1980'; in 1991 to 2000 refers to year BETWEEN '1991' AND '2000': Average needed paper = Subtract (Count(paperid(year BETWEEN '1991' AND '2000')), Count(paperid(year BETWEEN '1971' AND '1980')))/10;
Question: Under the conference name of MICRO, calculate how many more paper is needed to published in 1971 to 1980 in average by yearly to get equivalent to the number of paper from 1991 to 2000. Write down the title and author name of the paper that were actually published during 1971 to 1980 with the conference name with MICRO.
SQL: SELECT paper.title, paperauthor.name, conference.fullname FROM conference INNER JOIN paper ON conference.id = paper.conferenceid INNER JOIN paperauthor ON conference.id = paperauthor.paperid WHERE conference.shortname = 'MICRO' AND paper.year BETWEEN '1971' AND '1980'
Database: authors
Note: preprinted or not published refers to year = 0;
Question: How many of the papers are preprinted or not published?
SQL: SELECT count(id) FROM paper WHERE YEAR = 0
Database: authors
Note: "The Dissimilarity Representation as a Tool for Three-Way Data Classification: A 2D Measure" is the title of paper;
Question: State the full name of conference for paper "The Dissimilarity Representation as a Tool for Three-Way Data Classification: A 2D Measure".
SQL: SELECT conference.fullname FROM paper INNER JOIN conference ON paper.conferenceid = conference.id WHERE paper.title = 'The Dissimilarity Representation as a Tool for Three-Way Data Classification: A 2D Measure'
Database: authors
Note: "Energy-efficiency bounds for noise-tolerant dynamic circuits" is the title of paper;
Question: What is the homepage address for paper "Energy-efficiency bounds for noise-tolerant dynamic circuits"?
SQL: SELECT conference.homepage FROM paper INNER JOIN conference ON paper.conferenceid = conference.id WHERE paper.title = 'Energy-efficiency bounds for noise-tolerant dynamic circuits'
Database: authors
Note: paper with id from 101 to 105 refers to id BETWEEN 100 AND 106;
Question: Write down the name of authors for paper with id from 101 to 105.
SQL: SELECT paperauthor.name FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid WHERE paper.id > 100 AND paper.id < 106
Database: authors
Note: published in 2009 refers to year = 2009;
Question: Among the papers published in 2009, pick 10 and list down the conference's short name of these papers.
SQL: SELECT paperauthor.paperid, conference.shortname FROM author INNER JOIN paperauthor ON author.id = paperauthor.authorid INNER JOIN paper ON paperauthor.paperid = paper.id INNER JOIN conference ON paper.conferenceid = conference.id WHERE paper.year = 2009 LIMIT 10
Database: authors
Note: paper "364: Induction of Mixed Chimerism and Transplantation Tolerance in a Non-Human Primate Lung Allograft Model: Early Results" refers to title = '364: Induction of Mixed Chimerism and Transplantation Tolerance in a Non-Human Primate Lung Allograft Model: Early Results';
Question: Write down homepage URL of journal for paper "364: Induction of Mixed Chimerism and Transplantation Tolerance in a Non-Human Primate Lung Allograft Model: Early Results".
SQL: SELECT journal.homepage FROM paper INNER JOIN journal ON paper.journalid = journal.id WHERE paper.title = '364: Induction of Mixed Chimerism and Transplantation Tolerance in a Non-Human Primate Lung Allograft Model: Early Results'
Database: authors
Note: conference "International conference on Internet Computing" refers to fullname = 'International conference on Internet Computing'; paper name refers to title;
Question: List down all paper name that were published in conference "International Conference on Internet Computing".
SQL: SELECT paper.title FROM paper INNER JOIN conference ON paper.conferenceid = conference.id WHERE conference.fullname = 'International Conference on Internet Computing' AND paper.title <> ''
Database: authors
Note: in 2005 refers to year = '2005'; key words of "LOAD; idE; SNP; haplotype; asso- ciation studies" refers to keyword = 'LOAD; idE; SNP; haplotype; asso- ciation studies';
Question: Among papers that were published in 2005, provide the author name of paper with key words of "LOAD; IDE; SNP; haplotype; asso- ciation studies".
SQL: SELECT paperauthor.name FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid WHERE paper.year = 2005 AND paper.keyword = 'KEY WORDS: LOAD IDE SNP haplotype asso- ciation studies'
Database: authors
Note: paper "145 GROWTH HORMONE RECEPTORS AND THE ONSET OF HYPERINSULINEMIA IN THE OBESE ZUCKER RAT: " refers to title like'%145 GROWTH HORMONE RECEPTORS AND THE ONSET OF HYPERINSULINEMIA IN THE OBESE ZUCKER RAT:%';
Question: How many authors have written paper "145 GROWTH HORMONE RECEPTORS AND THE ONSET OF HYPERINSULINEMIA IN THE OBESE ZUCKER RAT: "?
SQL: SELECT count(DISTINCT paperauthor.name) FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid WHERE paper.title = '145 GROWTH HORMONE RECEPTORS AND THE ONSET OF HYPERINSULINEMIA IN THE OBESE ZUCKER RAT: '
Database: authors
Note: 'Jei Keon Chee' is the name of author;
Question: Who are the co-authors for Jei Keon Chae and what is the title of paper written by them?
SQL: SELECT paperauthor.authorid, paper.title FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid WHERE paperauthor.name = 'Jei Keon Chae'
Database: authors
Note: Shueh-Lin Yau is the name of author;
Question: What are the conference name and journal name of paper written by Shueh-Lin Yau? List down the name of co-authors and provide the title of that paper.
SQL: SELECT paper.conferenceid, paper.journalid, paperauthor.name, paper.title FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid INNER JOIN conference ON paper.conferenceid = conference.id INNER JOIN journal ON paper.journalid = journal.id WHERE paperauthor.name = 'Shueh-Lin Yau'
Database: authors
Note: years 1990 and 2000 refers to year BETWEEN '1990' AND '2000'; papers refers to COUNT(id);
Question: How many papers were preprinted between the years 1990 and 2000?
SQL: SELECT count(id) FROM paper WHERE YEAR BETWEEN '1990' AND '2000' AND conferenceid = 0 AND journalid = 0