input_text: Generate cypher query for the question: Identify the collaboration network of 'Sebastian Thrun' within 'Carnegie Mellon University'. Only give cypher query, without any other words.

output_text:
MATCH (a:author {name: 'Sebastian Thrun'})-[:author_write_paper]->(p:paper)
MATCH (p)<-[:author_write_paper]-(coauthor:author)-[:author_in_affiliation]->(aff:affiliation {name:'Carnegie Mellon University'})
RETURN DISTINCT coauthor.name, aff.name


input_text: Generate cypher query for the question: Which paper in 'Parallel Computing' has authors from the most diverse affiliations? Only give cypher query, without any other words.

output_text:
MATCH (p:paper)<-[:author_write_paper]-(a:author)-[:author_in_affiliation]->(aff:affiliation),
(p)-[:paper_in_domain]->(:domain {name: 'Parallel Computing'})
WITH p, COUNT(DISTINCT aff) AS numAffiliations
RETURN p.name, numAffiliations
ORDER BY numAffiliations DESC
LIMIT 1


input_text: Generate cypher query for the question: List all the papers from 'University of Oxford' related to Computer Science. Only give cypher query, without any other words.

output_text: MATCH (aff:affiliation {name: 'University of Oxford'})<-[:author_in_affiliation]-(a:author)-[:author_write_paper]->(p:paper) RETURN p.name


input_text: Generate cypher query for the question: What is the network of co-authorship like for 'Daphne Koller' in 'SIGGRAPH'? Only give cypher query, without any other words.

output_text:
MATCH (a:author {name: 'Daphne Koller'})-[:author_write_paper]->(p:paper)-[:paper_in_venue]->(c:conference {name: 'ICML'})
MATCH (p)<-[:author_write_paper]-(coa:author)
WHERE coa.name <> a.name
RETURN coa.name, COUNT(p) AS countCollaborations
ORDER BY countCollaborations DESC


input_text: Generate cypher query for the question: How many papers from 'Stanford University' are related to Parallel Computing? Only give cypher query, without any other words.

output_text:
MATCH (aff:affiliation {name: 'Stanford University'})<-[:author_in_affiliation]-(a:author)-[:author_write_paper]->(p:paper)-[:paper_in_domain]->(:domain {name: 'Parallel Computing'})
RETURN COUNT(DISTINCT p.name)


input_text: Generate cypher query for the question: Which authors are affiliated with more than one affiliation? Only give cypher query, without any other words.

output_text:
MATCH (a:author)-[:author_in_affiliation]->(aff:affiliation)
WITH a, COUNT(DISTINCT aff) AS numAffiliations
WHERE numAffiliations > 1
RETURN a.name


input_text: Generate cypher query for the question: What is the total number of affiliations? Only give cypher query, without any other words.

output_text:
MATCH (a:affiliation)
RETURN COUNT(a)


input_text: Generate cypher query for the question: What are all papers in Artificial Intelligence presented in ICML? Only give cypher query, without any other words.

output_text:
MATCH (p:paper)-[:paper_in_venue]->(c:conference {name: 'ICML'}),
      (p)-[:paper_in_domain]->(d:domain {name: 'Artificial Intelligence'})
RETURN p.name


input_text: Generate cypher query for the question: Which authors have papers in more than three conferences? sort by number of conferences from highest to lower. Only give cypher query, without any other words.

output_text:
MATCH (a:author)-[:author_write_paper]->(:paper)-[:paper_in_venue]->(c:conference)
WITH a, COUNT(DISTINCT c) AS numConferences
WHERE numConferences > 3
RETURN a.name, numConferences
ORDER BY numConferences DESC


input_text: Generate cypher query for the question: What are the domains of papers presented at a 'AAAI'? Only give cypher query, without any other words.

output_text:
MATCH (p:paper)-[:paper_in_venue]->(:conference {name: 'AAAI'}),
      (p)-[:paper_in_domain]->(d:domain)
RETURN DISTINCT d.name


input_text: Generate cypher query for the question: How many papers are there in each domain? Only give cypher query, without any other words.

output_text:
MATCH (p:paper)-[:paper_in_domain]->(d:domain)
RETURN d.name, COUNT(p) AS numPapers


input_text: Generate cypher query for the question: Which papers from 'Johns Hopkins University' have been featured in 'ICML'? Only give cypher query, without any other words.

output_text:
MATCH (aff:affiliation {name: 'Johns Hopkins University'})<-[:author_in_affiliation]-(a:author)-[:author_write_paper]->(p:paper)-[:paper_in_venue]->(c:conference {name: 'ICML'})
RETURN DISTINCT p.name


input_text: Generate cypher query for the question: Which papers from 'Carnegie Mellon University' research in Natural Language Processing? Only give cypher query, without any other words.

output_text:
MATCH (aff:affiliation {name: 'Carnegie Mellon University'})<-[:author_in_affiliation]-(a:author)-[:author_write_paper]->(p:paper)-[:paper_in_domain]->(:domain {name:'Natural Language Processing'})
RETURN DISTINCT p.name


input_text: Generate cypher query for the question: Which affiliations are most actively publishing in the field of Artificial Intelligence at the 'AAAI' conference? Only give cypher query, without any other words.

output_text:
MATCH (aff:affiliation)<-[:author_in_affiliation]-(a:author)-[:author_write_paper]->(p:paper)-[:paper_in_venue]->(:conference {name: 'AAAI'}),
      (p)-[:paper_in_domain]->(:domain {name: 'Artificial Intelligence'})
RETURN aff.name, COUNT(p) AS numPapers
ORDER BY numPapers DESC


input_text: Generate cypher query for the question: Find the university with the highest number of papers in the field of Cloud Computing. Only give cypher query, without any other words.

output_text:
MATCH (affi:affiliation)<-[:author_in_affiliation]-(a:author)-[:author_write_paper]->(p:paper)-[:paper_in_domain]->(d:domain {name: 'Cloud Computing'})
RETURN affi.name AS UniversityName, COUNT(p) AS PaperCount
ORDER BY PaperCount DESC
LIMIT 1


input_text: Generate cypher query for the question: Which conferences has 'Daphne Koller' attended most frequently? Only give cypher query, without any other words.

output_text: MATCH (a:author {name: 'Daphne Koller'})-[:author_write_paper]->(p:paper)-[:paper_in_venue]->(c:conference) RETURN c.name, COUNT(*) AS appearances ORDER BY appearances DESC


input_text: Generate cypher query for the question: Which paper has the highest number of affiliated institutions among its authors? Only give cypher query, without any other words.

output_text:
MATCH (p:paper)<-[:author_write_paper]-(a:author)-[:author_in_affiliation]->(aff:affiliation)
WITH p, COUNT(DISTINCT aff) AS numAffiliations
RETURN p.name, numAffiliations
ORDER BY numAffiliations DESC
LIMIT 1


input_text: Generate cypher query for the question: Which authors have written more than 5 papers? Only give cypher query, without any other words.

output_text:
MATCH (a:author)-[:author_write_paper]->(p:paper)
WITH a, COUNT(p) AS numPapers
WHERE numPapers > 5
RETURN a.name


input_text: Generate cypher query for the question: What are the top five most cited papers in 'ACL'? Only give cypher query, without any other words.

output_text: MATCH (p:paper)-[:paper_in_venue]->(c:conference {name: 'ACL'}) WITH p, COUNT((p)<-[:paper_cite_paper]-()) AS citations RETURN p.name ORDER BY citations DESC LIMIT 5


input_text: Generate cypher query for the question: Identify papers that have been cited by authors from more than 20 different affiliations. Only give cypher query, without any other words.

