question_schema
stringlengths 3.21k
3.92k
| response
stringclasses 6
values | conversations
listlengths 2
2
|
---|---|---|
Question - Find all adolescents who are [age] years old., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nFind all adolescents who are [age] years old.",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '[age]';",
"role": "assistant"
}
] |
Question - Retrieve all adolescents who are [age] years old., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nRetrieve all adolescents who are [age] years old.",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '[age]';",
"role": "assistant"
}
] |
Question - Get the list of adolescents who are [age] years old., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nGet the list of adolescents who are [age] years old.",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '[age]';",
"role": "assistant"
}
] |
Question - Show all adolescents who are [age] years old., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nShow all adolescents who are [age] years old.",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '[age]';",
"role": "assistant"
}
] |
Question - Fetch all adolescents who are [age] years old., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nFetch all adolescents who are [age] years old.",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '[age]';",
"role": "assistant"
}
] |
Question - List all adolescents who are [age] years old., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nList all adolescents who are [age] years old.",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '[age]';",
"role": "assistant"
}
] |
Question - Provide all adolescents who are [age] years old., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nProvide all adolescents who are [age] years old.",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '[age]';",
"role": "assistant"
}
] |
Question - Find the adolescents with an age of [age]., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nFind the adolescents with an age of [age].",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '[age]';",
"role": "assistant"
}
] |
Question - Get all adolescents who have an age of [age]., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nGet all adolescents who have an age of [age].",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '[age]';",
"role": "assistant"
}
] |
Question - Retrieve all records of adolescents who are [age] years old., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nRetrieve all records of adolescents who are [age] years old.",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '[age]';",
"role": "assistant"
}
] |
Question - Show me the adolescents who are [age] years old., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nShow me the adolescents who are [age] years old.",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '[age]';",
"role": "assistant"
}
] |
Question - List adolescents that are [age] years old., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nList adolescents that are [age] years old.",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '[age]';",
"role": "assistant"
}
] |
Question - Find adolescents who are exactly [age] years old., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nFind adolescents who are exactly [age] years old.",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '[age]';",
"role": "assistant"
}
] |
Question - Get details of adolescents who are [age] years old., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nGet details of adolescents who are [age] years old.",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '[age]';",
"role": "assistant"
}
] |
Question - Fetch the adolescents that are [age] years old., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nFetch the adolescents that are [age] years old.",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '[age]';",
"role": "assistant"
}
] |
Question - Find all records of adolescents aged [age]., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nFind all records of adolescents aged [age].",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '[age]';",
"role": "assistant"
}
] |
Question - Show all adolescent details for those who are [age] years old., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nShow all adolescent details for those who are [age] years old.",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '[age]';",
"role": "assistant"
}
] |
Question - Retrieve the list of adolescents who are [age]., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nRetrieve the list of adolescents who are [age].",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '[age]';",
"role": "assistant"
}
] |
Question - Provide all details for adolescents who are [age] years old., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nProvide all details for adolescents who are [age] years old.",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '[age]';",
"role": "assistant"
}
] |
Question - List all adolescents who are at the age of [age]., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nList all adolescents who are at the age of [age].",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '[age]';",
"role": "assistant"
}
] |
Question - Find all adolescents who are 14 years old., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nFind all adolescents who are 14 years old.",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - Retrieve data for all adolescents with age 14, DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nRetrieve data for all adolescents with age 14",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - Show details of adolescents whose age is fourteen., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nShow details of adolescents whose age is fourteen.",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - List all records of adolescents who are exactly 14 years old., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nList all records of adolescents who are exactly 14 years old.",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - Display adolescent records for age equal to fourteen., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nDisplay adolescent records for age equal to fourteen.",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - How many adolescents aged 14, DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nHow many adolescents aged 14",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - Find all adols who are 14 years of age., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nFind all adols who are 14 years of age.",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - Retrieve adolescent records with an age of 14., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nRetrieve adolescent records with an age of 14.",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - Get all adolescent entries where age is fourteen., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nGet all adolescent entries where age is fourteen.",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - Show the list of adolescents who are 14 years old., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nShow the list of adolescents who are 14 years old.",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - Fetch all records for adolescents aged fourteen years., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nFetch all records for adolescents aged fourteen years.",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - Get a list of all adolescents who are of age fourteen., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nGet a list of all adolescents who are of age fourteen.",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - List the adolescent population aged fourteen., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nList the adolescent population aged fourteen.",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - Fetch records of adolescents who are 14 years of age., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nFetch records of adolescents who are 14 years of age.",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - How many adolescents are recorded as 14 years old?, DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nHow many adolescents are recorded as 14 years old?",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - Show all adolescents in the database whose age is fourteen., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT * FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nShow all adolescents in the database whose age is fourteen.",
"role": "user"
},
{
"content": "SELECT * FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - What is the count of adolescents aged [age]?, DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge ='[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nWhat is the count of adolescents aged [age]?",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge ='[age]';",
"role": "assistant"
}
] |
Question - How many adolescents are aged [age]?, DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge ='[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nHow many adolescents are aged [age]?",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge ='[age]';",
"role": "assistant"
}
] |
Question - Get the total number of adolescents aged [age]., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge ='[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nGet the total number of adolescents aged [age].",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge ='[age]';",
"role": "assistant"
}
] |
Question - Fetch the count of adolescents who are [age] years old., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge ='[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nFetch the count of adolescents who are [age] years old.",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge ='[age]';",
"role": "assistant"
}
] |
Question - What is the total number of adolescents with age [age]?, DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge ='[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nWhat is the total number of adolescents with age [age]?",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge ='[age]';",
"role": "assistant"
}
] |
Question - Retrieve the count of adolescents who are [age] years old., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge ='[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nRetrieve the count of adolescents who are [age] years old.",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge ='[age]';",
"role": "assistant"
}
] |
Question - How many adolescents have an age of [age]?, DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge ='[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nHow many adolescents have an age of [age]?",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge ='[age]';",
"role": "assistant"
}
] |
Question - Show the number of adolescents with age [age]., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge ='[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nShow the number of adolescents with age [age].",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge ='[age]';",
"role": "assistant"
}
] |
Question - Provide the total count of adolescents aged [age]., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge ='[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nProvide the total count of adolescents aged [age].",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge ='[age]';",
"role": "assistant"
}
] |
Question - What is the total count of adolescents aged [age]?, DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge ='[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nWhat is the total count of adolescents aged [age]?",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge ='[age]';",
"role": "assistant"
}
] |
Question - How many adolescents are there with age [age]?, DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge ='[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nHow many adolescents are there with age [age]?",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge ='[age]';",
"role": "assistant"
}
] |
Question - Get the count of adolescents who are exactly [age] years old., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge ='[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nGet the count of adolescents who are exactly [age] years old.",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge ='[age]';",
"role": "assistant"
}
] |
Question - Show the total number of adolescents who are [age]., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge ='[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nShow the total number of adolescents who are [age].",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge ='[age]';",
"role": "assistant"
}
] |
Question - Fetch the total count of adolescents aged [age]., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge ='[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nFetch the total count of adolescents aged [age].",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge ='[age]';",
"role": "assistant"
}
] |
Question - What is the total count of adolescents who are [age] years old?, DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge ='[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nWhat is the total count of adolescents who are [age] years old?",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge ='[age]';",
"role": "assistant"
}
] |
Question - Retrieve the total number of adolescents with age [age]., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge ='[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nRetrieve the total number of adolescents with age [age].",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge ='[age]';",
"role": "assistant"
}
] |
Question - Provide the count of adolescents who are aged [age]., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge ='[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nProvide the count of adolescents who are aged [age].",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge ='[age]';",
"role": "assistant"
}
] |
Question - Get the number of adolescents who are aged [age]., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge ='[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nGet the number of adolescents who are aged [age].",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge ='[age]';",
"role": "assistant"
}
] |
Question - What is the number of adolescents aged [age]?, DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge ='[age]'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nWhat is the number of adolescents aged [age]?",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge ='[age]';",
"role": "assistant"
}
] |
Question - Fetch the number of adolescents who are [age] years old., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge = 'age'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nFetch the number of adolescents who are [age] years old.",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge = 'age';",
"role": "assistant"
}
] |
Question - What is the count of adolescents aged fourteen?, DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nWhat is the count of adolescents aged fourteen?",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - total adol count who of age fourteen, DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\ntotal adol count who of age fourteen",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - How many people in the adolescent age group are 14 years old?, DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nHow many people in the adolescent age group are 14 years old?",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - Get the total count of adolescents aged fourteen., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nGet the total count of adolescents aged fourteen.",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - Count the number of adolescents with age 14., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nCount the number of adolescents with age 14.",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - Find the number of adolescents who are 14 years old., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nFind the number of adolescents who are 14 years old.",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - What is the total count of adolescents whose age is fourteen?, DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nWhat is the total count of adolescents whose age is fourteen?",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - Retrieve the number of adolescents who are exactly 14 years old., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nRetrieve the number of adolescents who are exactly 14 years old.",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - How many adolescents in the dataset are aged 14?, DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nHow many adolescents in the dataset are aged 14?",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - Show the total number of adolescents aged fourteen., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nShow the total number of adolescents aged fourteen.",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - Count the records where adolescents are 14 years of age., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nCount the records where adolescents are 14 years of age.",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - Find the total number of individuals who are 14 years old., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nFind the total number of individuals who are 14 years old.",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - Show the count of adolescents who are fourteen years old., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nShow the count of adolescents who are fourteen years old.",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - How many adolescents are recorded at age 14?, DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nHow many adolescents are recorded at age 14?",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - Get the total number of adolescents of age fourteen., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nGet the total number of adolescents of age fourteen.",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - Find the total count of adolescents whose age is 14., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nFind the total count of adolescents whose age is 14.",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - How many adolescents are there who are aged 14?, DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nHow many adolescents are there who are aged 14?",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - Show the total number of 14-year-old adol, DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nShow the total number of 14-year-old adol",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - Count all the adol who are 14 years old., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nCount all the adol who are 14 years old.",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - Retrieve the total number of adolescents whose age is fourteen years., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nRetrieve the total number of adolescents whose age is fourteen years.",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - How many people in the dataset are aged 14?, DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nHow many people in the dataset are aged 14?",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - What is the count of adolescents aged fourteen?, DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); | SELECT count(*) FROM tbladolreg where regAdolAge = '14'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); \n\nAnswer this question:\nWhat is the count of adolescents aged fourteen?",
"role": "user"
},
{
"content": "SELECT count(*) FROM tbladolreg where regAdolAge = '14';",
"role": "assistant"
}
] |
Question - Retrieve the list of adolescents from [village/facility name]., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ; | SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ;\n\nAnswer this question:\nRetrieve the list of adolescents from [village/facility name].",
"role": "user"
},
{
"content": "SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; ",
"role": "assistant"
}
] |
Question - Show all adolescent records from [village/facility name]., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ; | SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ;\n\nAnswer this question:\nShow all adolescent records from [village/facility name].",
"role": "user"
},
{
"content": "SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; ",
"role": "assistant"
}
] |
Question - Get the data of adolescents residing in [village/facility name]., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ; | SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ;\n\nAnswer this question:\nGet the data of adolescents residing in [village/facility name].",
"role": "user"
},
{
"content": "SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; ",
"role": "assistant"
}
] |
Question - Fetch records of adolescents from [village/facility name]., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ; | SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ;\n\nAnswer this question:\nFetch records of adolescents from [village/facility name].",
"role": "user"
},
{
"content": "SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; ",
"role": "assistant"
}
] |
Question - List all adolescents who live in [village/facility name]., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ; | SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ;\n\nAnswer this question:\nList all adolescents who live in [village/facility name].",
"role": "user"
},
{
"content": "SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; ",
"role": "assistant"
}
] |
Question - Retrieve adolescent information from [village/facility name]., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ; | SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ;\n\nAnswer this question:\nRetrieve adolescent information from [village/facility name].",
"role": "user"
},
{
"content": "SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; ",
"role": "assistant"
}
] |
Question - Display details of adolescents from [village/facility name]., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ; | SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ;\n\nAnswer this question:\nDisplay details of adolescents from [village/facility name].",
"role": "user"
},
{
"content": "SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; ",
"role": "assistant"
}
] |
Question - Provide a list of adolescents residing in [village/facility name]., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ; | SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ;\n\nAnswer this question:\nProvide a list of adolescents residing in [village/facility name].",
"role": "user"
},
{
"content": "SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; ",
"role": "assistant"
}
] |
Question - Find all adolescents from [village/facility name] and display their records., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ; | SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ;\n\nAnswer this question:\nFind all adolescents from [village/facility name] and display their records.",
"role": "user"
},
{
"content": "SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; ",
"role": "assistant"
}
] |
Question - Show all adolescents who belong to [village/facility name]., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ; | SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ;\n\nAnswer this question:\nShow all adolescents who belong to [village/facility name].",
"role": "user"
},
{
"content": "SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; ",
"role": "assistant"
}
] |
Question - Fetch all adolescent records from [village/facility name]., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ; | SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ;\n\nAnswer this question:\nFetch all adolescent records from [village/facility name].",
"role": "user"
},
{
"content": "SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; ",
"role": "assistant"
}
] |
Question - Get details of adolescents who live in [village/facility name]., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ; | SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ;\n\nAnswer this question:\nGet details of adolescents who live in [village/facility name].",
"role": "user"
},
{
"content": "SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; ",
"role": "assistant"
}
] |
Question - Retrieve the records of adolescents living in [village/facility name]., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ; | SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ;\n\nAnswer this question:\nRetrieve the records of adolescents living in [village/facility name].",
"role": "user"
},
{
"content": "SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; ",
"role": "assistant"
}
] |
Question - List the names of adolescents who are from [village/facility name]., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ; | SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ;\n\nAnswer this question:\nList the names of adolescents who are from [village/facility name].",
"role": "user"
},
{
"content": "SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; ",
"role": "assistant"
}
] |
Question - Find adolescents from [village/facility name] and show their records., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ; | SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ;\n\nAnswer this question:\nFind adolescents from [village/facility name] and show their records.",
"role": "user"
},
{
"content": "SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; ",
"role": "assistant"
}
] |
Question - Fetch the records of adolescents from [village/facility name]., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ; | SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ;\n\nAnswer this question:\nFetch the records of adolescents from [village/facility name].",
"role": "user"
},
{
"content": "SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; ",
"role": "assistant"
}
] |
Question - Retrieve all adolescent information for [village/facility name]., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ; | SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ;\n\nAnswer this question:\nRetrieve all adolescent information for [village/facility name].",
"role": "user"
},
{
"content": "SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; ",
"role": "assistant"
}
] |
Question - Get a list of all adolescents residing in [village/facility name]., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ; | SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ;\n\nAnswer this question:\nGet a list of all adolescents residing in [village/facility name].",
"role": "user"
},
{
"content": "SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; ",
"role": "assistant"
}
] |
Question - List adolescent records from [village/facility name]., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ; | SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ;\n\nAnswer this question:\nList adolescent records from [village/facility name].",
"role": "user"
},
{
"content": "SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; ",
"role": "assistant"
}
] |
Question - Show data for all adolescents from [village/facility name]., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ; | SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ;\n\nAnswer this question:\nShow data for all adolescents from [village/facility name].",
"role": "user"
},
{
"content": "SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; ",
"role": "assistant"
}
] |
Question - show all adol from Gaddimarri village, DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ; | SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ;\n\nAnswer this question:\nshow all adol from Gaddimarri village",
"role": "user"
},
{
"content": "SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; ",
"role": "assistant"
}
] |
Question - List all adolescents from Gaddimarri village., DB Schema - CREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ; | SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; | [
{
"content": "Given this database schema:\nCREATE TABLE `tbladolreg` ( `userId` varchar(25) DEFAULT NULL, `AdolID` varchar(10) DEFAULT NULL, `regAdolName` varchar(50) DEFAULT NULL, `regAdolAge` varchar(3) DEFAULT NULL, `regAdolGender` varchar(6) DEFAULT NULL, `regAdolDoB` varchar(15) DEFAULT NULL, `regAdolWeight` varchar(5) DEFAULT NULL, `regAdolHeightType` int DEFAULT NULL, `regAdolHeight` varchar(10) DEFAULT NULL, `regAdolMobile` varchar(10) DEFAULT NULL, `regAdolMobileOf` int DEFAULT NULL, `regAdolFather` varchar(50) DEFAULT NULL, `regAdolFatherDesc` varchar(5) DEFAULT NULL, `regAdolMother` varchar(50) DEFAULT NULL, `regAdolMotherDesc` varchar(5) DEFAULT NULL, `regAdolGuardian` varchar(50) DEFAULT NULL, `regAdolFamilytype` int DEFAULT NULL, `regAdolPregnant` varchar(5) DEFAULT NULL, `regAdolAddress` varchar(100) DEFAULT NULL, `regAdolAreaname` varchar(100) DEFAULT NULL, `regAdolFacilities` int DEFAULT NULL, `regAdolPincode` varchar(10) DEFAULT NULL, `regAdolRelationship` int DEFAULT NULL, `regAdolPartnerName` varchar(50) DEFAULT NULL, `regAdolPartnerOccupa` varchar(50) DEFAULT NULL, `regAdolMarriageType` int DEFAULT NULL, `regAdolGoingtoSchool` varchar(5) DEFAULT NULL, `regAdolNoofChild` int DEFAULT NULL, `regAdolOtherHealthIssues` varchar(50) DEFAULT NULL, `regAdolHealthIssues` varchar(300) DEFAULT NULL, `regAdolLifeStyle` varchar(300) DEFAULT NULL, `regAdolMenstrualPbm` varchar(400) DEFAULT NULL, `regAdolOtherMenspbm` varchar(100) DEFAULT NULL, `regAdolPhysicalActivity` varchar(300) DEFAULT NULL, `regAdolSuggestionGiven` varchar(100) DEFAULT NULL, `regAdolComments` varchar(100) DEFAULT NULL, `LastVisitCount` int DEFAULT NULL, `regAdolAadharNo` varchar(16) DEFAULT NULL, `regAdolisPeriod` varchar(5) DEFAULT NULL, `regAdolAgeatMenstruated` varchar(5) DEFAULT NULL, `regAdolEducation` int DEFAULT NULL, `regUserType` varchar(10) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `regAdolDeactivateDate` varchar(15) DEFAULT NULL, `regAdolDeactivateReasons` varchar(50) DEFAULT NULL, `regAdolDeactivateReasonOthers` varchar(100) DEFAULT NULL, `regAdolDeactivateComments` varchar(100) DEFAULT NULL, `regAdolImage` longblob, `regAdolCurrGTSStatus` varchar(10) DEFAULT NULL, `regAdolCurrPregStatus` varchar(10) DEFAULT NULL, `regAdolPeriodStartedHv` varchar(10) DEFAULT NULL, `regAdolReferredHV` varchar(10) DEFAULT NULL, `regAdolComplHv` varchar(10) DEFAULT NULL, `regAdolHbHv` varchar(10) DEFAULT NULL, `regAdolRegDate` varchar(15) DEFAULT NULL, `regAdolSchoolNameAtReg` varchar(20) DEFAULT NULL, `regAdolSchoolNameOthersAtReg` varchar(250) DEFAULT NULL, `regAdolSchoolMandalAtReg` varchar(50) DEFAULT NULL, `regAdolSchoolMandalOthersAtReg` varchar(250) DEFAULT NULL, `regAdolCurrSchoolName` varchar(10) DEFAULT NULL, `regAdolCurrSchoolNameOthers` varchar(250) DEFAULT NULL, `regAdolCurrSchoolMandal` varchar(50) DEFAULT NULL, `regAdolCurrSchoolMandalOthers` varchar(250) DEFAULT NULL, `regAdolCurrStudinClass` varchar(10) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ); CREATE TABLE `tblfetchdetails` ( `autoID` int NOT NULL, `UserId` varchar(15) DEFAULT NULL, `lastSyncDate` varchar(20) DEFAULT NULL, `lastRequestDate` varchar(20) DEFAULT NULL, `transId` int DEFAULT NULL, `RecordCreatedDate` varchar(20) DEFAULT NULL, `RecordUpdatedDate` varchar(20) DEFAULT NULL, `invocation` int DEFAULT NULL, `status` int DEFAULT NULL, `requestID` varchar(100) DEFAULT NULL, `fileName` varchar(100) DEFAULT NULL, `fileSize` varchar(45) DEFAULT NULL, `comments` varchar(200) DEFAULT NULL, `ServerCreatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `ServerUpdatedDate` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ;\n\nAnswer this question:\nList all adolescents from Gaddimarri village.",
"role": "user"
},
{
"content": "SELECT A.regAdolName, A.regAdolAge, A.regAdolGender, A.regAdolAddress, A.regAdolMobile, A.adolId FROM tblAdolReg A JOIN tblFacilityDetails F ON A.regAdolFacilities = F.AutoId WHERE F.FacilityName = 'name of the village/facility'; ",
"role": "assistant"
}
] |