Chinastark/bird_dataset huggingface dataset:
Database: authors
Note: affiliated with Birkbeck University of London refers to affiliation = 'Birkbeck University of London';
Question: List the names of all authors affiliated with Birkbeck University of London.
SQL: SELECT name FROM author WHERE affiliation = 'Birkbeck University of London'
Database: authors
Note: full name refers to fullname LIKE 'International Symposium%';
Question: List the short name of all conferences whose full name begins with International Symposium.
SQL: SELECT shortname FROM conference WHERE fullname LIKE 'International Symposium%'
Database: authors
Note: do not have a website refers to homepage = '';
Question: How many journals do not have a website?
SQL: SELECT count(homepage) FROM journal WHERE homepage = ''
Database: authors
Note: articles that are preprinted but not published refers to year = 0;
Question: List author name for articles that are preprinted but not published.
SQL: SELECT paperauthor.name FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid WHERE paper.year = 0
Database: authors
Note: topic is Quantum Physics refers to keyword = 'Quantum Physics';
Question: List author affiliation for papers whose topic is Quantum Physics.
SQL: SELECT paperauthor.affiliation FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid WHERE paper.keyword = 'Quantum Physics'
Database: authors
Note: journal was not published but a conference refers to conferenceid ! = 0 And journalid = 0 year ! = 0;
Question: Identify by conference full name all papers in which a journal was not published but a conference.
SQL: SELECT conference.fullname FROM paper INNER JOIN conference ON paper.conferenceid = conference.id WHERE paper.conferenceid != 0 AND paper.journalid = 0 AND paper.year != 0
Database: authors
Note: do not have a website refers to homepage IS NULL OR homepage = '';
Question: Identify by papers title those in which conferences have been published that do not have a website..
SQL: SELECT paper.title FROM conference INNER JOIN paper ON conference.id = paper.conferenceid WHERE conference.homepage = '' AND paper.title <> ''
Database: authors
Note: don't have short name refers to shortname is NULL OR shortname = '';
Question: Identify by publication year in the paper database all journals that don't have short name.
SQL: SELECT DISTINCT paper.year, fullname FROM journal INNER JOIN paper ON journal.id = paper.journalid WHERE journal.shortname = ''
Database: authors
Note: journal 'A combined search for the standard model Higgs boson at s = 1.96 Â TeV' refers to title = 'A combined search for the standard model Higgs boson at s = 1.96 Â TeV';
Question: What is the affiliation of the author writing in the journal 'A combined search for the standard model Higgs boson at s = 1.96 Â TeV'?
SQL: SELECT paperauthor.affiliation FROM paperauthor INNER JOIN paper ON paperauthor.paperid = paper.id WHERE paper.title = 'A combined search for the standard model Higgs boson at s = 1.96 Â TeV'
Database: authors
Note: name of all the journals refers to fullname;
Question: Indicate the name of all the journals published in the paper database in the year 2001.
SQL: SELECT journal.fullname FROM paper INNER JOIN journal ON paper.journalid = journal.id WHERE paper.year = 2001 AND paper.conferenceid > 0 AND paper.journalid > 0
Database: authors
Note: paper titled 'Particle identification using the time-over-threshold method in the ATLAS Transition Radiation Tracker' refers to title = 'Particle identification using the time-over-threshold method in the ATLAS Transition Radiation Tracker';
Question: What is the name of the co-authors of the paper titled 'Particle identification using the time-over-threshold method in the ATLAS Transition Radiation Tracker'?
SQL: SELECT paperauthor.name FROM paperauthor INNER JOIN paper ON paperauthor.paperid = paper.id WHERE paper.title = 'Particle identification using the time-over-threshold method in the ATLAS Transition Radiation Tracker'
Database: authors
Note: the International conference on Database Theory refers to fullname = 'International conference on Database Theory'; published refers to year ! = 0;
Question: In how many papers and in what years was the International Conference on Database Theory published?
SQL: SELECT count(paper.id) AS paper, count(DISTINCT paper.year) AS years FROM paper INNER JOIN conference ON paper.conferenceid = conference.id WHERE YEAR != 0 AND conference.fullname = 'International Conference on Database Theory'
Database: authors
Note: topic is Sustainability refers to keyword = 'Sustainability';
Question: What is the full name of the journals that are published in the database papers whose topic is Sustainability?
SQL: SELECT journal.fullname FROM paper INNER JOIN journal ON paper.journalid = journal.id WHERE paper.keyword = 'Sustainability'
Database: authors
Note: full name includes the word Workshop refers to fullname LIKE '%Workshop%';
Question: What is the name of the authors of papers in which conferences have been published whose full name includes the word Workshop?
SQL: SELECT paperauthor.name FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid INNER JOIN conference ON paper.conferenceid = conference.id WHERE conference.fullname LIKE '%Workshop%'
Database: authors
Note: about Charged particle multiplicity refers to title which contains 'Charged particle multiplicity'; affiliated with INFN refers to affiliation LIKE '%INFN%' ; percentage refers to DIVidE(COUNT(affiliation LIKE '%INFN%' ), COUNT(authorid)) * 100%;
Question: What percentage of authors of the paper about Charged particle multiplicity are affiliated with INFN?
SQL: SELECT cast((sum(CASE WHEN paperauthor.affiliation LIKE '%INFN%' THEN 1 ELSE 0 END)) AS REAL) * 100 / count(paper.id) FROM paperauthor INNER JOIN paper ON paperauthor.paperid = paper.id WHERE paper.title LIKE '%Charged particle multiplicity%'
Database: authors
Note: short name begins with ANN refers to shortname like 'ANN%' ; percentage refers to DIVidE(COUNT(shortname like 'ANN%' ), COUNT(id)) * 100%;  in 1989 refers to year = 1989;
Question: What percentage of journals whose short name begins with ANN were published in the paper database in 1989?
SQL: SELECT cast((sum(CASE WHEN journal.shortname LIKE 'ANN%' THEN 1 ELSE 0 END)) AS REAL) * 100 / count(journal.shortname) FROM journal INNER JOIN paper ON journal.id = paper.journalid WHERE paper.year = 1989
Database: authors
Note: associated with the Microsoft Research refers to affiliation contains 'Microsoft Research'; paper number 1 refers to paperid = 1;
Question: How many authors were associated with the Microsoft Research when paper number 1 was written?
SQL: SELECT count(paperid) FROM paperauthor WHERE affiliation LIKE '%Microsoft Research%'
Database: authors
Note: article "A Formal Approach to Service Component Architecture" refers to title = 'A Formal Approach to Service Component Architecture'; topic of the article refers to keyword;
Question: What was the topic of the article "A Formal Approach to Service Component Architecture" and when was it published?
SQL: SELECT keyword, YEAR FROM paper WHERE title = 'A Formal Approach to Service Component Architecture'
Database: authors
Note: after the year 2000 refers to year > 2000; preprinted refers to conferenceid = 0 AND journalid = 0; percentage refers to DIVidE(COUNT(conferenceid = 0 AND journalid = 0 AND year > 2000), COUNT(id));
Question: What percentage of papers were preprinted after the year 2000?
SQL: SELECT cast(sum(CASE WHEN YEAR > 2000 THEN 1 ELSE 0 END) AS REAL) * 100 / count(id) FROM paper
Database: authors
Note: paper "Hypermethylation of the <I>TPEF/HPP1</I> Gene in Primary and Metastatic Colorectal Cancers" refers to title = 'Hypermethylation of the <I>TPEF/HPP1</I> Gene in Primary and Metastatic Colorectal Cancers';
Question: Please list the names of the authors of the paper "Hypermethylation of the <I>TPEF/HPP1</I> Gene in Primary and Metastatic Colorectal Cancers".
SQL: SELECT paperauthor.name FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid WHERE paper.title = 'Hypermethylation of the <I>TPEF/HPP1</I> Gene in Primary and Metastatic Colorectal Cancers'
Database: authors
Note: paper "Multiple paternity in a natural population of a salamander with long-term sperm storage" refers to title = 'Multiple paternity in a natural population of a salamander with long-term sperm storage';
Question: What is the full name of the journal that published the paper "Multiple paternity in a natural population of a salamander with long-term sperm storage"?
SQL: SELECT journal.fullname FROM paper INNER JOIN journal ON paper.journalid = journal.id WHERE paper.title = 'Multiple paternity in a natural population of a salamander with long-term sperm storage'
Database: authors
Note: journal "Iet Software/iee Proceedings - Software" refers to fullname = 'Iet Software/iee Proceedings - Software'; papers refers to COUNT(journalid);
Question: How many papers were in the journal "Iet Software/iee Proceedings - Software"?
SQL: SELECT count(paper.journalid) FROM paper INNER JOIN journal ON paper.journalid = journal.id WHERE journal.fullname = 'Iet Software/iee Proceedings - Software'
Database: authors
Note: paper number 5 refers to id = 5;
Question: What is the full name of the conference where paper number 5 was published?
SQL: SELECT conference.fullname FROM paper INNER JOIN conference ON paper.conferenceid = conference.id WHERE paper.id = 5
Database: authors
Note: papers that Jundu has written refers to name LIKE '%Jun du%';
Question: Please list the titles of any two papers that Jundu has written.
SQL: SELECT paper.title FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid WHERE paperauthor.name LIKE 'Jun du%' LIMIT 2
Database: authors
Note: paper that was written by Cheng Huang refers to name = 'Cheng Huang'; affiliated with Microsoft refers to affiliation LIKE 'Microsoft %';
Question: What is the title of the paper that was written by Cheng Huang and affiliated with Microsoft?
SQL: SELECT paper.title FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid WHERE paperauthor.name = 'Cheng Huang' AND paperauthor.affiliation = 'Microsoft'
Database: authors
Note: papers of Jean-luc Hainaut refers to name = 'Jean-luc Hainaut';
Question: Please provide the full name of the conference where one of the papers of Jean-luc Hainaut were published.
SQL: SELECT DISTINCT conference.fullname FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid INNER JOIN conference ON paper.conferenceid = conference.id WHERE paperauthor.name = 'Jean-luc Hainaut' LIMIT 1
Database: authors
Note: written by Andrew Cain refers to name = 'Andrew Cain';
Question: What are the three journals that the papers written by Andrew Cain were published in? Please provide your answer with the full name of each journal.
SQL: SELECT journal.fullname FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid INNER JOIN journal ON paper.journalid = journal.id WHERE paperauthor.name = 'Andrew Cain'
Database: authors
Note: paper "FIBER: A Generalized Framework for Auto-tuning Software" refers to title = 'FIBER: A Generalized Framework for Auto-tuning Software'; are affiliated with refers to affiliation;
Question: Please list all of the associations that the authors of the paper "FIBER: A Generalized Framework for Auto-tuning Software" are affiliated with.
SQL: SELECT DISTINCT paperauthor.affiliation FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid WHERE paper.title = 'FIBER: A Generalized Framework for Auto-tuning Software'
Database: authors
Note: papers that are either preprinted or unpublished along refers to year = 0;
Question: Please provide the titles of any two papers that are either preprinted or unpublished along with the full name of the journal to which those papers belong.
SQL: SELECT paper.title, journal.fullname FROM paper INNER JOIN journal ON paper.journalid = journal.id WHERE paper.year < 1 LIMIT 2
Database: authors
Note: papers on the "Materials" topic refers to keyword = 'Materials';
Question: What is the journal's short and full names that feature papers on the "Materials" topic?
SQL: SELECT journal.shortname, journal.fullname FROM paper INNER JOIN journal ON paper.journalid = journal.id WHERE paper.keyword LIKE '%Materials%'
Database: authors
Note: affiliated with the University of Oxford refers to affiliation = 'University of Oxford';
Question: List the names of authors affiliated with the University of Oxford in alphabetical order.
SQL: SELECT name FROM author WHERE affiliation = 'University of Oxford' ORDER BY name ASC
Database: authors
Note: all the international conferences on artificial intelligence refers to fullname LIKE 'International conference on Artificial Intelligence%';
Question: List the short name and home page URL of all the international conferences on artificial intelligence.
SQL: SELECT shortname, homepage FROM conference WHERE fullname LIKE 'International Conference on Artificial Intelligence%'
Database: authors
Question: Find the names of papers which are published in the year 1996.
SQL: SELECT title FROM paper WHERE YEAR = 1996
Database: authors
Note: published in the 2007 refers to year = 2007; Neoplasia journal refers to fullname = 'Neoplasia';
Question: List the title and author's name of papers published in the 2007 Neoplasia journal.
SQL: SELECT paper.title, paperauthor.name FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid INNER JOIN journal ON paper.journalid = journal.id WHERE journal.fullname = 'Neoplasia' AND paper.year = 2007
Database: authors
Note: authors affiliated with Soongsil University refers to affiliation = 'Soongsil University';
Question: Among the authors affiliated with Soongsil University, list the authors' names and papers published during the year 2000.
SQL: SELECT paper.title, paperauthor.name FROM paperauthor INNER JOIN paper ON paperauthor.paperid = paper.id WHERE paperauthor.affiliation = 'Soongsil University' AND paper.year = 2000
Database: authors
Note: published between 2000 and 2005 refers to year BETWEEN 2000 AND 2005; include the topic optical properties refers to keyword LIKE '%optical properties%';
Question: Give the title and author's name of the papers published between 2000 and 2005 that include the topic optical properties.
SQL: SELECT paper.title, paperauthor.name FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid WHERE paper.keyword LIKE '%optical properties%' AND paper.year BETWEEN 2000 AND 2005 AND paper.title <> ''
Database: authors
Note: published in the World Computer Congress refers to fullname = 'World Computer Congress'; average refers to DIVidE(COUNT(fullname = 'World Computer Congress'), COUNT(id));
Question: What is the average number of papers published in the World Computer Congress each year?
SQL: SELECT cast(sum(CASE WHEN journal.fullname = 'International Congress Series' THEN 1 ELSE 0 END) AS REAL) / count(paper.id) AS div1, paper.year FROM paper INNER JOIN journal ON paper.journalid = journal.id GROUP BY paper.year HAVING div1 != 0
Database: authors
Note: in 1997 refers to year = 1997; books that were preprint refers to conferenceid = 0 AND journalid = 0;
Question: Give the Title and author's name of the books that were preprint in 1997.
SQL: SELECT DISTINCT paperauthor.name, paper.title FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid WHERE paper.conferenceid = 0 AND paper.journalid = 0 AND paper.year = 1997 AND paper.title <> ''
Database: authors
Note: published from 2005 to 2010 refers to year BETWEEN 2005 AND 2010; published by Adam Jones refers to name = 'Adam Jones';
Question: Write the titles of papers published by Adam Jones and the journal name in which it was published from 2005 to 2010.
SQL: SELECT paper.title FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid INNER JOIN journal ON paper.journalid = journal.id WHERE paperauthor.name = 'Adam Jones' AND paper.year BETWEEN 2005 AND 2010
Database: authors
Note: Otterbein University is an affiliation;
Question: How many authors is affiliated to the organization "Otterbein University"?
SQL: SELECT count(name) FROM author WHERE affiliation = 'Otterbein University'
Database: authors
Note: 'Subcellular localization of nuclease in barley aleurone' is the title of paper;
Question: How many authors drafted the paper "Subcellular localization of nuclease in barley aleurone"?
SQL: SELECT count(DISTINCT paperauthor.name) FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid WHERE paper.title = 'Subcellular localization of nuclease in barley aleurone'
Database: authors
Note: 'Extended Fuzzy Regression Models' is the title of paper; full name of the conference refers to fullname;
Question: What is the full name of the conference in which the paper titled "Extended Fuzzy Regression Models" was published?
SQL: SELECT conference.fullname FROM paper INNER JOIN conference ON paper.conferenceid = conference.id WHERE paper.title = 'Extended Fuzzy Regression Models'
Database: authors
Note: 'Mathematics of Program Construction' is the fullname of conference;
Question: How many papers are published under the conference "Mathematics of Program Construction "?
SQL: SELECT count(paper.id) FROM paper INNER JOIN conference ON paper.conferenceid = conference.id WHERE conference.fullname = 'Mathematics of Program Construction'
Database: authors
Note: 'Open Sourcing Social Solutions (Building Communities of Change)' is a title of the paper; author refers to paperauthor.name;
Question: Who is the author of the paper titled "Open Sourcing Social Solutions (Building Communities of Change)"?
SQL: SELECT paperauthor.name FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid WHERE paper.title = 'Open Sourcing Social Solutions (Building Communities of Change)'
Database: authors
Note: Jianli Hua is the author of a paper;
Question: List all the title of the paper that Jianli Hua published.
SQL: SELECT paper.title FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid WHERE paperauthor.name = 'Jianli Hua'
Database: authors
Note: 'Testing timed automata' is a title of a paper; Who authored refers to paperauthor.name;
Question: Who authored the paper titled "Testing timed automata "?
SQL: SELECT paperauthor.name FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid WHERE paper.title = 'Testing timed automata'
Database: authors
Note: SSPR is a shortname; papers refers to paper.id;
Question: How many papers are published in year 2000 under the conference "SSPR"?
SQL: SELECT count(paper.id) FROM paper INNER JOIN conference ON paper.conferenceid = conference.id WHERE paper.year = 2000 AND conference.shortname = 'SSPR'
Database: authors
Note: 'Theoretical Computer Science' is the fullname; paper refers to title; published in 2003 refers to year = 2003;
Question: List all the paper that the journal "Theoretical Computer Science " published in 2003.
SQL: SELECT DISTINCT paper.title FROM paper INNER JOIN journal ON paper.journalid = journal.id WHERE journal.fullname = 'Theoretical Computer Science' AND paper.year = 2003 AND paper.title <> ''
Database: authors
Note: homepage URL refers to homepage; 'Quality evaluation of long duration audiovisual content' is the title;
Question: What is the conference homepage URL of the paper titled "Quality evaluation of long duration audiovisual content"?
SQL: SELECT conference.homepage FROM paper INNER JOIN conference ON paper.conferenceid = conference.id WHERE paper.title = 'Quality evaluation of long duration audiovisual content'
Database: authors
Note: author refers to paperauthor.name; 'A Randomized Comparison of Sirolimus- Versus Paclitaxel-Eluting Stent Implantation in Patients With Diabetes Mellitus' is the title; 'Asan Medical Center, University of Ulsan College of Medicine, Seoul, Korea' is an affiliation;
Question: Among the author who drafted the paper "A Randomized Comparison of Sirolimus- Versus Paclitaxel-Eluting Stent Implantation in Patients With Diabetes Mellitus", which of them is/are affiliated with the Asan Medical Center, University of Ulsan College of Medicine, Seoul, Korea ?
SQL: SELECT paperauthor.name FROM paper INNER JOIN paperauthor ON paper.id = paperauthor.paperid WHERE paperauthor.affiliation = 'Asan Medical Center, University of Ulsan College of Medicine, Seoul, Korea' AND paper.title = 'A Randomized Comparison of Sirolimus- Versus Paclitaxel-Eluting Stent Implantation in Patients With Diabetes Mellitus'
Database: authors
Note: papers refers to paper.id; 'Software - Practice and Experience' is the fullname of a journal;
Question: How many papers are published under the journal "Software - Practice and Experience"?
SQL: SELECT count(paper.id) FROM paper INNER JOIN journal ON paper.journalid = journal.id WHERE journal.fullname = 'Software - Practice and Experience'
Database: authors
Note: paper refers to paper.title; http://www.irma-international.org/ is the homepage;
Question: List all the paper that were under the conference homepage URL "http://www.irma-international.org/".
SQL: SELECT paper.title FROM paper INNER JOIN conference ON paper.conferenceid = conference.id WHERE conference.homepage = 'http://www.irma-international.org/'
Database: authors
Note: average number of papers refers to DIVidE(count(id), 9); published from 2002 to 2010 refers to year BETWEEN 2002 AND 2010; 'Information and Knowledge Engineering' is the fullname of conference;
Question: Calculate the total average number of papers published from 2002 to 2010 under the conference "Information and Knowledge Engineering".
SQL: SELECT cast(count(paper.id) AS REAL) / count(DISTINCT paper.year) FROM paper INNER JOIN conference ON paper.conferenceid = conference.id WHERE conference.fullname = 'Information and Knowledge Engineering' AND paper.year >= 2002 AND paper.year <= 2010
Database: authors
Note: From year 1991 to 2000 refers to year BETWEEN 1991 AND 2000; papers refers to paper.id; 'International conference on Supercomputing' AND 'Informatik & Schule' are the fullname of conference; calculate the difference between the total number of papers of these two conferences refers to SUBTRACT(SUM(paper.id where fullname = 'International conference on Supercomputing'), SUM(paper.id where fullname = 'Informatik & Schule'));
Question: From year 1991 to 2000, calculate the difference betweeen the total number of papers published under the conference "International Conference on Supercomputing " and "Informatik & Schule"?
SQL: SELECT sum(CASE WHEN conference.fullname = 'Informatik & Schule' THEN 1 ELSE 0 END) - sum(CASE WHEN conference.fullname = 'International Conference on Supercomputing' THEN 1 ELSE 0 END) AS diff FROM paper INNER JOIN conference ON paper.conferenceid = conference.id WHERE paper.year > 1990 AND paper.year < 2001
Database: authors
Note: 'Software - Concepts and Tools / Structured Programming' is the fullname;
Question: What is the short name for "Software - Concepts and Tools / Structured Programming"?
SQL: SELECT shortname FROM journal WHERE fullname = 'Software - Concepts and Tools / Structured Programming'
Database: authors
Note: 'Education, democracy and growth' is the title of a paper;
Question: Which journal was the paper "Education, democracy and growth" published on? Give the full name of the journal.
SQL: SELECT journal.fullname FROM journal INNER JOIN paper ON journal.id = paper.journalid WHERE paper.title = 'Education, democracy and growth'
Database: authors
Note: 'IEEE Transactions on Nuclear Science' is the fullname of journal; 1999 refers to year = '1999'; papers refers to paper.id;
Question: Give the number of papers that were published on "IEEE Transactions on Nuclear Science" in 1999.
SQL: SELECT count(paper.id) FROM journal INNER JOIN paper ON journal.id = paper.journalid WHERE journal.fullname = 'IEEE Transactions on Nuclear Science' AND paper.year = 1999