output_text:
MATCH (cited:paper)<-[:paper_cite_paper]-(p:paper)<-[:author_write_paper]-(a:author)-[:author_in_affiliation]->(aff:affiliation)
WITH cited, COUNT(DISTINCT aff) AS numAffiliations
WHERE numAffiliations > 20
RETURN cited.name


input_text: Generate cypher query for the question: Which authors from 'Johns Hopkins University' have papers in 'AAAI', and what are the numbers of papers each author published? Only give cypher query, without any other words.

output_text:
MATCH (a:author)-[:author_in_affiliation]->(aff:affiliation {name: 'Johns Hopkins University'})
MATCH (a)-[:author_write_paper]->(p:paper)-[:paper_in_venue]->(c:conference {name: 'AAAI'})
RETURN a.name, COUNT(p)


input_text: Generate cypher query for the question: Who are the authors with papers in the most domains? Only give cypher query, without any other words.

output_text:
MATCH (a:author)-[:author_write_paper]->(p:paper)-[:paper_in_domain]->(d:domain)
WITH a, COUNT(DISTINCT d) AS numDomains
RETURN a.name
ORDER BY numDomains DESC
LIMIT 1


input_text: Generate cypher query for the question: What are the latest research trends in the domain of Computational Complexity Theory by 'Tsinghua University'? Only give cypher query, without any other words.

output_text:
MATCH (d:domain {name: 'Computational Complexity Theory'})<-[:paper_in_domain]-(p:paper)<-[:author_write_paper]-(:author)-[:author_in_affiliation]-(:affiliation {name: "Tsinghua University"})
RETURN p.name, p.year ORDER BY p.year DESC


input_text: Generate cypher query for the question: Can you find a network of co-authors for 'Peter Stone'? Only give cypher query, without any other words.

output_text: MATCH path = (a:author {name: 'Peter Stone'})-[:author_write_paper]->(p:paper)<-[:author_write_paper]-(coa:author) RETURN coa.name


input_text: Generate cypher query for the question: What are the emerging research areas in the domain of Machine Learning at 'SIGGRAPH'? Only give cypher query, without any other words.

output_text: MATCH (d:domain {name: 'Machine Learning'})<-[:paper_in_domain]-(p:paper)-[:paper_in_venue]->(c:conference {name: 'SIGGRAPH'}) RETURN p.name, p.year ORDER BY p.year DESC


input_text: Generate cypher query for the question: How many conferences are listed? Only give cypher query, without any other words.

output_text: MATCH (c:conference) RETURN count(c) AS countConference


input_text: Generate cypher query for the question: .Which authors have written papers in both 'Artificial Intelligence' and 'Data Structure'? Only give cypher query, without any other words.

output_text:
MATCH (a:author)-[:author_write_paper]->(p1:paper)-[:paper_in_domain]->(:domain {name: 'Artificial Intelligence'}),
      (a)-[:author_write_paper]->(p2:paper)-[:paper_in_domain]->(:domain {name: 'Data Structure'})
RETURN DISTINCT a.name


input_text: Generate cypher query for the question: List all papers with no citations. Only give cypher query, without any other words.

output_text:
MATCH (p:paper)
WHERE NOT EXISTS((:paper)-[:paper_cite_paper]->(p))
RETURN p.name


input_text: Generate cypher query for the question: Find the average number of citations per paper in the 'Neural Information Processing Systems' (NIPS) conference. Only give cypher query, without any other words.

output_text:
MATCH (c:conference {name: 'NIPS'})<-[:paper_in_venue]-(p:paper)
MATCH (p)<-[:paper_cite_paper]-(citedBy)
RETURN AVG(SIZE([(p)<-[:paper_cite_paper]-(citing:paper) |citing])) AS AvgCitations


input_text: Generate cypher query for the question: Identify the papers with the most diverse set of author affiliations presented at 'ACL'. Only give cypher query, without any other words.

output_text: MATCH (c:conference {name: 'ACL'})<-[:paper_in_venue]-(p:paper)<-[:author_write_paper]-(a:author)-[:author_in_affiliation]->(aff:affiliation) WITH p, COUNT(DISTINCT aff) AS num_affiliations RETURN p.name, num_affiliations ORDER BY num_affiliations DESC


input_text: Generate cypher query for the question: Which affiliations have the most papers in Machine Learning? Only give cypher query, without any other words.

output_text:
MATCH (aff:affiliation)<-[:author_in_affiliation]-(a:author)-[:author_write_paper]->(p:paper)-[:paper_in_domain]->(:domain {name: 'Machine Learning'})
RETURN aff.name, COUNT(p) AS numPapers
ORDER BY numPapers DESC


input_text: Generate cypher query for the question: How many ACL papers are there in each domain? Only give cypher query, without any other words.

output_text:
MATCH (p:paper)-[:paper_in_domain]->(d:domain), (p)-[:paper_in_venue]->(c:conference {name: 'AAAI'})
RETURN d.name, COUNT(p) AS numPapers


input_text: Generate cypher query for the question: What are papers in both Machine Learning and Mathematical Optimization? Only give cypher query, without any other words.

output_text:
MATCH (d1:domain {name: 'Machine Learning'})<-[:paper_in_domain]-(p:paper)-[:paper_in_domain]->(d2:domain {name: 'Mathematical Optimization'})
RETURN p.name


input_text: Generate cypher query for the question: Identify all papers that no other papers cite. Only give cypher query, without any other words.

output_text:
MATCH (p:paper)
WHERE NOT EXISTS((:paper)-[:paper_cite_paper]->(p:paper))
RETURN p.name


input_text: Generate cypher query for the question: List all authors who published paper in Genomics by name. Only give cypher query, without any other words.

output_text:
MATCH (a:author)-[:author_write_paper]->(p:paper)-[:paper_in_domain]->(d:domain {name: 'Genomics'})
RETURN DISTINCT a.name


input_text: Generate cypher query for the question: How many papers cite both 'On spectral clustering: analysis and an algorithm' and 'Learning with local and global consistency'? Only give cypher query, without any other words.

output_text: MATCH (p1:paper {name: 'on spectral clustering: analysis and an algorithm'})<-[:paper_cite_paper]-(p:paper)-[:paper_cite_paper]->(p2:paper {name: 'learning with local and global consistency'}) RETURN COUNT(DISTINCT p)


input_text: Generate cypher query for the question: How many papers have interdisciplinary themes combining Computer Science and Computational Biology at 'ICDM' conferences, and give their names? Only give cypher query, without any other words.

output_text:
MATCH (p:paper)-[:paper_in_venue]->(:conference {name: 'ICDM'}),
      (p)-[:paper_in_domain]->(d1:domain {name: 'Computer Science'}),
      (p)-[:paper_in_domain]->(d2:domain {name: 'Computational Biology'})
RETURN p.name


input_text: Generate cypher query for the question: Which conference has the least number of papers? Only give cypher query, without any other words.

output_text:
MATCH (c:conference)<-[:paper_in_venue]-(p:paper)
WITH c, COUNT(p) AS numPapers
RETURN c.name
ORDER BY numPapers ASC
LIMIT 1


input_text: Generate cypher query for the question: How many papers from the domain of Machine Learning have been published in 'ACL' conferences by 'Columbia University'? Only give cypher query, without any other words.

output_text:
MATCH (d:domain {name: 'Machine Learning'})<-[:paper_in_domain]-(p:paper)-[:paper_in_venue]->(c:conference {name: 'ACL'})
MATCH (p)<-[:author_write_paper]-(a:author)-[:author_in_affiliation]->(aff:affiliation {name: 'Columbia University'})
RETURN COUNT(p)


