problem
stringlengths
121
422
db_id
stringclasses
69 values
solution
stringlengths
23
804
Write SQL query to solve given problem: Which region has the highest number of games sold on all platforms?. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT T.region_name FROM ( SELECT T2.region_name, SUM(T1.num_sales) FROM region_sales AS T1 INNER JOIN region AS T2 ON T1.region_id = T2.id INNER JOIN game_platform AS T3 ON T1.game_platform_id = T3.id INNER JOIN platform AS T4 ON T3.platform_id = T4.id GROUP BY T4.platform_name ORDER BY SUM(T1.num_sales) DESC LIMIT 1 ) t
Write SQL query to solve given problem: How many games were sold on PS3 platform in Japan?. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT SUM(T1.num_sales * 100000) FROM region_sales AS T1 INNER JOIN region AS T2 ON T1.region_id = T2.id INNER JOIN game_platform AS T3 ON T1.game_platform_id = T3.id INNER JOIN platform AS T4 ON T3.platform_id = T4.id WHERE T2.region_name = 'Japan' AND T4.platform_name = 'PS3'
Write SQL query to solve given problem: What are the names of games that were released in 2007?. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT T3.game_name FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T1.release_year = 2007
Write SQL query to solve given problem: How many games were published by Activision?. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT COUNT(DISTINCT T3.id) FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN game AS T3 ON T1.game_id = T3.id WHERE T2.publisher_name = 'Activision'
Write SQL query to solve given problem: Indicate the release year of the game with more than 200000 sales in Japan.. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT DISTINCT T3.release_year FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id WHERE T2.num_sales * 100000 > 200000 AND T1.region_name = 'Japan'
Write SQL query to solve given problem: In 2010, how many PS3 games were released?. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT COUNT(T3.game_id) FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id INNER JOIN game_publisher AS T3 ON T2.game_publisher_id = T3.id WHERE T1.platform_name = 'PS3' AND T2.release_year = 2010
Write SQL query to solve given problem: Indicate the publisher who has published the most games of all time.. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT T.publisher_name FROM ( SELECT T2.publisher_name, COUNT(DISTINCT T1.game_id) FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id GROUP BY T2.publisher_name ORDER BY COUNT(DISTINCT T1.game_id) DESC LIMIT 1 ) t
Write SQL query to solve given problem: How many shooter games are there?. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT COUNT(T1.id) FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T2.genre_name = 'Shooter'
Write SQL query to solve given problem: What is the percentage of games that were released on PS4 in 2014 among all platforms?. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT CAST(COUNT(CASE WHEN T2.platform_name = 'PS4' THEN T3.game_id ELSE NULL END) AS REAL) * 100 / COUNT(T3.game_id) FROM game_platform AS T1 INNER JOIN platform AS T2 ON T1.platform_id = T2.id INNER JOIN game_publisher AS T3 ON T1.game_publisher_id = T3.id WHERE T1.release_year = 2014
Write SQL query to solve given problem: How much are the sales of the games in region ID 4?. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT SUM(T.num_sales) * 100000 FROM region_sales AS T WHERE T.region_id = 4
Write SQL query to solve given problem: List down the game platform IDs of games with a region ID of 1.. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT T.game_platform_id FROM region_sales AS T WHERE T.region_id = 1
Write SQL query to solve given problem: Calculate the difference between sales of games from region ID 2 and region ID 3.. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT SUM(CASE WHEN T.region_id = 2 THEN T.num_sales ELSE 0 END) - SUM(CASE WHEN T.region_id = 3 THEN T.num_sales ELSE 0 END) FROM region_sales t
Write SQL query to solve given problem: List down the platform IDs of the games released in 2007.. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT DISTINCT T.platform_id FROM game_platform AS T WHERE T.release_year = 2007
Write SQL query to solve given problem: State the game publisher IDs of the games with a platform ID of 16.. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT T.game_publisher_id FROM game_platform AS T WHERE T.platform_id = 16
Write SQL query to solve given problem: Calculate the number of game publisher IDs for games released in 1984.. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT COUNT(T.game_publisher_id) FROM game_platform AS T WHERE T.release_year = 1984
Write SQL query to solve given problem: List down the platform IDs of the games with a region ID of 3.. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT T2.id FROM region_sales AS T1 INNER JOIN game_platform AS T2 ON T1.game_platform_id = T2.id WHERE T1.region_id = 3
Write SQL query to solve given problem: What are the sales made by the games in Japan region?. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT SUM(CASE WHEN T2.region_name = 'Japan' THEN T1.num_sales ELSE 0 END) AS nums FROM region_sales AS T1 INNER JOIN region AS T2 ON T1.region_id = T2.id
Write SQL query to solve given problem: How many game publisher IDs have published games on the X360 platform?. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT COUNT(T1.game_publisher_id) FROM game_platform AS T1 INNER JOIN platform AS T2 ON T1.platform_id = T2.id WHERE T2.platform_name = 'X360'
Write SQL query to solve given problem: State the name of the platforms for games released in 2000.. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT DISTINCT T2.platform_name FROM game_platform AS T1 INNER JOIN platform AS T2 ON T1.platform_id = T2.id WHERE T1.release_year = 2000
Write SQL query to solve given problem: Find out the difference between the number of publishers who released the games on the PS3 and X360.. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT COUNT(CASE WHEN T2.platform_name = 'PS3' THEN T1.game_publisher_id ELSE NULL END) - COUNT(CASE WHEN T2.platform_name = 'X360' THEN T1.game_publisher_id ELSE NULL END) FROM game_platform AS T1 INNER JOIN platform AS T2 ON T1.platform_id = T2.id
Write SQL query to solve given problem: What are the game IDs of the games published by Bethesda Softworks?. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT T1.game_id FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T2.publisher_name = 'Bethesda Softworks'
Write SQL query to solve given problem: Calculate the total number of IDs for the game published by Capcom and Sony Computer Entertainment.. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT COUNT(DISTINCT T1.game_id) FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T2.publisher_name IN ('Capcom', 'Sony Computer Entertainment')
Write SQL query to solve given problem: What is the genre of the game "Grand Theft Auto V"?. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT T2.genre_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T1.game_name = 'Grand Theft Auto V'
Write SQL query to solve given problem: List down the names of the games in the racing genre.. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT T1.game_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T2.genre_name = 'Racing'
Write SQL query to solve given problem: Calculate the number of games in the fighting genre.. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT COUNT(T1.id) FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T2.genre_name = 'Fighting'
Write SQL query to solve given problem: What are the genres of games published by the publisher with an ID of 464?. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT DISTINCT T2.genre_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id INNER JOIN game_publisher AS T3 ON T1.id = T3.game_id WHERE T3.publisher_id = 464
Write SQL query to solve given problem: Find out the platform of the game "Final Fantasy XIII-2".. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT T4.platform_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN game_platform AS T3 ON T2.id = T3.game_publisher_id INNER JOIN platform AS T4 ON T3.platform_id = T4.id WHERE T1.game_name = 'Final Fantasy XIII-2'
Write SQL query to solve given problem: Calculate the total sales made by the games released in 2000.. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT SUM(T1.num_sales) FROM region_sales AS T1 INNER JOIN game_platform AS T2 ON T1.game_platform_id = T2.id WHERE T2.release_year = 2000
Write SQL query to solve given problem: Calculate the difference in sales between the games released in 1990 and 2000.. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT SUM(CASE WHEN T2.release_year = 2000 THEN T1.num_sales ELSE 0 END) - SUM(CASE WHEN T2.release_year = 1990 THEN T1.num_sales ELSE 0 END) FROM region_sales AS T1 INNER JOIN game_platform AS T2 ON T1.game_platform_id = T2.id
Write SQL query to solve given problem: What are the platform IDs of records released in 2006?. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT DISTINCT T.platform_id FROM game_platform AS T WHERE T.release_year = 2006
Write SQL query to solve given problem: Compute the average number of sales in region ID 3.. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT AVG(T.num_sales * 100000) FROM region_sales AS T WHERE T.region_id = 3
Write SQL query to solve given problem: In which year did the record ID 19 with game publisher ID 6657 released?. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT T.release_year FROM game_platform AS T WHERE T.game_publisher_id = 6657 AND T.id = 19
Write SQL query to solve given problem: Calculate the total sales in all regions with game platform ID 66.. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT SUM(T.num_sales) * 100000 FROM region_sales AS T WHERE T.game_platform_id = 66
Write SQL query to solve given problem: Give the game name of the game ID 44.. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT T.game_name FROM game AS T WHERE T.id = 44
Write SQL query to solve given problem: List the games available on Wii.. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT T4.game_name FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id INNER JOIN game_publisher AS T3 ON T2.game_publisher_id = T3.id INNER JOIN game AS T4 ON T3.game_id = T4.id WHERE T1.platform_name = 'Wii'
Write SQL query to solve given problem: Provide the name of games released in 2015.. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT T3.game_name FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T1.release_year = 2015
Write SQL query to solve given problem: What is the total number of adventure games released in 2005?. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT COUNT(DISTINCT T3.id) FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN game AS T3 ON T2.game_id = T3.id INNER JOIN genre AS T4 ON T3.genre_id = T4.id WHERE T4.genre_name = 'Adventure' AND T1.release_year = 2005
Write SQL query to solve given problem: What is the name of the company that produced the game titled Adventure Time: Explore the Dungeon Because I Don't Know!?. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT T3.publisher_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id WHERE T1.game_name = 'Adventure Time: Explore the Dungeon Because I Don''t Know!'
Write SQL query to solve given problem: List down the game platform ID and region name where the games achieved 20000 sales and below.. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT T2.game_platform_id, T1.region_name FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id WHERE T2.num_sales * 100000 <= 20000
Write SQL query to solve given problem: Provide the name of game produced by 505 Games in 2006.. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT T3.game_name FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN game AS T3 ON T2.game_id = T3.id INNER JOIN publisher AS T4 ON T2.publisher_id = T4.id WHERE T4.publisher_name = '505 Games' AND T1.release_year = 2006
Write SQL query to solve given problem: What is the genre of the game ID 119?. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT T2.genre_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T1.id = 119
Write SQL query to solve given problem: List the game IDs of the games produced by Abylight.. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT T1.game_id FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T2.publisher_name = 'Abylight'
Write SQL query to solve given problem: In which region where a game had the lowest number of sales?. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT DISTINCT T1.region_name FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id ORDER BY T2.num_sales LIMIT 1
Write SQL query to solve given problem: List down the name of strategy games.. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT T1.game_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T2.genre_name = 'Strategy'
Write SQL query to solve given problem: In what platform does the game ID 178 available?. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT T3.platform_name FROM game_publisher AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.game_publisher_id INNER JOIN platform AS T3 ON T2.platform_id = T3.id WHERE T1.game_id = 178
Write SQL query to solve given problem: Give the genre of the following game titled 'Airlock' , 'Airline Tycoon' , and 'Airblade', respectively.. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT T2.genre_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T1.game_name IN ('Airlock', 'Airline Tycoon', 'Airblade')
Write SQL query to solve given problem: Calculate the total number of sales in North America.. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT SUM(T2.num_sales) * 100000 AS nums FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id WHERE T1.region_name = 'North America'
Write SQL query to solve given problem: List down at least five publishers of the games with number of sales less than 10000.. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT T.publisher_name FROM ( SELECT DISTINCT T5.publisher_name FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id INNER JOIN game_publisher AS T4 ON T3.game_publisher_id = T4.id INNER JOIN publisher AS T5 ON T4.publisher_id = T5.id WHERE T1.region_name = 'North America' AND T2.num_sales * 100000 < 10000 LIMIT 5 ) t
Write SQL query to solve given problem: List the platform ID of the game titled Airborne Troops: Countdown to D-Day.. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT T1.platform_id FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T3.game_name = 'Airborne Troops: Countdown to D-Day'
Write SQL query to solve given problem: How many games available on PSP were released in 2004?. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT COUNT(T3.game_id) FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id INNER JOIN game_publisher AS T3 ON T2.game_publisher_id = T3.id WHERE T1.platform_name = 'PSP' AND T2.release_year = 2004
Write SQL query to solve given problem: What is the genre of the game titled '999: Nine Hours, Nine Persons, Nine Doors' ?. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT T2.genre_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T1.game_name = '999: Nine Hours, Nine Persons, Nine Doors'
Write SQL query to solve given problem: When was the game ID 156 released?. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT T1.release_year FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id WHERE T2.game_id = 156
Write SQL query to solve given problem: What is the diffrence between the number of games produced by Culture Brain that can be played on SNES and DS?. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT COUNT(CASE WHEN T1.platform_name = 'SNES' THEN T3.game_id ELSE NULL END) - COUNT(CASE WHEN T1.platform_name = 'DS' THEN T3.game_id ELSE NULL END) FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id INNER JOIN game_publisher AS T3 ON T2.game_publisher_id = T3.id INNER JOIN publisher AS T4 ON T3.publisher_id = T4.id WHERE T4.publisher_name = 'Culture Brain'
Write SQL query to solve given problem: In games that can be played on Wii, what is the percentage of games released in 2007?. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT CAST(COUNT(CASE WHEN T2.release_year = 2007 THEN T3.game_id ELSE NULL END) AS REAL) * 100 / COUNT(T3.game_id) FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id INNER JOIN game_publisher AS T3 ON T2.game_publisher_id = T3.id WHERE T1.platform_name = 'Wii'
Write SQL query to solve given problem: Among games sold in Europe, list the platform ID of games with sales lesser than 30% of the average number of sales.. Keep the solution inside sql tag ```sql [SQL-Query] ```
video_games
SELECT DISTINCT T3.platform_id FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id WHERE T1.region_name = 'Europe' AND T2.num_sales * 100 * 100000 < ( SELECT AVG(T2.num_sales * 100000) * 30 FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id WHERE T1.region_name = 'Europe' )
Write SQL query to solve given problem: How many authors are affiliated with University of California Berkeley?. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT COUNT(Id) FROM Author WHERE Affiliation = 'University of California Berkeley'
Write SQL query to solve given problem: What is the paper "Stitching videos streamed by mobile phones in real-time" about?. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT Keyword FROM Paper WHERE Title = 'Stitching videos streamed by mobile phones in real-time'
Write SQL query to solve given problem: Please list the titles of the papers published in the journal "Concepts in Magnetic Resonance Part A" in 2008.. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT T2.Title FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T1.FullName = 'Concepts in Magnetic Resonance Part A' AND T2.Year = 2008
Write SQL query to solve given problem: How many papers were published in the journal "Concepts in Magnetic Resonance Part A"?. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT COUNT(T2.Id) FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T1.FullName = 'Concepts in Magnetic Resonance Part A'
Write SQL query to solve given problem: What is the url of the journal in which the paper "Area Effects in Cepaea" was published?. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT T1.HomePage FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T2.Title = 'Area Effects in Cepaea'
Write SQL query to solve given problem: Among the papers published in the journal "Molecular Brain", how many of them were published in the year 2011?. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT COUNT(T2.Id) FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T2.Year = 2011 AND T1.FullName = 'Molecular Brain'
Write SQL query to solve given problem: How many papers were published in 2011 in the journal whose short name is "Mol Brain"?. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT COUNT(T2.Id) FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T2.Year = 2011 AND T1.ShortName = 'Mol Brain'
Write SQL query to solve given problem: How many authors does the paper "Equation Solving in Geometrical Theories" have?. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT COUNT(T1.AuthorId) FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T2.Title = 'Equation Solving in Geometrical Theories'
Write SQL query to solve given problem: Please list the names of the authors of the paper "Area Effects in Cepaea".. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT T1.Name FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T2.Title = 'Area Effects in Cepaea'
Write SQL query to solve given problem: Among the authors of the paper "Stitching videos streamed by mobile phones in real-time", how many of them are affiliated with Cairo Microsoft Innovation Lab?. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT COUNT(T1.AuthorId) FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T1.Affiliation = 'University of Tokyo' AND T2.Title = 'FIBER: A Generalized Framework for Auto-tuning Software'
Write SQL query to solve given problem: Which author of the paper "Incremental Extraction of Keyterms for Classifying Multilingual Documents in the Web" is affiliated with National Taiwan University Department of Computer Science and Information Engineering Taiwan?. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT T1.Name FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T2.Title = 'Incremental Extraction of Keyterms for Classifying Multilingual Documents in the Web' AND T1.Affiliation = 'National Taiwan University Department of Computer Science and Information Engineering Taiwan'
Write SQL query to solve given problem: What is the title of the paper published in 1995 and whose author included Thomas Wiegand?. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT T2.Title FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T1.Name = 'Thomas Wiegand' AND T2.Year = 1995
Write SQL query to solve given problem: How many papers whose authors include Thomas Wiegand were published in 1995?. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT COUNT(T2.Title) FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T1.Name = 'Thomas Wiegand' AND T2.Year = 1995
Write SQL query to solve given problem: What is the average number of papers published in the journal "Molecular Brain" every year from 2008 to 2011?. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT CAST(COUNT(T2.Id) AS REAL) / COUNT(DISTINCT T2.Year) FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T1.FullName = 'Molecular Brain' AND T2.Year BETWEEN 2008 AND 2011
Write SQL query to solve given problem: How many more papers in total were published in the journal "Cases Journal" than in the journal "Molecular Brain" in percentage?. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT SUM(CASE WHEN T1.FullName = 'Cases Journal' THEN 1 ELSE 0 END) - SUM(CASE WHEN T1.FullName = 'Molecular Brain' THEN 1 ELSE 0 END) AS DIFF FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId
Write SQL query to solve given problem: How many journals have a word "computing" in its full name?. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT COUNT(Id) FROM Journal WHERE FullName LIKE '%computing%'
Write SQL query to solve given problem: What is the short name and full name of conference uses the homepage "http://www.informatik.uni-trier.de/~ley/db/conf/ices/index.html"?. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT ShortName, FullName FROM Conference WHERE HomePage = 'http://www.informatik.uni-trier.de/~ley/db/conf/ices/index.html'
Write SQL query to solve given problem: List the title of papers with a conference ID from 160 to 170, include their conference short name.. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT DISTINCT T1.Title, T2.ShortName FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T1.ConferenceId BETWEEN 160 AND 170
Write SQL query to solve given problem: What is the title and journal homepage of the latest published paper?. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT T1.Title, T2.HomePage FROM Paper AS T1 INNER JOIN Journal AS T2 ON T1.JournalId = T2.Id ORDER BY T1.Year DESC LIMIT 1
Write SQL query to solve given problem: In year 1999, list the titles and conference's short name of paper authored by someone named "Philip".. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT T1.Title, T3.ShortName FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId INNER JOIN Conference AS T3 ON T1.ConferenceId = T3.Id WHERE T1.Year = 1999 AND T2.Name LIKE 'Philip%'
Write SQL query to solve given problem: What is the total number and conference's homepage of papers held in a conference with an ID of 187 during 1990 to 2000?. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT COUNT(T2.ConferenceId), T1.HomePage FROM Conference AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.ConferenceId WHERE T2.Year BETWEEN 1990 AND 2000 AND T2.ConferenceId = 187
Write SQL query to solve given problem: What is the title of the paper published in 2003 by an author with affiliation with Department of Network Science, Graduate School of Information Systems, The University of Electro-Communications?. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT DISTINCT T2.Title FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T1.Affiliation = 'Department of Network Science, Graduate School of Information Systems, The University of Electro-Communications' AND T2.Year = 2003
Write SQL query to solve given problem: List the authors and journal short name of the papers with "chemiluminescence" in its title and has a journal ID from 245 to 250.. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT T2.Name, T3.ShortName FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId INNER JOIN Journal AS T3 ON T1.JournalId = T3.Id WHERE T1.JournalId BETWEEN 245 AND 250 AND T1.Title LIKE '%chemiluminescence%'
Write SQL query to solve given problem: Among the papers with conference ID of 0, list down the authors of papers with a journal ID less than 100.. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT DISTINCT T2.Name FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.ConferenceId = 0 AND T1.JournalId < 100
Write SQL query to solve given problem: What is the title and author ID of paper with conference ID less than 100 in year 2006?. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT DISTINCT T1.Title, T2.AuthorId FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.Year = 2006 AND T1.ConferenceId < 100
Write SQL query to solve given problem: What are the paper IDs of papers presented in conferences has a homepage starts with "http://www.informatik.uni-trier.de/~ley/db/conf/"?. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT T1.Id FROM Paper AS T1 INNER JOIN Conference AS T2 ON T1.ConferenceId = T2.Id WHERE T2.HomePage LIKE 'http://www.informatik.uni-trier.de/~ley/db/conf/%'
Write SQL query to solve given problem: What are the journal homepages and author ID of the papers published in 2000 to 2005 with a word "social" in its title?. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT T3.HomePage, T2.AuthorId FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId INNER JOIN Journal AS T3 ON T1.JournalId = T3.Id WHERE T1.Year BETWEEN 2000 AND 2005 AND T1.Title LIKE '%SOCIAL%'
Write SQL query to solve given problem: What is the author ID and their affiliations of authors of the papers with a journal ID of 0 and published in 2009.. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT DISTINCT T2.AuthorId, T2.Affiliation FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.JournalId = 0 AND T1.Year = 2009 AND T2.Affiliation IS NOT NULL
Write SQL query to solve given problem: In papers with journal IDs from 200 to 300 and with its short name starts with A, what is the percentage of papers with conference ID of 0?. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT CAST(SUM(CASE WHEN T1.ConferenceId = 0 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.ConferenceId) FROM Paper AS T1 INNER JOIN Journal AS T2 ON T1.JournalId = T2.Id WHERE T1.JournalId BETWEEN 200 AND 300 AND T2.ShortName LIKE 'A%'
Write SQL query to solve given problem: Within the year of 2001 to 2010, find the paper published rate of 2001.. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT CAST(SUM(CASE WHEN Year = 2001 THEN 1 ELSE 0 END) AS REAL) / COUNT(Id) FROM Paper WHERE Year >= 2001 AND Year < 2011
Write SQL query to solve given problem: Between "Standford University" and "Massachusetts Institute of Technolgy", which organization had affiliated with more author.?. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT Affiliation FROM Author WHERE Affiliation IN ('Stanford University', 'Massachusetts Institute of Technology') GROUP BY Affiliation ORDER BY COUNT(Id) DESC LIMIT 1
Write SQL query to solve given problem: What is the ratio of author with affiliation and without affiliation?. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT CAST(SUM(CASE WHEN Affiliation IS NULL THEN 1 ELSE 0 END) AS REAL) / COUNT(*) FROM Author
Write SQL query to solve given problem: Write down the author's name and IDs who are affiliated with Univeristiy of Oulu.. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT Name, id FROM Author WHERE Affiliation = 'University of Oulu'
Write SQL query to solve given problem: Write down the title and affiliation of the preprinted paper written by "Roger J.Marshal".. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT T1.Title, T2.Affiliation FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T2.Name = 'Roger J. Marshall' AND T1.ConferenceID = 0 AND T1.JournalID = 0
Write SQL query to solve given problem: Find the paper ID, title, published year and journal's full name of the paper which included the most number in author.. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT T1.Id, T1.Title, T1.Year, T3.FullName FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId INNER JOIN Journal AS T3 ON T1.JournalId = T3.Id GROUP BY T2.AuthorId ORDER BY COUNT(T2.AuthorId) DESC LIMIT 1
Write SQL query to solve given problem: Describe the paper title, published year, conference's short name and included author names in the paper ID of 15.. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT DISTINCT T1.Title, T1.Year, T3.ShortName, T2.Name FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId INNER JOIN Conference AS T3 ON T1.ConferenceId = T3.Id WHERE T1.Id = 15
Write SQL query to solve given problem: Among author ID of under 1000, who published the paper in affiliation with Zurich, ETH, provide paper ID, year and keyword if any.. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT T2.Id, T2.Year, T2.Keyword FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T1.AuthorId < 1000 AND T1.Affiliation = 'Zurich, ETH'
Write SQL query to solve given problem: Among the author included in the paper of "Inspection resistant memory: Architectural support for security from physical examination", write down the author name and ID who were affiliated with Microsoft Research, USA.. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT T2.Name, T1.Id FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId WHERE T1.Title = 'Inspection resistant memory: Architectural support for security FROM physical examination' AND T2.Affiliation = 'Microsoft Research, USA'
Write SQL query to solve given problem: Write down the author name, affiliation, jounal short name and full name of the paper "Decreased Saliva Secretion and Down-Regulation of AQP5 in Submandibular Gland in Irradiated Rats".. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT T2.Name, T2.Affiliation, T3.ShortName, T3.FullName FROM Paper AS T1 INNER JOIN PaperAuthor AS T2 ON T1.Id = T2.PaperId INNER JOIN Journal AS T3 ON T1.JournalId = T3.Id WHERE T1.Title = 'Decreased Saliva Secretion and Down-Regulation of AQP5 in Submandibular Gland in Irradiated Rats'
Write SQL query to solve given problem: List the paper title and journal ID which were published under the conference name of "International Symposium of Robotics Research".. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT DISTINCT T2.Title, T2.JournalId FROM Conference AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.ConferenceId WHERE T1.FullName = 'International Symposium of Robotics Research' AND T2.Year = 2003
Write SQL query to solve given problem: Name the title, year and keyword of the paper which were written by the author ID of 661002 with the affiliation of "Scientific Computing and Imaging Institute, University of Utah, UT 84112, USA" organization.. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT T2.Title, T2.Year, T2.Keyword FROM PaperAuthor AS T1 INNER JOIN Paper AS T2 ON T1.PaperId = T2.Id WHERE T1.AuthorId = 661002 AND T1.Affiliation = 'Scientific Computing and Imaging Institute, University of Utah, UT 84112, USA'
Write SQL query to solve given problem: Calculate the differences of the paper number with the journal name of IWC in 2000 and 2010.. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT SUM(CASE WHEN T2.Year = 2000 THEN 1 ELSE 0 END) - SUM(CASE WHEN T2.Year = 2010 THEN 1 ELSE 0 END) AS DIFF FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T1.ShortName = 'IWC'
Write SQL query to solve given problem: Provide any four valid Journal ID along with short name and full name of the papers which were made in 2013.. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT DISTINCT T2.JournalId, T1.ShortName, T1.FullName FROM Journal AS T1 INNER JOIN Paper AS T2 ON T1.Id = T2.JournalId WHERE T2.Year = 2013 AND T2.JournalId != 0 AND T2.JournalId != -1 LIMIT 4
Write SQL query to solve given problem: Under the conference name of MICRO, calculate how many more paper is needed to published in 1971 to 1980 in average by yearly to get equivalent to the number of paper from 1991 to 2000. Write down the title and author name of the paper that were actually published during 1971 to 1980 with the conference name with MICRO.. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT T2.title, T3.name, T1.FullName FROM Conference AS T1 INNER JOIN Paper AS T2 ON T1.id = T2.ConferenceId INNER JOIN PaperAuthor AS T3 ON T1.id = T3.PaperId WHERE T1.ShortName = 'MICRO' AND T2.Year BETWEEN '1971' AND '1980'
Write SQL query to solve given problem: How many of the papers are preprinted or not published?. Keep the solution inside sql tag ```sql [SQL-Query] ```
authors
SELECT COUNT(Id) FROM Paper WHERE Year = 0