db_id
stringclasses
8 values
question
stringlengths
17
126
SQL
stringlengths
29
423
db_schema_TC
stringclasses
26 values
db_schema_T
stringclasses
26 values
db_schema
stringclasses
8 values
WorldSoccerDataBase
How many number of games ended in a 0-0 tie?
SELECT count(*) FROM football_data WHERE FTHG = 0 AND FTAG = 0
CREATE TABLE "football_data" ( "Season" TEXT, "Datetime" TIMESTAMP, "Div" TEXT, "Country" TEXT, "League" TEXT, "Referee" TEXT, "HomeTeam" TEXT, "AwayTeam" TEXT, "FTHG" INTEGER, "FTAG" INTEGER, "FTR" TEXT, "HTHG" INTEGER, "HTAG" INTEGER, "HTR" TEXT, "PSH" REAL, "PSD" REAL, "PSA" REAL, "B365H" REAL, "B365D" REAL, "B365A" REAL, "LBH" REAL, "LBD" REAL, "LBA" REAL, "BWH" REAL, "BWD" REAL, "BWA" REAL )
CREATE TABLE "football_data" ( "Season" TEXT, "Datetime" TIMESTAMP, "Div" TEXT, "Country" TEXT, "League" TEXT, "Referee" TEXT, "HomeTeam" TEXT, "AwayTeam" TEXT, "FTHG" INTEGER, "FTAG" INTEGER, "FTR" TEXT, "HTHG" INTEGER, "HTAG" INTEGER, "HTR" TEXT, "PSH" REAL, "PSD" REAL, "PSA" REAL, "B365H" REAL, "B365D" REAL, "B365A" REAL, "LBH" REAL, "LBD" REAL, "LBA" REAL, "BWH" REAL, "BWD" REAL, "BWA" REAL )
CREATE TABLE "betfront" ( "YEAR" INTEGER, "DATETIME" TIMESTAMP, "COUNTRY" TEXT, "COMPETION" TEXT, "MATCH" TEXT, "HOME_OPENING" REAL, "DRAW_OPENING" REAL, "AWAY_OPENING" REAL, "HOME_CLOSING" REAL, "DRAW_CLOSING" REAL, "AWAY_CLOSING" REAL ) CREATE TABLE "football_data" ( "Season" TEXT, "Datetime" TIMESTAMP, "Div" TEXT, "Country" TEXT, "League" TEXT, "Referee" TEXT, "HomeTeam" TEXT, "AwayTeam" TEXT, "FTHG" INTEGER, "FTAG" INTEGER, "FTR" TEXT, "HTHG" INTEGER, "HTAG" INTEGER, "HTR" TEXT, "PSH" REAL, "PSD" REAL, "PSA" REAL, "B365H" REAL, "B365D" REAL, "B365A" REAL, "LBH" REAL, "LBD" REAL, "LBA" REAL, "BWH" REAL, "BWD" REAL, "BWA" REAL )
WorldSoccerDataBase
How many league division does football_data database has?
SELECT count(Div) FROM football_data
CREATE TABLE "football_data" ( "Season" TEXT, "Datetime" TIMESTAMP, "Div" TEXT, "Country" TEXT, "League" TEXT, "Referee" TEXT, "HomeTeam" TEXT, "AwayTeam" TEXT, "FTHG" INTEGER, "FTAG" INTEGER, "FTR" TEXT, "HTHG" INTEGER, "HTAG" INTEGER, "HTR" TEXT, "PSH" REAL, "PSD" REAL, "PSA" REAL, "B365H" REAL, "B365D" REAL, "B365A" REAL, "LBH" REAL, "LBD" REAL, "LBA" REAL, "BWH" REAL, "BWD" REAL, "BWA" REAL )
CREATE TABLE "football_data" ( "Season" TEXT, "Datetime" TIMESTAMP, "Div" TEXT, "Country" TEXT, "League" TEXT, "Referee" TEXT, "HomeTeam" TEXT, "AwayTeam" TEXT, "FTHG" INTEGER, "FTAG" INTEGER, "FTR" TEXT, "HTHG" INTEGER, "HTAG" INTEGER, "HTR" TEXT, "PSH" REAL, "PSD" REAL, "PSA" REAL, "B365H" REAL, "B365D" REAL, "B365A" REAL, "LBH" REAL, "LBD" REAL, "LBA" REAL, "BWH" REAL, "BWD" REAL, "BWA" REAL )
CREATE TABLE "betfront" ( "YEAR" INTEGER, "DATETIME" TIMESTAMP, "COUNTRY" TEXT, "COMPETION" TEXT, "MATCH" TEXT, "HOME_OPENING" REAL, "DRAW_OPENING" REAL, "AWAY_OPENING" REAL, "HOME_CLOSING" REAL, "DRAW_CLOSING" REAL, "AWAY_CLOSING" REAL ) CREATE TABLE "football_data" ( "Season" TEXT, "Datetime" TIMESTAMP, "Div" TEXT, "Country" TEXT, "League" TEXT, "Referee" TEXT, "HomeTeam" TEXT, "AwayTeam" TEXT, "FTHG" INTEGER, "FTAG" INTEGER, "FTR" TEXT, "HTHG" INTEGER, "HTAG" INTEGER, "HTR" TEXT, "PSH" REAL, "PSD" REAL, "PSA" REAL, "B365H" REAL, "B365D" REAL, "B365A" REAL, "LBH" REAL, "LBD" REAL, "LBA" REAL, "BWH" REAL, "BWD" REAL, "BWA" REAL )
WorldSoccerDataBase
Do other leagues have referee name records outside of Scotland and England?
SELECT count(League) FROM football_data WHERE Country != "Scotland" and Country != "England" and Referee != ""
CREATE TABLE "football_data" ( "Season" TEXT, "Datetime" TIMESTAMP, "Div" TEXT, "Country" TEXT, "League" TEXT, "Referee" TEXT, "HomeTeam" TEXT, "AwayTeam" TEXT, "FTHG" INTEGER, "FTAG" INTEGER, "FTR" TEXT, "HTHG" INTEGER, "HTAG" INTEGER, "HTR" TEXT, "PSH" REAL, "PSD" REAL, "PSA" REAL, "B365H" REAL, "B365D" REAL, "B365A" REAL, "LBH" REAL, "LBD" REAL, "LBA" REAL, "BWH" REAL, "BWD" REAL, "BWA" REAL )
CREATE TABLE "football_data" ( "Season" TEXT, "Datetime" TIMESTAMP, "Div" TEXT, "Country" TEXT, "League" TEXT, "Referee" TEXT, "HomeTeam" TEXT, "AwayTeam" TEXT, "FTHG" INTEGER, "FTAG" INTEGER, "FTR" TEXT, "HTHG" INTEGER, "HTAG" INTEGER, "HTR" TEXT, "PSH" REAL, "PSD" REAL, "PSA" REAL, "B365H" REAL, "B365D" REAL, "B365A" REAL, "LBH" REAL, "LBD" REAL, "LBA" REAL, "BWH" REAL, "BWD" REAL, "BWA" REAL )
CREATE TABLE "betfront" ( "YEAR" INTEGER, "DATETIME" TIMESTAMP, "COUNTRY" TEXT, "COMPETION" TEXT, "MATCH" TEXT, "HOME_OPENING" REAL, "DRAW_OPENING" REAL, "AWAY_OPENING" REAL, "HOME_CLOSING" REAL, "DRAW_CLOSING" REAL, "AWAY_CLOSING" REAL ) CREATE TABLE "football_data" ( "Season" TEXT, "Datetime" TIMESTAMP, "Div" TEXT, "Country" TEXT, "League" TEXT, "Referee" TEXT, "HomeTeam" TEXT, "AwayTeam" TEXT, "FTHG" INTEGER, "FTAG" INTEGER, "FTR" TEXT, "HTHG" INTEGER, "HTAG" INTEGER, "HTR" TEXT, "PSH" REAL, "PSD" REAL, "PSA" REAL, "B365H" REAL, "B365D" REAL, "B365A" REAL, "LBH" REAL, "LBD" REAL, "LBA" REAL, "BWH" REAL, "BWD" REAL, "BWA" REAL )
WorldSoccerDataBase
What's the odds for draw on Bet365 for the game Swindon v.s. Millwall for 2016/2017 season?
SELECT B365D FROM football_data WHERE HomeTeam = "Swindon" and AwayTeam = "Millwall" and Season = "2016/2017"
CREATE TABLE "football_data" ( "Season" TEXT, "Datetime" TIMESTAMP, "Div" TEXT, "Country" TEXT, "League" TEXT, "Referee" TEXT, "HomeTeam" TEXT, "AwayTeam" TEXT, "FTHG" INTEGER, "FTAG" INTEGER, "FTR" TEXT, "HTHG" INTEGER, "HTAG" INTEGER, "HTR" TEXT, "PSH" REAL, "PSD" REAL, "PSA" REAL, "B365H" REAL, "B365D" REAL, "B365A" REAL, "LBH" REAL, "LBD" REAL, "LBA" REAL, "BWH" REAL, "BWD" REAL, "BWA" REAL )
CREATE TABLE "football_data" ( "Season" TEXT, "Datetime" TIMESTAMP, "Div" TEXT, "Country" TEXT, "League" TEXT, "Referee" TEXT, "HomeTeam" TEXT, "AwayTeam" TEXT, "FTHG" INTEGER, "FTAG" INTEGER, "FTR" TEXT, "HTHG" INTEGER, "HTAG" INTEGER, "HTR" TEXT, "PSH" REAL, "PSD" REAL, "PSA" REAL, "B365H" REAL, "B365D" REAL, "B365A" REAL, "LBH" REAL, "LBD" REAL, "LBA" REAL, "BWH" REAL, "BWD" REAL, "BWA" REAL )
CREATE TABLE "betfront" ( "YEAR" INTEGER, "DATETIME" TIMESTAMP, "COUNTRY" TEXT, "COMPETION" TEXT, "MATCH" TEXT, "HOME_OPENING" REAL, "DRAW_OPENING" REAL, "AWAY_OPENING" REAL, "HOME_CLOSING" REAL, "DRAW_CLOSING" REAL, "AWAY_CLOSING" REAL ) CREATE TABLE "football_data" ( "Season" TEXT, "Datetime" TIMESTAMP, "Div" TEXT, "Country" TEXT, "League" TEXT, "Referee" TEXT, "HomeTeam" TEXT, "AwayTeam" TEXT, "FTHG" INTEGER, "FTAG" INTEGER, "FTR" TEXT, "HTHG" INTEGER, "HTAG" INTEGER, "HTR" TEXT, "PSH" REAL, "PSD" REAL, "PSA" REAL, "B365H" REAL, "B365D" REAL, "B365A" REAL, "LBH" REAL, "LBD" REAL, "LBA" REAL, "BWH" REAL, "BWD" REAL, "BWA" REAL )
Pesticide
which foods are captured in the data set?
SELECT DISTINCT commod FROM sampledata15
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
how many samples have unknown countries of origin?
SELECT count(*) FROM sampledata15 WHERE origin = "3"
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
Which are the top 10 commodities that have the highest residue during 2015?
SELECT T2.commod FROM resultsdata15 as T2 JOIN sampledata15 as T1 ON T1.sample_pk = T2.sample_pk WHERE T1.year = 15 GROUP BY T2.commod ORDER BY sum(T2.concen) DESC LIMIT 10
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
Name some imported commodities that are not found in the US.
SELECT commod FROM sampledata15 WHERE origin = 2 AND commod not in (SELECT commod FROM sampledata15 WHERE origin = 1)
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
Tell me the average pesticide residue for each state in the US where food is grown.
SELECT T1.growst, avg(T2.concen) FROM sampledata15 as T1 JOIN resultsdata15 as T2 ON T1.sample_pk = T2.sample_pk GROUP BY T1.growst
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
Which varieties of apple typically have higher pesticide levels?
SELECT T1.variety FROM resultsdata15 as T2 JOIN sampledata15 as T1 ON T1.sample_pk = T2.sample_pk WHERE T2.commod = "AP" GROUP BY T1.variety ORDER BY sum(T2.concen) DESC LIMIT 1
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
Which commodities have the pesticides concentration much higher than their limit for detection?
SELECT commod FROM resultsdata15 WHERE concen > lod
CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
Name top 5 labs with the maximum number of testing.
SELECT lab FROM resultsdata15 GROUP BY lab ORDER BY count(*) DESC LIMIT 5
CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
Which country is the safest in terms of the pesticide concentration found in imported foods?
SELECT T1.country FROM sampledata15 as T1 JOIN resultsdata15 as T2 ON T1.sample_pk = T2.sample_pk GROUP BY T1.country ORDER BY sum(T2.concen) LIMIT 1
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
Which is the most popular state in the US in terms of commodities distribution?
SELECT distst FROM sampledata15 GROUP BY distst ORDER BY count(*) DESC LIMIT 1
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
What is the maximum pesticide concentration ever found in a commodity?
SELECT max(concen) FROM resultsdata15
CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
When is sample 3763 collected?
SELECT year, month, day FROM sampledata15 WHERE sample_pk = 3763
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
Which state has the most apple collected?
SELECT distst FROM sampledata15 WHERE commod = "AP" GROUP BY distst ORDER BY count(*) DESC LIMIT 1
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
Which state has grow the most apples?
SELECT growst FROM sampledata15 WHERE commod = "AP" GROUP BY growst ORDER BY count(*) DESC LIMIT 1
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
How many class of products are there?
SELECT count(DISTINCT variety) FROM sampledata15
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
what's the 4 digit collection code of sample 3763?
SELECT site FROM sampledata15 WHERE sample_pk = 3763
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
If sample 6480 is imported, which country is it originally from?
SELECT country FROM sampledata15 WHERE sample_pk = 6480 AND origin = 2
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
How many number of units are there in sample 9628?
SELECT quantity FROM sampledata15 WHERE sample_pk = 9628
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
What's the code for test for sample 7498?
SELECT testclass FROM resultsdata15 WHERE sample_pk = 7498
CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
What's the code for confirmation for the latest sample?
SELECT confmethod FROM resultsdata15 as T2 JOIN sampledata15 as T1 ON T1.sample_pk = T2.sample_pk ORDER BY year, month, day DESC LIMIT 1
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
Which lab has analyzed the most sample?
SELECT lab FROM resultsdata15 GROUP BY lab ORDER BY count(*) DESC LIMIT 1
CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
What's the majority of test classification result?
SELECT max(testclass) FROM resultsdata15
CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
What's the unit of measure for sample 3879?
SELECT conunit FROM resultsdata15 WHERE sample_pk = 3879
CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
What's the unit of measure used for the product commodity code PO?
SELECT conunit FROM resultsdata15 WHERE commod = "PO"
CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
What's the mean result finding for product AP?
SELECT mean FROM resultsdata15 WHERE commod = "AP"
CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
What's the most common extraction method?
SELECT max(extract) FROM resultsdata15
CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
Which lab conduct of most number of tests?
SELECT lab FROM resultsdata15 GROUP BY lab ORDER BY count(*) DESC LIMIT 1
CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
Which lab is used for testing for prodict AP?
SELECT lab FROM resultsdata15 WHERE commod = "AP"
CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
How many samples come from other countries?
SELECT count(*) FROM sampledata15 WHERE origin = "2"
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
What kind of food has been tested 'detect' most?
SELECT commod FROM resultsdata15 WHERE mean = "A" GROUP BY commod ORDER BY count(*) DESC LIMIT 1
CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
Which state produce the most organic food?
SELECT state FROM sampledata15 WHERE claim = "PO" GROUP BY state ORDER BY count(*) DESC LIMIT 1
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
Where do the US import the most food ?
SELECT max(country) FROM sampledata15
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
What kind of food has been test the most?
SELECT max(commod) FROM resultsdata15
CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
Pesticide
Which kind of pesticide is the easiest to be tested?
SELECT max(pestcode) FROM resultsdata15
CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
CREATE TABLE sampledata15 ( sample_pk int, state text(2), year text(2), month text(2), day text(2), site text(4), commod text(2), source_id text(1), variety text(20), origin text(2), country text(3), disttype text(1), commtype text(2), claim text(2), quantity int, growst text(2), packst text(2), distst text(2) ) CREATE TABLE resultsdata15 ( sample_pk int, commod text(2), commtype text(2), lab text(3), pestcode text(3), testclass text(1), concen double, lod double, conunit text(1), confmethod text(2), confmethod2 text(2), annotate text(2), quantitate text(2), mean text(2), extract text(3), determin text(2) )
GeoNuclearData
Which country has the most capacities of nuclear power plants?
SELECT Country FROM nuclear_power_plants GROUP BY Country ORDER BY sum(Capacity) DESC LIMIT 1
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
GeoNuclearData
Which country has the least capacities of nuclear power plants?
SELECT Country FROM nuclear_power_plants GROUP BY Country ORDER BY sum(Capacity) LIMIT 1
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
GeoNuclearData
What are the top 3 countries which have the most nuclear power plants?
SELECT Country FROM nuclear_power_plants GROUP BY Country ORDER BY sum(Name) DESC LIMIT 3
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
GeoNuclearData
Which country has the most nuclear station?
SELECT Country FROM nuclear_power_plants GROUP BY Country ORDER BY count(Name) DESC LIMIT 1
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
GeoNuclearData
Which county has the most nuclear station shut down?
SELECT Country FROM nuclear_power_plants WHERE Status = "Shutdown" GROUP BY Country ORDER BY count(Name) DESC LIMIT 1
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
GeoNuclearData
What nuclear station has the largest nuclear power plant capacity?
SELECT Name FROM nuclear_power_plants ORDER BY Capacity DESC LIMIT 1
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
GeoNuclearData
How many operating nuclear station in France?
SELECT count(*) FROM nuclear_power_plants WHERE Country = "France" and Status = "Operational"
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
GeoNuclearData
How many nuclear station are under construction?
SELECT count(Name) FROM nuclear_power_plants WHERE Status = "Under Construction"
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
GeoNuclearData
What nuclear reactor model is the most popular?
SELECT ReactorModel FROM nuclear_power_plants GROUP BY ReactorModel ORDER BY count(*) DESC LIMIT 1
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
GeoNuclearData
Which country is Chinon-A3 in?
SELECT Country FROM nuclear_power_plants WHERE Name = "Chinon-A3"
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
GeoNuclearData
What are operational nuclear power plants in Japan called?
SELECT Name FROM nuclear_power_plants where Status = "Operational" and Country = "Japan"
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
GeoNuclearData
Which country first started using nuclear power plant(s)?
SELECT Country FROM nuclear_power_plants ORDER BY OperationalFrom LIMIT 1
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
GeoNuclearData
How many nuclear power plants are in preparation to be used in Japan?
SELECT count(*) FROM nuclear_power_plants WHERE Country = "Japan" AND Status = "Under Construction"
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
GeoNuclearData
What is the current situation of the nuclear power plant in the United States with the maximum capacity?
SELECT Status FROM nuclear_power_plants WHERE Country = "United States" ORDER BY Capacity DESC LIMIT 1
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
GeoNuclearData
What is the maximum capacity of existing pressurized water reactor?
SELECT max(Capacity) FROM nuclear_power_plants WHERE ReactorType = "PWR" and Status = "Operational"
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
GeoNuclearData
Which nation has the most nuclear plants under construction?
SELECT Country FROM nuclear_power_plants WHERE Status = "Under Construction" GROUP BY Country ORDER BY count(*) DESC LIMIT 1
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
GeoNuclearData
Which country has the most under constriction power plants to date?
SELECT Country FROM nuclear_power_plants WHERE Status = "Under Construction" GROUP BY Country ORDER BY count(*) DESC LIMIT 1
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
GeoNuclearData
Where is the first BWR type power plant built and located?
SELECT Longitude, Latitude FROM nuclear_power_plants WHERE ReactorType = "BWR" ORDER BY ConstructionStartAt LIMIT 1
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
GeoNuclearData
Which country lead the total capacity of the power plants it held?
SELECT Country FROM nuclear_power_plants GROUP BY Country ORDER BY sum(Capacity) DESC LIMIT 1
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
GeoNuclearData
What is the main source of the information for this table?
SELECT Source FROM nuclear_power_plants GROUP BY Source ORDER BY count(*) DESC LIMIT 1
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
GeoNuclearData
Which reactor type has the largest average capacity?
SELECT ReactorType FROM nuclear_power_plants GROUP BY ReactorType ORDER BY avg(Capacity) DESC LIMIT 1
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
GeoNuclearData
Which country is Kursk-1 in?
SELECT Country FROM nuclear_power_plants WHERE Name = "Kursk-1"
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
CREATE TABLE `nuclear_power_plants` (`Id`, `Name`, `Latitude`, `Longitude`, `Country`, `Status`, `ReactorType`, `ReactorModel`, `ConstructionStartAt`, `OperationalFrom`, `OperationalTo`, `Capacity`, `LastUpdatedAt`, `Source`)
USWildFires
Show all fires caused by campfires in Texas.
SELECT * FROM Fires WHERE State = "TX" AND STAT_CAUSE_DESCR LIKE "Campfire"
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
USWildFires
Who was responsible for the land of the biggest fire in Oregon in 2015?
SELECT OWNER_DESCR FROM FIres WHERE State = "OR" AND FIRE_YEAR = 2015 ORDER BY FIRE_SIZE DESC LIMIT 1
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
USWildFires
Which counties in Washington had fires in 2012?
SELECT COUNTY FROM Fires WHERE State = "WA" AND FIRE_YEAR = 2012
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
USWildFires
How many arson-related fires were there in 2010?
SELECT count(*) FROM Fires WHERE FIRE_YEAR = 2010 AND STAT_CAUSE_DESCR LIKE "%Arson%"
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
USWildFires
How many years of data are recorded in this database?
SELECT count(DISTINCT FIRE_YEAR) FROM Fires
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
USWildFires
Average date of year that fire was discovered from 2000~2004?
SELECT avg(DISCOVERY_DATE) FROM Fires where FIRE_YEAR BETWEEN 2000 AND 2004
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
USWildFires
What’s the most common cause of the fire (code) in the database?
SELECT STAT_CAUSE_CODE FROM Fires GROUP BY STAT_CAUSE_CODE ORDER BY count(*) DESC LIMIT 1
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
USWildFires
What’s the year that have the largest acres in the fire area?
SELECT FIRE_YEAR FROM Fires ORDER BY FIRE_SIZE DESC LIMIT 1
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
USWildFires
How many missing / not specified name of the owner are there in the database?
SELECT count(*) FROM Fires WHERE OWNER_DESCR = "MISSING/NOT SPECIFIED"
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
USWildFires
What’s the county that contains most recorded burns in 2000 according to the database?
SELECT COUNTY FROM Fires GROUP BY COUNTY ORDER BY count(*)
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
USWildFires
How many distinct cause of the fire descriptions are there in the database?
SELECT count(DISTINCT STAT_CAUSE_DESCR) FROM Fires
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
USWildFires
Sum of the acres burned in NC state in 2006?
SELECT sum(FIRE_SIZE) FROM Fires WHERE State = "NY" and FIRE_YEAR = "2006"
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
USWildFires
What was the cause of the largest wildfire in Utah in the year 1997?
SELECT * FROM Fires WHERE State = "UT" AND FIRE_YEAR = 1997 ORDER BY FIRE_SIZE DESC LIMIT 1
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
USWildFires
How many wildfires in Gloucester county have been larger than 10 acres?
SELECT count(*) FROM Fires WHERE COUNTY = "Gloucester" AND FIRE_SIZE > 10
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
USWildFires
Which state experiences the most wildfires?
SELECT State FROM Fires GROUP BY State ORDER BY count(*) DESC LIMIT 1
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
USWildFires
What is the leading cause of wildfires?
SELECT STAT_CAUSE_DESCR FROM Fires GROUP BY STAT_CAUSE_DESCR ORDER BY count(*) DESC LIMIT 1
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
USWildFires
On what type of land (public or private) do more wildfires occur?
SELECT OWNER_DESCR FROM Fires GROUP BY OWNER_DESCR ORDER BY count(*) DESC LIMIT 1
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
USWildFires
In 2014, how many wildfires were the result of mismanaged campfires?
SELECT count(*) FROM Fires WHERE STAT_CAUSE_DESCR LIKE "%Campfire%" AND FIRE_YEAR = 2014
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
USWildFires
How many total acres of land in Texas have seen a wildfire in the decade between 2000-2010?
SELECT sum(FIRE_SIZE) FROM Fires WHERE State = "TX" AND FIRE_YEAR BETWEEN 2000 AND 2010
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
USWildFires
Which state has the most number of fires being recorded?
SELECT State FROM Fires GROUP BY State ORDER BY count(*) DESC LIMIT 1
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
USWildFires
What is the most common reason that causes a fire?
SELECT STAT_CAUSE_DESCR FROM Fires GROUP BY STAT_CAUSE_DESCR ORDER BY count(*) DESC LIMIT 1
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
USWildFires
What is the total area that has been burned until now?
SELECT sum(FIRE_SIZE) FROM Fires
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
USWildFires
How many acres burned in 2000s and 1990s?
SELECT sum(FIRE_SIZE) FROM Fires WHERE STATE = "TX" AND FIRE_YEAR BETWEEN 2000 AND 2010 UNION SELECT sum(FIRE_SIZE) FROM Fires WHERE STATE = "TX" AND FIRE_YEAR BETWEEN 1990 AND 2000
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
USWildFires
How many fire cases occur on the land without any owner?
SELECT count(*) FROM Fires WHERE OWNER_DESCR = "MISSING/NOT SPECIFIED"
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
USWildFires
What is the latitudinal band that is most likely to experience wildfires in the USA?
SELECT LATITUDE FROM Fires GROUP BY LATITUDE ORDER BY count(*) DESC LIMIT 1
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )
CREATE TABLE "Fires" ( [FIRE_YEAR] integer, [DISCOVERY_DATE] real, [DISCOVERY_DOY] integer, [DISCOVERY_TIME] text, [STAT_CAUSE_CODE] real, [STAT_CAUSE_DESCR] text, [CONT_DATE] text, [CONT_DOY] text, [CONT_TIME] text, [FIRE_SIZE] real, [FIRE_SIZE_CLASS] text, [LATITUDE] real, [LONGITUDE] real, [OWNER_CODE] real, [OWNER_DESCR] text, [STATE] text, [COUNTY] text, [FIPS_CODE] text, [FIPS_NAME] text )