1sf/bird-sql-train-with-schema huggingface dataset:
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: List the platform ID of the game titled Airborne Troops: Countdown to D-Day.
Evidence: Airborne Troops: Countdown to D-Day refers to game_name = 'Airborne Troops: Countdown to D-Day';
SQL: SELECT T1.platform_id FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T3.game_name = 'Airborne Troops: Countdown to D-Day'
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: How many games available on PSP were released in 2004?
Evidence: PSP refers to platform_name = 'PSP'; released in 2004 refers to release_year = 2004;
SQL: SELECT COUNT(T3.game_id) FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id INNER JOIN game_publisher AS T3 ON T2.game_publisher_id = T3.id WHERE T1.platform_name = 'PSP' AND T2.release_year = 2004
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: What is the genre of the game titled '999: Nine Hours, Nine Persons, Nine Doors' ?
Evidence: genre of the game refers to genre_name; '999: Nine Hours, Nine Persons, Nine Doors' refers to game_name = '999: Nine Hours, Nine Persons, Nine Doors';
SQL: SELECT T2.genre_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T1.game_name = '999: Nine Hours, Nine Persons, Nine Doors'
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: When was the game ID 156 released?
Evidence: when the game was released refers to release_year;
SQL: SELECT T1.release_year FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id WHERE T2.game_id = 156
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: What is the diffrence between the number of games produced by Culture Brain that can be played on SNES and DS?
Evidence: difference = SUBTRACT(SUM(platform_name = 'SNES'), SUM(platform_name = 'DS')); SNES refers to platform_name = SNES ; DS refers to platform_name = 'DS' ;
SQL: SELECT COUNT(CASE WHEN T1.platform_name = 'SNES' THEN T3.game_id ELSE NULL END) - COUNT(CASE WHEN T1.platform_name = 'DS' THEN T3.game_id ELSE NULL END) FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id INNER JOIN game_publisher AS T3 ON T2.game_publisher_id = T3.id INNER JOIN publisher AS T4 ON T3.publisher_id = T4.id WHERE T4.publisher_name = 'Culture Brain'
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: In games that can be played on Wii, what is the percentage of games released in 2007?
Evidence: Wii refers to platform_name = 'Wii'; percentage = MULTIPLY(DIVIDE(SUM(release_year = 2007), COUNT(release_year)), 100.0); released in 2007 refers to release_year = 2007;
SQL: SELECT CAST(COUNT(CASE WHEN T2.release_year = 2007 THEN T3.game_id ELSE NULL END) AS REAL) * 100 / COUNT(T3.game_id) FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id INNER JOIN game_publisher AS T3 ON T2.game_publisher_id = T3.id WHERE T1.platform_name = 'Wii'
Database: video_games
Tables: genre, game, platform, publisher, game_publisher, game_platform, region, region_sales
Columns (table index, column name): -1, *, 0, id, 0, genre_name, 1, id, 1, genre_id, 1, game_name, 2, id, 2, platform_name, 3, id, 3, publisher_name, 4, id, 4, game_id, 4, publisher_id, 5, id, 5, game_publisher_id, 5, platform_id, 5, release_year, 6, id, 6, region_name, 7, region_id, 7, game_platform_id, 7, num_sales
Question: Among games sold in Europe, list the platform ID of games with sales lesser than 30% of the average number of sales.
Evidence: Europe refers to region_name = 'Europe'; sales lesser than 30% of the average number of sales refers to SUM(num_sales) < MULTIPLY(AVG(num_sales), 0.3);
SQL: SELECT DISTINCT T3.platform_id FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id WHERE T1.region_name = 'Europe' AND T2.num_sales * 100 * 100000 < ( SELECT AVG(T2.num_sales * 100000) * 30 FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id WHERE T1.region_name = 'Europe' )
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 University of California Berkeley?
Evidence: affiliated refers to Affiliation; 'University of California Berkeley' is the Affiliation
SQL: SELECT COUNT(Id) FROM Author WHERE Affiliation = 'University of California Berkeley'
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 paper "Stitching videos streamed by mobile phones in real-time" about?
Evidence: "Stitching videos streamed by mobile phones in real-time" is the Title of paper; what the paper is about refers to Keywords
SQL: SELECT Keyword FROM Paper WHERE Title = 'Stitching videos streamed by mobile phones in real-time'
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: Please list the titles of the papers published in the journal "Concepts in Magnetic Resonance Part A" in 2008.
Evidence: journal "Concepts in Magnetic Resonance Part A" refers to FullName = 'Concepts in Magnetic Resonance Part A'; in 2018 refers to Year = 2018
SQL: SELECT T2.Title FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T1.FullName = 'Concepts in Magnetic Resonance Part A' AND T2.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: How many papers were published in the journal "Concepts in Magnetic Resonance Part A"?
Evidence: journal "Concepts in Magnetic Resonance Part A" refers to FullName = 'Concepts in Magnetic Resonance Part A'
SQL: SELECT COUNT(T2.Id) FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T1.FullName = 'Concepts in Magnetic Resonance Part A'
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 url of the journal in which the paper "Area Effects in Cepaea" was published?
Evidence: url refers to HomePage; 'Area Effects in Cepaea' is the Title of paper
SQL: SELECT T1.HomePage FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T2.Title = 'Area Effects in Cepaea'
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: Among the papers published in the journal "Molecular Brain", how many of them were published in the year 2011?
Evidence: "Molecular Brain" is the FullName of journal
SQL: SELECT COUNT(T2.Id) FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T2.Year = 2011 AND T1.FullName = 'Molecular Brain'
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 in 2011 in the journal whose short name is "Mol Brain"?
Evidence: in 2011 refers to Year = 2011; 'Mol Brain' is the ShortName of journal
SQL: SELECT COUNT(T2.Id) FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T2.Year = 2011 AND T1.ShortName = 'Mol Brain'
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 does the paper "Equation Solving in Geometrical Theories" have?
Evidence: "Equation Solving in Geometrical Theories" is the title of paper
SQL: SELECT COUNT(T1.AuthorId) FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T2.Title = 'Equation Solving in Geometrical Theories'
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: Please list the names of the authors of the paper "Area Effects in Cepaea".
Evidence: "Area Effects in Cepaea" is the title of paper
SQL: SELECT T1.Name FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T2.Title = 'Area Effects in Cepaea'
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: 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?
Evidence: "FIBER: A Generalized Framework for Auto-tuning Software" is the Title of paper; affiliated refers to Affiliation;  University of Tokyo is the affiliation organization
SQL: SELECT COUNT(T1.AuthorId) FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T1.Affiliation = 'University of Tokyo' AND T2.Title = 'FIBER: A Generalized Framework for Auto-tuning Software'
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: Please list the titles of the paper whose authors include Klaus Zimmermann.
Evidence: "Klaus Zimmermann" is the name of author
SQL: SELECT T2.Title FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T1.Name = 'Klaus Zimmermann'
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 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?
Evidence: "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
SQL: SELECT T1.Name FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T2.Title = 'Incremental Extraction of Keyterms for Classifying Multilingual Documents in the Web' AND T1.Affiliation = 'National Taiwan University Department of Computer Science and Information Engineering Taiwan'
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 published in 1995 and whose author included Thomas Wiegand?
Evidence: published in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author
SQL: SELECT T2.Title FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T1.Name = 'Thomas Wiegand' AND T2.Year = 1995
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 whose authors include Thomas Wiegand were published in 1995?
Evidence: published in 1995 refers to Year = 1995; 'Thomas Wiegand' is the name of author
SQL: SELECT COUNT(T2.Title) FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T1.Name = 'Thomas Wiegand' AND T2.Year = 1995
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 average number of papers published in the journal "Molecular Brain" every year from 2008 to 2011?
Evidence: "Molecular Brain" is the FullName of journal; year from 2008 to 2011 refers to Year BETWEEN 2008 AND 2011; average = Divide (Count(Id),4)
SQL: SELECT CAST(COUNT(T2.Id) AS REAL) / COUNT(DISTINCT T2.Year) FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T1.FullName = 'Molecular Brain' AND T2.Year BETWEEN 2008 AND 2011
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 more papers in total were published in the journal "Cases Journal" than in the journal "Molecular Brain" in percentage?
Evidence: "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
SQL: SELECT SUM(CASE WHEN T1.FullName = 'Cases Journal' THEN 1 ELSE 0 END) - SUM(CASE WHEN T1.FullName = 'Molecular Brain' THEN 1 ELSE 0 END) AS DIFF FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId
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 have a word "computing" in its full name?
Evidence: word computing refers to FullName LIKE '%computing%'
SQL: SELECT COUNT(Id) FROM Journal WHERE FullName LIKE '%computing%'
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: Enumerate the paper and author ID of authors with affiliation with Cairo Microsoft Innovation Lab.
Evidence: "Cairo Microsoft Innovation Lab" is the Affiliation organization
SQL: SELECT PaperId, AuthorId FROM PaperAuthor WHERE Affiliation LIKE 'Cairo Microsoft Innovation Lab%'
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 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
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 down the author ID of authors with a name of "Peter".
Evidence: "Peter" is the name of author
SQL: SELECT AuthorId FROM PaperAuthor WHERE Name = 'Peter'
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 title of papers with a conference ID from 160 to 170, include their conference short name.
Evidence: conference ID from 160 to 170 refers to ConferenceId BETWEEN 160 AND 170
SQL: SELECT DISTINCT T1.Title, T2.ShortName FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T1.ConferenceId BETWEEN 160 AND 170
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 and journal homepage of the latest published paper?
Evidence: latest published paper refers to Max(Year)
SQL: SELECT T1.Title, T2.HomePage FROM Paper AS T1 INNER JOIN Journal AS T2 ON T1.JournalId = T2.Id ORDER BY T1.Year 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: In year 1999, list the titles and conference's short name of paper authored by someone named "Philip".
Evidence: in year 1999 refers to Year = 1999;  someone named "Philip" refers to Name LIKE 'Philip%'
SQL: SELECT T1.Title, T3.ShortName FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId INNER JOIN Conference AS T3 ON T1.ConferenceId = T3.Id WHERE T1.Year = 1999 AND T2.Name LIKE 'Philip%'
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 total number and conference's homepage of papers held in a conference with an ID of 187 during 1990 to 2000?
Evidence: 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)
SQL: SELECT COUNT(T2.ConferenceId), T1.HomePage FROM Conference AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.ConferenceId WHERE T2.Year BETWEEN 1990 AND 2000 AND T2.ConferenceId = 187