input_text: Generate cypher query for the question: How many interdisciplinary papers combining Machine Learning and Computational Biology have been presented by 'Stanford University' in 'ICML'? Only give cypher query, without any other words.

output_text:
MATCH (aff:affiliation {name: 'Stanford University'})<-[:author_in_affiliation]-(a:author)-[:author_write_paper]->(p:paper)-[:paper_in_venue]->(c:conference {name: 'ICML'})
MATCH (p)-[:paper_in_domain]->(:domain {name:'Computational Biology'})
MATCH (p)-[:paper_in_domain]->(:domain {name:'Machine Learning'})
RETURN COUNT(p)


input_text: Generate cypher query for the question: Find papers that have been cited by papers in more than one domain. Only give cypher query, without any other words.

output_text:
MATCH (p:paper)<-[:paper_cite_paper]-(citingPaper:paper)-[:paper_in_domain]->(d:domain)
WITH p, COUNT(DISTINCT d) AS numDomains
WHERE numDomains > 1
RETURN p.name


input_text: Generate cypher query for the question: Which Machine Learning papers were presented at a AAAI? Only give cypher query, without any other words.

output_text:
MATCH (p:paper)-[:paper_in_venue]->(c:conference {name: 'AAAI'}), (p)-[:paper_in_domain]->(:domain {name:'Machine Learning'})
RETURN p.name


input_text: Generate cypher query for the question: List the most cited Real-time Computing papers from the past five years. Only give cypher query, without any other words.

output_text:
MATCH (p:paper)-[:paper_in_domain]->(d:domain {name: 'Real-time Computing'})
RETURN p.name, size([(p)<-[:paper_cite_paper]-(other:paper) | other]) AS citations
ORDER BY citations DESC


input_text: Generate cypher query for the question: What is the most cited paper in Computer Vision from 'ICML'? Only give cypher query, without any other words.

output_text:
MATCH (citing_paper:paper)-[:paper_cite_paper]->(p:paper)-[:paper_in_venue]->(c:conference {name: 'ICML'})
WHERE (p)-[:paper_in_domain]->(:domain {name: "Computer Vision"})
RETURN p.name, COUNT(citing_paper) AS citations
ORDER BY citations DESC LIMIT 1


input_text: Generate cypher query for the question: How many papers are cited by at least ten other paper? Sort by number of citings from high to low. Only give cypher query, without any other words.

output_text:
MATCH (p:paper)<-[:paper_cite_paper]-(:paper)
WITH p, COUNT(*) AS citations
WHERE citations>10
RETURN p.name, citations
ORDER BY citations DESC


input_text: Generate cypher query for the question: List recent papers in Machine Learning. Only give cypher query, without any other words.

output_text:
MATCH (p:paper )-[:paper_in_domain]->(d:domain {name: 'Machine Learning'})
RETURN p.name
ORDER BY p.date DESC


input_text: Generate cypher query for the question: What is the most frequently cited paper in the domain of Robotics? Only give cypher query, without any other words.

output_text:
MATCH (d:domain {name: 'Robotics'})<-[:paper_in_domain]-(p:paper)
MATCH (p)<-[:paper_cite_paper]-(citing)
RETURN p.name AS PaperTitle, COUNT(citing) AS CitationCount
ORDER BY CitationCount DESC
LIMIT 1


input_text: Generate cypher query for the question: Identify the top five conferences hosting Feature Vector papers. Only give cypher query, without any other words.

output_text: MATCH (p:paper)-[:paper_in_domain]->(d:domain {name: 'Feature Vector'}), (p)-[:paper_in_venue]->(v:conference) RETURN v.name, count(p) AS papers ORDER BY papers DESC LIMIT 5


input_text: Generate cypher query for the question: Can you map the network of paper citations in the field of Machine Learning at 'ACL'? Only give cypher query, without any other words.

output_text:
MATCH path = (d:domain {name: 'Machine Learning'})<-[:paper_in_domain]-(p:paper)-[:paper_cite_paper]->(cp:paper)-[:paper_in_venue]->(c:conference {name: 'ACL'})
RETURN path


input_text: Generate cypher query for the question: How many papers cite at least one other paper? Only give cypher query, without any other words.

output_text:
MATCH (p:paper)-[:paper_cite_paper]->(:paper)
RETURN COUNT(DISTINCT p)


input_text: Generate cypher query for the question: What is the average number of citations per paper published in AAAI? Only give cypher query, without any other words.

output_text:
MATCH (p:paper)-[:paper_in_venue]->(c:conference {name: 'AAAI'})
WITH SIZE([(other:paper)-[:paper_cite_paper]->(p) |other]) AS Citations
RETURN AVG(Citations) AS AvgCitations


input_text: Generate cypher query for the question: What is the average number of citations per paper in the domain of Cloud Computing presented at 'SIGGRAPH'? Only give cypher query, without any other words.

output_text:
MATCH (d:domain {name: 'Cloud Computing'})<-[:paper_in_domain]-(p:paper)-[:paper_in_venue]->(c:conference {name: 'siggraph'})
WITH p, SIZE([(p)-[:paper_cite_paper]->(cited:paper) | cited]) AS citations
RETURN AVG(citations)


input_text: Generate cypher query for the question: What are the main research papers of 'Carnegie Mellon University' presented at 'AAAI'? Only give cypher query, without any other words.

output_text:
MATCH (aff:affiliation {name: 'Carnegie Mellon University'})<-[:author_in_affiliation]-(a:author)-[:author_write_paper]->(p:paper)-[:paper_in_venue]->(c:conference {name: 'AAAI'})
RETURN p.name, COUNT(p)


input_text: Generate cypher query for the question: What is the most common conference venue for papers on Machine Learning by 'daphne koller'? Only give cypher query, without any other words.

output_text: MATCH (d:domain {name: 'Machine Learning'})<-[:paper_in_domain]-(p:paper)-[:paper_in_venue]->(c:conference), (p:paper)<-[:author_write_paper]-(a:author {name:'daphne koller'})  RETURN c.name, COUNT(*) AS num_papers ORDER BY num_papers DESC LIMIT 1


input_text: Generate cypher query for the question: Identify the most cited papers in the field of Reinforcement Learning from 'ICML'. Only give cypher query, without any other words.

output_text:
MATCH (:domain {name: 'Reinforcement Learning'})<-[:paper_in_domain]-(p:paper)-[:paper_in_venue]->(c:conference {name: 'ICML'})
RETURN p.name, SIZE([(p)<-[:paper_cite_paper]-(citing:paper) | citing]) AS citings
ORDER BY citings DESC


input_text: Generate cypher query for the question: What are the trending topics in the domain of Logistic Regression presented at 'ACL'? Only give cypher query, without any other words.

output_text: MATCH (d:domain {name: 'Logistic Regression'})<-[:paper_in_domain]-(p:paper)-[:paper_in_venue]->(c:conference {name: 'ACL'}) RETURN p.name, p.date ORDER BY p.date DESC


input_text: Generate cypher query for the question: What papers are Computer Science? Only give cypher query, without any other words.

output_text:
MATCH (p:paper)-[:paper_in_domain]->(d:domain {name: 'Computer Science'})
RETURN p.name


input_text: Generate cypher query for the question: What is the most common co-authorship pattern in the 'Data Mining' domain? Only give cypher query, without any other words.

