chat_prompt
stringlengths
438
1.53k
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25604014_4\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: Who directed \"sperminator\"?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_25604014_4\" WHERE \"title\"='\\\"Sperminator\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25604014_4\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: Who wrote \"to live and diet in L.A.\"?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_25604014_4\" WHERE \"title\"='\\\"To Live and Diet in L.A.\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25604014_4\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: Who wrote the episode \"victor/victorious\"?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_25604014_4\" WHERE \"title\"='\\\"Victor/Victorious\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25604014_4\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: What is the production code for the episode directed by Sam weisman?" }, { "role": "assistant", "content": "SELECT \"production_code\" FROM \"table1_25604014_4\" WHERE \"directed_by\"='Sam Weisman';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25604014_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: Who wrote episode number 81 in the series?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_25604014_5\" WHERE \"no_in_series\"=81;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25604014_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: What is the original air date for \"ex-wives and videotapes\"?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_25604014_5\" WHERE \"title\"='\\\"Ex-Wives and Videotapes\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25604014_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: What is the original air date for \"one rat, one ranger\"?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_25604014_5\" WHERE \"title\"='\\\"One Rat, One Ranger\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25604014_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: How many episodes directed by david carson?" }, { "role": "assistant", "content": "SELECT COUNT(\"no_in_season\") FROM \"table1_25604014_5\" WHERE \"directed_by\"='David Carson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25604014_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: Who direcred the episode with production code 7d03?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_25604014_5\" WHERE \"production_code\"='7D03';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_cities_towns_and_villages_in_voj\" (\n \"settlement\" text,\n \"cyrillic_name\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: In what settlement is the population 1114?" }, { "role": "assistant", "content": "SELECT \"settlement\" FROM \"list_of_cities_towns_and_villages_in_voj\" WHERE \"population_2011\"=1114;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_cities_towns_and_villages_in_voj\" (\n \"settlement\" text,\n \"cyrillic_name\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What type is the settlement of Lok? " }, { "role": "assistant", "content": "SELECT \"type\" FROM \"list_of_cities_towns_and_villages_in_voj\" WHERE \"settlement\"='Lok';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_12\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: How many populations are listed for mladenovo? " }, { "role": "assistant", "content": "SELECT COUNT(\"population_2011\") FROM \"table1_2562572_12\" WHERE \"settlement\"='Mladenovo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_12\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What is the dominate religion in the location with a population of 4831? " }, { "role": "assistant", "content": "SELECT \"dominant_religion_2002\" FROM \"table1_2562572_12\" WHERE \"population_2011\"=4831;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"type\" text,\n \"joined\" real,\n \"enrollment\" real,\n \"nickname\" text\n);\n\nQuestion: What type of institution is San Diego Christian college? " }, { "role": "assistant", "content": "SELECT \"type\" FROM \"current_members\" WHERE \"institution\"='San Diego Christian College';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"type\" text,\n \"joined\" real,\n \"enrollment\" real,\n \"nickname\" text\n);\n\nQuestion: What is the enrollment for the hawks? " }, { "role": "assistant", "content": "SELECT MAX(\"enrollment\") FROM \"current_members\" WHERE \"nickname\"='Hawks';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"type\" text,\n \"joined\" real,\n \"enrollment\" real,\n \"nickname\" text\n);\n\nQuestion: What is the enrollment for the institution that joined in 1987? " }, { "role": "assistant", "content": "SELECT MIN(\"enrollment\") FROM \"current_members\" WHERE \"joined\"=1987;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"type\" text,\n \"joined\" real,\n \"enrollment\" real,\n \"nickname\" text\n);\n\nQuestion: What is the location of the institution nicknamed Lions? " }, { "role": "assistant", "content": "SELECT \"location\" FROM \"current_members\" WHERE \"nickname\"='Lions';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_urban_settlements_in_vojvodina\" (\n \"urban_settlement\" text,\n \"cyrillic_name\" text,\n \"city_municipality\" text,\n \"district\" text,\n \"population_1991\" real,\n \"population_2002\" real,\n \"population_2011\" real\n);\n\nQuestion: How many 2011 populations have a Cyrillic name of \u0444\u0443\u0442\u043e\u0433?" }, { "role": "assistant", "content": "SELECT COUNT(\"population_2011\") FROM \"list_of_urban_settlements_in_vojvodina\" WHERE \"cyrillic_name\"='\u0424\u0443\u0442\u043e\u0433';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_urban_settlements_in_vojvodina\" (\n \"urban_settlement\" text,\n \"cyrillic_name\" text,\n \"city_municipality\" text,\n \"district\" text,\n \"population_1991\" real,\n \"population_2002\" real,\n \"population_2011\" real\n);\n\nQuestion: What is the number of 2002 populations having a 2011 population of exactly 5399?" }, { "role": "assistant", "content": "SELECT COUNT(\"population_2002\") FROM \"list_of_urban_settlements_in_vojvodina\" WHERE \"population_2011\"=5399;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_urban_settlements_in_vojvodina\" (\n \"urban_settlement\" text,\n \"cyrillic_name\" text,\n \"city_municipality\" text,\n \"district\" text,\n \"population_1991\" real,\n \"population_2002\" real,\n \"population_2011\" real\n);\n\nQuestion: What is the number of 1991 populations named Be\u010dej?" }, { "role": "assistant", "content": "SELECT COUNT(\"population_1991\") FROM \"list_of_urban_settlements_in_vojvodina\" WHERE \"city_municipality\"='Be\u010dej';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_urban_settlements_in_vojvodina\" (\n \"urban_settlement\" text,\n \"cyrillic_name\" text,\n \"city_municipality\" text,\n \"district\" text,\n \"population_1991\" real,\n \"population_2002\" real,\n \"population_2011\" real\n);\n\nQuestion: What is the 1991 population for the urban settlement named Ba\u010dki Jarak?" }, { "role": "assistant", "content": "SELECT \"population_1991\" FROM \"list_of_urban_settlements_in_vojvodina\" WHERE \"urban_settlement\"='Ba\u010dki Jarak';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_urban_settlements_in_vojvodina\" (\n \"urban_settlement\" text,\n \"cyrillic_name\" text,\n \"city_municipality\" text,\n \"district\" text,\n \"population_1991\" real,\n \"population_2002\" real,\n \"population_2011\" real\n);\n\nQuestion: What is the number of 2011 populations having a 2002 population of 29449?" }, { "role": "assistant", "content": "SELECT COUNT(\"population_2011\") FROM \"list_of_urban_settlements_in_vojvodina\" WHERE \"population_2002\"=29449;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_urban_settlements_in_vojvodina\" (\n \"urban_settlement\" text,\n \"cyrillic_name\" text,\n \"city_municipality\" text,\n \"district\" text,\n \"population_1991\" real,\n \"population_2002\" real,\n \"population_2011\" real\n);\n\nQuestion: What is the number of cities/municipalities having an urban settlement of Srbobran?" }, { "role": "assistant", "content": "SELECT COUNT(\"city_municipality\") FROM \"list_of_urban_settlements_in_vojvodina\" WHERE \"urban_settlement\"='Srbobran';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_25\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: When town is the type what is the settlement?" }, { "role": "assistant", "content": "SELECT \"settlement\" FROM \"table1_2562572_25\" WHERE \"type\"='town';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_25\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: When \u043e\u045f\u0430\u0446\u0438 is the cyrillic name other names what is the type?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"table1_2562572_25\" WHERE \"cyrillic_name_other_names\"='\u041e\u045f\u0430\u0446\u0438';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_25\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: When ratkovo is the settlement what is the cyrllic name other names?" }, { "role": "assistant", "content": "SELECT \"cyrillic_name_other_names\" FROM \"table1_2562572_25\" WHERE \"settlement\"='Ratkovo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_25\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: When \u0440\u0430\u0442\u043a\u043e\u0432\u043e is cyrillic name other names and village is the type and orthodox Christianity is the dominant religion of 2002 what is the settlement? " }, { "role": "assistant", "content": "SELECT \"settlement\" FROM \"table1_2562572_25\" WHERE \"dominant_religion_2002\"='Orthodox Christianity' AND \"type\"='village' AND \"cyrillic_name_other_names\"='\u0420\u0430\u0442\u043a\u043e\u0432\u043e';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_25\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: When \u0434\u0435\u0440\u043e\u045a\u0435 is the cyrillic name other names what is the largest ethnic group of 2002?" }, { "role": "assistant", "content": "SELECT \"largest_ethnic_group_2002\" FROM \"table1_2562572_25\" WHERE \"cyrillic_name_other_names\"='\u0414\u0435\u0440\u043e\u045a\u0435';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_27\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" text,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What are the largest ethnic groups in gunaro\u0161?" }, { "role": "assistant", "content": "SELECT \"largest_ethnic_group_2002\" FROM \"table1_2562572_27\" WHERE \"settlement\"='Gunaro\u0161';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_27\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" text,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What are the largest ethnic groups where the cyrillic name and other names is \u043f\u0430\u0447\u0438\u0440 (hungarian: pacs\u00e9r)?" }, { "role": "assistant", "content": "SELECT \"largest_ethnic_group_2002\" FROM \"table1_2562572_27\" WHERE \"cyrillic_name_other_names\"='\u041f\u0430\u0447\u0438\u0440 (Hungarian: Pacs\u00e9r)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_27\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" text,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: How many places have as their cyrillic name and other names \u045a\u0435\u0433\u043e\u0448\u0435\u0432\u043e?" }, { "role": "assistant", "content": "SELECT COUNT(\"settlement\") FROM \"table1_2562572_27\" WHERE \"cyrillic_name_other_names\"='\u040a\u0435\u0433\u043e\u0448\u0435\u0432\u043e';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_27\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" text,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What are the dominant religions in the place with a population of 83?" }, { "role": "assistant", "content": "SELECT \"dominant_religion_2002\" FROM \"table1_2562572_27\" WHERE \"population_2011\"='83';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_27\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" text,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: How many settlements have as their cyrillic name and other names \u043f\u0430\u043d\u043e\u043d\u0438\u0458\u0430?" }, { "role": "assistant", "content": "SELECT \"settlement\" FROM \"table1_2562572_27\" WHERE \"cyrillic_name_other_names\"='\u041f\u0430\u043d\u043e\u043d\u0438\u0458\u0430';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_33\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What is the other name for martono\u0161?" }, { "role": "assistant", "content": "SELECT \"cyrillic_name_other_names\" FROM \"table1_2562572_33\" WHERE \"settlement\"='Martono\u0161';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_33\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What type of settlement is \u043e\u0440\u043e\u043c (hungarian: orom)?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"table1_2562572_33\" WHERE \"cyrillic_name_other_names\"='\u041e\u0440\u043e\u043c (Hungarian: Orom)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_33\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What settlement is also called \u043c\u0430\u0440\u0442\u043e\u043d\u043e\u0448 (hungarian: martonos)?" }, { "role": "assistant", "content": "SELECT \"settlement\" FROM \"table1_2562572_33\" WHERE \"cyrillic_name_other_names\"='\u041c\u0430\u0440\u0442\u043e\u043d\u043e\u0448 (Hungarian: Martonos)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_33\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What is the largest ethnic group in \u043c\u0430\u043b\u0435 \u043f\u0438\u0458\u0430\u0446\u0435 (hungarian: kispiac)?" }, { "role": "assistant", "content": "SELECT \"largest_ethnic_group_2002\" FROM \"table1_2562572_33\" WHERE \"cyrillic_name_other_names\"='\u041c\u0430\u043b\u0435 \u041f\u0438\u0458\u0430\u0446\u0435 (Hungarian: Kispiac)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_33\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What is the largest ethnic group in doline?" }, { "role": "assistant", "content": "SELECT \"largest_ethnic_group_2002\" FROM \"table1_2562572_33\" WHERE \"settlement\"='Doline';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_37\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: Name the dominant religion of srpska crnja" }, { "role": "assistant", "content": "SELECT \"dominant_religion_2002\" FROM \"table1_2562572_37\" WHERE \"settlement\"='Srpska Crnja';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_37\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: Name the settlement for \u0430\u043b\u0435\u043a\u0441\u0430\u043d\u0434\u0440\u043e\u0432\u043e" }, { "role": "assistant", "content": "SELECT \"settlement\" FROM \"table1_2562572_37\" WHERE \"cyrillic_name_other_names\"='\u0410\u043b\u0435\u043a\u0441\u0430\u043d\u0434\u0440\u043e\u0432\u043e';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_37\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: Name the cyrillic name for 518" }, { "role": "assistant", "content": "SELECT \"cyrillic_name_other_names\" FROM \"table1_2562572_37\" WHERE \"population_2011\"=518;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_37\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: Name the population for \u0430\u043b\u0435\u043a\u0441\u0430\u043d\u0434\u0440\u043e\u0432\u043e" }, { "role": "assistant", "content": "SELECT COUNT(\"population_2011\") FROM \"table1_2562572_37\" WHERE \"cyrillic_name_other_names\"='\u0410\u043b\u0435\u043a\u0441\u0430\u043d\u0434\u0440\u043e\u0432\u043e';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_37\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: Name the population for 2011 for \u0441\u0440\u043f\u0441\u043a\u0430 \u0446\u0440\u045a\u0430" }, { "role": "assistant", "content": "SELECT \"population_2011\" FROM \"table1_2562572_37\" WHERE \"cyrillic_name_other_names\"='\u0421\u0440\u043f\u0441\u043a\u0430 \u0426\u0440\u045a\u0430';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_43\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What is the largest ethnic group in 2002 when the population is 200?" }, { "role": "assistant", "content": "SELECT \"largest_ethnic_group_2002\" FROM \"table1_2562572_43\" WHERE \"population_2011\"=200;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_43\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: How many entries are there for type for the cyrillic name other names is \u043f\u0430\u0434\u0438\u043d\u0430 (slovak: padina)?" }, { "role": "assistant", "content": "SELECT COUNT(\"type\") FROM \"table1_2562572_43\" WHERE \"cyrillic_name_other_names\"='\u041f\u0430\u0434\u0438\u043d\u0430 (Slovak: Padina)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_43\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What is the type for the population in 2011 of 1004?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"table1_2562572_43\" WHERE \"population_2011\"=1004;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_43\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What was the 2002 dominant religion when the largest ethnic group (2002) was slovaks and type is village?" }, { "role": "assistant", "content": "SELECT \"dominant_religion_2002\" FROM \"table1_2562572_43\" WHERE \"largest_ethnic_group_2002\"='Slovaks' AND \"type\"='village';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_43\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What is the cyrillic name other names for the settlement of debelja\u010da?" }, { "role": "assistant", "content": "SELECT \"cyrillic_name_other_names\" FROM \"table1_2562572_43\" WHERE \"settlement\"='Debelja\u010da';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_43\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: How many entries are there for cyrillic name other names where settlement is idvor?" }, { "role": "assistant", "content": "SELECT COUNT(\"cyrillic_name_other_names\") FROM \"table1_2562572_43\" WHERE \"settlement\"='Idvor';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_44\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What was the dominant religion in 2002 in lokve?" }, { "role": "assistant", "content": "SELECT \"dominant_religion_2002\" FROM \"table1_2562572_44\" WHERE \"settlement\"='Lokve';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_44\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What was the largest ethnic group in in the settlement with the cyrillic name \u0431\u0430\u043d\u0430\u0442\u0441\u043a\u0438 \u043a\u0430\u0440\u043b\u043e\u0432\u0430\u0446?" }, { "role": "assistant", "content": "SELECT \"largest_ethnic_group_2002\" FROM \"table1_2562572_44\" WHERE \"cyrillic_name_other_names\"='\u0411\u0430\u043d\u0430\u0442\u0441\u043a\u0438 \u041a\u0430\u0440\u043b\u043e\u0432\u0430\u0446';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_44\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What is the largest ethnic group in the settlement with a 2011 population of 5082?" }, { "role": "assistant", "content": "SELECT COUNT(\"largest_ethnic_group_2002\") FROM \"table1_2562572_44\" WHERE \"population_2011\"=5082;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_44\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What was the population in 2011 of banatski karlovac?" }, { "role": "assistant", "content": "SELECT \"population_2011\" FROM \"table1_2562572_44\" WHERE \"settlement\"='Banatski Karlovac';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_44\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: Which settlement has the cyrillic and other name of \u043b\u043e\u043a\u0432\u0435 (romanian: locve)?" }, { "role": "assistant", "content": "SELECT \"settlement\" FROM \"table1_2562572_44\" WHERE \"cyrillic_name_other_names\"='\u041b\u043e\u043a\u0432\u0435 (Romanian: Locve)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_44\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What is the population of the settlement with the cyrillic name of \u0434\u043e\u0431\u0440\u0438\u0446\u0430?" }, { "role": "assistant", "content": "SELECT MAX(\"population_2011\") FROM \"table1_2562572_44\" WHERE \"cyrillic_name_other_names\"='\u0414\u043e\u0431\u0440\u0438\u0446\u0430';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_46\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: Which settlement has a cyrillic and other name of \u0432\u043e\u0458\u0432\u043e\u0434\u0438\u043d\u0446\u0438 (romanian: voivodin\u0163)?" }, { "role": "assistant", "content": "SELECT \"settlement\" FROM \"table1_2562572_46\" WHERE \"cyrillic_name_other_names\"='\u0412\u043e\u0458\u0432\u043e\u0434\u0438\u043d\u0446\u0438 (Romanian: Voivodin\u0163)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_46\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What was the dominant religion in 2002 of the settlement with the cyrillic and other name of \u0432\u043e\u0458\u0432\u043e\u0434\u0438\u043d\u0446\u0438 (romanian: voivodin\u0163)?" }, { "role": "assistant", "content": "SELECT \"dominant_religion_2002\" FROM \"table1_2562572_46\" WHERE \"cyrillic_name_other_names\"='\u0412\u043e\u0458\u0432\u043e\u0434\u0438\u043d\u0446\u0438 (Romanian: Voivodin\u0163)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_46\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What was the population in 2011 of the settlement with the cyrillic name of \u0432\u0430\u0442\u0438\u043d?" }, { "role": "assistant", "content": "SELECT MAX(\"population_2011\") FROM \"table1_2562572_46\" WHERE \"cyrillic_name_other_names\"='\u0412\u0430\u0442\u0438\u043d';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_46\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What was the largest ethnic group in so\u010dica?" }, { "role": "assistant", "content": "SELECT \"largest_ethnic_group_2002\" FROM \"table1_2562572_46\" WHERE \"settlement\"='So\u010dica';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_46\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What was the 2011 population of pavli\u0161?" }, { "role": "assistant", "content": "SELECT \"population_2011\" FROM \"table1_2562572_46\" WHERE \"settlement\"='Pavli\u0161';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_46\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What was the largest ethnic group in 2002 of the settlement with the cyrillic name of \u0432\u0430\u0442\u0438\u043d?" }, { "role": "assistant", "content": "SELECT \"largest_ethnic_group_2002\" FROM \"table1_2562572_46\" WHERE \"cyrillic_name_other_names\"='\u0412\u0430\u0442\u0438\u043d';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_50\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What was the dominant religion (2002) of the Mala Remeta settlement?" }, { "role": "assistant", "content": "SELECT \"dominant_religion_2002\" FROM \"table1_2562572_50\" WHERE \"settlement\"='Mala Remeta';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_50\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What type of settlemen is Kru\u0161edol Selo?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"table1_2562572_50\" WHERE \"settlement\"='Kru\u0161edol Selo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_50\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: How many types of settlement if Neradin?" }, { "role": "assistant", "content": "SELECT COUNT(\"type\") FROM \"table1_2562572_50\" WHERE \"settlement\"='Neradin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_50\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What type of settlement is Jazak?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"table1_2562572_50\" WHERE \"settlement\"='Jazak';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_cities_towns_and_villages_in_voj\" (\n \"settlement\" text,\n \"cyrillic_name\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What is the name of the settlement that had a population of 9443 in 2011?" }, { "role": "assistant", "content": "SELECT \"settlement\" FROM \"list_of_cities_towns_and_villages_in_voj\" WHERE \"population_2011\"=9443;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_cities_towns_and_villages_in_voj\" (\n \"settlement\" text,\n \"cyrillic_name\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: How many different types of settlements does Nova Pazova fall into?" }, { "role": "assistant", "content": "SELECT COUNT(\"type\") FROM \"list_of_cities_towns_and_villages_in_voj\" WHERE \"settlement\"='Nova Pazova';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_cities_towns_and_villages_in_voj\" (\n \"settlement\" text,\n \"cyrillic_name\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What ethnic group had the largest population in \u0441\u0443\u0440\u0434\u0443\u043a in 2002?" }, { "role": "assistant", "content": "SELECT \"largest_ethnic_group_2002\" FROM \"list_of_cities_towns_and_villages_in_voj\" WHERE \"cyrillic_name\"='\u0421\u0443\u0440\u0434\u0443\u043a';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_cities_towns_and_villages_in_voj\" (\n \"settlement\" text,\n \"cyrillic_name\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What ethnic group had the largest population in \u0441\u0443\u0440\u0434\u0443\u043a in 2002?" }, { "role": "assistant", "content": "SELECT \"largest_ethnic_group_2002\" FROM \"list_of_cities_towns_and_villages_in_voj\" WHERE \"cyrillic_name\"='\u0421\u0443\u0440\u0434\u0443\u043a';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_cities_towns_and_villages_in_voj\" (\n \"settlement\" text,\n \"cyrillic_name\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: How many dominant religions were in the settlement that had a population of 17105?" }, { "role": "assistant", "content": "SELECT COUNT(\"dominant_religion_2002\") FROM \"list_of_cities_towns_and_villages_in_voj\" WHERE \"population_2011\"=17105;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_cities_towns_and_villages_in_voj\" (\n \"settlement\" text,\n \"cyrillic_name\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What was the population of \u0441\u0443\u0440\u0434\u0443\u043a in 2011?" }, { "role": "assistant", "content": "SELECT COUNT(\"population_2011\") FROM \"list_of_cities_towns_and_villages_in_voj\" WHERE \"cyrillic_name\"='\u0421\u0443\u0440\u0434\u0443\u043a';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"may_1920_special_election\" (\n \"meas_num\" real,\n \"passed\" text,\n \"yes_votes\" real,\n \"no_votes\" real,\n \"pct_yes\" text,\n \"const_amd\" text,\n \"type\" text,\n \"description\" text\n);\n\nQuestion: When extending eminent domain over roads and ways is the description what is the highest means number?" }, { "role": "assistant", "content": "SELECT MAX(\"meas_num\") FROM \"may_1920_special_election\" WHERE \"description\"='Extending Eminent Domain Over Roads and Ways';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"may_1920_special_election\" (\n \"meas_num\" real,\n \"passed\" text,\n \"yes_votes\" real,\n \"no_votes\" real,\n \"pct_yes\" text,\n \"const_amd\" text,\n \"type\" text,\n \"description\" text\n);\n\nQuestion: When restoring capital punishment is the description how many types are there?" }, { "role": "assistant", "content": "SELECT COUNT(\"type\") FROM \"may_1920_special_election\" WHERE \"description\"='Restoring Capital Punishment';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"may_1920_special_election\" (\n \"meas_num\" real,\n \"passed\" text,\n \"yes_votes\" real,\n \"no_votes\" real,\n \"pct_yes\" text,\n \"const_amd\" text,\n \"type\" text,\n \"description\" text\n);\n\nQuestion: What is the lowest overall amount of no votes?" }, { "role": "assistant", "content": "SELECT MIN(\"no_votes\") FROM \"may_1920_special_election\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_urban_settlements_in_vojvodina\" (\n \"urban_settlement\" text,\n \"cyrillic_name\" text,\n \"city_municipality\" text,\n \"district\" text,\n \"population_1991\" real,\n \"population_2002\" real,\n \"population_2011\" real\n);\n\nQuestion: What was the urban settlement when the city / municipality was kovin?" }, { "role": "assistant", "content": "SELECT \"urban_settlement\" FROM \"list_of_urban_settlements_in_vojvodina\" WHERE \"city_municipality\"='Kovin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_urban_settlements_in_vojvodina\" (\n \"urban_settlement\" text,\n \"cyrillic_name\" text,\n \"city_municipality\" text,\n \"district\" text,\n \"population_1991\" real,\n \"population_2002\" real,\n \"population_2011\" real\n);\n\nQuestion: What is the population (1991) where population (2002) was 14250?" }, { "role": "assistant", "content": "SELECT COUNT(\"population_1991\") FROM \"list_of_urban_settlements_in_vojvodina\" WHERE \"population_2002\"=14250;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_urban_settlements_in_vojvodina\" (\n \"urban_settlement\" text,\n \"cyrillic_name\" text,\n \"city_municipality\" text,\n \"district\" text,\n \"population_1991\" real,\n \"population_2002\" real,\n \"population_2011\" real\n);\n\nQuestion: What is the population (1991) when cyrillic name is \u043f\u0430\u043d\u0447\u0435\u0432\u043e?" }, { "role": "assistant", "content": "SELECT MIN(\"population_1991\") FROM \"list_of_urban_settlements_in_vojvodina\" WHERE \"cyrillic_name\"='\u041f\u0430\u043d\u0447\u0435\u0432\u043e';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_56\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type_location\" text,\n \"settlement_destiny\" text,\n \"largest_ethnic_group_year\" text\n);\n\nQuestion: What is the settlement destiny in Aleksandrovo? " }, { "role": "assistant", "content": "SELECT \"settlement_destiny\" FROM \"table1_2562572_56\" WHERE \"settlement\"='Aleksandrovo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_56\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type_location\" text,\n \"settlement_destiny\" text,\n \"largest_ethnic_group_year\" text\n);\n\nQuestion: What is the Cyrillic name for Novi Vladimirovac? " }, { "role": "assistant", "content": "SELECT \"cyrillic_name_other_names\" FROM \"table1_2562572_56\" WHERE \"settlement\"='Novi Vladimirovac';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_54\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: How many items appear in the population 2011 column for the kr\u010dedin settlement?" }, { "role": "assistant", "content": "SELECT COUNT(\"population_2011\") FROM \"table1_2562572_54\" WHERE \"settlement\"='Kr\u010dedin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_54\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What is the dominant religion in 2002 for the population of 2337 in 2011?" }, { "role": "assistant", "content": "SELECT \"dominant_religion_2002\" FROM \"table1_2562572_54\" WHERE \"population_2011\"=2337;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_54\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What is the lowest population in 2011 for the settlement of \u010dortanovci?" }, { "role": "assistant", "content": "SELECT MIN(\"population_2011\") FROM \"table1_2562572_54\" WHERE \"settlement\"='\u010cortanovci';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_54\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What is the largest ethnic group in 2002 for the cyrillic name, other name of \u0431\u0435\u0448\u043a\u0430?" }, { "role": "assistant", "content": "SELECT \"largest_ethnic_group_2002\" FROM \"table1_2562572_54\" WHERE \"cyrillic_name_other_names\"='\u0411\u0435\u0448\u043a\u0430';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_urban_settlements_in_vojvodina\" (\n \"urban_settlement\" text,\n \"cyrillic_name\" text,\n \"city_municipality\" text,\n \"district\" text,\n \"population_1991\" real,\n \"population_2002\" real,\n \"population_2011\" real\n);\n\nQuestion: What was the lowes population of 2002 when the 2011 population was 30076?" }, { "role": "assistant", "content": "SELECT MIN(\"population_2002\") FROM \"list_of_urban_settlements_in_vojvodina\" WHERE \"population_2011\"=30076;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_9\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What is the dominant religion in \u0441\u0442\u0435\u043f\u0430\u043d\u043e\u0432\u0438\u045b\u0435\u0432\u043e during 2002?" }, { "role": "assistant", "content": "SELECT \"dominant_religion_2002\" FROM \"table1_2562572_9\" WHERE \"cyrillic_name_other_names\"='\u0421\u0442\u0435\u043f\u0430\u043d\u043e\u0432\u0438\u045b\u0435\u0432\u043e';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_9\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What is the cyrillic name for the settlement with the population of 2125?" }, { "role": "assistant", "content": "SELECT \"cyrillic_name_other_names\" FROM \"table1_2562572_9\" WHERE \"population_2011\"=2125;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_9\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What type of settlement is \u0444\u0443\u0442\u043e\u0433?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"table1_2562572_9\" WHERE \"cyrillic_name_other_names\"='\u0424\u0443\u0442\u043e\u0433';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_9\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What is the cyrillic name for the settlement with the population of 5414?" }, { "role": "assistant", "content": "SELECT \"cyrillic_name_other_names\" FROM \"table1_2562572_9\" WHERE \"population_2011\"=5414;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_9\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What is the cyrillic name for Budisava?" }, { "role": "assistant", "content": "SELECT \"cyrillic_name_other_names\" FROM \"table1_2562572_9\" WHERE \"settlement\"='Budisava';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2562572_9\" (\n \"settlement\" text,\n \"cyrillic_name_other_names\" text,\n \"type\" text,\n \"population_2011\" real,\n \"largest_ethnic_group_2002\" text,\n \"dominant_religion_2002\" text\n);\n\nQuestion: What is the dominant religion for \u043d\u043e\u0432\u0438 \u0441\u0430\u0434 in 2002?" }, { "role": "assistant", "content": "SELECT \"dominant_religion_2002\" FROM \"table1_2562572_9\" WHERE \"cyrillic_name_other_names\"='\u041d\u043e\u0432\u0438 \u0421\u0430\u0434';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1926_general_election\" (\n \"meas_num\" real,\n \"passed\" text,\n \"yes_votes\" real,\n \"no_votes\" real,\n \"pct_yes\" text,\n \"const_amd\" text,\n \"type\" text,\n \"description\" text\n);\n\nQuestion: What is the largest number of yest votes for the measure with 61307 no votes?" }, { "role": "assistant", "content": "SELECT MAX(\"yes_votes\") FROM \"1926_general_election\" WHERE \"no_votes\"=61307;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1926_general_election\" (\n \"meas_num\" real,\n \"passed\" text,\n \"yes_votes\" real,\n \"no_votes\" real,\n \"pct_yes\" text,\n \"const_amd\" text,\n \"type\" text,\n \"description\" text\n);\n\nQuestion: What numbered measure had a 58.29% yes%?" }, { "role": "assistant", "content": "SELECT \"meas_num\" FROM \"1926_general_election\" WHERE \"pct_yes\"='58.29%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1926_general_election\" (\n \"meas_num\" real,\n \"passed\" text,\n \"yes_votes\" real,\n \"no_votes\" real,\n \"pct_yes\" text,\n \"const_amd\" text,\n \"type\" text,\n \"description\" text\n);\n\nQuestion: What was the passing result for the measure with 61307 no votes?" }, { "role": "assistant", "content": "SELECT \"passed\" FROM \"1926_general_election\" WHERE \"no_votes\"=61307;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1926_general_election\" (\n \"meas_num\" real,\n \"passed\" text,\n \"yes_votes\" real,\n \"no_votes\" real,\n \"pct_yes\" text,\n \"const_amd\" text,\n \"type\" text,\n \"description\" text\n);\n\nQuestion: What is the lowest measure number for the measure with a 33.57% yes percentage?" }, { "role": "assistant", "content": "SELECT MIN(\"meas_num\") FROM \"1926_general_election\" WHERE \"pct_yes\"='33.57%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1926_general_election\" (\n \"meas_num\" real,\n \"passed\" text,\n \"yes_votes\" real,\n \"no_votes\" real,\n \"pct_yes\" text,\n \"const_amd\" text,\n \"type\" text,\n \"description\" text\n);\n\nQuestion: What was the passing result for the measure with a description of bus and truck operating license bill?" }, { "role": "assistant", "content": "SELECT \"passed\" FROM \"1926_general_election\" WHERE \"description\"='Bus and Truck Operating License Bill';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1930_general_election\" (\n \"meas_num\" real,\n \"passed\" text,\n \"yes_votes\" real,\n \"no_votes\" real,\n \"pct_yes\" text,\n \"const_amd\" text,\n \"type\" text,\n \"description\" text\n);\n\nQuestion: What was the result of the ballot that had a 52.49% yes vote percentage?" }, { "role": "assistant", "content": "SELECT \"passed\" FROM \"1930_general_election\" WHERE \"pct_yes\"='52.49%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1928_general_election\" (\n \"meas_num\" real,\n \"passed\" text,\n \"yes_votes\" real,\n \"no_votes\" real,\n \"pct_yes\" text,\n \"const_amd\" text,\n \"type\" text,\n \"description\" text\n);\n\nQuestion: List the total number of constitutional amendments for a five cent gasoline tax bill." }, { "role": "assistant", "content": "SELECT COUNT(\"const_amd\") FROM \"1928_general_election\" WHERE \"description\"='Five Cent Gasoline Tax Bill';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1928_general_election\" (\n \"meas_num\" real,\n \"passed\" text,\n \"yes_votes\" real,\n \"no_votes\" real,\n \"pct_yes\" text,\n \"const_amd\" text,\n \"type\" text,\n \"description\" text\n);\n\nQuestion: What type of proposal is measure number 3?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"1928_general_election\" WHERE \"meas_num\"=3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1932_general_election\" (\n \"meas_num\" real,\n \"passed\" text,\n \"yes_votes\" real,\n \"no_votes\" real,\n \"pct_yes\" text,\n \"const_amd\" text,\n \"type\" text,\n \"description\" text\n);\n\nQuestion: How many yes votes did the measure that got 60.39% yes votes get?" }, { "role": "assistant", "content": "SELECT \"yes_votes\" FROM \"1932_general_election\" WHERE \"pct_yes\"='60.39%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1932_general_election\" (\n \"meas_num\" real,\n \"passed\" text,\n \"yes_votes\" real,\n \"no_votes\" real,\n \"pct_yes\" text,\n \"const_amd\" text,\n \"type\" text,\n \"description\" text\n);\n\nQuestion: What is the description of the measure that got 39.57% yes votes?" }, { "role": "assistant", "content": "SELECT \"description\" FROM \"1932_general_election\" WHERE \"pct_yes\"='39.57%';" } ]