idlebox / 2007 / stx-exparser / csvfilter.htt

STX Expression Parser - Online CSV Data Filter

This is an online CGI demo of the csvtool example found in the STX Expression Parser source distribution. Many CSV data file are available for browsing, sorting, analyzing and filtering. The full list can be seen below, it includes only publicly available data.

Each CSV file has a list of column headers. The csvtool can sort the datasets on-the-fly by each available column. The expression parser can be activated by entering a string into the top form. The expression is evaluated for each row of the dataset. Within the expression, the current rows data can be accessed using variables named by the column headers.

There are two methods to use the expression parser. If the expression evaluates to a boolean value, this value determines whether the row gets prints. Thus the expression is used as a data filter. If, however, the expression yields a non-boolean type, then a column "EvalResult" is appended to the CSV dataset. In this column the evaluation results are outputted. It is then possible to sort by the result values.

The following links show some example queries on different CSV data sets. Before viewing these examples it is best to view the original dataset first.

Available CSV Datasets

    Rows
CIA World Factbook The CIA's large public information dataset containing many key statistics on the countries of the world. Downloaded from cia.gov, then extracted some data into a SQL table and exported as CSV. Last updated 2007-06-19 258
opengeodb.sf.net Open database of cities and zip codes of the german speaking area in Europe: Germany, Austria, Switzerland, Belgium and Liechtenstein 21084
Countries of the World Taken from MySQL's world sample database (its a bit out-of-date). Originally taken from Statistics Finland: World in Figures 239
Largest Cities of the World Also taken from MySQL's world sample database, less out-of-date. 4079
ISO-3166 ISO Standard 3166 defines three-part geographic codes for names of countries, dependent areas and principal subdevisions thereof. This is a partial listing of its entries. 3995
Cities with population > 15000 Imported from geonames.org. Removed a few columns to make the tables more readable. 20810
Cities with population > 5000 Also imported from geonames.org 41557
Cities with population > 1000 Also imported from geonames.org 83873
Cities in Afghanistan Also imported from geonames.org - Country code AF - Afghanistan 31244
Cities in Albania Also imported from geonames.org - Country code AL - Albania 4352
Cities in Algeria Also imported from geonames.org - Country code DZ - Algeria 6798
Cities in American Samoa Also imported from geonames.org - Country code AS - American Samoa 149
Cities in Andorra Also imported from geonames.org - Country code AD - Andorra 56
Cities in Angola Also imported from geonames.org - Country code AO - Angola 9703
Cities in Anguilla Also imported from geonames.org - Country code AI - Anguilla 36
Cities in Antarctica Also imported from geonames.org - Country code AQ - Antarctica 1
Cities in Antigua and Barbuda Also imported from geonames.org - Country code AG - Antigua and Barbuda 121
Cities in Argentina Also imported from geonames.org - Country code AR - Argentina 6810
Cities in Armenia Also imported from geonames.org - Country code AM - Armenia 1229
Cities in Aruba Also imported from geonames.org - Country code AW - Aruba 102
Cities in Australia Also imported from geonames.org - Country code AU - Australia 9624
Cities in Austria Also imported from geonames.org - Country code AT - Austria 15341
Cities in Azerbaijan Also imported from geonames.org - Country code AZ - Azerbaijan 4675
Cities in Bahamas Also imported from geonames.org - Country code BS - Bahamas 340
Cities in Bahrain Also imported from geonames.org - Country code BH - Bahrain 118
Cities in Bangladesh Also imported from geonames.org - Country code BD - Bangladesh 29507
Cities in Barbados Also imported from geonames.org - Country code BB - Barbados 510
Cities in Belarus Also imported from geonames.org - Country code BY - Belarus 11955
Cities in Belgium Also imported from geonames.org - Country code BE - Belgium 12683
Cities in Belize Also imported from geonames.org - Country code BZ - Belize 420
Cities in Benin Also imported from geonames.org - Country code BJ - Benin 3636
Cities in Bermuda Also imported from geonames.org - Country code BM - Bermuda 19
Cities in Bhutan Also imported from geonames.org - Country code BT - Bhutan 198
Cities in Bolivia Also imported from geonames.org - Country code BO - Bolivia 13786
Cities in Bosnia and Herzegovina Also imported from geonames.org - Country code BA - Bosnia and Herzegovina 21429
Cities in Botswana Also imported from geonames.org - Country code BW - Botswana 451
Cities in Brazil Also imported from geonames.org - Country code BR - Brazil 37531
Cities in British Virgin Islands Also imported from geonames.org - Country code VG - British Virgin Islands 22
Cities in Brunei Also imported from geonames.org - Country code BN - Brunei 220
Cities in Bulgaria Also imported from geonames.org - Country code BG - Bulgaria 6412
Cities in Burkina Faso Also imported from geonames.org - Country code BF - Burkina Faso 9043
Cities in Burundi Also imported from geonames.org - Country code BI - Burundi 2121
Cities in Cambodia Also imported from geonames.org - Country code KH - Cambodia 7747
Cities in Cameroon Also imported from geonames.org - Country code CM - Cameroon 8719
Cities in Canada Also imported from geonames.org - Country code CA - Canada 7155
Cities in Cape Verde Also imported from geonames.org - Country code CV - Cape Verde 247
Cities in Cayman Islands Also imported from geonames.org - Country code KY - Cayman Islands 65
Cities in Central African Republic Also imported from geonames.org - Country code CF - Central African Republic 5204
Cities in Chad Also imported from geonames.org - Country code TD - Chad 9724
Cities in Chile Also imported from geonames.org - Country code CL - Chile 3719
Cities in China Also imported from geonames.org - Country code CN - China 96715
Cities in Christmas Island Also imported from geonames.org - Country code CX - Christmas Island 5
Cities in Cocos (Keeling) Islands Also imported from geonames.org - Country code CC - Cocos (Keeling) Islands 1
Cities in Colombia Also imported from geonames.org - Country code CO - Colombia 27157
Cities in Comoros Also imported from geonames.org - Country code KM - Comoros 443
Cities in Congo (Brazzaville) Also imported from geonames.org - Country code CG - Congo (Brazzaville) 5782
Cities in Congo (Kinshasa) Also imported from geonames.org - Country code CD - Congo (Kinshasa) 21804
Cities in Cook Islands Also imported from geonames.org - Country code CK - Cook Islands 45
Cities in Costa Rica Also imported from geonames.org - Country code CR - Costa Rica 2316
Cities in Croatia Also imported from geonames.org - Country code HR - Croatia 9467
Cities in Cuba Also imported from geonames.org - Country code CU - Cuba 8966
Cities in Cyprus Also imported from geonames.org - Country code CY - Cyprus 718
Cities in Czech Republic Also imported from geonames.org - Country code CZ - Czech Republic 16399
Cities in Denmark Also imported from geonames.org - Country code DK - Denmark 7159
Cities in Djibouti Also imported from geonames.org - Country code DJ - Djibouti 41
Cities in Dominica Also imported from geonames.org - Country code DM - Dominica 99
Cities in Dominican Republic Also imported from geonames.org - Country code DO - Dominican Republic 7919
Cities in East Timor Also imported from geonames.org - Country code TL - East Timor 2976
Cities in Ecuador Also imported from geonames.org - Country code EC - Ecuador 6800
Cities in Egypt Also imported from geonames.org - Country code EG - Egypt 8145
Cities in El Salvador Also imported from geonames.org - Country code SV - El Salvador 3525
Cities in Equatorial Guinea Also imported from geonames.org - Country code GQ - Equatorial Guinea 2047
Cities in Eritrea Also imported from geonames.org - Country code ER - Eritrea 995
Cities in Estonia Also imported from geonames.org - Country code EE - Estonia 5324
Cities in Ethiopia Also imported from geonames.org - Country code ET - Ethiopia 10368
Cities in Falkland Islands Also imported from geonames.org - Country code FK - Falkland Islands 56
Cities in Faroe Islands Also imported from geonames.org - Country code FO - Faroe Islands 181
Cities in Fiji Also imported from geonames.org - Country code FJ - Fiji 1250
Cities in Finland Also imported from geonames.org - Country code FI - Finland 12784
Cities in France Also imported from geonames.org - Country code FR - France 58296
Cities in French Guiana Also imported from geonames.org - Country code GF - French Guiana 573
Cities in French Polynesia Also imported from geonames.org - Country code PF - French Polynesia 291
Cities in French Southern Territories Also imported from geonames.org - Country code TF - French Southern Territories 1
Cities in Gabon Also imported from geonames.org - Country code GA - Gabon 3933
Cities in Gambia Also imported from geonames.org - Country code GM - Gambia 2005
Cities in Georgia Also imported from geonames.org - Country code GE - Georgia 4968
Cities in Germany Also imported from geonames.org - Country code DE - Germany 78337
Cities in Ghana Also imported from geonames.org - Country code GH - Ghana 10028
Cities in Gibraltar Also imported from geonames.org - Country code GI - Gibraltar 4
Cities in Greece Also imported from geonames.org - Country code GR - Greece 11910
Cities in Greenland Also imported from geonames.org - Country code GL - Greenland 217
Cities in Grenada Also imported from geonames.org - Country code GD - Grenada 275
Cities in Guadeloupe Also imported from geonames.org - Country code GP - Guadeloupe 442
Cities in Guam Also imported from geonames.org - Country code GU - Guam 144
Cities in Guatemala Also imported from geonames.org - Country code GT - Guatemala 6113
Cities in Guernsey Also imported from geonames.org - Country code GG - Guernsey 228
Cities in Guinea Also imported from geonames.org - Country code GN - Guinea 6771
Cities in Guinea-Bissau Also imported from geonames.org - Country code GW - Guinea-Bissau 3880
Cities in Guyana Also imported from geonames.org - Country code GY - Guyana 439
Cities in Haiti Also imported from geonames.org - Country code HT - Haiti 10875
Cities in Honduras Also imported from geonames.org - Country code HN - Honduras 11928
Cities in Hong Kong S.A.R., China Also imported from geonames.org - Country code HK - Hong Kong S.A.R., China 1124
Cities in Hungary Also imported from geonames.org - Country code HU - Hungary 15891
Cities in Iceland Also imported from geonames.org - Country code IS - Iceland 464
Cities in India Also imported from geonames.org - Country code IN - India 29166
Cities in Indonesia Also imported from geonames.org - Country code ID - Indonesia 83791
Cities in Iran Also imported from geonames.org - Country code IR - Iran 68663
Cities in Iraq Also imported from geonames.org - Country code IQ - Iraq 9121
Cities in Ireland Also imported from geonames.org - Country code IE - Ireland 8279
Cities in Isle of Man Also imported from geonames.org - Country code IM - Isle of Man 35
Cities in Israel Also imported from geonames.org - Country code IL - Israel 1145
Cities in Italy Also imported from geonames.org - Country code IT - Italy 19609
Cities in Ivory Coast Also imported from geonames.org - Country code CI - Ivory Coast 8689
Cities in Jamaica Also imported from geonames.org - Country code JM - Jamaica 2123
Cities in Japan Also imported from geonames.org - Country code JP - Japan 10875
Cities in Jersey Also imported from geonames.org - Country code JE - Jersey 33
Cities in Jordan Also imported from geonames.org - Country code JO - Jordan 682
Cities in Kazakhstan Also imported from geonames.org - Country code KZ - Kazakhstan 10058
Cities in Kenya Also imported from geonames.org - Country code KE - Kenya 2449
Cities in Kiribati Also imported from geonames.org - Country code KI - Kiribati 120
Cities in Kuwait Also imported from geonames.org - Country code KW - Kuwait 114
Cities in Kyrgyzstan Also imported from geonames.org - Country code KG - Kyrgyzstan 1035
Cities in Laos Also imported from geonames.org - Country code LA - Laos 11945
Cities in Latvia Also imported from geonames.org - Country code LV - Latvia 4635
Cities in Lebanon Also imported from geonames.org - Country code LB - Lebanon 3485
Cities in Lesotho Also imported from geonames.org - Country code LS - Lesotho 265
Cities in Liberia Also imported from geonames.org - Country code LR - Liberia 5406
Cities in Libya Also imported from geonames.org - Country code LY - Libya 809
Cities in Liechtenstein Also imported from geonames.org - Country code LI - Liechtenstein 26
Cities in Lithuania Also imported from geonames.org - Country code LT - Lithuania 6962
Cities in Luxembourg Also imported from geonames.org - Country code LU - Luxembourg 639
Cities in Macao S.A.R., China Also imported from geonames.org - Country code MO - Macao S.A.R., China 6
Cities in Macedonia Also imported from geonames.org - Country code MK - Macedonia 2142
Cities in Madagascar Also imported from geonames.org - Country code MG - Madagascar 24091
Cities in Malawi Also imported from geonames.org - Country code MW - Malawi 4871
Cities in Malaysia Also imported from geonames.org - Country code MY - Malaysia 14454
Cities in Maldives Also imported from geonames.org - Country code MV - Maldives 22
Cities in Mali Also imported from geonames.org - Country code ML - Mali 10415
Cities in Malta Also imported from geonames.org - Country code MT - Malta 268
Cities in Marshall Islands Also imported from geonames.org - Country code MH - Marshall Islands 18
Cities in Martinique Also imported from geonames.org - Country code MQ - Martinique 505
Cities in Mauritania Also imported from geonames.org - Country code MR - Mauritania 874
Cities in Mauritius Also imported from geonames.org - Country code MU - Mauritius 520
Cities in Mayotte Also imported from geonames.org - Country code YT - Mayotte 106
Cities in Mexico Also imported from geonames.org - Country code MX - Mexico 67760
Cities in Micronesia Also imported from geonames.org - Country code FM - Micronesia 1016
Cities in Moldova Also imported from geonames.org - Country code MD - Moldova 1775
Cities in Monaco Also imported from geonames.org - Country code MC - Monaco 5
Cities in Mongolia Also imported from geonames.org - Country code MN - Mongolia 1511
Cities in Montenegro Also imported from geonames.org - Country code ME - Montenegro 4025
Cities in Montserrat Also imported from geonames.org - Country code MS - Montserrat 77
Cities in Morocco Also imported from geonames.org - Country code MA - Morocco 15942
Cities in Mozambique Also imported from geonames.org - Country code MZ - Mozambique 22635
Cities in Myanmar Also imported from geonames.org - Country code MM - Myanmar 38676
Cities in Namibia Also imported from geonames.org - Country code NA - Namibia 2020
Cities in Nauru Also imported from geonames.org - Country code NR - Nauru 8
Cities in Nepal Also imported from geonames.org - Country code NP - Nepal 810
Cities in Netherlands Also imported from geonames.org - Country code NL - Netherlands 7568
Cities in Netherlands Antilles Also imported from geonames.org - Country code AN - Netherlands Antilles 205
Cities in New Caledonia Also imported from geonames.org - Country code NC - New Caledonia 616
Cities in New Zealand Also imported from geonames.org - Country code NZ - New Zealand 3028
Cities in Nicaragua Also imported from geonames.org - Country code NI - Nicaragua 2494
Cities in Niger Also imported from geonames.org - Country code NE - Niger 6774
Cities in Nigeria Also imported from geonames.org - Country code NG - Nigeria 32444
Cities in Niue Also imported from geonames.org - Country code NU - Niue 15
Cities in Norfolk Island Also imported from geonames.org - Country code NF - Norfolk Island 1
Cities in North Korea Also imported from geonames.org - Country code KP - North Korea 31510
Cities in Northern Mariana Islands Also imported from geonames.org - Country code MP - Northern Mariana Islands 36
Cities in Norway Also imported from geonames.org - Country code NO - Norway 9138
Cities in Oman Also imported from geonames.org - Country code OM - Oman 1996
Cities in Pakistan Also imported from geonames.org - Country code PK - Pakistan 79351
Cities in Palau Also imported from geonames.org - Country code PW - Palau 208
Cities in Palestinian Territory Also imported from geonames.org - Country code PS - Palestinian Territory 477
Cities in Panama Also imported from geonames.org - Country code PA - Panama 6218
Cities in Papua New Guinea Also imported from geonames.org - Country code PG - Papua New Guinea 11120
Cities in Paraguay Also imported from geonames.org - Country code PY - Paraguay 2027
Cities in Peru Also imported from geonames.org - Country code PE - Peru 32057
Cities in Philippines Also imported from geonames.org - Country code PH - Philippines 36229
Cities in Pitcairn Also imported from geonames.org - Country code PN - Pitcairn 1
Cities in Poland Also imported from geonames.org - Country code PL - Poland 44504
Cities in Portugal Also imported from geonames.org - Country code PT - Portugal 16469
Cities in Puerto Rico Also imported from geonames.org - Country code PR - Puerto Rico 2261
Cities in Qatar Also imported from geonames.org - Country code QA - Qatar 192
Cities in Reunion Also imported from geonames.org - Country code RE - Reunion 343
Cities in Romania Also imported from geonames.org - Country code RO - Romania 18049
Cities in Russia Also imported from geonames.org - Country code RU - Russia 157243
Cities in Rwanda Also imported from geonames.org - Country code RW - Rwanda 909
Cities in Saint Helena Also imported from geonames.org - Country code SH - Saint Helena 13
Cities in Saint Kitts and Nevis Also imported from geonames.org - Country code KN - Saint Kitts and Nevis 118
Cities in Saint Lucia Also imported from geonames.org - Country code LC - Saint Lucia 179
Cities in Saint Pierre and Miquelon Also imported from geonames.org - Country code PM - Saint Pierre and Miquelon 3
Cities in Saint Vincent and the Grenadines Also imported from geonames.org - Country code VC - Saint Vincent and the Grenadines 68
Cities in Samoa Also imported from geonames.org - Country code WS - Samoa 293
Cities in San Marino Also imported from geonames.org - Country code SM - San Marino 5
Cities in Sao Tome and Principe Also imported from geonames.org - Country code ST - Sao Tome and Principe 220
Cities in Saudi Arabia Also imported from geonames.org - Country code SA - Saudi Arabia 2925
Cities in Senegal Also imported from geonames.org - Country code SN - Senegal 9418
Cities in Serbia Also imported from geonames.org - Country code RS - Serbia 11895
Cities in Seychelles Also imported from geonames.org - Country code SC - Seychelles 15
Cities in Sierra Leone Also imported from geonames.org - Country code SL - Sierra Leone 7686
Cities in Singapore Also imported from geonames.org - Country code SG - Singapore 355
Cities in Slovakia Also imported from geonames.org - Country code SK - Slovakia 4981
Cities in Slovenia Also imported from geonames.org - Country code SI - Slovenia 3399
Cities in Solomon Islands Also imported from geonames.org - Country code SB - Solomon Islands 2490
Cities in Somalia Also imported from geonames.org - Country code SO - Somalia 4494
Cities in South Africa Also imported from geonames.org - Country code ZA - South Africa 12228
Cities in South Georgia and the South Sandwich Islands Also imported from geonames.org - Country code GS - South Georgia and the South Sandwich Islands 2
Cities in South Korea Also imported from geonames.org - Country code KR - South Korea 18777
Cities in Spain Also imported from geonames.org - Country code ES - Spain 28665
Cities in Sri Lanka Also imported from geonames.org - Country code LK - Sri Lanka 16542
Cities in Sudan Also imported from geonames.org - Country code SD - Sudan 8052
Cities in Suriname Also imported from geonames.org - Country code SR - Suriname 417
Cities in Svalbard and Jan Mayen Also imported from geonames.org - Country code SJ - Svalbard and Jan Mayen 5
Cities in Swaziland Also imported from geonames.org - Country code SZ - Swaziland 77
Cities in Sweden Also imported from geonames.org - Country code SE - Sweden 27784
Cities in Switzerland Also imported from geonames.org - Country code CH - Switzerland 6361
Cities in Syria Also imported from geonames.org - Country code SY - Syria 8140
Cities in Taiwan Also imported from geonames.org - Country code TW - Taiwan 11375
Cities in Tajikistan Also imported from geonames.org - Country code TJ - Tajikistan 2410
Cities in Tanzania Also imported from geonames.org - Country code TZ - Tanzania 7338
Cities in Thailand Also imported from geonames.org - Country code TH - Thailand 27437
Cities in Togo Also imported from geonames.org - Country code TG - Togo 4124
Cities in Tokelau Also imported from geonames.org - Country code TK - Tokelau 1
Cities in Tonga Also imported from geonames.org - Country code TO - Tonga 107
Cities in Trinidad and Tobago Also imported from geonames.org - Country code TT - Trinidad and Tobago 429
Cities in Tunisia Also imported from geonames.org - Country code TN - Tunisia 1760
Cities in Turkey Also imported from geonames.org - Country code TR - Turkey 40192
Cities in Turkmenistan Also imported from geonames.org - Country code TM - Turkmenistan 1205
Cities in Turks and Caicos Islands Also imported from geonames.org - Country code TC - Turks and Caicos Islands 17
Cities in Tuvalu Also imported from geonames.org - Country code TV - Tuvalu 11
Cities in U.S. Virgin Islands Also imported from geonames.org - Country code VI - U.S. Virgin Islands 227
Cities in Uganda Also imported from geonames.org - Country code UG - Uganda 5541
Cities in Ukraine Also imported from geonames.org - Country code UA - Ukraine 25893
Cities in United Arab Emirates Also imported from geonames.org - Country code AE - United Arab Emirates 353
Cities in United Kingdom Also imported from geonames.org - Country code GB - United Kingdom 15163
Cities in United States Also imported from geonames.org - Country code US - United States 174719
Cities in United States Minor Outlying Islands Also imported from geonames.org - Country code UM - United States Minor Outlying Islands 3
Cities in Uruguay Also imported from geonames.org - Country code UY - Uruguay 743
Cities in Uzbekistan Also imported from geonames.org - Country code UZ - Uzbekistan 3753
Cities in Vanuatu Also imported from geonames.org - Country code VU - Vanuatu 1217
Cities in Venezuela Also imported from geonames.org - Country code VE - Venezuela 24776
Cities in Vietnam Also imported from geonames.org - Country code VN - Vietnam 26472
Cities in Wallis and Futuna Also imported from geonames.org - Country code WF - Wallis and Futuna 32
Cities in Western Sahara Also imported from geonames.org - Country code EH - Western Sahara 28
Cities in Yemen Also imported from geonames.org - Country code YE - Yemen 8148
Cities in Zambia Also imported from geonames.org - Country code ZM - Zambia 12726
Cities in Zimbabwe Also imported from geonames.org - Country code ZW - Zimbabwe 1044
RSS 2.0 Weblog Feed Atom 1.0 Weblog Feed Valid XHTML 1.1 Valid CSS (2.1)