output_text:
MATCH (a1:author)-[:author_write_paper]->(p:paper)-[:paper_in_domain]->(:domain {name: 'Data Mining'}), (p)<-[:author_write_paper]-(a2:author)
WHERE a1 <> a2
RETURN a1.name, a2.name, COUNT(p) AS numPapers
ORDER BY numPapers DESC
LIMIT 1


input_text: Generate cypher query for the question: Which papers presented at 'ACL' have the most number of co-authors? Only give cypher query, without any other words.

output_text:
MATCH (c:conference {name: 'ACL'})<-[:paper_in_venue]-(p:paper)
WITH p
MATCH (p)<-[:author_write_paper]-(author)
WITH p, COUNT(author) AS num_authors
RETURN p.name AS PaperName, num_authors
ORDER BY num_authors DESC


input_text: Generate cypher query for the question: Who are the co-authors of 'Michael I Jordan' in 'in-network pca and anomaly detection'? Only give cypher query, without any other words.

output_text:
MATCH (a:author {name: 'Michael I Jordan'})-[:author_write_paper]->(p:paper {name: 'in-network pca and anomaly detection'})<-[:author_write_paper]-(coa:author)
RETURN coa.name


input_text: Generate cypher query for the question: How many papers on Natural Language Processing has 'Stanford University' published in 'ACL'? Only give cypher query, without any other words.

output_text:
MATCH (aff:affiliation {name: 'Stanford University'})<-[:author_in_affiliation]-(a:author)-[:author_write_paper]->(p:paper)-[:paper_in_venue]->(:conference {name:'ACL'})
WHERE p.name CONTAINS 'Natural Language Processing' OR p.abstract CONTAINS 'Natural Language Processing' OR p.content CONTAINS 'Natural Language Processing'
RETURN COUNT(p)


input_text: Generate cypher query for the question: How many papers are in the database? Only give cypher query, without any other words.

output_text: MATCH (p:paper) RETURN count(p) AS num_papers


input_text: Generate cypher query for the question: What are the trending domains in 'SIGGRAPH'? Only give cypher query, without any other words.

output_text:
MATCH (c:conference {name: 'SIGGRAPH'})<-[:paper_in_venue]-(p:paper)-[:paper_in_domain]->(d:domain)
WITH d.name AS Domain, COUNT(p) AS NumberOfPapers
ORDER BY NumberOfPapers DESC
RETURN Domain, NumberOfPapers


input_text: Generate cypher query for the question: What are the latest papers by 'Johns Hopkins University' in 'AAAI'? Only give cypher query, without any other words.

output_text:
MATCH (aff:affiliation {name: 'Johns Hopkins University'})<-[:author_in_affiliation]-(a:author)-[:author_write_paper]->(p:paper)-[:paper_in_venue]->(c:conference {name: 'AAAI'})
RETURN DISTINCT p.name, p.year
ORDER BY p.year


input_text: Generate cypher query for the question: What is the average number of papers per author in the 'Computer Vision' domain? Only give cypher query, without any other words.

output_text:
MATCH (a:author)-[:author_write_paper]->(:paper)-[:paper_in_domain]->(:domain {name: 'Computer Vision'})
WITH a, SIZE([(a)-[:author_write_paper]->(p:paper)| p]) AS PapersPerAuthor
RETURN AVG(PapersPerAuthor) AS avgPapersPerAuthor


input_text: Generate cypher query for the question: How many times has 'Semi-supervised learning using Gaussian fields and harmonic functions' been cited in 'ICML' papers? Only give cypher query, without any other words.

output_text: MATCH (p:paper {name: 'Semi-supervised learning using Gaussian fields and harmonic functions'})<-[:paper_cite_paper]-(citing_paper:paper)-[:paper_in_venue]->(c:conference {name: 'ICML'}) RETURN COUNT(citing_paper)


input_text: Generate cypher query for the question: What is the average number of authors per paper in the 'Machine Learning' domain? Only give cypher query, without any other words.

output_text:
MATCH (p:paper)-[:paper_in_domain]->(:domain {name: 'Machine Learning'})
WITH p,  SIZE([(p)<-[:author_write_paper]-(a:author) | a]) as countAuthors
RETURN AVG(countAuthors) AS avgAuthorsPerPaper


input_text: Generate cypher query for the question: Which authors have not written any AAAI papers? Only give cypher query, without any other words.

output_text:
MATCH (a:author)
WHERE NOT EXISTS((a)-[:author_write_paper]->(:paper)-[:paper_in_venue]->(:conference {name: 'AAAI'}))
RETURN a.name


input_text: Generate cypher query for the question: What are the top 5 main research areas in the conference 'ACL'? Only give cypher query, without any other words.

output_text: MATCH (c:conference {name: 'ACL'})<-[:paper_in_venue]-(p:paper)-[:paper_in_domain]->(d:domain) RETURN d.name, COUNT(*) AS frequency ORDER BY frequency DESC LIMIT 5


input_text: Generate cypher query for the question: Which papers cite 'conditional random fields: probabilistic models for segmenting and labeling sequence data'? Only give cypher query, without any other words.

output_text:
MATCH (p:paper)-[:paper_cite_paper]->(:paper {name: 'conditional random fields: probabilistic models for segmenting and labeling sequence data'})
RETURN p.name


input_text: Generate cypher query for the question: For those papers that cite 'on spectral clustering: analysis and an algorithm', which papers are they most frequently citing besides that Only give cypher query, without any other words.

output_text:
MATCH (target:paper {name: 'On Spectral Clustering: Analysis and an Algorithm'})<-[:paper_cite_paper]-(citingPaper)
MATCH (citingPaper)-[:paper_cite_paper]->(citedPaper)
WHERE citedPaper.name <> 'On Spectral Clustering: Analysis and an Algorithm'
WITH citedPaper, COUNT(*) AS citations
ORDER BY citations DESC
RETURN citedPaper.name AS PaperName, citations


input_text: Generate cypher query for the question: List authors who have presented at more than two conferences. Only give cypher query, without any other words.

output_text:
MATCH (a:author)-[:author_write_paper]->(:paper)-[:paper_in_venue]->(c:conference)
WITH a, COUNT(DISTINCT c) AS numConferences
WHERE numConferences > 2
RETURN a.name


input_text: Generate cypher query for the question: How many papers in 'ACL' discuss Natural Language Processing? Only give cypher query, without any other words.

output_text:
MATCH (p:paper)-[:paper_in_venue]->(c:conference {name: 'ACL'})
WHERE p.name CONTAINS 'Natural Language Processing' OR  p.abstract CONTAINS 'Natural Language Processing'
RETURN count(p)


input_text: Generate cypher query for the question: How many papers does 'Peter Stone' have in the domain of Autonomous Agent? Only give cypher query, without any other words.

output_text:
MATCH (a:author {name: 'Peter Stone'})-[:author_write_paper]->(p:paper)-[:paper_in_domain]->(:domain {name:'Autonomous Agent'})
RETURN a.name, COUNT(p) AS countPaper


input_text: Generate cypher query for the question: Find authors who have collaborated with the most number of different affiliations. Only give cypher query, without any other words.

output_text:
MATCH (a:author)-[:author_write_paper]->(p:paper)<-[:author_write_paper]-(coAuthor:author)-[:author_in_affiliation]->(aff:affiliation)
WITH a, COUNT(DISTINCT aff) AS numAffiliations
RETURN a.name
ORDER BY numAffiliations DESC
LIMIT 1


input_text: Generate cypher query for the question: What papers has 'Zhouchen Lin' written? Only give cypher query, without any other words.

output_text:
MATCH (a:author {name: 'Zhouchen Lin'})-[:author_write_paper]->(p:paper)
RETURN p.name


