context
stringlengths
11
9.12k
question
stringlengths
0
1.06k
SQL
stringlengths
2
4.44k
source
stringclasses
28 values
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
Calculate the average number of different words that appear on all pages whose title begins with A.
SELECT AVG(words) FROM pages WHERE title LIKE 'A%'
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
Calculate the average number of repetitions in the pairs of words in which the first word id is number 34.
SELECT CAST(SUM(CASE WHEN w1st = 34 THEN 1 ELSE 0 END) AS REAL) / COUNT(w1st) FROM biwords
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
Calculate the percentage of pages that have 1500 different words.
SELECT CAST(COUNT(CASE WHEN words = 1500 THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(page) FROM pages WHERE words > 300 LIMIT 3
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
Calculate the percentage of times that the same word appears in a pair.
SELECT CAST(COUNT(CASE WHEN w1st = w2nd THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(w1st) FROM biwords
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
Indicate the title of all the pages in which the word comunitat appears.
SELECT T3.title FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid INNER JOIN pages AS T3 ON T2.pid = T3.pid WHERE T1.word = 'comunitat'
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
Indicate on how many different pages the word ripoll appears.
SELECT T3.page FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid INNER JOIN pages AS T3 ON T2.pid = T3.pid WHERE T1.word = 'ripoll'
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
How many words are repeated on the Llista de conflictes armats page?
SELECT occurrences FROM pages_words WHERE pid = ( SELECT pid FROM pages WHERE title = 'Llista de conflictes armats' )
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
Indicate if there is any pair formed by the words fukunaga and d'egees.
SELECT CASE WHEN COUNT(T1.wid) > 0 THEN 'yes' ELSE 'no' END FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st OR T1.wid = T2.w2nd WHERE T2.w1st = ( SELECT wid FROM words WHERE T1.word = 'fukunaga' ) AND T2.w2nd = ( SELECT wid FROM words WHERE word LIKE 'd%egees' )
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
Calculate the average of repetitions in the pages that have a total of 100 different words.
SELECT CAST(SUM(T2.occurrences) AS REAL) / COUNT(T1.page) FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T1.words = 100
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
Which Wikipedia page number does the Catalan language's name, Acampada, appear on?
SELECT page FROM pages WHERE title = 'Acampada'
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
Please list any three Wikipedia pages with more than 300 words.
SELECT page FROM pages WHERE words > 300 LIMIT 3
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
How many times did the word number 8 appear?
SELECT occurrences FROM words WHERE wid = 8
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
Please list the top three most frequently occurring words and their ids.
SELECT word, wid FROM words ORDER BY occurrences DESC LIMIT 3
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
How frequently did the words 1 and 25 appear together?
SELECT occurrences FROM biwords WHERE w1st = 1 AND w2nd = 25
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
What number of words are there on revision page 27457362?
SELECT words FROM pages WHERE revision = 27457362
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
What is the percentage of words in the Catalan language that have a repetition of more than 16,000 times?
SELECT CAST(COUNT(CASE WHEN occurrences > 16000 THEN lid ELSE NULL END) AS REAL) * 100 / COUNT(lid) FROM langs_words
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
Which Wikipedia page number has the highest number of words in the Catalan language?
SELECT page FROM pages WHERE words = ( SELECT MAX(words) FROM pages )
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
What proportion of a pair of words in the Catalan language have been repeated less than 80 times?
SELECT CAST(COUNT(CASE WHEN occurrences < 80 THEN lid ELSE NULL END) AS REAL) * 100 / COUNT(lid) FROM biwords
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
How many Catalan-language Wikipedia pages are there overall?
SELECT pages FROM langs WHERE lang = 'ca'
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
Please list any three Wikipedia pages that are written in Catalan, together with their titles and revision page numbers.
SELECT title, revision FROM pages WHERE lid = 1 LIMIT 3
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
What is the language of the pair of words numbered 1 and 616?
SELECT T2.lang FROM biwords AS T1 INNER JOIN langs AS T2 ON T1.lid = T2.lid WHERE T1.w1st = 1 AND T1.w2nd = 616
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
How many times does the Catalan word "nombre" repeat itself?
SELECT T1.occurrences FROM langs_words AS T1 INNER JOIN words AS T2 ON T1.wid = T2.wid WHERE T2.word = 'nombre'
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
What is the second word in the pair of words number 1 and 8968?
SELECT word FROM words WHERE wid = 8968
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
Which word has the most repetitions in the Catalan language?
SELECT T2.word FROM langs_words AS T1 INNER JOIN words AS T2 ON T1.wid = T2.wid WHERE T1.occurrences = ( SELECT MAX(occurrences) FROM langs_words )
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
How many times on page number 44 does the word "votives" appear?
SELECT T2.occurrences FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid WHERE T1.word = 'votives' AND T2.pid = 44
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
How many times on page number 16 does the second word in the pair of words 1 and 109 appear?
SELECT SUM(T1.occurrences) FROM pages_words AS T1 INNER JOIN biwords AS T2 ON T2.w2nd = T1.wid WHERE T2.w2nd = 109 AND T2.w1st = 1 AND T1.pid = 16
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
What is the percentage of the words that have been repeated under 180 times in the Catalan language?
SELECT CAST(COUNT(CASE WHEN T2.occurrences < 180 THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.lid) FROM langs AS T1 INNER JOIN langs_words AS T2 ON T1.lid = T2.lid WHERE T1.lang = 'ca'
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
What percentage of Catalan-language Wikipedia pages have more than 10,000 words?
SELECT CAST(COUNT(CASE WHEN T2.words > 10000 THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T2.page) FROM langs AS T1 INNER JOIN pages AS T2 ON T1.lid = T2.lid WHERE T1.lang = 'ca'
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
How many times the word "desena" occurs?
SELECT occurrences FROM words WHERE word = 'desena'
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
How many words has the appearance times greater than 10?
SELECT COUNT(w1st) AS countwords FROM biwords WHERE occurrences > 10
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
List out the total pages of Wikipedia in Catalan language.
SELECT pages FROM langs
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
How many words have repetitions greater than 2000 and lower than 5000?
SELECT COUNT(wid) FROM langs_words WHERE occurrences BETWEEN '2000' AND '5000'
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
List out the title of Catalan language Wikipedia page that has wikipedia revision page id as 106601.
SELECT title FROM pages WHERE revision = 106601
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
State the Wikipedia page title that has revision page id of 28040864.
SELECT title FROM pages WHERE revision = 28040864
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
How many times that the word pair of "barcelona" and "precolombina" occur?
SELECT SUM(occurrences) FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'barcelona' ) AND w2nd = ( SELECT wid FROM words WHERE word = 'precolombina' )
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
What is the locale of the language of the page titled "Anys 90"?
SELECT T1.locale FROM langs AS T1 INNER JOIN pages AS T2 ON T1.lid = T2.lid WHERE T2.title = 'Anys 90'
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
Which word that has 71303 appearance in the Catalan language?
SELECT T1.word FROM words AS T1 INNER JOIN langs_words AS T2 ON T1.wid = T2.wid WHERE T2.occurrences = 71303
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
What is the locale of the language of the page titled "Abril"?
SELECT T1.locale FROM langs AS T1 INNER JOIN pages AS T2 ON T1.lid = T2.lid WHERE T2.title = 'Abril'
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
What is the total number of words in page containing pair of word id "100" and "317"?
SELECT words FROM langs WHERE lid = ( SELECT lid FROM biwords WHERE w1st = 100 AND w2nd = 317 )
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
State the total pages of the words that has repeated times of 2593.
SELECT COUNT(T1.pages) FROM langs AS T1 INNER JOIN langs_words AS T2 ON T1.lid = T2.lid WHERE T2.occurrences = 2593
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
List out the title of the word have id less than 20.
SELECT DISTINCT T1.title FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T2.wid < 20
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
How many word that has number of different words equal to 3?
SELECT COUNT(T2.wid) FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T1.words = 3
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
How many word appeared 8 times? State the language id of the page.
SELECT COUNT(T2.wid), T1.lid FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T2.occurrences = 8
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
Calculate the average percentage of word appearance in the page that have revision page id smaller than 106680.
SELECT CAST(SUM(T1.words) AS REAL) * 100 / SUM(T2.occurrences) FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T1.revision < 106680
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
List out the total pages of the words that has repeated times more than 3000.
SELECT T1.pages FROM langs AS T1 INNER JOIN langs_words AS T2 ON T1.lid = T2.lid WHERE T2.occurrences > 3000 GROUP BY T1.pages
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
State the name of the pair of word that have id of 20 and 50?
SELECT T1.word, T3.word FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st INNER JOIN words AS T3 ON T3.wid = T2.w2nd WHERE T2.w1st = 20 AND T2.w2nd = 50
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
How many pages of Wikipedia are there in total on the Catalan language?
SELECT pages FROM langs WHERE lang = 'ca'
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
Please list the titles of the Wikipedia pages on the Catalan language with more than 4000 words.
SELECT title FROM pages WHERE lid = 1 AND words > 4000
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
How many words are there on the page titled "Asclepi"?
SELECT words FROM pages WHERE title = 'Asclepi'
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
Which of these pages have more words, the page titled "Afluent" or "Asclepi"?
SELECT CASE WHEN ( SELECT words FROM pages WHERE title = 'Asclepi' ) > ( SELECT words FROM pages WHERE title = 'Afluent' ) THEN 'Asclepi' ELSE 'Afluent' END
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
What is the occurrence of the word "nombre"?
SELECT occurrences FROM words WHERE word = 'nombre'
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
Please list the Catalan words with an occurrence of over 200000.
SELECT word FROM words WHERE occurrences > 200000
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
What is the locale of the language of the page titled "Asclepi"?
SELECT T2.locale FROM pages AS T1 INNER JOIN langs AS T2 ON T1.lid = T2.lid WHERE T1.title = 'Asclepi'
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
How many times did the word "grec" occur on the page titled "Àbac"?
SELECT T2.occurrences FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid INNER JOIN pages AS T3 ON T2.pid = T3.pid WHERE T3.title = 'Àbac' AND T1.word = 'grec'
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
Please list the title of the pages on which the word "grec" occurred for over 20 times.
SELECT T3.title FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid INNER JOIN pages AS T3 ON T2.pid = T3.pid WHERE T1.word = 'grec' AND T2.occurrences > 20
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
How many words are there on the page that the word "grec" has occurred for 52 times?
SELECT SUM(T3.words) FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid INNER JOIN pages AS T3 ON T2.pid = T3.pid WHERE T1.word = 'grec' AND T2.occurrences = 52
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
What's the occurrence of the biwords pair whose first word is "àbac" and second word is "xinès"?
SELECT occurrences FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'àbac' ) AND w2nd = ( SELECT wid FROM words WHERE word = 'xinès' )
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
Which biwords pair has a higher occurrence, "àbac-xinès" or "àbac-grec"?
SELECT CASE WHEN ( SELECT occurrences FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'àbac' ) AND w2nd = ( SELECT wid FROM words WHERE word = 'xinès' ) ) > ( SELECT occurrences FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'àbac' ) AND w2nd = ( SELECT wid FROM words WHERE word = 'grec' ) ) THEN 'àbac-xinès' ELSE 'àbac-grec' END AS CALUS FROM words LIMIT 1
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
How many more times does the first word in the biwords pair "àbac-xinès" occur than the biwords pair itself?
SELECT occurrences - ( SELECT occurrences FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'àbac' ) AND w2nd = ( SELECT wid FROM words WHERE word = 'xinès' ) ) AS CALUS FROM words WHERE word = 'àbac'
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
Please list all the biwords pairs with "àbac" as its first word.
SELECT T1.word AS W1, T3.word AS W2 FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st INNER JOIN words AS T3 ON T3.wid = T2.w2nd WHERE T1.word = 'àbac'
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
What is the total occurrence of the biwords pairs with "àbac" as its first word?
SELECT COUNT(T2.w1st) FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st INNER JOIN words AS T3 ON T3.wid = T2.w2nd WHERE T1.word = 'àbac'
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
How many Wikipedia pages are there on the language of the biwords pair "àbac-xinès"?
SELECT COUNT(T1.pages) FROM langs AS T1 INNER JOIN biwords AS T2 ON T1.lid = T2.lid WHERE T2.w1st = ( SELECT wid FROM words WHERE word = 'àbac' ) AND T2.w2nd = ( SELECT wid FROM words WHERE word = 'xinès' )
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
How much higher in percentage does the word "grec" occur on the page titled "Àbac" than on the page titled "Astronomia"?
SELECT CAST((SUM(CASE WHEN T3.title = 'Àbac' THEN T2.occurrences END) - SUM(CASE WHEN T3.title = 'Astronomia' THEN T2.occurrences END)) AS REAL) * 100 / SUM(CASE WHEN T3.title = 'Astronomia' THEN T2.occurrences END) FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid INNER JOIN pages AS T3 ON T2.pid = T3.pid WHERE T1.word = 'grec'
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
How many pages does the Catalan language have in Wikipedia?
SELECT pages FROM langs WHERE lang = 'ca'
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
Which word has the most repetitions in the Catalan language? Give the ID of the word.
SELECT wid FROM langs_words WHERE occurrences = ( SELECT MAX(occurrences) FROM langs_words )
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
What is the word ID for the second word for the biwords pair with most repetitions?
SELECT w2nd FROM biwords WHERE occurrences = ( SELECT MAX(occurrences) FROM biwords )
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
How many occurrences does the word "panajot" have?
SELECT occurrences FROM words WHERE word = 'panajot'
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
Which word has the time of occurrences as 340691?
SELECT word FROM words WHERE occurrences = 340691
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
State the word ID for "periodograma".
SELECT wid FROM words WHERE word = 'periodograma'
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
For the biwords pair that appears "116430" times, what is the second word of the pair?
SELECT T1.word FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w2nd WHERE T2.occurrences = 116430
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
How many times does the word "riu" appears in the biwords pair?
SELECT COUNT(T1.wid) FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st INNER JOIN words AS T3 ON T3.wid = T2.w2nd WHERE T1.word = 'riu'
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
Which word has the most appearances in the Wikipedia page with the title of "Agricultura"? Give the word ID.
SELECT T2.wid FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T1.title = 'Agricultura' ORDER BY T2.occurrences DESC LIMIT 1
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
How many appearances does the word ID No. 2823 have in the Wikipedia page "Astre"?
SELECT SUM(T2.occurrences) FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T1.title = 'Astre' AND T2.wid = 2823
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
In which Wikipedia page does the word ID No. 174 have the most appearances? Give the title.
SELECT title FROM pages WHERE pid = ( SELECT pid FROM pages_words WHERE wid = 174 ORDER BY occurrences DESC LIMIT 1 )
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
How many times does the word "heròdot" appear in the Wikipedia page?
SELECT COUNT(T2.occurrences) FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid WHERE T1.word = 'heròdot'
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
Which word has the most appearances in the Wikipedia page revision ID No. 28278070? Give the word ID.
SELECT pid FROM pages_words WHERE pid = ( SELECT pid FROM pages WHERE revision = 28278070 ) ORDER BY occurrences DESC LIMIT 1
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
How many times does the biwords "que gregorio" appear in the language?
SELECT occurrences FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'que' ) AND w2nd = ( SELECT wid FROM words WHERE word = 'gregorio' )
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
How many biword pairs contain the word "base" as the second word?
SELECT COUNT(w1st) FROM biwords WHERE w2nd = ( SELECT wid FROM words WHERE word = 'base' )
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
How many times of repetition does the word "exemple" show in the Catalan language?
SELECT T2.occurrences FROM words AS T1 INNER JOIN langs_words AS T2 ON T1.wid = T2.wid WHERE T1.word = 'exemple' AND T2.lid = 1
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
Which word that has 274499 repetitions in the Catalan language?
SELECT T1.word FROM words AS T1 INNER JOIN langs_words AS T2 ON T1.wid = T2.wid WHERE T2.occurrences = 274499 AND T2.lid = 1
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
How many times greater is the appearances of the biword pair "a base" than "a decimal"?
SELECT CAST(occurrences AS REAL) / ( SELECT occurrences FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'a' ) AND w2nd = ( SELECT wid FROM words WHERE word = 'decimal' ) ) FROM biwords WHERE w1st = ( SELECT wid FROM words WHERE word = 'a' ) AND w2nd = ( SELECT wid FROM words WHERE word = 'base' )
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
For the word "grec", what is the percentage of the appearances in the "Art" Wikipedia page have among all the appearances?
SELECT CAST(SUM(CASE WHEN T3.title = 'Art' THEN T2.occurrences ELSE 0 END) AS REAL) * 100 / SUM(T2.occurrences) FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid INNER JOIN pages AS T3 ON T2.pid = T3.pid WHERE T1.word = 'grec'
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
How many Wikipedia pages with over 4000 different words are there on the Catalan language?
SELECT COUNT(lid) FROM pages WHERE lid = 1 AND words > 4000
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
Please list the titles of all the Wikipedia pages on the Catalan language with 10 different words.
SELECT title FROM pages WHERE lid = 1 AND words = 10 LIMIT 10
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
What is the word that occurs the most in the Catalan language?
SELECT word FROM words WHERE occurrences = ( SELECT MAX(occurrences) FROM words )
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
Please list the titles of the top 3 Wikipedia pages with the most different words on the Catalan language.
SELECT title FROM pages WHERE lid = 1 ORDER BY words DESC LIMIT 3
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
What is the revision ID for the page on Catalan titled "Arqueologia"?
SELECT revision FROM pages WHERE lid = 1 AND title = 'Arqueologia'
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
Among the wikipedia pages on Catalan with more than 300 different words, how many of them have a revision ID of over 28330000?
SELECT COUNT(lid) FROM pages WHERE lid = 1 AND words > 300 AND revision > 28330000
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
Please list the page IDs of all the Wikipedia pages that have the word "nombre" appeared on it.
SELECT T2.pid FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid WHERE T1.word = 'nombre'
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
How many Wikipedia pages on Catalan are there with the word "nombre" appearing for more than 5 times?
SELECT COUNT(T2.pid) FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid WHERE T1.word = 'nombre' AND T2.occurrences > 5
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
How many biwords pairs are there whose second word is "grec"?
SELECT COUNT(T2.w1st) FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w2nd WHERE T1.word = 'grec'
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
What is the title of the page on which the word "grec" has an occurrence of 52 times.
SELECT T3.title FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid INNER JOIN pages AS T3 ON T2.pid = T3.pid WHERE T1.word = 'grec' AND T2.occurrences = 52
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
Among the biwords pairs with "àbac" as its first word, how many of them have an occurrence of over 10?
SELECT COUNT(T2.w2nd) FROM words AS T1 INNER JOIN biwords AS T2 ON T1.wid = T2.w1st WHERE T1.word = 'àbac' AND T2.occurrences > 10
bird
CREATE TABLE language_corpus (lid integer, lang text, locale text, pages integer, words integer, pid integer, lid integer, page integer, revision integer, title text, words integer, wid integer, word text, occurrences integer, lid integer, wid integer, occurrences integer, pid integer, wid integer, occurrences integer, lid integer, w1st integer, w2nd integer, occurrences integer)
What is the average occurrence of the word "grec" on each Wikipedia page that has this word?
SELECT CAST(SUM(T2.occurrences) AS REAL) / COUNT(T1.wid) FROM words AS T1 INNER JOIN pages_words AS T2 ON T1.wid = T2.wid WHERE T1.word = 'grec'
bird
CREATE TABLE airline (Code integer, Description text, Code text, Description text, FL_DATE text, OP_CARRIER_AIRLINE_ID integer, TAIL_NUM text, OP_CARRIER_FL_NUM integer, ORIGIN_AIRPORT_ID integer, ORIGIN_AIRPORT_SEQ_ID integer, ORIGIN_CITY_MARKET_ID integer, ORIGIN text, DEST_AIRPORT_ID integer, DEST_AIRPORT_SEQ_ID integer, DEST_CITY_MARKET_ID integer, DEST text, CRS_DEP_TIME integer, DEP_TIME integer, DEP_DELAY integer, DEP_DELAY_NEW integer, ARR_TIME integer, ARR_DELAY integer, ARR_DELAY_NEW integer, CANCELLED integer, CANCELLATION_CODE text, CRS_ELAPSED_TIME integer, ACTUAL_ELAPSED_TIME integer, CARRIER_DELAY integer, WEATHER_DELAY integer, NAS_DELAY integer, SECURITY_DELAY integer, LATE_AIRCRAFT_DELAY integer)
How many flights were there on 2018/8/1?
SELECT COUNT(*) FROM Airlines WHERE FL_DATE = '2018/8/1'
bird
CREATE TABLE airline (Code integer, Description text, Code text, Description text, FL_DATE text, OP_CARRIER_AIRLINE_ID integer, TAIL_NUM text, OP_CARRIER_FL_NUM integer, ORIGIN_AIRPORT_ID integer, ORIGIN_AIRPORT_SEQ_ID integer, ORIGIN_CITY_MARKET_ID integer, ORIGIN text, DEST_AIRPORT_ID integer, DEST_AIRPORT_SEQ_ID integer, DEST_CITY_MARKET_ID integer, DEST text, CRS_DEP_TIME integer, DEP_TIME integer, DEP_DELAY integer, DEP_DELAY_NEW integer, ARR_TIME integer, ARR_DELAY integer, ARR_DELAY_NEW integer, CANCELLED integer, CANCELLATION_CODE text, CRS_ELAPSED_TIME integer, ACTUAL_ELAPSED_TIME integer, CARRIER_DELAY integer, WEATHER_DELAY integer, NAS_DELAY integer, SECURITY_DELAY integer, LATE_AIRCRAFT_DELAY integer)
Among the flights on 2018/8/1, how many of them departed from an airport in New York?
SELECT COUNT(*) FROM Airlines WHERE FL_DATE = '2018/8/1' AND ORIGIN = 'JFK'
bird
CREATE TABLE airline (Code integer, Description text, Code text, Description text, FL_DATE text, OP_CARRIER_AIRLINE_ID integer, TAIL_NUM text, OP_CARRIER_FL_NUM integer, ORIGIN_AIRPORT_ID integer, ORIGIN_AIRPORT_SEQ_ID integer, ORIGIN_CITY_MARKET_ID integer, ORIGIN text, DEST_AIRPORT_ID integer, DEST_AIRPORT_SEQ_ID integer, DEST_CITY_MARKET_ID integer, DEST text, CRS_DEP_TIME integer, DEP_TIME integer, DEP_DELAY integer, DEP_DELAY_NEW integer, ARR_TIME integer, ARR_DELAY integer, ARR_DELAY_NEW integer, CANCELLED integer, CANCELLATION_CODE text, CRS_ELAPSED_TIME integer, ACTUAL_ELAPSED_TIME integer, CARRIER_DELAY integer, WEATHER_DELAY integer, NAS_DELAY integer, SECURITY_DELAY integer, LATE_AIRCRAFT_DELAY integer)
Please list the destination cities of all the flights that were cancelled on 2018/8/1.
SELECT DEST FROM Airlines WHERE FL_DATE = '2018/8/1' AND CANCELLED = 1 GROUP BY DEST
bird
CREATE TABLE airline (Code integer, Description text, Code text, Description text, FL_DATE text, OP_CARRIER_AIRLINE_ID integer, TAIL_NUM text, OP_CARRIER_FL_NUM integer, ORIGIN_AIRPORT_ID integer, ORIGIN_AIRPORT_SEQ_ID integer, ORIGIN_CITY_MARKET_ID integer, ORIGIN text, DEST_AIRPORT_ID integer, DEST_AIRPORT_SEQ_ID integer, DEST_CITY_MARKET_ID integer, DEST text, CRS_DEP_TIME integer, DEP_TIME integer, DEP_DELAY integer, DEP_DELAY_NEW integer, ARR_TIME integer, ARR_DELAY integer, ARR_DELAY_NEW integer, CANCELLED integer, CANCELLATION_CODE text, CRS_ELAPSED_TIME integer, ACTUAL_ELAPSED_TIME integer, CARRIER_DELAY integer, WEATHER_DELAY integer, NAS_DELAY integer, SECURITY_DELAY integer, LATE_AIRCRAFT_DELAY integer)
Please list the dates of the flights that were cancelled due to the most serious reason.
SELECT FL_DATE FROM Airlines WHERE CANCELLATION_CODE = 'A' GROUP BY FL_DATE
bird
CREATE TABLE airline (Code integer, Description text, Code text, Description text, FL_DATE text, OP_CARRIER_AIRLINE_ID integer, TAIL_NUM text, OP_CARRIER_FL_NUM integer, ORIGIN_AIRPORT_ID integer, ORIGIN_AIRPORT_SEQ_ID integer, ORIGIN_CITY_MARKET_ID integer, ORIGIN text, DEST_AIRPORT_ID integer, DEST_AIRPORT_SEQ_ID integer, DEST_CITY_MARKET_ID integer, DEST text, CRS_DEP_TIME integer, DEP_TIME integer, DEP_DELAY integer, DEP_DELAY_NEW integer, ARR_TIME integer, ARR_DELAY integer, ARR_DELAY_NEW integer, CANCELLED integer, CANCELLATION_CODE text, CRS_ELAPSED_TIME integer, ACTUAL_ELAPSED_TIME integer, CARRIER_DELAY integer, WEATHER_DELAY integer, NAS_DELAY integer, SECURITY_DELAY integer, LATE_AIRCRAFT_DELAY integer)
Please list the departure airports of the flights on 2018/8/1 that were delayed.
SELECT T1.Description FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN WHERE T2.FL_DATE = '2018/8/1' AND T2.DEP_DELAY > 0 GROUP BY T1.Description
bird
CREATE TABLE airline (Code integer, Description text, Code text, Description text, FL_DATE text, OP_CARRIER_AIRLINE_ID integer, TAIL_NUM text, OP_CARRIER_FL_NUM integer, ORIGIN_AIRPORT_ID integer, ORIGIN_AIRPORT_SEQ_ID integer, ORIGIN_CITY_MARKET_ID integer, ORIGIN text, DEST_AIRPORT_ID integer, DEST_AIRPORT_SEQ_ID integer, DEST_CITY_MARKET_ID integer, DEST text, CRS_DEP_TIME integer, DEP_TIME integer, DEP_DELAY integer, DEP_DELAY_NEW integer, ARR_TIME integer, ARR_DELAY integer, ARR_DELAY_NEW integer, CANCELLED integer, CANCELLATION_CODE text, CRS_ELAPSED_TIME integer, ACTUAL_ELAPSED_TIME integer, CARRIER_DELAY integer, WEATHER_DELAY integer, NAS_DELAY integer, SECURITY_DELAY integer, LATE_AIRCRAFT_DELAY integer)
Among the flights on 2018/8/1, how many of them were scheduled to depart from John F. Kennedy International in New York?
SELECT COUNT(T1.Code) FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN WHERE T2.FL_DATE = '2018/8/1' AND T1.Description = 'New York, NY: John F. Kennedy International'
bird