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 \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: Name the season for position 4th" }, { "role": "assistant", "content": "SELECT COUNT(\"season\") FROM \"career_summary\" WHERE \"position\"='4th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: Name the least f/laps" }, { "role": "assistant", "content": "SELECT MIN(\"f_laps\") FROM \"career_summary\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: Name the least podiums for 9th position" }, { "role": "assistant", "content": "SELECT MIN(\"podiums\") FROM \"career_summary\" WHERE \"position\"='9th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_robin_standings\" (\n \"locale\" text,\n \"skip\" text,\n \"w\" real,\n \"l\" real,\n \"pf\" real,\n \"pa\" real,\n \"ends_won\" real,\n \"ends_lost\" real,\n \"blank_ends\" real,\n \"stolen_ends\" real,\n \"shot_pct\" real\n);\n\nQuestion: How many results are listed for shot PCT Where PA is 79?" }, { "role": "assistant", "content": "SELECT COUNT(\"shot_pct\") FROM \"round_robin_standings\" WHERE \"pa\"=79;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_robin_standings\" (\n \"locale\" text,\n \"skip\" text,\n \"w\" real,\n \"l\" real,\n \"pf\" real,\n \"pa\" real,\n \"ends_won\" real,\n \"ends_lost\" real,\n \"blank_ends\" real,\n \"stolen_ends\" real,\n \"shot_pct\" real\n);\n\nQuestion: Where were stolen ends recorded as 15?" }, { "role": "assistant", "content": "SELECT \"locale\" FROM \"round_robin_standings\" WHERE \"stolen_ends\"=15;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"karaikudi_ssa_bsnl\" (\n \"sl_no\" real,\n \"name_of_the_city\" text,\n \"address\" text,\n \"contact_person\" text,\n \"telephone_no\" text,\n \"facilities_offered\" text\n);\n\nQuestion: What was the SlNo no of contact person SDE (P), Thiruppattur?" }, { "role": "assistant", "content": "SELECT \"sl_no\" FROM \"karaikudi_ssa_bsnl\" WHERE \"contact_person\"='SDE (P), Thiruppattur';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25390694_2\" (\n \"series_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"air_date\" text,\n \"production_code\" real\n);\n\nQuestion: When did the episode \"rowley 1898\" air?" }, { "role": "assistant", "content": "SELECT \"air_date\" FROM \"table1_25390694_2\" WHERE \"title\"='\\\"Rowley 1898\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25390694_2\" (\n \"series_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"air_date\" text,\n \"production_code\" real\n);\n\nQuestion: What was the production code of the episode written by Brendan Cowell?" }, { "role": "assistant", "content": "SELECT \"production_code\" FROM \"table1_25390694_2\" WHERE \"writer\"='Brendan Cowell';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: How many f/laps did Pedro Nunes have when he was in 20th position?" }, { "role": "assistant", "content": "SELECT COUNT(\"f_laps\") FROM \"career_summary\" WHERE \"position\"='20th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: How many f/laps did Pedro Nunes have when he was at the gp3 series?" }, { "role": "assistant", "content": "SELECT \"f_laps\" FROM \"career_summary\" WHERE \"series\"='GP3 Series';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: What is the fewest number of races Pedro Nunes completed in any series?" }, { "role": "assistant", "content": "SELECT MIN(\"races\") FROM \"career_summary\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: What is the most podiums Pedro Nunes had when in 17th position?" }, { "role": "assistant", "content": "SELECT MAX(\"podiums\") FROM \"career_summary\" WHERE \"position\"='17th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"jewish\" (\n \"letters\" text,\n \"organization\" text,\n \"nickname\" text,\n \"founding_date\" text,\n \"founding_university\" text,\n \"type\" text\n);\n\nQuestion: What was the founding university of the organization Tau Epsilon Phi 1?" }, { "role": "assistant", "content": "SELECT \"founding_university\" FROM \"jewish\" WHERE \"organization\"='Tau Epsilon Phi 1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"jewish\" (\n \"letters\" text,\n \"organization\" text,\n \"nickname\" text,\n \"founding_date\" text,\n \"founding_university\" text,\n \"type\" text\n);\n\nQuestion: What was the founding date for the \"AEPI\"?" }, { "role": "assistant", "content": "SELECT \"founding_date\" FROM \"jewish\" WHERE \"nickname\"='\\\"AEPi\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"jewish\" (\n \"letters\" text,\n \"organization\" text,\n \"nickname\" text,\n \"founding_date\" text,\n \"founding_university\" text,\n \"type\" text\n);\n\nQuestion: What type is \u03c3\u03b1\u03b5\u03c0?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"jewish\" WHERE \"letters\"='\u03a3\u0391\u0395\u03a0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"jewish\" (\n \"letters\" text,\n \"organization\" text,\n \"nickname\" text,\n \"founding_date\" text,\n \"founding_university\" text,\n \"type\" text\n);\n\nQuestion: What was the founding university of \u03b1\u03b5\u03c6?" }, { "role": "assistant", "content": "SELECT \"founding_university\" FROM \"jewish\" WHERE \"letters\"='\u0391\u0395\u03a6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lgbt\" (\n \"letters\" text,\n \"organization\" text,\n \"nickname\" text,\n \"founding_date\" text,\n \"founding_university\" text,\n \"type\" text\n);\n\nQuestion: What is the type if the organization name is Gamma RHO Lambda 1?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"lgbt\" WHERE \"organization\"='Gamma Rho Lambda 1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lgbt\" (\n \"letters\" text,\n \"organization\" text,\n \"nickname\" text,\n \"founding_date\" text,\n \"founding_university\" text,\n \"type\" text\n);\n\nQuestion: If the letters is \u03c6\u03b1\u03bd, what is the founding date?" }, { "role": "assistant", "content": "SELECT \"founding_date\" FROM \"lgbt\" WHERE \"letters\"='\u03a6\u0391\u039d';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lgbt\" (\n \"letters\" text,\n \"organization\" text,\n \"nickname\" text,\n \"founding_date\" text,\n \"founding_university\" text,\n \"type\" text\n);\n\nQuestion: If the founding university is in Charlotte, NC, what is the nickname?" }, { "role": "assistant", "content": "SELECT \"nickname\" FROM \"lgbt\" WHERE \"founding_university\"='Charlotte, NC';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lgbt\" (\n \"letters\" text,\n \"organization\" text,\n \"nickname\" text,\n \"founding_date\" text,\n \"founding_university\" text,\n \"type\" text\n);\n\nQuestion: What is the founding date if the nickname is '\"Canes\", \"k-psis\", \"Diamonds\", or \"Angels\"?" }, { "role": "assistant", "content": "SELECT \"founding_date\" FROM \"lgbt\" WHERE \"nickname\"='\\\"Canes\\\", \\\"K-PSIs\\\", \\\"Diamonds\\\", or \\\"Angels\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lgbt\" (\n \"letters\" text,\n \"organization\" text,\n \"nickname\" text,\n \"founding_date\" text,\n \"founding_university\" text,\n \"type\" text\n);\n\nQuestion: What is the founding date if the letters are \u03ba\u03c8\u03ba?" }, { "role": "assistant", "content": "SELECT \"founding_date\" FROM \"lgbt\" WHERE \"letters\"='\u039a\u03a8\u039a';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lgbt\" (\n \"letters\" text,\n \"organization\" text,\n \"nickname\" text,\n \"founding_date\" text,\n \"founding_university\" text,\n \"type\" text\n);\n\nQuestion: If the founding university is in Washington, D.C., what was the founding date?" }, { "role": "assistant", "content": "SELECT \"founding_date\" FROM \"lgbt\" WHERE \"founding_university\"='Washington, D.C.';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"averages\" (\n \"rank_by_average\" real,\n \"place\" real,\n \"couple\" text,\n \"total_points\" real,\n \"number_of_dances\" real,\n \"average\" text\n);\n\nQuestion: What is the rank by average for the team who averaged 22.8?" }, { "role": "assistant", "content": "SELECT MIN(\"rank_by_average\") FROM \"averages\" WHERE \"average\"='22.8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"averages\" (\n \"rank_by_average\" real,\n \"place\" real,\n \"couple\" text,\n \"total_points\" real,\n \"number_of_dances\" real,\n \"average\" text\n);\n\nQuestion: What is the number of dances for the team that averages 20.6?" }, { "role": "assistant", "content": "SELECT \"number_of_dances\" FROM \"averages\" WHERE \"average\"='20.6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"averages\" (\n \"rank_by_average\" real,\n \"place\" real,\n \"couple\" text,\n \"total_points\" real,\n \"number_of_dances\" real,\n \"average\" text\n);\n\nQuestion: What couple averaged 15.5?" }, { "role": "assistant", "content": "SELECT \"couple\" FROM \"averages\" WHERE \"average\"='15.5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"averages\" (\n \"rank_by_average\" real,\n \"place\" real,\n \"couple\" text,\n \"total_points\" real,\n \"number_of_dances\" real,\n \"average\" text\n);\n\nQuestion: What is the smallest rank by average for a team averaging 22.8?" }, { "role": "assistant", "content": "SELECT MIN(\"rank_by_average\") FROM \"averages\" WHERE \"average\"='22.8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25401_15\" (\n \"english\" text,\n \"latin\" text,\n \"proto_italo_western_1\" text,\n \"conservative_central_italian_1\" text,\n \"italian\" text,\n \"spanish\" text,\n \"catalan\" text,\n \"old_french\" text\n);\n\nQuestion: What is every value for Italian when the part is English?" }, { "role": "assistant", "content": "SELECT \"italian\" FROM \"table1_25401_15\" WHERE \"english\"='part';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25401_15\" (\n \"english\" text,\n \"latin\" text,\n \"proto_italo_western_1\" text,\n \"conservative_central_italian_1\" text,\n \"italian\" text,\n \"spanish\" text,\n \"catalan\" text,\n \"old_french\" text\n);\n\nQuestion: What is every entry for Proto-Italo-Western 1 when door is English?" }, { "role": "assistant", "content": "SELECT \"proto_italo_western_1\" FROM \"table1_25401_15\" WHERE \"english\"='door';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25401_15\" (\n \"english\" text,\n \"latin\" text,\n \"proto_italo_western_1\" text,\n \"conservative_central_italian_1\" text,\n \"italian\" text,\n \"spanish\" text,\n \"catalan\" text,\n \"old_french\" text\n);\n\nQuestion: How many entries for Italian correspond to the Conservative Central Italian of Unu?" }, { "role": "assistant", "content": "SELECT COUNT(\"italian\") FROM \"table1_25401_15\" WHERE \"conservative_central_italian_1\"='unu';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25401_15\" (\n \"english\" text,\n \"latin\" text,\n \"proto_italo_western_1\" text,\n \"conservative_central_italian_1\" text,\n \"italian\" text,\n \"spanish\" text,\n \"catalan\" text,\n \"old_french\" text\n);\n\nQuestion: What is every entry for Latin when Catalan is Mar?" }, { "role": "assistant", "content": "SELECT \"latin\" FROM \"table1_25401_15\" WHERE \"catalan\"='mar';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011_2012\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"opponent\" text,\n \"stadium\" text,\n \"score\" text,\n \"indian_scorers\" text\n);\n\nQuestion: If the Indian Scorers is Chinadorai Sabeeth, what is the name of the stadium?" }, { "role": "assistant", "content": "SELECT \"stadium\" FROM \"2011_2012\" WHERE \"indian_scorers\"='Chinadorai Sabeeth';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011_2012\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"opponent\" text,\n \"stadium\" text,\n \"score\" text,\n \"indian_scorers\" text\n);\n\nQuestion: If the stadium name is the Thuwunna Stadium, what is the date?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"2011_2012\" WHERE \"stadium\"='Thuwunna Stadium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011_2012\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"opponent\" text,\n \"stadium\" text,\n \"score\" text,\n \"indian_scorers\" text\n);\n\nQuestion: If the Indian scorers is the Chinadorai Sabeeth, what is the score?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"2011_2012\" WHERE \"indian_scorers\"='Chinadorai Sabeeth';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011_2012\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"opponent\" text,\n \"stadium\" text,\n \"score\" text,\n \"indian_scorers\" text\n);\n\nQuestion: If the location is Yangon, Myanmar, what is the opponent total number?" }, { "role": "assistant", "content": "SELECT COUNT(\"opponent\") FROM \"2011_2012\" WHERE \"location\"='Yangon, Myanmar';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_provincial_level_divisions\" (\n \"gb\" text,\n \"iso\" text,\n \"province\" text,\n \"chinese_name\" text,\n \"capital\" text,\n \"population\" real,\n \"density\" text,\n \"area\" real,\n \"abbreviation_symbol\" text\n);\n\nQuestion: How many provinces are named \u9752\u6d77\u7701 q\u012bngh\u01cei sh\u011bng?" }, { "role": "assistant", "content": "SELECT COUNT(\"iso\") FROM \"list_of_provincial_level_divisions\" WHERE \"chinese_name\"='\u9752\u6d77\u7701 Q\u012bngh\u01cei Sh\u011bng';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_provincial_level_divisions\" (\n \"gb\" text,\n \"iso\" text,\n \"province\" text,\n \"chinese_name\" text,\n \"capital\" text,\n \"population\" real,\n \"density\" text,\n \"area\" real,\n \"abbreviation_symbol\" text\n);\n\nQuestion: What is the area of the province with a density of 533.59?" }, { "role": "assistant", "content": "SELECT MAX(\"area\") FROM \"list_of_provincial_level_divisions\" WHERE \"density\"='533.59';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_provincial_level_divisions\" (\n \"gb\" text,\n \"iso\" text,\n \"province\" text,\n \"chinese_name\" text,\n \"capital\" text,\n \"population\" real,\n \"density\" text,\n \"area\" real,\n \"abbreviation_symbol\" text\n);\n\nQuestion: How many provinces have a density of 165.81?" }, { "role": "assistant", "content": "SELECT COUNT(\"iso\") FROM \"list_of_provincial_level_divisions\" WHERE \"density\"='165.81';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_provincial_level_divisions\" (\n \"gb\" text,\n \"iso\" text,\n \"province\" text,\n \"chinese_name\" text,\n \"capital\" text,\n \"population\" real,\n \"density\" text,\n \"area\" real,\n \"abbreviation_symbol\" text\n);\n\nQuestion: What is the abbreviation/symbol of \u8fbd\u5b81\u7701 li\u00e1on\u00edng sh\u011bng?" }, { "role": "assistant", "content": "SELECT \"abbreviation_symbol\" FROM \"list_of_provincial_level_divisions\" WHERE \"chinese_name\"='\u8fbd\u5b81\u7701 Li\u00e1on\u00edng Sh\u011bng';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_provincial_level_divisions\" (\n \"gb\" text,\n \"iso\" text,\n \"province\" text,\n \"chinese_name\" text,\n \"capital\" text,\n \"population\" real,\n \"density\" text,\n \"area\" real,\n \"abbreviation_symbol\" text\n);\n\nQuestion: How many gb's have an iso number of cn-65?" }, { "role": "assistant", "content": "SELECT COUNT(\"gb\") FROM \"list_of_provincial_level_divisions\" WHERE \"iso\"='CN-65';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_provincial_level_divisions\" (\n \"gb\" text,\n \"iso\" text,\n \"province\" text,\n \"chinese_name\" text,\n \"capital\" text,\n \"population\" real,\n \"density\" text,\n \"area\" real,\n \"abbreviation_symbol\" text\n);\n\nQuestion: What is the chinese name of the province whose capital is hangzhou?" }, { "role": "assistant", "content": "SELECT \"chinese_name\" FROM \"list_of_provincial_level_divisions\" WHERE \"capital\"='Hangzhou';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team_name\" text,\n \"races\" real,\n \"wins\" real,\n \"points\" text,\n \"final_placing\" text\n);\n\nQuestion: What is the fewest amount of races in any season? " }, { "role": "assistant", "content": "SELECT MIN(\"races\") FROM \"career_summary\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team_name\" text,\n \"races\" real,\n \"wins\" real,\n \"points\" text,\n \"final_placing\" text\n);\n\nQuestion: How many races were there when Sigachev had 38 points?" }, { "role": "assistant", "content": "SELECT MIN(\"races\") FROM \"career_summary\" WHERE \"points\"='38';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team_name\" text,\n \"races\" real,\n \"wins\" real,\n \"points\" text,\n \"final_placing\" text\n);\n\nQuestion: What team was Sigachev on when he had 38 points? " }, { "role": "assistant", "content": "SELECT \"team_name\" FROM \"career_summary\" WHERE \"points\"='38';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team_name\" text,\n \"races\" real,\n \"wins\" real,\n \"points\" text,\n \"final_placing\" text\n);\n\nQuestion: In what season was the final placing NC\u2020 and the team SL Formula Racing? " }, { "role": "assistant", "content": "SELECT \"season\" FROM \"career_summary\" WHERE \"final_placing\"='NC\u2020' AND \"team_name\"='SL Formula Racing';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"finishing_order\" (\n \"position\" text,\n \"number\" real,\n \"horse\" text,\n \"jockey\" text,\n \"age\" real,\n \"handicap\" text,\n \"sp\" text,\n \"distance\" text\n);\n\nQuestion: what is distance for the 7th position?" }, { "role": "assistant", "content": "SELECT COUNT(\"distance\") FROM \"finishing_order\" WHERE \"position\"='7th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"finishing_order\" (\n \"position\" text,\n \"number\" real,\n \"horse\" text,\n \"jockey\" text,\n \"age\" real,\n \"handicap\" text,\n \"sp\" text,\n \"distance\" text\n);\n\nQuestion: who isthe jockey in 10th position?" }, { "role": "assistant", "content": "SELECT \"jockey\" FROM \"finishing_order\" WHERE \"position\"='10th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"finishing_order\" (\n \"position\" text,\n \"number\" real,\n \"horse\" text,\n \"jockey\" text,\n \"age\" real,\n \"handicap\" text,\n \"sp\" text,\n \"distance\" text\n);\n\nQuestion: what position is number 22?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"finishing_order\" WHERE \"number\"=22;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"finishing_order\" (\n \"position\" text,\n \"number\" real,\n \"horse\" text,\n \"jockey\" text,\n \"age\" real,\n \"handicap\" text,\n \"sp\" text,\n \"distance\" text\n);\n\nQuestion: what horse is in the 6th position?" }, { "role": "assistant", "content": "SELECT \"horse\" FROM \"finishing_order\" WHERE \"position\"='6th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"finishing_order\" (\n \"position\" text,\n \"number\" real,\n \"horse\" text,\n \"jockey\" text,\n \"age\" real,\n \"handicap\" text,\n \"sp\" text,\n \"distance\" text\n);\n\nQuestion: what position has a handicap of 10-2?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"finishing_order\" WHERE \"handicap\"='10-2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"finishing_order\" (\n \"position\" text,\n \"number\" real,\n \"horse\" text,\n \"jockey\" text,\n \"age\" real,\n \"handicap\" text,\n \"sp\" text,\n \"distance\" text\n);\n\nQuestion: what is the handicap where the distance is 9 lengths?" }, { "role": "assistant", "content": "SELECT \"handicap\" FROM \"finishing_order\" WHERE \"distance\"='9 lengths';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"other_results\" (\n \"22_06_2008\" text,\n \"indonesia_super_series_2008\" text,\n \"s_series\" text,\n \"7800_00\" text,\n \"runner_up\" text\n);\n\nQuestion: Which series occurred when the 7800 was 5040.00?" }, { "role": "assistant", "content": "SELECT \"indonesia_super_series_2008\" FROM \"other_results\" WHERE \"7800_00\"='5040.00';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"other_results\" (\n \"22_06_2008\" text,\n \"indonesia_super_series_2008\" text,\n \"s_series\" text,\n \"7800_00\" text,\n \"runner_up\" text\n);\n\nQuestion: Which series occurred in which the semi-finalist was runner-up and the 7800.00 was 6420.00?" }, { "role": "assistant", "content": "SELECT \"indonesia_super_series_2008\" FROM \"other_results\" WHERE \"runner_up\"='Semi-Finalist' AND \"7800_00\"='6420.00';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"other_results\" (\n \"22_06_2008\" text,\n \"indonesia_super_series_2008\" text,\n \"s_series\" text,\n \"7800_00\" text,\n \"runner_up\" text\n);\n\nQuestion: Which s.series occurred on 06/05/2007?" }, { "role": "assistant", "content": "SELECT \"s_series\" FROM \"other_results\" WHERE \"22_06_2008\"='06/05/2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25438110_5\" (\n \"casinos\" real,\n \"county\" text,\n \"road\" text,\n \"1_jul_08\" real,\n \"fy07_millions\" text,\n \"fy08_millions\" text,\n \"fy09_millions\" text\n);\n\nQuestion: What road is associated with Carson Valley county?" }, { "role": "assistant", "content": "SELECT \"road\" FROM \"table1_25438110_5\" WHERE \"county\"='Carson Valley';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25438110_5\" (\n \"casinos\" real,\n \"county\" text,\n \"road\" text,\n \"1_jul_08\" real,\n \"fy07_millions\" text,\n \"fy08_millions\" text,\n \"fy09_millions\" text\n);\n\nQuestion: How many casinos are associated with a July 1, 2008 value of 1865746?" }, { "role": "assistant", "content": "SELECT \"casinos\" FROM \"table1_25438110_5\" WHERE \"1_jul_08\"=1865746;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25438110_5\" (\n \"casinos\" real,\n \"county\" text,\n \"road\" text,\n \"1_jul_08\" real,\n \"fy07_millions\" text,\n \"fy08_millions\" text,\n \"fy09_millions\" text\n);\n\nQuestion: What county has exactly 17 casinos?" }, { "role": "assistant", "content": "SELECT \"county\" FROM \"table1_25438110_5\" WHERE \"casinos\"=17;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25438110_5\" (\n \"casinos\" real,\n \"county\" text,\n \"road\" text,\n \"1_jul_08\" real,\n \"fy07_millions\" text,\n \"fy08_millions\" text,\n \"fy09_millions\" text\n);\n\nQuestion: How many casinos are associated with a FY2009 $mil value of exactly $279?" }, { "role": "assistant", "content": "SELECT COUNT(\"casinos\") FROM \"table1_25438110_5\" WHERE \"fy09_millions\"='$279';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25438110_5\" (\n \"casinos\" real,\n \"county\" text,\n \"road\" text,\n \"1_jul_08\" real,\n \"fy07_millions\" text,\n \"fy08_millions\" text,\n \"fy09_millions\" text\n);\n\nQuestion: What is the FY2008 $mil value associated with a FY2007 $mil value of exactly $120?" }, { "role": "assistant", "content": "SELECT \"fy08_millions\" FROM \"table1_25438110_5\" WHERE \"fy07_millions\"='$120';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"official_delegates\" (\n \"country\" text,\n \"contestant\" text,\n \"age\" real,\n \"height_cm\" real,\n \"height_ft\" text,\n \"hometown\" text\n);\n\nQuestion: What country was Danissa Zurek from?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"official_delegates\" WHERE \"contestant\"='Danissa Zurek';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"official_delegates\" (\n \"country\" text,\n \"contestant\" text,\n \"age\" real,\n \"height_cm\" real,\n \"height_ft\" text,\n \"hometown\" text\n);\n\nQuestion: What is the smallest height associated with Honduras?" }, { "role": "assistant", "content": "SELECT MIN(\"height_cm\") FROM \"official_delegates\" WHERE \"country\"='Honduras';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"official_delegates\" (\n \"country\" text,\n \"contestant\" text,\n \"age\" real,\n \"height_cm\" real,\n \"height_ft\" text,\n \"hometown\" text\n);\n\nQuestion: What is the height associated with Paraguay?" }, { "role": "assistant", "content": "SELECT \"height_ft\" FROM \"official_delegates\" WHERE \"country\"='Paraguay';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"official_delegates\" (\n \"country\" text,\n \"contestant\" text,\n \"age\" real,\n \"height_cm\" real,\n \"height_ft\" text,\n \"hometown\" text\n);\n\nQuestion: What is the number of contestants who are aged exactly 18?" }, { "role": "assistant", "content": "SELECT COUNT(\"contestant\") FROM \"official_delegates\" WHERE \"age\"=18;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"official_delegates\" (\n \"country\" text,\n \"contestant\" text,\n \"age\" real,\n \"height_cm\" real,\n \"height_ft\" text,\n \"hometown\" text\n);\n\nQuestion: What is the number of contestants who are 5'7\" and exactly 26 years of age?" }, { "role": "assistant", "content": "SELECT COUNT(\"contestant\") FROM \"official_delegates\" WHERE \"height_ft\"='5''7\\\"' AND \"age\"=26;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who scored the most points on November 17?" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"schedule\" WHERE \"date\"='November 17';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the final score when the Temple Owls beat Virginia Tech?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"schedule\" WHERE \"team\"='Virginia Tech';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: How many games were played on november 27?" }, { "role": "assistant", "content": "SELECT COUNT(\"record\") FROM \"schedule\" WHERE \"date\"='November 27';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar_and_results\" (\n \"round\" real,\n \"circuit\" text,\n \"location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"supporting\" text\n);\n\nQuestion: Who got the pole position if the supporting is USAC National Midget Series?" }, { "role": "assistant", "content": "SELECT \"pole_position\" FROM \"race_calendar_and_results\" WHERE \"supporting\"='USAC National Midget Series';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar_and_results\" (\n \"round\" real,\n \"circuit\" text,\n \"location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"supporting\" text\n);\n\nQuestion: Who won the fastest lap if Anders Krohn won the pole position?" }, { "role": "assistant", "content": "SELECT \"fastest_lap\" FROM \"race_calendar_and_results\" WHERE \"pole_position\"='Anders Krohn';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar_and_results\" (\n \"round\" real,\n \"circuit\" text,\n \"location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"supporting\" text\n);\n\nQuestion: How many rounds did Jo\u00e3o Victor Horto achieved the fastest lap?" }, { "role": "assistant", "content": "SELECT COUNT(\"round\") FROM \"race_calendar_and_results\" WHERE \"fastest_lap\"='Jo\u00e3o Victor Horto';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar_and_results\" (\n \"round\" real,\n \"circuit\" text,\n \"location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"supporting\" text\n);\n\nQuestion: What circuit was used on August 21?" }, { "role": "assistant", "content": "SELECT \"circuit\" FROM \"race_calendar_and_results\" WHERE \"date\"='August 21';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar_and_results\" (\n \"round\" real,\n \"circuit\" text,\n \"location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"supporting\" text\n);\n\nQuestion: How many rounds did Alex Ardoin achieved a fastest lap?" }, { "role": "assistant", "content": "SELECT COUNT(\"round\") FROM \"race_calendar_and_results\" WHERE \"fastest_lap\"='Alex Ardoin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010\" (\n \"date_of_issue\" text,\n \"theme\" text,\n \"denomination\" text,\n \"design\" text,\n \"illustration\" text,\n \"quantity\" text,\n \"printing_process\" text,\n \"paper_type\" text,\n \"first_day_cover_cancellation\" text\n);\n\nQuestion: What is the design when quantity is 5,000,000?" }, { "role": "assistant", "content": "SELECT \"design\" FROM \"2010\" WHERE \"quantity\"='5,000,000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010\" (\n \"date_of_issue\" text,\n \"theme\" text,\n \"denomination\" text,\n \"design\" text,\n \"illustration\" text,\n \"quantity\" text,\n \"printing_process\" text,\n \"paper_type\" text,\n \"first_day_cover_cancellation\" text\n);\n\nQuestion: How many time is the theme rotary international : 100 years in canada?" }, { "role": "assistant", "content": "SELECT COUNT(\"printing_process\") FROM \"2010\" WHERE \"theme\"='Rotary International : 100 Years in Canada';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010\" (\n \"date_of_issue\" text,\n \"theme\" text,\n \"denomination\" text,\n \"design\" text,\n \"illustration\" text,\n \"quantity\" text,\n \"printing_process\" text,\n \"paper_type\" text,\n \"first_day_cover_cancellation\" text\n);\n\nQuestion: What is the paper type for the date of issue July 8?" }, { "role": "assistant", "content": "SELECT \"paper_type\" FROM \"2010\" WHERE \"date_of_issue\"='July 8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010\" (\n \"date_of_issue\" text,\n \"theme\" text,\n \"denomination\" text,\n \"design\" text,\n \"illustration\" text,\n \"quantity\" text,\n \"printing_process\" text,\n \"paper_type\" text,\n \"first_day_cover_cancellation\" text\n);\n\nQuestion: What is the theme when the printing process is litho in 3 cols and intaglio?" }, { "role": "assistant", "content": "SELECT \"theme\" FROM \"2010\" WHERE \"printing_process\"='Litho in 3 cols and intaglio';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010\" (\n \"date_of_issue\" text,\n \"theme\" text,\n \"denomination\" text,\n \"design\" text,\n \"illustration\" text,\n \"quantity\" text,\n \"printing_process\" text,\n \"paper_type\" text,\n \"first_day_cover_cancellation\" text\n);\n\nQuestion: How many times is the theme roadside attractions: wawa goose?" }, { "role": "assistant", "content": "SELECT COUNT(\"quantity\") FROM \"2010\" WHERE \"theme\"='Roadside Attractions: Wawa Goose';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010\" (\n \"date_of_issue\" text,\n \"theme\" text,\n \"denomination\" text,\n \"design\" text,\n \"illustration\" text,\n \"quantity\" text,\n \"printing_process\" text,\n \"paper_type\" text,\n \"first_day_cover_cancellation\" text\n);\n\nQuestion: What is the theme when the date of issue is 11 january 2010?" }, { "role": "assistant", "content": "SELECT \"theme\" FROM \"2010\" WHERE \"date_of_issue\"='11 January 2010';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: When did they play Dayton?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"team\"='Dayton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25474825_1\" (\n \"software\" text,\n \"description\" text,\n \"platform\" text,\n \"license\" text,\n \"developer\" text\n);\n\nQuestion: What is the platform of Geworkbench?" }, { "role": "assistant", "content": "SELECT \"platform\" FROM \"table1_25474825_1\" WHERE \"software\"='GeWorkbench';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25474825_1\" (\n \"software\" text,\n \"description\" text,\n \"platform\" text,\n \"license\" text,\n \"developer\" text\n);\n\nQuestion: What is the description of the license for GNU GPL v2 or Ruby license?" }, { "role": "assistant", "content": "SELECT \"description\" FROM \"table1_25474825_1\" WHERE \"license\"='GNU GPL v2 or Ruby license';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25474825_1\" (\n \"software\" text,\n \"description\" text,\n \"platform\" text,\n \"license\" text,\n \"developer\" text\n);\n\nQuestion: What is the license that is described as a tool for designing and executing workflows?" }, { "role": "assistant", "content": "SELECT \"license\" FROM \"table1_25474825_1\" WHERE \"description\"='Tool for designing and executing workflows';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_25474825_1\" (\n \"software\" text,\n \"description\" text,\n \"platform\" text,\n \"license\" text,\n \"developer\" text\n);\n\nQuestion: What is the description of the intact software?" }, { "role": "assistant", "content": "SELECT \"description\" FROM \"table1_25474825_1\" WHERE \"software\"='IntAct';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"revised_electricity_tariffs_effective_fr\" (\n \"user\" text,\n \"unit_k_wh_time_range\" text,\n \"tariff_rs_k_wh\" text,\n \"fixed_charge_rs_k_wh\" text,\n \"fuel_adjustment_charge_pct_of_total_energy_charge\" text,\n \"max_demand_charge_rs_k_va\" text\n);\n\nQuestion: What user had a max demand charge of 1,100 and a unit/time range of h-2: off-peak (22:30-05:30)?" }, { "role": "assistant", "content": "SELECT \"user\" FROM \"revised_electricity_tariffs_effective_fr\" WHERE \"max_demand_charge_rs_k_va\"='1,100' AND \"unit_k_wh_time_range\"='H-2: Off-peak (22:30-05:30)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"revised_electricity_tariffs_effective_fr\" (\n \"user\" text,\n \"unit_k_wh_time_range\" text,\n \"tariff_rs_k_wh\" text,\n \"fixed_charge_rs_k_wh\" text,\n \"fuel_adjustment_charge_pct_of_total_energy_charge\" text,\n \"max_demand_charge_rs_k_va\" text\n);\n\nQuestion: What is the fixed charge for the user who had a tariff of 11.30?" }, { "role": "assistant", "content": "SELECT \"fixed_charge_rs_k_wh\" FROM \"revised_electricity_tariffs_effective_fr\" WHERE \"tariff_rs_k_wh\"='11.30';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"revised_electricity_tariffs_effective_fr\" (\n \"user\" text,\n \"unit_k_wh_time_range\" text,\n \"tariff_rs_k_wh\" text,\n \"fixed_charge_rs_k_wh\" text,\n \"fuel_adjustment_charge_pct_of_total_energy_charge\" text,\n \"max_demand_charge_rs_k_va\" text\n);\n\nQuestion: What is the fixed charge for the user with a unit/time range of i-2: peak (18:30-22:30)?" }, { "role": "assistant", "content": "SELECT \"fixed_charge_rs_k_wh\" FROM \"revised_electricity_tariffs_effective_fr\" WHERE \"unit_k_wh_time_range\"='I-2: Peak (18:30-22:30)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"revised_electricity_tariffs_effective_fr\" (\n \"user\" text,\n \"unit_k_wh_time_range\" text,\n \"tariff_rs_k_wh\" text,\n \"fixed_charge_rs_k_wh\" text,\n \"fuel_adjustment_charge_pct_of_total_energy_charge\" text,\n \"max_demand_charge_rs_k_va\" text\n);\n\nQuestion: What was the max demand charge for the user with a tariff of 8.85?" }, { "role": "assistant", "content": "SELECT \"max_demand_charge_rs_k_va\" FROM \"revised_electricity_tariffs_effective_fr\" WHERE \"tariff_rs_k_wh\"='8.85';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick_num\" real,\n \"mls_team\" text,\n \"player\" text,\n \"position\" text,\n \"affiliation\" text\n);\n\nQuestion: How many picks are there with an affiliation is the University of California Norcal Lamorinda United?" }, { "role": "assistant", "content": "SELECT COUNT(\"pick_num\") FROM \"round_two\" WHERE \"affiliation\"='University of California NorCal Lamorinda United';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick_num\" real,\n \"mls_team\" text,\n \"player\" text,\n \"position\" text,\n \"affiliation\" text\n);\n\nQuestion: What team does Seth Sinovic play for?" }, { "role": "assistant", "content": "SELECT \"mls_team\" FROM \"round_two\" WHERE \"player\"='Seth Sinovic';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_two\" (\n \"pick_num\" real,\n \"mls_team\" text,\n \"player\" text,\n \"position\" text,\n \"affiliation\" text\n);\n\nQuestion: How many players have an affiliation with University of Maryland?" }, { "role": "assistant", "content": "SELECT COUNT(\"player\") FROM \"round_two\" WHERE \"affiliation\"='University of Maryland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fed_cup_doubles_performances_10\" (\n \"edition\" real,\n \"zone\" text,\n \"round\" text,\n \"against\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"outcome\" text,\n \"result\" text\n);\n\nQuestion: in what round types did the opponent come from south africa?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"fed_cup_doubles_performances_10\" WHERE \"against\"='South Africa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fed_cup_doubles_performances_10\" (\n \"edition\" real,\n \"zone\" text,\n \"round\" text,\n \"against\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"outcome\" text,\n \"result\" text\n);\n\nQuestion: How did the match end when she played with caroline wozniacki?" }, { "role": "assistant", "content": "SELECT \"outcome\" FROM \"fed_cup_doubles_performances_10\" WHERE \"partner\"='Caroline Wozniacki';" } ]
[ { "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 \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real\n);\n\nQuestion: When was the University founded that joined in 1978?" }, { "role": "assistant", "content": "SELECT MAX(\"founded\") FROM \"current_members\" WHERE \"joined\"=1978;" } ]
[ { "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 \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real\n);\n\nQuestion: When was Piedmont College founded?" }, { "role": "assistant", "content": "SELECT MAX(\"founded\") FROM \"current_members\" WHERE \"institution\"='Piedmont 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 \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real\n);\n\nQuestion: When were the Avenging Angels founded?" }, { "role": "assistant", "content": "SELECT MAX(\"founded\") FROM \"current_members\" WHERE \"nickname\"='Avenging Angels';" } ]
[ { "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 \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real\n);\n\nQuestion: What institution joined in 1988?" }, { "role": "assistant", "content": "SELECT \"institution\" FROM \"current_members\" WHERE \"joined\"=1988;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real,\n \"left\" real,\n \"current_conference\" text\n);\n\nQuestion: What location is nicknamed the 49ers?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"former_members\" WHERE \"nickname\"='49ers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real,\n \"left\" real,\n \"current_conference\" text\n);\n\nQuestion: Where is the University of North Carolina at Greensboro located?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"former_members\" WHERE \"institution\"='University of North Carolina at Greensboro';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real,\n \"left\" real,\n \"current_conference\" text\n);\n\nQuestion: Where is the University of North Carolina at Greensboro located?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"former_members\" WHERE \"institution\"='University of North Carolina at Greensboro';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"triangles_and_their_sides\" (\n \"number\" real,\n \"name\" text,\n \"vertices\" text,\n \"hypotenuse_0_c\" text,\n \"vertical_0_b\" text,\n \"horizontal_0_a\" text\n);\n\nQuestion: Name the hypotenuse for vertices \u6708\u5c71\u6cdb \u03b4ymf" }, { "role": "assistant", "content": "SELECT \"hypotenuse_0_c\" FROM \"triangles_and_their_sides\" WHERE \"vertices\"='\u6708\u5c71\u6cdb \u0394YMF';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"triangles_and_their_sides\" (\n \"number\" real,\n \"name\" text,\n \"vertices\" text,\n \"hypotenuse_0_c\" text,\n \"vertical_0_b\" text,\n \"horizontal_0_a\" text\n);\n\nQuestion: Name the vertical for \u8fb9 bian" }, { "role": "assistant", "content": "SELECT \"vertical_0_b\" FROM \"triangles_and_their_sides\" WHERE \"name\"='\u8fb9 BIAN';" } ]