input_text: Generate cypher query for the question: What are the primary research interests of 'Michael I Jordan' recently? Only give cypher query, without any other words.

output_text:
MATCH (a:author {name: 'Michael I Jordan'})-[:author_write_paper]->(p:paper)
RETURN p.name, p.year
ORDER BY p.year DESC


input_text: Generate cypher query for the question: What is the least popular conference based on paper count? Only give cypher query, without any other words.

output_text:
MATCH (c:conference)<-[:paper_in_venue]-(p:paper)
WITH c, COUNT(p) AS numPapers
RETURN c.name
ORDER BY numPapers ASC
LIMIT 1


input_text: Generate cypher query for the question: What are the most common co-authorship pairs in AAAI conference? Only give cypher query, without any other words.

output_text:
MATCH (a1:author)-[:author_write_paper]->(p:paper)<-[:author_write_paper]-(a2:author), (p)-[:paper_in_venue]->(c:conference {name: 'AAAI'})
RETURN a1.name, a2.name, COUNT(p) AS numPapers
ORDER BY numPapers DESC
LIMIT 1


input_text: Generate cypher query for the question: What is the average number of citations from others for papers from 'University of Toronto' in 'AAAI'? Only give cypher query, without any other words.

output_text:
MATCH (aff:affiliation {name: 'University of Toronto'})<-[:author_in_affiliation]-(a:author)-[:author_write_paper]->(p:paper)-[:paper_in_venue]->(c:conference {name: 'AAAI'})
RETURN AVG(SIZE([(p)<-[:paper_cite_paper]-(other:paper) | other]))


input_text: Generate cypher query for the question: List the affiliations of authors who have written more than 3 ACL papers. Only give cypher query, without any other words.

output_text:
MATCH (a:author)-[:author_write_paper]->(p:paper)-[:paper_in_venue]->(c:conference {name: 'ACL'})
WITH a, COUNT(p) AS numPapers
WHERE numPapers > 3
MATCH (a)-[:author_in_affiliation]->(aff:affiliation)
RETURN DISTINCT aff.name


input_text: Generate cypher query for the question: Can you find a pattern of collaboration between different research institutions in papers by 'Zhouchen Lin'? Only give cypher query, without any other words.

output_text: MATCH (aff1:affiliation)<-[:author_in_affiliation]-(a:author {name: 'Zhouchen Lin'})-[:author_write_paper]->(p:paper)<-[:author_write_paper]-(coa:author)-[:author_in_affiliation]->(aff2:affiliation) WHERE aff1 <> aff2 RETURN aff1.name, aff2.name, COUNT(*) AS collaborations ORDER BY collaborations DESC


input_text: Generate cypher query for the question: Who are the top three authors in Artificial Intelligence based on the number of publications? Only give cypher query, without any other words.

output_text: MATCH (a:author)-[:author_write_paper]->(p:paper)-[:paper_in_domain]->(d:domain {name: 'Artificial Intelligence'}) RETURN a.name, count(p) AS publications ORDER BY publications DESC LIMIT 3


input_text: Generate cypher query for the question: Find all papers by a 'Daphne Koller' Only give cypher query, without any other words.

output_text:
MATCH (a:author {name:'Daphne Koller'})-[:author_write_paper]-(p:paper)
RETURN p.name AS paper


input_text: Generate cypher query for the question: List all papers in the domain of Computer Science presented at 'SIGGRAPH'. Only give cypher query, without any other words.

output_text: MATCH (d:domain {name: 'Computer Science'})<-[:paper_in_domain]-(p:paper)-[:paper_in_venue]->(c:conference {name: 'SIGGRAPH'}) RETURN p.name


input_text: Generate cypher query for the question: Identify the papers in the field of Robotics by authors from the 'University of Oxford'. Only give cypher query, without any other words.

output_text:
MATCH (:affiliation {name: 'University of Oxford'})<-[:author_in_affiliation]-(a:author)-[:author_write_paper]->(p:paper)-[:paper_in_domain]->(:domain {name: 'Robotics'})
RETURN p.name


input_text: Generate cypher query for the question: Identify the year with the highest number of published papers in the domain of Data Mining. Only give cypher query, without any other words.

output_text:
MATCH (p:paper)-[:paper_in_domain]->(d:domain {name: 'Data Mining'})
RETURN p.year AS Year, COUNT(p) AS NumberOfPapers
ORDER BY NumberOfPapers DESC
LIMIT 1


input_text: Generate cypher query for the question: Which domain has the most number of papers in 'AAAI? Only give cypher query, without any other words.

output_text:
MATCH (c:conference {name: 'AAAI'})<-[:paper_in_venue]-(p:paper)-[:paper_in_domain]->(d:domain)
WITH d.name AS Domain, COUNT(p) AS NumberOfPapers
ORDER BY NumberOfPapers DESC
LIMIT 1
RETURN Domain, NumberOfPapers


input_text: Generate cypher query for the question: List all papers from 'ICML' that discuss Deep Learning. Only give cypher query, without any other words.

output_text:
MATCH (p:paper)-[:paper_in_venue]->(c:conference {name: 'ICML'})
WHERE p.name CONTAINS 'Deep Learning' OR p.abstract CONTAINS 'Deep Learning' OR p.content CONTAINS 'Deep Learning'
RETURN p.name


input_text: Generate cypher query for the question: What are the evolution of research topics in 'ACL' conference each year? Only give cypher query, without any other words.

output_text:
MATCH (c:conference {name: 'ACL'})<-[:paper_in_venue]-(p:paper)-[:paper_in_domain]->(d:domain)
RETURN DISTINCT p.year, COUNT (p) as counts, d.name
ORDER BY p.year, counts DESC


input_text: Generate cypher query for the question: Which author has collaborated with the most other authors? Only give cypher query, without any other words.

output_text:
MATCH (a1:author)-[:author_write_paper]->(p:paper)<-[:author_write_paper]-(a2:author)
WHERE a1 <> a2
WITH a1, COUNT(DISTINCT a2) AS numCollaborators
RETURN a1.name
ORDER BY numCollaborators DESC
LIMIT 1


input_text: Generate cypher query for the question: Which conference has the most diverse range of paper topics? Only give cypher query, without any other words.

output_text:
MATCH (c:conference)<-[:paper_in_venue]-(p:paper)-[:paper_in_domain]->(d:domain)
WITH c, COUNT(DISTINCT d) AS numDomains
RETURN c.name
ORDER BY numDomains DESC
LIMIT 1


input_text: Generate cypher query for the question: Find papers that have been cited by papers in Machine Learning and Computational Biology Only give cypher query, without any other words.

output_text:
MATCH (p:paper)<-[:paper_cite_paper]-(other1:paper)-[:paper_in_domain]->(d1:domain {name: 'Machine Learning'}),
      (p)<-[:paper_cite_paper]->(other2:paper)-[:paper_in_domain]->(d2:domain {name: 'Computational Biology'})
RETURN DISTINCT p.name


input_text: Generate cypher query for the question: What is the number of distinct domains? Only give cypher query, without any other words.

output_text:
MATCH (d:domain)
RETURN COUNT(d)


input_text: Generate cypher query for the question: What is the most cited paper in the domain of Machine Learning presented at 'SIGGRAPH'? Only give cypher query, without any other words.

output_text: MATCH (d:domain {name: 'Machine Learning'})<-[:paper_in_domain]-(p:paper)-[:paper_in_venue]->(c:conference {name: 'SIGGRAPH'}) WITH p, SIZE(()-[:paper_cite_paper]->(p)) AS citations RETURN p.name ORDER BY citations DESC LIMIT 1


