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

Who cites Luke Zettlemoyer the most
SELECT DISTINCT COUNT(cite.citingpaperid), WRITES_1.authorid FROM author, cite, writes AS WRITES_0, writes AS WRITES_1 WHERE author.authorname = 'Luke Zettlemoyer' 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" "WRITES_0" ON "WRITES_0"."authorid" = "author"."authorid" JOIN "cite" ON "WRITES_0"."paperid" = "cite"."citedpaperid" JOIN "writes" "WRITES_1" ON "WRITES_1"."paperid" = "cite"."citingpaperid" WHERE "author"."authorname" = 'Luke Zettlemoyer' GROUP BY "WRITES_1"."authorid" ORDER BY COUNT("cite"."citingpaperid") DESC