1sf/bird-sql-train-with-schema huggingface dataset:
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: What was the name of the paper that was published on "IEEE Transactions on Pattern Analysis and Machine Intelligence" in 2011?
Evidence: 'IEEE Transactions on Pattern Analysis and Machine Intelligence' is the FullName of journal; 2011 refers to Year = '2011'; name of the paper refers to Title of paper
SQL: SELECT T2.Title FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T1.FullName = 'IEEE Transactions on Pattern Analysis and Machine Intelligence' AND T2.Year = 2011 AND T2.Title <> ''
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: What are the keywords for the paper which was published on "Modeling Identification and Control" in 1994?
Evidence: 'Modeling Identification and Control' is the FullName of the journal; 1994 refers to Year = '1994'; if the year is "0", it means this paper is preprint, or not published
SQL: SELECT T2.Keyword FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T1.FullName = 'Modeling Identification and Control' AND T2.Year = 1994
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: For the paper which was presented by "Zvezdan Protić", was it preprinted?
Evidence: Year = 0 means this paper is preprint, or not published
SQL: SELECT CASE WHEN T1.Year = 0 THEN 'TRUE' ELSE 'FALSE' END FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T2.Name = 'Zvezdan Protić' AND T1.ConferenceId = 0 AND T1.JournalId = 0
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: At which conference was the paper "Skew-Circulant Preconditioners for Systems of LMF-Based ODE Codes" presented?
Evidence: 'Skew-Circulant Preconditioners for Systems of LMF-Based ODE Codes' is the Title of the paper; conference refers to Conference.FullName
SQL: SELECT T2.FullName FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T1.Title = 'Skew-Circulant Preconditioners for Systems of LMF-Based ODE Codes'
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: Tell the number of papers that were presented at "International Symposium on Software Testing and Analysis" conference.
Evidence: 'International Symposium on Software Testing and Analysis' is the FullName of the conference; papers refers to Paper.Id
SQL: SELECT COUNT(T1.Id) FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T2.FullName = 'International Symposium on Software Testing and Analysis'
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: Gives the home page of the conference where the paper "Increasing the Concurrency in Estelle" is presented.
Evidence: 'Increasing the Concurrency in Estelle' is the Title of the paper; home page of the conference refers to HomePage;
SQL: SELECT DISTINCT T2.HomePage FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T1.Title = 'Increasing the Concurrency in Estelle'
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: How many authors finished the paper "An Improved Active Suspension Model for Attitude Control of Electric Vehicles" together?
Evidence: authors refers to AuthorId; 'An Improved Active Suspension Model for Attitude Control of Electric Vehicles' is the Title of a paper; A paper can have more than one author. Co-authorship can be derived from (paper ID, author ID) pair.
SQL: SELECT COUNT(T2.AuthorId) FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.Title = 'An Improved Active Suspension Model for Attitude Control of Electric Vehicles'
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: In the year 2012, which conference had the most papers presented? Give the short name of the conference.
Evidence: Papers refers to Paper.Id; short name of the conference refers to Conference.ShortName
SQL: SELECT T2.ShortName FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T1.Year = '2012' GROUP BY T1.ConferenceId ORDER BY COUNT(T1.Id) DESC LIMIT 1
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: How many papers were presented at 'ECSQARU' in 2003?
Evidence: Papers refers to Paper.Id; ECSQARU is the ShortName of the conference; 2003 refers to Year = '2003'
SQL: SELECT COUNT(T1.Id) FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T2.ShortName = 'ECSQARU' AND T1.Year = '2003'
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: Show the keywords of the paper that was presented at "International Radar Symposium" in 2012.
Evidence: 'International Radar Symposium' is the FullName of the conference; 2012 refers to Year = '2012'
SQL: SELECT T1.Keyword FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T2.FullName = 'International Radar Symposium' AND T1.Year = 2012
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: How many times more for the papers that were presented at the "International Conference on Thermoelectrics" conference than "International Conference on Wireless Networks, Communications and Mobile Computing“ conference?
Evidence: 'International Conference on Thermoelectrics' AND 'International Conference on Wireless Networks, Communications and Mobile Computing' are the FullName of the conference; Papers refers to Paper.Id; Calculation = SUBTRACT(SUM(Paper.Id where FullName = 'International Conference on Thermoelectrics'), SUM(Paper.Id where FullName = 'International Conference on Wireless Networks, Communications and Mobile Computing'))
SQL: SELECT CAST(SUM(CASE WHEN T2.FullName = 'International Conference on Thermoelectrics' THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN T2.FullName = 'International Conference on Wireless Networks, Communications and Mobile Computing' THEN 1 ELSE 0 END) FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: What is the percentage of preprints of John Van Reenen's papers?
Evidence: year = 0 means this paper is preprint; John Van Reenen is the author's name; papers refers to paper.Id; calculation = DIVIDE(SUM(paper.Id where Name = 'John Van Reenen' AND ConferenceID = 0 AND  JournalId = 0), SUM(paper.Id where Name = 'John Van Reenen'))
SQL: SELECT CAST(SUM(CASE WHEN T1.ConferenceId = 0 AND T1.JournalId = 0 THEN 1 ELSE 0 END) AS REAL) / COUNT(T1.Id) FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T2.Name = 'John Van Reenen'
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: What is the oldest published book?
Evidence: published book refers to Title; the oldest book refers to MIN(Year)
SQL: SELECT Title FROM Paper WHERE Year > 0 ORDER BY Year ASC LIMIT 1
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: Which conference has the longest name?
Evidence: the longest name refers to MAX(length(FullName))
SQL: SELECT FullName FROM Conference ORDER BY LENGTH(FullName) DESC LIMIT 1
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: How many authors are affiliated with NASA Langley Research Center?
Evidence: NASA Langley Research Center is the Affiliation
SQL: SELECT COUNT(Name) FROM Author WHERE Affiliation = 'NASA Langley Research Center'
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: How many journals don’t have a short name?
Evidence: don’t have a short name means ShortName is null
SQL: SELECT COUNT(ShortName) FROM Journal WHERE ShortName = ''
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: How many of the papers are preprinted?
Evidence: year = 0 means this paper is preprint; papers refers to Paper.Id
SQL: SELECT COUNT(Id) FROM Paper WHERE ConferenceId = 0 AND JournalId = 0
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: What is the title of the paper with the most authors?
Evidence: paper refers to paper.Id; paper with the most authors refers to MAX(PaperAuthor.PaperId)
SQL: SELECT T2.Title FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id GROUP BY T1.PaperId ORDER BY COUNT(T1.PaperId) DESC LIMIT 1
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: Which paper published by the "TUBERCLE LUNG DIS" journal is the oldest?
Evidence: paper refers to Title; TUBERCLE LUNG DIS is the ShortName of journal; the oldest refers to MIN(Year)
SQL: SELECT T2.Title FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T1.ShortName = 'TUBERCLE LUNG DIS' ORDER BY T2.Year ASC LIMIT 1
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: List all of the papers written by the author "Karin Rengefors."
Evidence: all the papers refers to Title; Karin Rengefors is the Name of the author
SQL: SELECT T2.Title FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T1.Name = 'Karin Rengefors'
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: How many papers were published by the "Virtual Reality, IEEE Annual International Symposium" conference in 2012?
Evidence: 'Virtual Reality, IEEE Annual International Symposium' is the FullName of conference; in 2012 refers to Year = 2012;
SQL: SELECT COUNT(T2.Id) FROM Conference AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.ConferenceId WHERE T1.FullName = 'Virtual Reality, IEEE Annual International Symposium' AND T2.Year = 2012
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: What is the short name for the journal that published the paper "A Case of Unilateral Ashy Dermatosis"?
Evidence: A Case of Unilateral Ashy Dermatosis refer to Title
SQL: SELECT T2.ShortName FROM Paper AS T1 INNER JOIN Journal AS T2 ON T1.JournalId = T2.Id WHERE T1.Title = 'A Case of Unilateral Ashy Dermatosis'
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: What are the affiliations of the author "Mark A. Musen" written on and off paper?
Evidence: Mark A. Musen refer to Author.Name;
SQL: SELECT T1.Affiliation FROM PaperAuthor AS T1 INNER JOIN Author AS T2 ON T1.AuthorId = T2.Id WHERE T2.Name = 'Mark A. Musen'
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: Who are the authors of the paper "Determination of Planetary Meteorology from Aerobot Flight Sensors"?
Evidence: 'Determination of Planetary Meteorology from Aerobot Flight Sensors' refer to title of the paper
SQL: SELECT T2.Name FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.Title = 'Determination of Planetary Meteorology FROM Aerobot Flight Sensors'
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: List all the titles and their publishing journals from the 60's.
Evidence: from the 60’s refer to Year 1960 BETWEEN 1970


SQL: SELECT T1.Title, T1.JournalId FROM Paper AS T1 INNER JOIN Journal AS T2 ON T1.JournalId = T2.Id WHERE T1.Year >= 1960 AND T1.Year <= 1970
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: Which year did the "Internet, Multimedia Systems and Applications" conference publish the most papers?
Evidence: 'Internet, Multimedia Systems and Applications' is the FullName of paper; published the most papers refers to MAX(COUNT(year))
SQL: SELECT T2.Year FROM Conference AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.ConferenceId WHERE T1.FullName = 'Internet, Multimedia Systems and Applications' GROUP BY T2.Year ORDER BY COUNT(T2.Id) DESC LIMIT 1
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: What are the different ways the name of the author, Randall Davis, is written on their papers?
Evidence: Randall Davis refer to Author.Name
SQL: SELECT DISTINCT T1.Name FROM PaperAuthor AS T1 INNER JOIN Author AS T2 ON T1.AuthorId = T2.Id WHERE T2.Name = 'Randall Davis' AND T1.Name != 'Randall Davis'
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: List all of the conferences where a paper was published in 2008.
Evidence: Published in 2008 refer to Year = 2008


SQL: SELECT DISTINCT T2.FullName FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T1.Year = 2008
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: What is the homepage URL for the journal that published the most papers?
Evidence: published the most papers refer to MAX(JournalId); homepage URL refers to HomePage
SQL: SELECT T2.HomePage FROM Paper AS T1 INNER JOIN Journal AS T2 ON T1.JournalId = T2.Id GROUP BY T1.JournalId ORDER BY COUNT(T1.JournalId) DESC LIMIT 1
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: What is the proportion of the papers that have the keyword "cancer"? Please provide a list of authors and their affiliations.
Evidence: Proportion refer to DIVIDE(COUNT(Keyword = ’cancer’), COUNT(PaperID))
SQL: SELECT CAST(SUM(CASE WHEN T1.Keyword = 'cancer' THEN 1 ELSE 0 END) AS REAL) / COUNT(T1.Id), T2.Name, T2.Affiliation FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: What is the name of author with the ID of 1722?
SQL: SELECT Name FROM Author WHERE Id = 1722
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: How many papers are preprint or not published?
Evidence: preprint or not published refer to Year = 0;
SQL: SELECT COUNT(Id) FROM Paper WHERE Year = 0 OR (ConferenceId = 0 AND JournalId = 0)
Database: authors
Tables: Author, Conference, Journal, Paper, PaperAuthor
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, Affiliation, 1, Id, 1, ShortName, 1, FullName, 1, HomePage, 2, Id, 2, ShortName, 2, FullName, 2, HomePage, 3, Id, 3, Title, 3, Year, 3, ConferenceId, 3, JournalId, 3, Keyword, 4, PaperId, 4, AuthorId, 4, Name, 4, Affiliation
Question: List the name of the author that affiliated with University of Illinois Chicago?
Evidence: 'University of Illinois Chicago' is an affiliation
SQL: SELECT Name FROM Author WHERE Affiliation = 'University of Illinois Chicago'