input_text: Generate cypher query for the question: Which affiliations have the most ACL papers in a Machine Learning? Only give cypher query, without any other words.

output_text:
MATCH (aff:affiliation)<-[:author_in_affiliation]-(a:author)-[:author_write_paper]->(p:paper)-[:paper_in_domain]->(:domain {name: 'Machine Learning'}),
(p)-[:paper_in_venue]->(c:conference {name: 'ACL'})
RETURN aff.name, COUNT(p) AS numPapers
ORDER BY numPapers DESC


input_text: Generate cypher query for the question: Which paper has the most authors? Only give cypher query, without any other words.

output_text:
MATCH (p:paper)<-[:author_write_paper]-(a:author)
WITH p, COUNT(a) AS numAuthors
RETURN p.name, numAuthors
ORDER BY numAuthors DESC
LIMIT 1


input_text: Generate cypher query for the question: How many papers presented at 'ACL' are related to Machine Translation? Only give cypher query, without any other words.

output_text:
MATCH (p:paper)-[:paper_in_venue]->(c:conference {name: 'ACL'})
MATCH (p)-[:paper_in_domain]->(:domain {name:'Machine Translation'})
RETURN p.name


input_text: Generate cypher query for the question: How many times has 'Daphne Koller' been cited in 'AAAI' papers? Only give cypher query, without any other words.

output_text:
MATCH (a:author {name: 'Daphne Koller'})-[:author_write_paper]->(p:paper)<-[:paper_cite_paper]-(citing_paper:paper)-[:paper_in_venue]->(c:conference {name: 'AAAI'})
RETURN COUNT(citing_paper)


input_text: Generate cypher query for the question: Which domain has Daphne Koller presented the most number of papers. Only give cypher query, without any other words.

output_text:
MATCH (:author {name: 'Daphne Koller'})-[:author_write_paper]->(p:paper)-[:paper_in_domain]->(d:domain)
RETURN DISTINCT d.name, COUNT(p) AS countPapers
ORDER BY countPapers DESC


input_text: Generate cypher query for the question: Name all affiliations. Only give cypher query, without any other words.

output_text:
MATCH (a:affiliation)
RETURN a.name


input_text: Generate cypher query for the question: List papers written by authors from Columbia University. Only give cypher query, without any other words.

output_text:
MATCH (a:author)-[:author_in_affiliation]->(aff:affiliation {name: 'Columbia University'}),
      (a)-[:author_write_paper]->(p:paper)
RETURN p.name


input_text: Generate cypher query for the question: What are the latest research trends in the domain of Computational Complexity Theory by authors from 'Tsinghua University'? Only give cypher query, without any other words.

output_text:
MATCH (:affiliation {name: 'Tsinghua University'})<-[:author_in_affiliation]-(a:author)-[:author_write_paper]->(p:paper)-[:paper_in_domain]->(:domain {name: 'Computational Complexity Theory'})
RETURN p.name, p.year
ORDER BY p.year DESC


input_text: Generate cypher query for the question: How many collaborative research projects are there between 'Stanford University' and 'Carnegie Mellon University' in Genetic Algorithm? Only give cypher query, without any other words.

output_text:
MATCH (aff1:affiliation {name: 'Stanford University'})<-[:author_in_affiliation]-(a:author)-[:author_write_paper]->(p:paper)<-[:author_write_paper]-(coa:author)-[:author_in_affiliation]->(aff2:affiliation {name: 'Carnegie Mellon University'})
MATCH (p)-[:paper_in_domain]->(:domain {name:'Genetic Algorithm'})
RETURN COUNT(DISTINCT p)


input_text: Generate cypher query for the question: Which author has published the most papers in the domain of Artificial Intelligence? Only give cypher query, without any other words.

output_text:
MATCH (a:author)-[:author_write_paper]->(p:paper)-[:paper_in_domain]->(d:domain {name: 'Artificial Intelligence'})
WITH a, COUNT(p) AS papersPublished
RETURN a.name AS AuthorName, papersPublished
ORDER BY papersPublished DESC
LIMIT 1


input_text: Generate cypher query for the question: What is the most popular domain among papers? Only give cypher query, without any other words.

output_text:
MATCH (p:paper)-[:paper_in_domain]->(d:domain)
WITH d, COUNT(p) AS numPapers
RETURN d.name
ORDER BY numPapers DESC
LIMIT 1


input_text: Generate cypher query for the question: Which authors from 'Carnegie Mellon University' are most active in Robotics research? Only give cypher query, without any other words.

output_text:
MATCH (p:paper)<-[:author_write_paper]-(a:author)-[:author_in_affiliation]->(aff:affiliation {name: 'Carnegie Mellon University'})
WHERE p.name CONTAINS 'Robotics'
RETURN a.name, COUNT(p) AS countPaper
ORDER BY countPaper


input_text: Generate cypher query for the question: Which papers have the most diverse authorship in terms of affiliations? Only give cypher query, without any other words.

output_text:
MATCH (p:paper)<-[:author_write_paper]-(a:author)-[:author_in_affiliation]->(aff:affiliation)
WITH p, COUNT(DISTINCT aff) AS numAffiliations
RETURN p.name, numAffiliations
ORDER BY numAffiliations DESC
LIMIT 1


input_text: Generate cypher query for the question: List all papers from 'Stanford University' in the domain of Bioinformatics. Only give cypher query, without any other words.

output_text:
MATCH (aff:affiliation {name: 'Stanford University'})<-[:author_in_affiliation]-(a:author)-[:author_write_paper]->(p:paper)-[:paper_in_domain]->(:domain {name:'Bioinformatics'})
RETURN DISTINCT p.name


input_text: Generate cypher query for the question: Which author has the most co-authors in the field of Computer Vision? Only give cypher query, without any other words.

output_text:
MATCH (a:author)-[:author_write_paper]->(p:paper)-[:paper_in_domain]->(d:domain {name: 'Computer Vision'})
WITH a,p
MATCH (a)-[:author_write_paper]->(p)<-[:author_write_paper]-(coauthor:author)
WITH a, COUNT(DISTINCT coauthor) AS CoAuthorCount
RETURN a.name AS AuthorName, CoAuthorCount
ORDER BY CoAuthorCount DESC
LIMIT 1


input_text: Generate cypher query for the question: Which universities have the most cited 'AAAI' papers in Artificial Intelligence ? Only give cypher query, without any other words.

output_text:
MATCH (aff:affiliation)<-[:author_in_affiliation]-(:author)-[author_write_paper]->(p:paper)-[:paper_in_venue]->(c:conference {name: 'AAAI'})
MATCH (:domain {name:'Artificial Intelligence'})<-[:paper_in_domain]-(p:paper)<-[:paper_cite_paper]-(citing_paper:paper)
RETURN p.name, aff.name, COUNT(citing_paper) AS citations
ORDER BY citations DESC


input_text: Generate cypher query for the question: What are the most researched domains in 'AAAI' conference for each year? Only give cypher query, without any other words.

output_text:
MATCH (c:conference {name: 'AAAI'})<-[:paper_in_venue]-(p:paper)-[:paper_in_domain]->(d:domain)
RETURN DISTINCT p.year, COUNT (p) as counts, d.name
ORDER BY p.year, counts DESC


input_text: Generate cypher query for the question: Which conference has the widest variety of domains covered? Only give cypher query, without any other words.

output_text:
MATCH (c:conference)<-[:paper_in_venue]-(p:paper)-[:paper_in_domain]->(d:domain)
WITH c, COUNT(DISTINCT d) AS numDomains
RETURN c.name
ORDER BY numDomains DESC
LIMIT 1


