CREATE TABLE paperdataset (paperid INT, datasetid INT)
CREATE TABLE dataset (datasetid INT, datasetname VARCHAR)
CREATE TABLE paperkeyphrase (paperid INT, keyphraseid INT)
CREATE TABLE paper (paperid INT, title VARCHAR, venueid INT, year INT, numciting INT, numcitedby INT, journalid INT)
CREATE TABLE paperfield (fieldid INT, paperid INT)
CREATE TABLE field (fieldid INT)
CREATE TABLE venue (venueid INT, venuename VARCHAR)
CREATE TABLE cite (citingpaperid INT, citedpaperid INT)
CREATE TABLE author (authorid INT, authorname VARCHAR)
CREATE TABLE journal (journalid INT, journalname VARCHAR)
CREATE TABLE writes (paperid INT, authorid INT)
CREATE TABLE keyphrase (keyphraseid INT, keyphrasename VARCHAR)

Who cites Neeraj Jain most ?
SELECT DISTINCT COUNT(cite.citingpaperid), WRITES_1.authorid FROM author, cite, writes AS WRITES_0, writes AS WRITES_1 WHERE author.authorname = 'Neeraj Jain' AND WRITES_0.authorid = author.authorid AND WRITES_0.paperid = cite.citedpaperid AND WRITES_1.paperid = cite.citingpaperid GROUP BY WRITES_1.authorid ORDER BY COUNT(cite.citingpaperid) DESC
SELECT DISTINCT COUNT("cite"."citingpaperid"), "WRITES_1"."authorid" FROM "author" JOIN "writes" AS "WRITES_0" ON "WRITES_0"."authorid" = "author"."authorid" JOIN "cite" ON "WRITES_0"."paperid" = "cite"."citedpaperid" JOIN "writes" AS "WRITES_1" ON "WRITES_1"."paperid" = "cite"."citingpaperid" WHERE "author"."authorname" = 'Neeraj Jain' GROUP BY "WRITES_1"."authorid" ORDER BY COUNT("cite"."citingpaperid") DESC NULLS LAST