Search is not available for this dataset
db_id
stringlengths 3
31
| query
stringlengths 20
523
| question
stringlengths 3
224
| schema
stringlengths 589
322M
| query_res
stringlengths 0
363k
|
---|---|---|---|---|
scholar | SELECT DISTINCT COUNT ( DISTINCT t4.citingpaperid ) , t1.authorid FROM venue AS t3 JOIN paper AS t2 ON t3.venueid = t2.venueid JOIN writes AS t1 ON t1.paperid = t2.paperid JOIN cite AS t4 ON t1.paperid = t4.citedpaperid WHERE t3.venuename = "CVPR" GROUP BY t1.authorid ORDER BY COUNT ( DISTINCT t4.citingpaperid ) DESC; | who is the most cited author at CVPR ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t1.authorname , t3.paperid FROM paperkeyphrase AS t2 JOIN keyphrase AS t5 ON t2.keyphraseid = t5.keyphraseid JOIN paper AS t3 ON t3.paperid = t2.paperid JOIN writes AS t4 ON t4.paperid = t3.paperid JOIN author AS t1 ON t4.authorid = t1.authorid WHERE t1.authorname != "chris dyer" AND t5.keyphrasename = "syntactic parsing"; | what are some syntactic parsing papers that chris dyer did not write ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t1.authorname , t3.paperid FROM paperkeyphrase AS t2 JOIN keyphrase AS t5 ON t2.keyphraseid = t5.keyphraseid JOIN paper AS t3 ON t3.paperid = t2.paperid JOIN writes AS t4 ON t4.paperid = t3.paperid JOIN author AS t1 ON t4.authorid = t1.authorid WHERE t1.authorname != "chris dyer" AND t5.keyphrasename = "syntactic parsing"; | are there any syntactic parsing papers not written by chris dyer ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t1.authorname , t3.paperid FROM paperkeyphrase AS t2 JOIN keyphrase AS t5 ON t2.keyphraseid = t5.keyphraseid JOIN paper AS t3 ON t3.paperid = t2.paperid JOIN writes AS t4 ON t4.paperid = t3.paperid JOIN author AS t1 ON t4.authorid = t1.authorid WHERE t1.authorname != "chris dyer" AND t5.keyphrasename = "syntactic parsing"; | what are syntactic parsing papers not written by chris dyer | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t1.authorname , t3.paperid FROM paperkeyphrase AS t2 JOIN keyphrase AS t5 ON t2.keyphraseid = t5.keyphraseid JOIN paper AS t3 ON t3.paperid = t2.paperid JOIN writes AS t4 ON t4.paperid = t3.paperid JOIN author AS t1 ON t4.authorid = t1.authorid WHERE t1.authorname != "chris dyer" AND t5.keyphrasename = "syntactic parsing"; | syntactic parsing papers not written by chris dyer | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT paperid FROM paper WHERE YEAR = ( SELECT MAX ( YEAR ) FROM paper ); | papers published in the last year | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT COUNT ( t3.paperid ) , t3.year FROM writes AS t2 JOIN author AS t1 ON t2.authorid = t1.authorid JOIN paper AS t3 ON t2.paperid = t3.paperid WHERE t1.authorname = "benjamin mako hill" GROUP BY t3.year ORDER BY t3.year; | When was benjamin mako hill 's first publication ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT COUNT ( t3.paperid ) , t3.year FROM writes AS t2 JOIN author AS t1 ON t2.authorid = t1.authorid JOIN paper AS t3 ON t2.paperid = t3.paperid WHERE t1.authorname = "benjamin mako hill" GROUP BY t3.year ORDER BY t3.year; | When was benjamin mako hill 's first paper written ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT COUNT ( t3.paperid ) , t3.year FROM writes AS t2 JOIN author AS t1 ON t2.authorid = t1.authorid JOIN paper AS t3 ON t2.paperid = t3.paperid WHERE t1.authorname = "ameet soni" GROUP BY t3.year ORDER BY t3.year; | When did ameet soni publish ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT COUNT ( t4.citingpaperid ) , t3.authorid FROM writes AS t2 JOIN author AS t1 ON t2.authorid = t1.authorid JOIN cite AS t4 ON t2.paperid = t4.citedpaperid JOIN writes AS t3 ON t3.paperid = t4.citingpaperid WHERE t1.authorname = "Daniel A Reed" GROUP BY t3.authorid ORDER BY COUNT ( t4.citingpaperid ) DESC; | Who cites Daniel A Reed the most | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT COUNT ( t4.citingpaperid ) , t3.authorid FROM writes AS t2 JOIN author AS t1 ON t2.authorid = t1.authorid JOIN cite AS t4 ON t2.paperid = t4.citedpaperid JOIN writes AS t3 ON t3.paperid = t4.citingpaperid WHERE t1.authorname = "Daniel A Reed" GROUP BY t3.authorid ORDER BY COUNT ( t4.citingpaperid ) DESC; | Who cites Daniel A Reed most ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT COUNT ( t1.paperid ) FROM venue AS t2 JOIN paper AS t1 ON t2.venueid = t1.venueid WHERE t2.venuename = "sigir"; | how many papers are in sigir ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| (0,)
|
scholar | SELECT DISTINCT COUNT ( t1.paperid ) FROM venue AS t2 JOIN paper AS t1 ON t2.venueid = t1.venueid WHERE t2.venuename = "sigir"; | how many papers does sigir have ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| (0,)
|
scholar | SELECT DISTINCT COUNT ( t1.paperid ) FROM venue AS t2 JOIN paper AS t1 ON t2.venueid = t1.venueid WHERE t2.venuename = "sigir"; | how many papers are published in sigir ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| (0,)
|
scholar | SELECT DISTINCT COUNT ( t1.paperid ) FROM venue AS t2 JOIN paper AS t1 ON t2.venueid = t1.venueid WHERE t2.venuename = "sigir"; | number of papers in sigir conference | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| (0,)
|
scholar | SELECT DISTINCT t3.citingpaperid FROM paper AS t1 JOIN cite AS t3 ON t1.paperid = t3.citedpaperid JOIN venue AS t2 ON t2.venueid = t1.venueid WHERE t2.venuename = "ACL" GROUP BY t3.citingpaperid HAVING COUNT ( DISTINCT t3.citedpaperid ) < 5; | what papers have fewer than 5 citations by ACL papers ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t3.citingpaperid FROM paper AS t1 JOIN cite AS t3 ON t1.paperid = t3.citedpaperid JOIN venue AS t2 ON t2.venueid = t1.venueid WHERE t2.venuename = "ACL" GROUP BY t3.citingpaperid HAVING COUNT ( DISTINCT t3.citedpaperid ) < 5; | ACL papers with less than 5 citations | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t3.citingpaperid FROM paper AS t1 JOIN cite AS t3 ON t1.paperid = t3.citedpaperid JOIN venue AS t2 ON t2.venueid = t1.venueid WHERE t2.venuename = "ACL" GROUP BY t3.citingpaperid HAVING COUNT ( DISTINCT t3.citedpaperid ) < 5; | what ACL papers have less than 5 citations ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t3.citingpaperid FROM paper AS t1 JOIN cite AS t3 ON t1.paperid = t3.citedpaperid JOIN venue AS t2 ON t2.venueid = t1.venueid WHERE t2.venuename = "ACL" GROUP BY t3.citingpaperid HAVING COUNT ( DISTINCT t3.citedpaperid ) < 5; | what papers have fewer than 5 citations by ACL papers | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t3.paperid , t3.year FROM writes AS t2 JOIN author AS t1 ON t2.authorid = t1.authorid JOIN paper AS t3 ON t2.paperid = t3.paperid WHERE t1.authorname = "Mirella Lapata" ORDER BY t3.year DESC LIMIT 5; | What are the 5 most recent papers of Mirella Lapata ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t1.paperid FROM venue AS t2 JOIN paper AS t1 ON t2.venueid = t1.venueid WHERE t1.year = 2015 AND t2.venuename = "pldi"; | What were the papers published at pldi 2015 ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t1.paperid FROM venue AS t2 JOIN paper AS t1 ON t2.venueid = t1.venueid WHERE t1.year = 2015 AND t2.venuename = "pldi"; | Papers from pldi 2015 conference | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t1.paperid FROM venue AS t2 JOIN paper AS t1 ON t2.venueid = t1.venueid WHERE t1.year = 2015 AND t2.venuename = "pldi"; | papers published at pldi 2015 | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t1.paperid FROM venue AS t2 JOIN paper AS t1 ON t2.venueid = t1.venueid WHERE t1.year = 2015 AND t2.venuename = "pldi"; | What are the papers from pldi 2015 ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t1.paperid FROM venue AS t2 JOIN paper AS t1 ON t2.venueid = t1.venueid WHERE t1.year = 2015 AND t2.venuename = "pldi"; | Papers from pldi 2015 ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t1.paperid FROM venue AS t2 JOIN paper AS t1 ON t2.venueid = t1.venueid WHERE t1.year = 2015 AND t2.venuename = "pldi"; | Which papers were accepted in pldi 2015 ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t1.paperid FROM venue AS t2 JOIN paper AS t1 ON t2.venueid = t1.venueid WHERE t1.year = 2015 AND t2.venuename = "pldi"; | What papers were published during the conference pldi 2015 ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t1.paperid FROM venue AS t2 JOIN paper AS t1 ON t2.venueid = t1.venueid WHERE t1.year = 2015 AND t2.venuename = "pldi"; | papers in pldi 2015 | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t1.paperid FROM venue AS t2 JOIN paper AS t1 ON t2.venueid = t1.venueid WHERE t1.year = 2015 AND t2.venuename = "pldi"; | List of papers in pldi 2015 | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t1.paperid FROM venue AS t2 JOIN paper AS t1 ON t2.venueid = t1.venueid WHERE t1.year = 2015 AND t2.venuename = "pldi"; | pldi papers in 2015 | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t1.paperid FROM venue AS t2 JOIN paper AS t1 ON t2.venueid = t1.venueid WHERE t1.year = 2015 AND t2.venuename = "pldi"; | what papers are published in pldi 2015 | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t1.paperid FROM venue AS t2 JOIN paper AS t1 ON t2.venueid = t1.venueid WHERE t1.year = 2015 AND t2.venuename = "pldi"; | papers from pldi 2015 | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t1.paperid FROM venue AS t2 JOIN paper AS t1 ON t2.venueid = t1.venueid WHERE t1.year = 2015 AND t2.venuename = "pldi"; | pldi papers 2015 | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t1.paperid FROM venue AS t2 JOIN paper AS t1 ON t2.venueid = t1.venueid WHERE t1.year = 2015 AND t2.venuename = "pldi"; | pldi 2015 conference | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t1.paperid FROM venue AS t2 JOIN paper AS t1 ON t2.venueid = t1.venueid WHERE t1.year = 2015 AND t2.venuename = "pldi"; | pldi best paper award 2015 | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t1.paperid FROM venue AS t2 JOIN paper AS t1 ON t2.venueid = t1.venueid WHERE t1.year = 2015 AND t2.venuename = "pldi"; | pldi 2015 list of papers | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT journalid FROM paper WHERE YEAR = 2011 GROUP BY journalid; | List today 's journals | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT journalid FROM paper WHERE YEAR = 2011 GROUP BY journalid; | List the journals published in March , 2011 | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t1.paperid FROM venue AS t2 JOIN paper AS t1 ON t2.venueid = t1.venueid WHERE t1.title LIKE "neural attention" AND t1.year = 2016 AND t2.venuename = "ACL"; | ACL papers in 2016 with neural attention in the title | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t1.authorname FROM paperkeyphrase AS t2 JOIN keyphrase AS t4 ON t2.keyphraseid = t4.keyphraseid JOIN writes AS t3 ON t3.paperid = t2.paperid JOIN author AS t1 ON t3.authorid = t1.authorid WHERE t4.keyphrasename = "Machine Learning" GROUP BY t1.authorname ORDER BY COUNT ( DISTINCT t3.paperid ) DESC; | Who writes a lot of papers in Machine Learning ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t1.authorname FROM paperkeyphrase AS t2 JOIN keyphrase AS t4 ON t2.keyphraseid = t4.keyphraseid JOIN writes AS t3 ON t3.paperid = t2.paperid JOIN author AS t1 ON t3.authorid = t1.authorid WHERE t4.keyphrasename LIKE "sensor fusion"; | Who wrote sensor fusion ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t1.authorname FROM paperkeyphrase AS t2 JOIN keyphrase AS t4 ON t2.keyphraseid = t4.keyphraseid JOIN writes AS t3 ON t3.paperid = t2.paperid JOIN author AS t1 ON t3.authorid = t1.authorid WHERE t4.keyphrasename LIKE "sensor fusion"; | Authors of papers on sensor fusion | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t1.authorname FROM paperkeyphrase AS t2 JOIN keyphrase AS t4 ON t2.keyphraseid = t4.keyphraseid JOIN writes AS t3 ON t3.paperid = t2.paperid JOIN author AS t1 ON t3.authorid = t1.authorid WHERE t4.keyphrasename LIKE "sensor fusion"; | people working on sensor fusion | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t1.authorname FROM paperkeyphrase AS t2 JOIN keyphrase AS t4 ON t2.keyphraseid = t4.keyphraseid JOIN writes AS t3 ON t3.paperid = t2.paperid JOIN author AS t1 ON t3.authorid = t1.authorid WHERE t4.keyphrasename LIKE "sensor fusion"; | Who publishes in sensor fusion ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t1.authorname FROM paperkeyphrase AS t2 JOIN keyphrase AS t4 ON t2.keyphraseid = t4.keyphraseid JOIN writes AS t3 ON t3.paperid = t2.paperid JOIN author AS t1 ON t3.authorid = t1.authorid WHERE t4.keyphrasename LIKE "sensor fusion"; | who publishes papers about sensor fusion | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT COUNT ( t5.citingpaperid ) FROM writes AS t3 JOIN author AS t2 ON t3.authorid = t2.authorid JOIN cite AS t5 ON t3.paperid = t5.citedpaperid JOIN writes AS t4 ON t4.paperid = t5.citingpaperid JOIN author AS t1 ON t4.authorid = t1.authorid WHERE t2.authorname = "michael i. jordan" AND t1.authorname = "dan klein"; | how many papers by dan klein are cited by michael i. jordan | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| (0,)
|
scholar | SELECT DISTINCT COUNT ( t5.citingpaperid ) FROM writes AS t3 JOIN author AS t2 ON t3.authorid = t2.authorid JOIN cite AS t5 ON t3.paperid = t5.citedpaperid JOIN writes AS t4 ON t4.paperid = t5.citingpaperid JOIN author AS t1 ON t4.authorid = t1.authorid WHERE t2.authorname = "michael i. jordan" AND t1.authorname = "dan klein"; | how many of dan klein 's papers cite michael i. jordan | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| (0,)
|
scholar | SELECT DISTINCT t5.authorid FROM writes AS t3 JOIN author AS t2 ON t3.authorid = t2.authorid JOIN writes AS t4 ON t4.paperid = t3.paperid JOIN writes AS t5 ON t5.paperid = t4.paperid JOIN author AS t1 ON t4.authorid = t1.authorid WHERE t2.authorname = "Ameet Soni" AND t1.authorname = "Ras Bodik"; | who else was on the paper with Ameet Soni and Ras Bodik ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t3.paperid FROM paperdataset AS t2 JOIN dataset AS t1 ON t2.datasetid = t1.datasetid JOIN paper AS t3 ON t3.paperid = t2.paperid WHERE t1.datasetname = "ImageNet" AND t3.year = 2014; | 2014 papers using ImageNet | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t3.journalid FROM writes AS t2 JOIN author AS t1 ON t2.authorid = t1.authorid JOIN paper AS t3 ON t2.paperid = t3.paperid WHERE t1.authorname = "Takashi Matsumoto" GROUP BY t3.journalid; | What journals are Takashi Matsumoto 's articles published in ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t3.journalid FROM writes AS t2 JOIN author AS t1 ON t2.authorid = t1.authorid JOIN paper AS t3 ON t2.paperid = t3.paperid WHERE t1.authorname = "Takashi Matsumoto" GROUP BY t3.journalid; | What journals has Takashi Matsumoto published in ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t3.journalid FROM writes AS t2 JOIN author AS t1 ON t2.authorid = t1.authorid JOIN paper AS t3 ON t2.paperid = t3.paperid WHERE t1.authorname = "Takashi Matsumoto" GROUP BY t3.journalid; | In what scholarly journals does Takashi Matsumoto publish ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t3.authorid FROM paperkeyphrase AS t1 JOIN keyphrase AS t2 ON t1.keyphraseid = t2.keyphraseid JOIN paper AS t4 ON t4.paperid = t1.paperid JOIN writes AS t3 ON t3.paperid = t4.paperid JOIN author AS t5 ON t3.authorid = t5.authorid WHERE t2.keyphrasename = "Bacterial Wilt" AND t4.year = 2016; | What authors wrote papers about Bacterial Wilt in 2016 ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t3.authorid FROM paperkeyphrase AS t1 JOIN keyphrase AS t2 ON t1.keyphraseid = t2.keyphraseid JOIN paper AS t4 ON t4.paperid = t1.paperid JOIN writes AS t3 ON t3.paperid = t4.paperid JOIN author AS t5 ON t3.authorid = t5.authorid WHERE t2.keyphrasename = "Bacterial Wilt" AND t4.year = 2016; | Who wrote on the topic of Bacterial Wilt in 2016 ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t3.year FROM writes AS t2 JOIN author AS t1 ON t2.authorid = t1.authorid JOIN paper AS t3 ON t2.paperid = t3.paperid WHERE t1.authorname = "Luke S Zettlemoyer" ORDER BY t3.year; | When did Luke S Zettlemoyer publish ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t3.paperid FROM paperkeyphrase AS t2 JOIN keyphrase AS t1 ON t2.keyphraseid = t1.keyphraseid JOIN paper AS t3 ON t3.paperid = t2.paperid WHERE t1.keyphrasename = "question answering" AND t3.year = 2016; | question answering 2016 papers | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t3.paperid FROM paperkeyphrase AS t2 JOIN keyphrase AS t1 ON t2.keyphraseid = t1.keyphraseid JOIN paper AS t3 ON t3.paperid = t2.paperid WHERE t1.keyphrasename = "question answering" AND t3.year = 2016; | What papers were written on question answering in 2016 ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT COUNT ( t3.citingpaperid ) , t1.keyphrasename FROM paperkeyphrase AS t2 JOIN keyphrase AS t1 ON t2.keyphraseid = t1.keyphraseid JOIN cite AS t3 ON t2.paperid = t3.citedpaperid GROUP BY t1.keyphrasename ORDER BY COUNT ( t3.citingpaperid ) DESC; | what keyphrases get most citations ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t3.journalid FROM paperkeyphrase AS t2 JOIN keyphrase AS t1 ON t2.keyphraseid = t1.keyphraseid JOIN paper AS t3 ON t3.paperid = t2.paperid WHERE t1.keyphrasename = "Temporal Data" GROUP BY t3.journalid; | Find journals about Temporal Data . | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t3.journalid FROM paperkeyphrase AS t2 JOIN keyphrase AS t1 ON t2.keyphraseid = t1.keyphraseid JOIN paper AS t3 ON t3.paperid = t2.paperid WHERE t1.keyphrasename = "Temporal Data" GROUP BY t3.journalid; | List the journals related to Temporal Data | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t2.paperid FROM paperdataset AS t3 JOIN dataset AS t5 ON t3.datasetid = t5.datasetid JOIN paperkeyphrase AS t4 ON t4.paperid = t3.paperid JOIN paper AS t2 ON t2.paperid = t3.paperid JOIN venue AS t6 ON t6.venueid = t2.venueid JOIN keyphrase AS t1 ON t4.keyphraseid = t1.keyphraseid WHERE t5.datasetname = "Jeopardy! Questions" AND t1.keyphrasename = "Parsing" AND t2.year = 2014 AND t6.venuename = "ACL"; | which ACL 2014 papers about Parsing used Jeopardy! Questions ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t2.paperid FROM paperdataset AS t3 JOIN dataset AS t5 ON t3.datasetid = t5.datasetid JOIN paperkeyphrase AS t4 ON t4.paperid = t3.paperid JOIN paper AS t2 ON t2.paperid = t3.paperid JOIN venue AS t6 ON t6.venueid = t2.venueid JOIN keyphrase AS t1 ON t4.keyphraseid = t1.keyphraseid WHERE t5.datasetname = "Jeopardy! Questions" AND t1.keyphrasename = "Parsing" AND t2.year = 2014 AND t6.venuename = "ACL"; | Parsing papers using Jeopardy! Questions published at ACL 2014 | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t2.paperid FROM paperdataset AS t3 JOIN dataset AS t5 ON t3.datasetid = t5.datasetid JOIN paperkeyphrase AS t4 ON t4.paperid = t3.paperid JOIN paper AS t2 ON t2.paperid = t3.paperid JOIN venue AS t6 ON t6.venueid = t2.venueid JOIN keyphrase AS t1 ON t4.keyphraseid = t1.keyphraseid WHERE t5.datasetname = "Jeopardy! Questions" AND t1.keyphrasename = "Parsing" AND t2.year = 2014 AND t6.venuename = "ACL"; | Parsing papers from ACL 2014 using Jeopardy! Questions | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t2.paperid FROM paperdataset AS t3 JOIN dataset AS t5 ON t3.datasetid = t5.datasetid JOIN paperkeyphrase AS t4 ON t4.paperid = t3.paperid JOIN paper AS t2 ON t2.paperid = t3.paperid JOIN venue AS t6 ON t6.venueid = t2.venueid JOIN keyphrase AS t1 ON t4.keyphraseid = t1.keyphraseid WHERE t5.datasetname = "Jeopardy! Questions" AND t1.keyphrasename = "Parsing" AND t2.year = 2014 AND t6.venuename = "ACL"; | Parsing papers from ACL 2014 that used Jeopardy! Questions | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t2.paperid FROM paperdataset AS t3 JOIN dataset AS t5 ON t3.datasetid = t5.datasetid JOIN paperkeyphrase AS t4 ON t4.paperid = t3.paperid JOIN paper AS t2 ON t2.paperid = t3.paperid JOIN venue AS t6 ON t6.venueid = t2.venueid JOIN keyphrase AS t1 ON t4.keyphraseid = t1.keyphraseid WHERE t5.datasetname = "Jeopardy! Questions" AND t1.keyphrasename = "Parsing" AND t2.year = 2014 AND t6.venuename = "ACL"; | papers about Parsing that used Jeopardy! Questions and were published at ACL 2014 | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t2.journalid FROM paper AS t3 JOIN journal AS t2 ON t3.journalid = t2.journalid JOIN writes AS t4 ON t4.paperid = t3.paperid JOIN author AS t1 ON t4.authorid = t1.authorid WHERE t1.authorname = "linda shapiro"; | in what journals does linda shapiro publish ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t2.journalid FROM paper AS t3 JOIN journal AS t2 ON t3.journalid = t2.journalid JOIN writes AS t4 ON t4.paperid = t3.paperid JOIN author AS t1 ON t4.authorid = t1.authorid WHERE t1.authorname = "linda shapiro"; | Which journals did linda shapiro submit papers to ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t1.authorid FROM venue AS t3 JOIN paper AS t2 ON t3.venueid = t2.venueid JOIN writes AS t1 ON t1.paperid = t2.paperid WHERE t3.venuename = "NIPS"; | NIPS authors | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t1.authorid FROM venue AS t3 JOIN paper AS t2 ON t3.venueid = t2.venueid JOIN writes AS t1 ON t1.paperid = t2.paperid WHERE t3.venuename = "NIPS"; | who are the authors at NIPS ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t1.authorid FROM venue AS t3 JOIN paper AS t2 ON t3.venueid = t2.venueid JOIN writes AS t1 ON t1.paperid = t2.paperid WHERE t3.venuename = "NIPS"; | who authored papers at NIPS ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t1.authorid FROM venue AS t3 JOIN paper AS t2 ON t3.venueid = t2.venueid JOIN writes AS t1 ON t1.paperid = t2.paperid WHERE t3.venuename = "NIPS"; | who publishes in NIPS ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t1.authorid FROM venue AS t3 JOIN paper AS t2 ON t3.venueid = t2.venueid JOIN writes AS t1 ON t1.paperid = t2.paperid WHERE t3.venuename = "NIPS"; | who has papers at NIPS ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT COUNT ( t3.paperid ) , t4.venueid FROM paperkeyphrase AS t2 JOIN keyphrase AS t1 ON t2.keyphraseid = t1.keyphraseid JOIN paper AS t3 ON t3.paperid = t2.paperid JOIN venue AS t4 ON t4.venueid = t3.venueid WHERE t1.keyphrasename = "deep learning" GROUP BY t4.venueid ORDER BY COUNT ( t3.paperid ) DESC; | which venue publishes the most papers about deep learning | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT COUNT ( t3.paperid ) FROM paper AS t3 JOIN journal AS t2 ON t3.journalid = t2.journalid JOIN paperkeyphrase AS t1 ON t3.paperid = t1.paperid WHERE t2.journalname = "Cell" AND t3.year = 2015; | How many publications were added to the Cell journal this year ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| (0,)
|
scholar | SELECT DISTINCT COUNT ( t3.paperid ) FROM paper AS t3 JOIN journal AS t2 ON t3.journalid = t2.journalid JOIN paperkeyphrase AS t1 ON t3.paperid = t1.paperid WHERE t2.journalname = "Cell" AND t3.year = 2015; | How many articles were published in the Cell journal in 2015 ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| (0,)
|
scholar | SELECT DISTINCT t3.title FROM writes AS t2 JOIN author AS t1 ON t2.authorid = t1.authorid JOIN paper AS t3 ON t2.paperid = t3.paperid WHERE t1.authorname = "Donald E Knuth"; | What are all the publication titles by Donald E Knuth ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t3.paperid FROM venue AS t4 JOIN paper AS t3 ON t4.venueid = t3.venueid JOIN writes AS t2 ON t2.paperid = t3.paperid JOIN author AS t1 ON t2.authorid = t1.authorid WHERE t1.authorname = "ali farhadi" AND t3.year = 2016 AND t4.venuename = "eccv"; | papers published in eccv 2016 by ali farhadi | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t3.paperid FROM venue AS t4 JOIN paper AS t3 ON t4.venueid = t3.venueid JOIN writes AS t2 ON t2.paperid = t3.paperid JOIN author AS t1 ON t2.authorid = t1.authorid WHERE t1.authorname = "ali farhadi" AND t3.year = 2016 AND t4.venuename = "eccv"; | Does ali farhadi have a paper in eccv in 2016 ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t3.paperid FROM venue AS t4 JOIN paper AS t3 ON t4.venueid = t3.venueid JOIN writes AS t2 ON t2.paperid = t3.paperid JOIN author AS t1 ON t2.authorid = t1.authorid WHERE t1.authorname = "ali farhadi" AND t3.year = 2016 AND t4.venuename = "eccv"; | papers of ali farhadi in eccv 2016 | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t2.paperid FROM paperdataset AS t3 JOIN dataset AS t1 ON t3.datasetid = t1.datasetid JOIN paperkeyphrase AS t2 ON t2.paperid = t3.paperid JOIN keyphrase AS t4 ON t2.keyphraseid = t4.keyphraseid WHERE t1.datasetname = "YAGO" AND t4.keyphrasename = "Semantic Data"; | What are some papers dealing with Semantic Data in YAGO ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT COUNT ( DISTINCT t2.paperid ) , t1.authorid FROM venue AS t3 JOIN paper AS t2 ON t3.venueid = t2.venueid JOIN writes AS t1 ON t1.paperid = t2.paperid WHERE t3.venuename = "chi" GROUP BY t1.authorid ORDER BY COUNT ( DISTINCT t2.paperid ) DESC; | Who has published more papers in chi ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT COUNT ( DISTINCT t2.paperid ) , t1.authorid FROM venue AS t3 JOIN paper AS t2 ON t3.venueid = t2.venueid JOIN writes AS t1 ON t1.paperid = t2.paperid WHERE t3.venuename = "chi" GROUP BY t1.authorid ORDER BY COUNT ( DISTINCT t2.paperid ) DESC; | Who has written the most papers at chi ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT COUNT ( DISTINCT t2.paperid ) , t1.authorid FROM venue AS t3 JOIN paper AS t2 ON t3.venueid = t2.venueid JOIN writes AS t1 ON t1.paperid = t2.paperid WHERE t3.venuename = "chi" GROUP BY t1.authorid ORDER BY COUNT ( DISTINCT t2.paperid ) DESC; | how is the most prolific author in chi ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT COUNT ( DISTINCT t2.paperid ) , t1.authorid FROM venue AS t3 JOIN paper AS t2 ON t3.venueid = t2.venueid JOIN writes AS t1 ON t1.paperid = t2.paperid WHERE t3.venuename = "chi" GROUP BY t1.authorid ORDER BY COUNT ( DISTINCT t2.paperid ) DESC; | who published the most at chi | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT COUNT ( DISTINCT t3.paperid ) , t3.year FROM writes AS t2 JOIN author AS t1 ON t2.authorid = t1.authorid JOIN paper AS t3 ON t2.paperid = t3.paperid WHERE t1.authorname LIKE "Ye Cao" GROUP BY t3.year ORDER BY COUNT ( DISTINCT t3.paperid ) DESC; | In what year did Ye Cao publish the most papers | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT COUNT ( DISTINCT t3.paperid ) , t3.year FROM writes AS t2 JOIN author AS t1 ON t2.authorid = t1.authorid JOIN paper AS t3 ON t2.paperid = t3.paperid WHERE t1.authorname LIKE "Ye Cao" GROUP BY t3.year ORDER BY COUNT ( DISTINCT t3.paperid ) DESC; | What year did Ye Cao publish the most papers | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t3.venueid FROM paperdataset AS t2 JOIN dataset AS t1 ON t2.datasetid = t1.datasetid JOIN paper AS t3 ON t3.paperid = t2.paperid WHERE t1.datasetname = "ImageNet"; | conferences that mention ImageNet | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t3.year FROM paperkeyphrase AS t2 JOIN keyphrase AS t1 ON t2.keyphraseid = t1.keyphraseid JOIN paper AS t3 ON t3.paperid = t2.paperid WHERE t1.keyphrasename = "deep learning" GROUP BY t3.year ORDER BY t3.year ASC; | first deep learning paper | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t3.year FROM paperkeyphrase AS t2 JOIN keyphrase AS t1 ON t2.keyphraseid = t1.keyphraseid JOIN paper AS t3 ON t3.paperid = t2.paperid WHERE t1.keyphrasename = "deep learning" GROUP BY t3.year ORDER BY t3.year ASC; | What was the first paper on deep learning written ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t3.year FROM paperkeyphrase AS t2 JOIN keyphrase AS t1 ON t2.keyphraseid = t1.keyphraseid JOIN paper AS t3 ON t3.paperid = t2.paperid WHERE t1.keyphrasename = "deep learning" GROUP BY t3.year ORDER BY t3.year ASC; | When was deep learning proposed ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t3.year FROM paperkeyphrase AS t2 JOIN keyphrase AS t1 ON t2.keyphraseid = t1.keyphraseid JOIN paper AS t3 ON t3.paperid = t2.paperid WHERE t1.keyphrasename = "deep learning" GROUP BY t3.year ORDER BY t3.year ASC; | when was the first deep learning paper published ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t2.paperid FROM paper AS t2 JOIN journal AS t1 ON t2.journalid = t1.journalid WHERE t1.journalname = "Academic radiology" AND t2.year = 1995; | what papers were published in Academic radiology in 1995 ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t4.citedpaperid FROM paperkeyphrase AS t2 JOIN keyphrase AS t1 ON t2.keyphraseid = t1.keyphraseid JOIN paper AS t3 ON t3.paperid = t2.paperid JOIN cite AS t4 ON t3.paperid = t4.citingpaperid WHERE t1.keyphrasename = "parsing"; | what papers do parsing papers typically cite ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t4.citedpaperid FROM paperkeyphrase AS t2 JOIN keyphrase AS t1 ON t2.keyphraseid = t1.keyphraseid JOIN paper AS t3 ON t3.paperid = t2.paperid JOIN cite AS t4 ON t3.paperid = t4.citingpaperid WHERE t1.keyphrasename = "parsing"; | papers typically cited by parsing papers | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t3.venueid FROM paperkeyphrase AS t2 JOIN keyphrase AS t1 ON t2.keyphraseid = t1.keyphraseid JOIN paper AS t3 ON t3.paperid = t2.paperid WHERE t1.keyphrasename = "Trophic Cascade"; | venue for Trophic Cascade | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t3.venueid FROM paperkeyphrase AS t2 JOIN keyphrase AS t1 ON t2.keyphraseid = t1.keyphraseid JOIN paper AS t3 ON t3.paperid = t2.paperid WHERE t1.keyphrasename = "Trophic Cascade"; | conferences for Trophic Cascade | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t3.venueid FROM paperkeyphrase AS t2 JOIN keyphrase AS t1 ON t2.keyphraseid = t1.keyphraseid JOIN paper AS t3 ON t3.paperid = t2.paperid WHERE t1.keyphrasename = "Trophic Cascade"; | what conferences are related to Trophic Cascade | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT t3.venueid FROM paperkeyphrase AS t2 JOIN keyphrase AS t1 ON t2.keyphraseid = t1.keyphraseid JOIN paper AS t3 ON t3.paperid = t2.paperid WHERE t1.keyphrasename = "Trophic Cascade"; | What was the conference name that approved Trophic Cascade ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| |
scholar | SELECT DISTINCT COUNT ( t3.paperid ) FROM paperkeyphrase AS t2 JOIN keyphrase AS t1 ON t2.keyphraseid = t1.keyphraseid JOIN paper AS t3 ON t3.paperid = t2.paperid WHERE t1.keyphrasename = "question answering" AND t3.year >= 2011; | How many papers were written on question answering in 2011 through 2016 ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
| (0,)
|
scholar | SELECT DISTINCT COUNT ( DISTINCT t4.citingpaperid ) , t3.venueid FROM paperkeyphrase AS t2 JOIN keyphrase AS t1 ON t2.keyphraseid = t1.keyphraseid JOIN paper AS t3 ON t3.paperid = t2.paperid JOIN cite AS t4 ON t3.paperid = t4.citedpaperid WHERE t1.keyphrasename = "NLP" GROUP BY t3.venueid ORDER BY COUNT ( DISTINCT t4.citingpaperid ) DESC; | What are the best NLP conferences ? | PRAGMA foreign_keys = ON;
CREATE TABLE `venue` (
`venueId` integer NOT NULL
, `venueName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`venueId`)
);
CREATE TABLE `author` (
`authorId` integer NOT NULL
, `authorName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`authorId`)
);
CREATE TABLE `dataset` (
`datasetId` integer NOT NULL
, `datasetName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`datasetId`)
);
CREATE TABLE `journal` (
`journalId` integer NOT NULL
, `journalName` varchar(100) DEFAULT NULL
, PRIMARY KEY (`journalId`)
);
CREATE TABLE `keyphrase` (
`keyphraseId` integer NOT NULL
, `keyphraseName` varchar(50) DEFAULT NULL
, PRIMARY KEY (`keyphraseId`)
);
CREATE TABLE `paper` (
`paperId` integer NOT NULL
, `title` varchar(300) DEFAULT NULL
, `venueId` integer DEFAULT NULL
, `year` integer DEFAULT NULL
, `numCiting` integer DEFAULT NULL
, `numCitedBy` integer DEFAULT NULL
, `journalId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`)
, FOREIGN KEY(`journalId`) REFERENCES `journal`(`journalId`)
, FOREIGN KEY(`venueId`) REFERENCES `venue`(`venueId`)
);
CREATE TABLE `cite` (
`citingPaperId` integer NOT NULL
, `citedPaperId` integer NOT NULL
, PRIMARY KEY (`citingPaperId`,`citedPaperId`)
, FOREIGN KEY(`citedpaperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`citingpaperId`) REFERENCES `paper`(`paperId`)
);
CREATE TABLE `paperDataset` (
`paperId` integer DEFAULT NULL
, `datasetId` integer DEFAULT NULL
, PRIMARY KEY (`datasetId`, `paperId`)
);
CREATE TABLE `paperKeyphrase` (
`paperId` integer DEFAULT NULL
, `keyphraseId` integer DEFAULT NULL
, PRIMARY KEY (`keyphraseId`,`paperId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`keyphraseId`) REFERENCES `keyphrase`(`keyphraseId`)
);
CREATE TABLE `writes` (
`paperId` integer DEFAULT NULL
, `authorId` integer DEFAULT NULL
, PRIMARY KEY (`paperId`,`authorId`)
, FOREIGN KEY(`paperId`) REFERENCES `paper`(`paperId`)
, FOREIGN KEY(`authorId`) REFERENCES `author`(`authorId`)
);
|