input_text: Generate cypher query for the question: What are the top 5 main research areas in the 'ACL' conference? Only give cypher query, without any other words.

output_text:
MATCH (p:paper)-[:paper_in_venue]->(:conference {name: 'ACL'}),
      (p)-[:paper_in_domain]->(d:domain)
RETURN d.name, COUNT(p) AS numPapers
ORDER BY numPapers DESC
LIMIT 5


input_text: Generate cypher query for the question: What are the various domains covered in the conference 'ACL'? Only give cypher query, without any other words.

output_text: MATCH (c:conference {name: 'ACL'})<-[:paper_in_venue]-(p:paper)-[:paper_in_domain]->(d:domain) RETURN DISTINCT d.name


input_text: Generate cypher query for the question: How many papers were published each conference? Only give cypher query, without any other words.

output_text:
MATCH (p:paper)-[:paper_in_venue]->(c:conference)
RETURN c.name, COUNT(p) AS numPapers


input_text: Generate cypher query for the question: How many papers have 'Sebastian Thrun' and 'Michael I Jordan' co-authored? Only give cypher query, without any other words.

output_text: MATCH (a:author {name: 'Sebastian Thrun'})-[:author_write_paper]->(p:paper)<-[:author_write_paper]-(coa:author {name: 'Michael I Jordan'}) RETURN COUNT(p)


input_text: Generate cypher query for the question: Identify recent popular papers in Augmented Reality from 'SIGGRAPH'. Only give cypher query, without any other words.

output_text:
MATCH (p:paper)-[:paper_in_domain]->(d:domain {name: 'Augmented Reality'}), (p)-[:paper_in_venue]->(v:conference {name: 'SIGGRAPH'})
RETURN p.name, size([(p)<-[:paper_cite_paper]-(other:paper) | other]) AS citations
ORDER BY citations, p.date DESC


input_text: Generate cypher query for the question: What are the key themes in the most recent papers by 'Michael I Jordan'? Only give cypher query, without any other words.

output_text:
MATCH (a:author {name: 'Michael I Jordan'})-[:author_write_paper]->(p:paper)
RETURN p.name, p.year
ORDER BY p.year


input_text: Generate cypher query for the question: What are papers in both Machine Learning and Mathematical Optimization? Only give cypher query, without any other words.

output_text:
MATCH (p:paper)-[:paper_in_domain]->(:domain {name: 'Machine Learning'}),
      (p)-[:paper_in_domain]->(:domain {name: 'Mathematical Optimization'})
RETURN p.name


input_text: Generate cypher query for the question: Name the domains with only one paper. Only give cypher query, without any other words.

output_text:
MATCH (d:domain)<-[:paper_in_domain]-(p:paper)
WITH d, COUNT(p) AS numPapers
WHERE numPapers = 1
RETURN d.name


input_text: Generate cypher query for the question: Which conferences has Daphne Koller presented the most number of papers. Only give cypher query, without any other words.

output_text:
MATCH (:author {name: 'Daphne Koller'})-[:author_write_paper]->(p:paper)-[:paper_in_venue]->(c:conference)
RETURN DISTINCT c.name, COUNT(p) AS countPapers
ORDER BY countPapers DESC


input_text: Generate cypher query for the question: List the papers by the most prolific author, also give author name. Only give cypher query, without any other words.

output_text:
MATCH (a:author)-[:author_write_paper]->(p:paper)
WITH a, COUNT(p) AS numPapers
ORDER BY numPapers DESC
LIMIT 1
MATCH (a)-[:author_write_paper]->(p)
RETURN a.name, p.name


input_text: Generate cypher query for the question: Can you find a pattern of collaboration between different research institutions in papers by 'Zhouchen Lin'? Only give cypher query, without any other words.

output_text:
MATCH (:author {name: 'Zhouchen Lin'})-[:author_write_paper]->(p:paper)<-[:author_write_paper]-(coAuthors:author),
      (coAuthors)-[:author_in_affiliation]->(aff:affiliation)
RETURN aff.name, COUNT(p) AS numPapers


input_text: Generate cypher query for the question: How many times has 'Semi-supervised learning using Gaussian fields and harmonic functions' been cited in total? Only give cypher query, without any other words.

output_text: MATCH (p:paper {name: 'Semi-supervised learning using Gaussian fields and harmonic functions'})<-[:paper_cite_paper]-(citing_paper) RETURN COUNT(citing_paper)


input_text: Generate cypher query for the question: What are the newest methodologies being discussed in Graphical Model research? Only give cypher query, without any other words.

output_text:
MATCH (p:paper)-[:paper_in_domain]->(d:domain {name: 'Graphical Model'})
RETURN p.name, p.date
ORDER BY p.date DESC


input_text: Generate cypher query for the question: What are the main research areas of 'University of Toronto' in 'ICML'? Only give cypher query, without any other words.

output_text: MATCH (aff:affiliation {name: 'University of Toronto'})<-[:author_in_affiliation]-(a:author)-[:author_write_paper]->(p:paper)-[:paper_in_venue]->(c:conference {name: 'ICML'}) RETURN p.name


input_text: Generate cypher query for the question: What are the key research findings in 'Transductive Inference for Text Classification using Support Vector Machines'? Only give cypher query, without any other words.

output_text:
MATCH (p:paper {name: 'Transductive Inference for Text Classification using Support Vector Machines'})
RETURN p.abstract


input_text: Generate cypher query for the question: Which conference have the most number of citations in Machine Learning? Only give cypher query, without any other words.

output_text:
MATCH (d:domain {name: 'Machine Learning'})<-[:paper_in_domain]-(p:paper)
MATCH (p)-[:paper_in_venue]->(c:conference)
MATCH (p)<-[:paper_cite_paper]-(citing:paper)
WITH c, COUNT(citing) AS citations
RETURN c.name AS ConferenceName, SUM(citations) AS TotalCitations
ORDER BY TotalCitations DESC
LIMIT 1


input_text: Generate cypher query for the question: Which conferences are in the database? Only give cypher query, without any other words.

output_text:
MATCH (c:conference)
RETURN c.name


input_text: Generate cypher query for the question: List all papers that cite 'Conditional Random Fields: Probabilistic Models for Segmenting and Labeling Sequence Data'. Only give cypher query, without any other words.

output_text: MATCH (p:paper {name: 'Conditional Random Fields: Probabilistic Models for Segmenting and Labeling Sequence Data'})<-[:paper_cite_paper]-(citing_paper) RETURN citing_paper.name


input_text: Generate cypher query for the question: What are the most recent papers on Machine Learning published? Only give cypher query, without any other words.

output_text:
MATCH (p:paper)-[:paper_in_domain]->(d:domain {name: 'Machine Learning'})
RETURN p.name, p.date
ORDER BY p.date DESC


input_text: Generate cypher query for the question: Count the number of authors. Only give cypher query, without any other words.

output_text: MATCH (a:Author) RETURN count(a) AS authorCount


input_text: Generate cypher query for the question: What are the key research domains of author 'Zhouchen Lin'? Only give cypher query, without any other words.

output_text:
MATCH (:author {name: 'Zhouchen Lin'})-[:author_write_paper]->(p:paper)-[:paper_in_domain]->(d:domain)
RETURN DISTINCT d.name


input_text: Generate cypher query for the question: How many papers have interdisciplinary themes combining Computer Science and Computational Biology at 'ICDM', and give their names? Only give cypher query, without any other words.

output_text:
MATCH (d1:domain {name: 'Computer Science'})<-[:paper_in_domain]-(p:paper)-[:paper_in_domain]->(d2:domain {name: 'Computational Biology'})
MATCH (p)-[:paper_in_venue]->(c:conference {name: 'ICDM'})
RETURN p.name, COUNT(p)


input_text: Generate cypher query for the question: Find the most frequently collaborating pair of authors in the Machine Learning domain. Only give cypher query, without any other words.

output_text:
MATCH (a1:author)-[:author_write_paper]->(p:paper)-[:paper_in_domain]->(d:domain {name: 'Machine Learning'})
WITH a1, p
MATCH (a1)-[:author_write_paper]->(p)<-[:author_write_paper]-(a2:author)
WHERE a1 <> a2
WITH a1, a2, COUNT(p) AS collaborations
ORDER BY collaborations DESC
LIMIT 1
RETURN a1.name, a2.name, collaborations


input_text: Generate cypher query for the question: Which conferences have the most diverse range of research domains presented by 'Tsinghua University'? Only give cypher query, without any other words.

output_text:
MATCH (c:conference)<-[:paper_in_venue]-(p:paper)-[:paper_in_domain]->(d:domain)
MATCH (p)<-[:author_write_paper]-(:author)-[:author_in_affiliation]->(affi:affiliation {name:"Tsinghua University"})
WITH c, COUNT(DISTINCT d) AS num_domains RETURN c.name, num_domains ORDER BY num_domains DESC


input_text: Generate cypher query for the question: In which conference was the paper 'Large scale semi-supervised linear SVMs' presented? Only give cypher query, without any other words.

output_text: MATCH (p:paper {name: 'Large scale semi-supervised linear SVMs'})-[:paper_in_venue]->(c:conference) RETURN c.name


input_text: Generate cypher query for the question: How many different affiliations are represented at each conference, sort from highest to lowest? Only give cypher query, without any other words.

output_text:
MATCH (c:conference)<-[:paper_in_venue]-(p:paper)<-[:author_write_paper]-(a:author)-[:author_in_affiliation]->(aff:affiliation)
RETURN c.name, COUNT(DISTINCT aff) AS numAffiliations
ORDER BY numAffiliations DESC


input_text: Generate cypher query for the question: Which domains are most common among papers from 'SIGGRAPH'? Only give cypher query, without any other words.

output_text: MATCH (c:conference {name: 'SIGGRAPH'})<-[:paper_in_venue]-(p:paper)-[:paper_in_domain]->(d:domain) RETURN d.name, COUNT(*) AS frequency ORDER BY frequency DESC


input_text: Generate cypher query for the question: List all conferences where Daphne Koller has presented. Only give cypher query, without any other words.

output_text:
MATCH (:author {name: 'Daphne Koller'})-[:author_write_paper]->(p:paper)-[:paper_in_venue]->(c:conference)
RETURN DISTINCT c.name


input_text: Generate cypher query for the question: What are the latest hot research topics in 'ICML' conference? Only give cypher query, without any other words.

output_text:
MATCH (c:conference {name: 'ICML'})<-[:paper_in_venue]-(p:paper)-[:paper_in_domain]->(d:domain)
RETURN DISTINCT p.year, COUNT (p) as counts, d.name
ORDER BY p.year, counts DESC


input_text: Generate cypher query for the question: What are the most common research themes in papers by authors from 'Carnegie Mellon University' and 'Stanford University'. Only give cypher query, without any other words.

output_text:
MATCH (p:paper)-[:paper_in_domain]->(d:domain),
      (p)<-[:author_write_paper]-(a1:author)-[:author_in_affiliation]->(aff1:affiliation {name: 'Carnegie Mellon University'}),
      (p)<-[:author_write_paper]-(a2:author)-[:author_in_affiliation]->(aff2:affiliation {name: 'Stanford University'})
RETURN d.name, COUNT(p) AS numPapers
ORDER BY numPapers DESC


input_text: Generate cypher query for the question: Identify the top 5 most cited papers in the domain of Machine Learning from 'University of Oxford'. Only give cypher query, without any other words.

output_text: MATCH (d:domain {name: 'Machine Learning'})<-[:paper_in_domain]-(p:paper)<-[:author_write_paper]-(a:author)-[:author_in_affiliation]->(aff:affiliation {name: 'University of Oxford'}) WITH p, SIZE([(p)-[:paper_cite_paper]->(cited:paper) | cited]) AS citations RETURN p.name, citations ORDER BY citations DESC LIMIT 5


input_text: Generate cypher query for the question: Who are the most active Search Engine researchers publishes the most in conferences? Only give cypher query, without any other words.

output_text:
MATCH (a:author)-[:author_write_paper]->(p:paper)-[:paper_in_venue]->(v:conference), (p)-[:paper_in_domain]->(:domain {name:'search engine'})
RETURN a.name, count(p) AS publications ORDER BY publications DESC"""


input_text: Generate cypher query for the question: What affiliations have the most authors? Only give cypher query, without any other words.

output_text:
MATCH (a:affiliation)<-[:author_in_affiliation]-(author:author)
WITH a, COUNT(author) AS numAuthors
RETURN a.name
ORDER BY numAuthors DESC
LIMIT 1


input_text: Generate cypher query for the question: Identify the top 5 most influential papers in 'SIGGRAPH' on the topic of Augmented Reality. Only give cypher query, without any other words.

output_text:
MATCH (:domain {name:'Augmented Reality'})<-[:paper_in_domain]-(p:paper)-[:paper_in_venue]->(c:conference {name: 'SIGGRAPH'})
RETURN p.name, SIZE([(p)<-[:paper_cite_paper]-(citingPaper:paper)|citingPaper]) AS citings
ORDER BY citings DESC LIMIT 5


input_text: Generate cypher query for the question: Identify papers that cite sources from more than 20 domain. Only give cypher query, without any other words.

output_text:
MATCH (p:paper)-[:paper_cite_paper]->(cited:paper)-[:paper_in_domain]->(d:domain)
WITH p, COUNT(DISTINCT d) AS numDomains
WHERE numDomains > 20
RETURN p.name, numDomains


input_text: Generate cypher query for the question: Which papers are written by 'Zhouchen Lin'? Only give cypher query, without any other words.

output_text: MATCH (a:author {name: 'Zhouchen Lin'})-[:author_write_paper]->(p:paper) RETURN p.name


input_text: Generate cypher query for the question: Find papers that cite more than 3 other papers. Only give cypher query, without any other words.

output_text:
MATCH (p:paper)-[:paper_cite_paper]->(:paper)
WITH p, COUNT(*) AS citations
WHERE citations > 3
RETURN p.name


input_text: Generate cypher query for the question: What are the most common co-authorship pairs? Only give cypher query, without any other words.

output_text:
MATCH (a1:author)-[:author_write_paper]->(p:paper)<-[:author_write_paper]-(a2:author)
RETURN a1.name, a2.name, COUNT(p) AS numPapers
ORDER BY numPapers DESC
LIMIT 1


input_text: Generate cypher query for the question: What are the emerging research areas in 'SIGGRAPH'? Only give cypher query, without any other words.

output_text: MATCH (c:conference {name: 'SIGGRAPH'})<-[:paper_in_venue]-(p:paper) RETURN p.name, p.year ORDER BY p.year DESC


input_text: Generate cypher query for the question: Which papers cite the paper 'A sequential algorithm for training text classifiers'? Only give cypher query, without any other words.

output_text: MATCH (p:paper {name: 'A sequential algorithm for training text classifiers'})<-[:paper_cite_paper]-(c:paper) RETURN c.name