question_id
int64
0
80
query
stringlengths
36
1.17k
schema_source
stringclasses
2 values
question
stringlengths
13
326
db_id
stringclasses
2 values
prompt
stringlengths
0
1.43k
0
SELECT DISTINCT Wellbore.WellboreName from Wellbore INNER JOIN Section ON Wellbore.ID = Section.WellboreID WHERE Section.SectionDiameter = 8.5
local
Show all the wellbores that have section with diameter 8.5
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Well', 'Rig', 'Section', 'Wellbore', 'Phase', 'Lithology', 'Survey'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Section': ['WellboreID', 'SectionDiameter', 'ID', 'SectionCaption', 'MinInclination', 'MinDLS', 'SectionNumber', 'SectionBottomDepthMD', 'SectionTopDepthMD', 'MaxInclination', 'PhaseID', 'MaxDLS'], 'Wellbore': ['WellboreName', 'WellID', 'ID', 'UBHI', 'SpudDate'], 'Survey': ['WellboreID', 'ID'], 'Rig': ['WellboreID'], 'Lithology': ['SectionID', 'LithologyTopmMD', 'LithologyBottommMD', 'RockType', 'ID']} ------------------------------------------- |Show all the wellbores that have section with diameter 8.5 ---------------------------
1
SELECT Section.SectionDiameter,Casing.CasingGrade from Well LEFT JOIN Wellbore ON Well.ID = Wellbore.WellID LEFT JOIN Section ON Wellbore.ID = Section.WellboreID LEFT JOIN Casing ON Section.ID = Casing.SectionID WHERE Well.WellName = 'Brian Smith K 232'
local
Give the section diameter and casing grade of the well 'Brian Smit K 232'
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Well', 'Formation', 'Casing', 'Section', 'Wellbore', 'MudCheck', 'Phase', 'Lithology'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Casing': ['SectionID', 'CasingWeight', 'CasingOutsideDiameter', 'ID', 'CasingTopDepthMD', 'CasingGrade', 'CasingBottomDepthMD'], 'Section': ['WellboreID', 'SectionDiameter', 'MinInclination', 'PhaseID', 'ID', 'SectionNumber', 'MaxInclination', 'SectionTopDepthMD', 'SectionCaption', 'MinDLS', 'SectionBottomDepthMD', 'MaxDLS'], 'Lithology': ['SectionID', 'LithologyTopmMD', 'LithologyBottommMD'], 'MudCheck': ['SectionID'], 'Formation': ['SectionID']} ------------------------------------------- |Give the section diameter and casing grade of the well 'Brian Smit K 232' ---------------------------
2
SELECT COUNT(Bit.BitType) FROM Well LEFT JOIN Wellbore ON Well.ID = Wellbore.WellID LEFT JOIN Section ON Wellbore.ID = Section.WellboreID LEFT JOIN Run ON Section.ID = Run.SectionID LEFT JOIN Bit ON Run.ID = Bit.RunID WHERE Well.WellName = 'Heather Gardner C 118' and Section.SectionDiameter = 8.5
local
Count the number of bits in 8.5 in section in well Heather Gardner C 118
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['OffsetWell', 'Well', 'Bit', 'Section', 'Wellbore', 'Mud', 'MudCheck', 'Lithology'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Bit': ['BitRunNumber', 'GradingOut', 'ID', 'BitType', 'Manufacturer', 'IADCNumber', 'SerialNumber', 'ModelNumber', 'SecondaryOD', 'RunID', 'PrimaryOD'], 'Section': ['WellboreID', 'SectionDiameter', 'SectionNumber', 'MinDLS', 'ID', 'SectionCaption', 'MaxInclination', 'SectionBottomDepthMD', 'SectionTopDepthMD', 'MinInclination', 'MaxDLS', 'PhaseID'], 'OffsetWell': ['BitScore', 'WellID'], 'MudCheck': ['SectionID', 'MaxMudWeight', 'MaxCheckDepth'], 'Lithology': ['SectionID']} ------------------------------------------- |Count the number of bits in 8.5 in section in well Heather Gardner C 118 ---------------------------
3
SELECT DISTINCT Wellbore.WellboreName,SectionDiameter from Wellbore INNER JOIN Section ON Wellbore.ID = Section.WellboreID LEFT JOIN Lithology ON Section.ID = Lithology.SectionID WHERE Lithology.RockType = 'Sandstone'
local
Give wellbore names and section diameters where rock is Sandstone
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Well', 'GeologyEvent', 'Rig', 'Section', 'Wellbore', 'Lithology', 'Survey'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Section': ['WellboreID', 'MinDLS', 'ID', 'SectionDiameter', 'SectionCaption', 'SectionTopDepthMD', 'SectionNumber', 'SectionBottomDepthMD', 'PhaseID', 'MinInclination', 'MaxInclination', 'MaxDLS'], 'Wellbore': ['WellboreName', 'WellID', 'ID', 'UBHI', 'SpudDate'], 'Survey': ['WellboreID'], 'Rig': ['WellboreID'], 'Lithology': ['RockType', 'SectionID', 'LithologyTopmMD', 'LithologyBottommMD', 'ID']} ------------------------------------------- |Give wellbore names and section diameters where rock is Sandstone ---------------------------
4
SELECT DISTINCT BHA.BHAType FROM Well LEFT JOIN Wellbore ON Well.ID = Wellbore.WellID LEFT JOIN Section ON Wellbore.ID = Section.WellboreID LEFT JOIN Run ON Section.ID = Run.SectionID LEFT JOIN BHA ON Run.ID = BHA.RunID WHERE Well.WellName = 'Robin Black G 672' AND NOT BHA.BHAType = 'NA'
local
Show all BHA's used in well 'Robin Black G 672'
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['OffsetWell', 'Well', 'BHAComponent', 'Wellbore', 'BHA', 'Phase'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'BHAComponent': ['SequenceNumber', 'ComponentName', 'ComponentWeight', 'ComponentOD', 'ComponentLength', 'ID', 'ComponentMaxOD', 'BHAID', 'ComponentID', 'NumberOfJoints', 'Company', 'DistanceToBit'], 'OffsetWell': ['BHAComponentScore', 'BHAScore', 'WellID'], 'BHA': ['BHAStartDepth', 'BHADescription', 'BHALength', 'ID', 'BHARunNumber', 'BHAEndDepth', 'BHAType', 'RunID'], 'Wellbore': ['WellID', 'WellboreName', 'UBHI', 'ID', 'SpudDate'], 'Well': ['WellName', 'Field', 'ID', 'Country', 'UWI', 'Latitude', 'Longitude']} ------------------------------------------- |Show all BHA's used in well 'Robin Black G 672' ---------------------------
5
SELECT DISTINCT Well.WellName, BHA.BHAType FROM Well INNER JOIN Wellbore ON Well.ID = Wellbore.WellID INNER JOIN Section ON Wellbore.ID = Section.WellboreID INNER JOIN Run ON Section.ID = Run.SectionID INNER JOIN BHA ON Run.ID = BHA.RunID WHERE BHA.BHAType = 'Motor'
local
Show the wells that used bha type 'Motor'
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['OffsetWell', 'Well', 'BHAComponent', 'Wellbore', 'BHA', 'Lithology'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'BHAComponent': ['BHAID', 'ID', 'Company', 'ComponentOD', 'ComponentName', 'ComponentWeight', 'ComponentID', 'SequenceNumber', 'NumberOfJoints', 'ComponentLength', 'ComponentMaxOD', 'DistanceToBit'], 'BHA': ['BHALength', 'BHAEndDepth', 'BHAStartDepth', 'BHADescription', 'ID', 'BHARunNumber', 'BHAType', 'RunID'], 'OffsetWell': ['BHAComponentScore', 'BHAScore', 'WellID', 'FormationLithologyScore'], 'Wellbore': ['WellboreName', 'WellID', 'UBHI', 'ID', 'SpudDate'], 'Well': ['Field', 'WellName', 'ID', 'UWI', 'Country', 'Latitude', 'Longitude']} ------------------------------------------- |Show the wells that used bha type 'Motor' ---------------------------
6
SELECT DISTINCT Well.WellName, Survey.TrajectoryProfile FROM Well INNER JOIN Wellbore ON Well.ID = Wellbore.WellID INNER JOIN Survey ON Wellbore.ID = Survey.WellboreID WHERE Survey.TrajectoryProfile = 'Horizontal'
local
Show all the wells with horizontal trajectory profile
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Mitigation', 'SurveyPoint', 'OffsetWell', 'Well', 'Section', 'Wellbore', 'Lithology', 'Survey'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Survey': ['TrajectoryProfile', 'WellboreID'], 'OffsetWell': ['TrajectoryScore', 'WellID', 'FormationLithologyScore', 'DistanceScore'], 'Well': ['Latitude', 'Longitude', 'UWI', 'WellName', 'Field', 'ID', 'Country'], 'Section': ['WellboreID', 'ID', 'MaxInclination', 'MinDLS', 'MinInclination'], 'SurveyPoint': ['Inclination', 'Northing', 'Azimuth', 'Easting', 'DLS', 'SurveyTVD', 'ID']} ------------------------------------------- |Show all the wells with horizontal trajectory profile ---------------------------
7
SELECT DISTINCT BHA.BHAType FROM Well INNER JOIN Wellbore ON Well.ID = Wellbore.WellID INNER JOIN Section ON Wellbore.ID = Section.WellboreID INNER JOIN Run ON Section.ID = Run.SectionID INNER JOIN BHA ON Run.ID = BHA.RunID WHERE Section.MaxInclination>30
local
Show BHA's used in wells that has section inclination greater than 30
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['SurveyPoint', 'OffsetWell', 'Well', 'BHAComponent', 'Section', 'Wellbore', 'BHA'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'SurveyPoint': ['Inclination', 'Azimuth'], 'OffsetWell': ['BHAComponentScore', 'BHAScore', 'FormationLithologyScore'], 'Section': ['WellboreID', 'SectionDiameter', 'SectionCaption', 'ID', 'SectionNumber', 'SectionTopDepthMD', 'MinDLS', 'SectionBottomDepthMD', 'MinInclination', 'MaxInclination', 'PhaseID', 'MaxDLS'], 'BHA': ['ID', 'BHADescription', 'BHALength', 'BHAStartDepth', 'BHAType', 'BHAEndDepth', 'RunID', 'BHARunNumber'], 'BHAComponent': ['BHAID', 'ID', 'DistanceToBit', 'ComponentLength', 'Company', 'ComponentWeight', 'ComponentMaxOD', 'ComponentID', 'SequenceNumber', 'ComponentName', 'ComponentOD', 'NumberOfJoints']} ------------------------------------------- |Show BHA's used in wells that has section inclination greater than 30 ---------------------------
8
SELECT DISTINCT Mud.CheckDepth FROM Well LEFT JOIN Wellbore ON Well.ID = Wellbore.WellID LEFT JOIN Section ON Wellbore.ID = Section.WellboreID LEFT JOIN MudCheck ON Section.ID = MudCheck.SectionID LEFT JOIN Mud ON MudCheck.ID = Mud.MudCheckID WHERE MudType = 'WATER BASED' AND Well.WellName = 'Jason Gonzales U 456'
local
Give the depths in well Jason Gonzales U 456 where mud type is water based
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['OffsetWell', 'Well', 'Section', 'Wellbore', 'Mud', 'MudCheck', 'Lithology'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Well': ['UWI', 'Field', 'ID', 'WellName', 'Country', 'Latitude', 'Longitude'], 'Mud': ['MudType', 'PV', 'YP', 'ID', 'Temp', 'CheckDepth', 'MudWeight', 'MudCheckID'], 'Wellbore': ['UBHI', 'WellID', 'WellboreName', 'ID', 'SpudDate'], 'Section': ['WellboreID'], 'OffsetWell': ['WellID', 'MudScore', 'FormationLithologyScore', 'BHAScore']} ------------------------------------------- |Give the depths in well Jason Gonzales U 456 where mud type is water based ---------------------------
9
SELECT DISTINCT Bit.BitType FROM Wellbore LEFT JOIN Section ON Wellbore.ID = Section.WellboreID LEFT JOIN Run ON Section.ID = Run.SectionID LEFT JOIN Bit ON Run.ID = Bit.RunID WHERE WellboreName IN (SELECT DISTINCT WellboreName FROM Wellbore LEFT JOIN Section ON Wellbore.ID = Section.WellboreID LEFT JOIN Lithology ON Section.ID = Lithology.SectionID WHERE Lithology.RockType = 'Sandstone') AND NOT Bit.BitType = 'NA'
local
Show all the bit types used when rock is Sandstone
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['OffsetWell', 'GeologyEvent', 'Bit', 'Rig', 'Hazard', 'Mud', 'Lithology'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Lithology': ['RockType', 'LithologyTopmMD', 'LithologyBottommMD', 'SectionID', 'ID'], 'Bit': ['BitType', 'GradingOut', 'ID', 'Manufacturer', 'BitRunNumber', 'SecondaryOD', 'RunID', 'PrimaryOD', 'ModelNumber', 'SerialNumber', 'IADCNumber'], 'OffsetWell': ['BitScore', 'FormationLithologyScore', 'FinalDepthScore', 'BHAComponentScore'], 'GeologyEvent': ['InterpretedDepth', 'ID', 'ActivityID'], 'Hazard': ['GeologyEventID', 'Description']} ------------------------------------------- |Show all the bit types used when rock is Sandstone ---------------------------
10
SELECT AVG(OperatingParameters.AvgROP) FROM OperatingParameters INNER JOIN Operation ON OperatingParameters.OperationID = Operation.ID INNER JOIN Run ON Operation.ID = Run.OperationID INNER JOIN Bit ON Run.ID = Bit.RunID WHERE Bit.BitType = '6-bladed'
local
What is the average ROP when bit type '6-bladed' is used
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Operation', 'OffsetWell', 'Bit', 'Hazard', 'BHAComponent', 'OperatingParameters', 'MudCheck'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Bit': ['BitRunNumber', 'PrimaryOD', 'ModelNumber', 'BitType', 'Manufacturer', 'ID', 'SecondaryOD', 'GradingOut', 'SerialNumber', 'IADCNumber', 'RunID'], 'OffsetWell': ['BitScore', 'BHAComponentScore', 'MudScore', 'FinalDepthScore', 'FormationLithologyScore', 'BHAScore'], 'BHAComponent': ['ComponentWeight', 'ComponentOD', 'ComponentMaxOD', 'DistanceToBit', 'ComponentLength', 'ComponentName', 'NumberOfJoints', 'ComponentID', 'SequenceNumber', 'ID'], 'MudCheck': ['MinPV', 'MaxPV', 'MinMudWeight', 'MaxMudWeight', 'MaxCheckDepth'], 'OperatingParameters': ['WOBLow', 'FlowRateHigh', 'FlowRateLow', 'RPMHigh', 'WOBHigh', 'ID', 'RPMLow', 'OperationID', 'AvgROP']} ------------------------------------------- |What is the average ROP when bit type '6-bladed' is used ---------------------------
11
SELECT DISTINCT Mitigation.MitigationMeasures FROM Mitigation LEFT JOIN Hazard ON Mitigation.HazardID = Hazard.ID WHERE Hazard.HazardName = 'Cavings' AND NOT Mitigation.MitigationMeasures = 'NA'
local
Show all mitigation measures when hazard (from GeologyEvent and NonGeologyEvent) is Cavings
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Mitigation', 'GeologyEvent', 'RootCause', 'Hazard', 'NonGeologyEvent', 'Lithology'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Hazard': ['NonGeologyEventID', 'GeologyEventID', 'Description', 'HazardName', 'ID'], 'Mitigation': ['HazardID', 'MitigationMeasures', 'ID', 'ResponsibleParty'], 'GeologyEvent': ['ActivityID', 'ID', 'InterpretedDepth'], 'NonGeologyEvent': ['ID', 'ActivityCode', 'IDSDepth', 'ActivityID'], 'RootCause': ['HazardAnalysis', 'HazardID']} ------------------------------------------- |Show all mitigation measures when hazard (from GeologyEvent and NonGeologyEvent) is Cavings ---------------------------
12
SELECT SUM(Activity.Duration) AS time_spent FROM Well LEFT JOIN Wellbore ON Well.ID = Wellbore.WellID LEFT JOIN Section ON Wellbore.ID = Section.WellboreID LEFT JOIN Phase ON Section.PhaseID = Phase.ID LEFT JOIN Operation ON Phase.ID = Operation.PhaseID LEFT JOIN Activity ON Operation.ID = Activity.OperationID WHERE Wellbore.WellboreName = 'Christopher Miller J 484' AND Operation.OperationCode = 'DRL' GROUP BY Section.SectionNumber
local
How much time spent in drilling operation in each section of wellbore Christopher Miller J 484
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Operation', 'Well', 'Formation', 'Section', 'Wellbore', 'OperatingParameters', 'Survey'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Section': ['WellboreID', 'SectionDiameter', 'SectionCaption', 'ID', 'SectionBottomDepthMD', 'SectionTopDepthMD', 'MinDLS', 'SectionNumber', 'MaxInclination', 'PhaseID', 'MinInclination', 'MaxDLS'], 'Wellbore': ['WellID', 'ID', 'WellboreName', 'UBHI', 'SpudDate'], 'Survey': ['WellboreID'], 'Formation': ['SectionID', 'FormationTopDepth'], 'Operation': ['OperationEndDateTime', 'OperationCode', 'OperationStartDateTime', 'ID', 'OperationStartDepth', 'OperationEndDepth', 'PhaseID']} ------------------------------------------- |How much time spent in drilling operation in each section of wellbore Christopher Miller J 484 ---------------------------
13
SELECT SUM(Activity.Duration) AS Prductive_time FROM Well LEFT JOIN Wellbore ON Well.ID = Wellbore.WellID LEFT JOIN Section ON Wellbore.ID = Section.WellboreID LEFT JOIN Phase ON Section.PhaseID = Phase.ID LEFT JOIN Operation ON Phase.ID = Operation.PhaseID LEFT JOIN Activity ON Operation.ID = Activity.OperationID WHERE Wellbore.WellboreName = 'Haley Torres G 428' AND Activity.TimeClassification = 'Productive'
local
What is the total productive activity time in well Haley Torres G 428
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Activity', 'Well', 'GeologyEvent', 'Wellbore', 'OperatingParameters', 'NonGeologyEvent', 'Survey'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Activity': ['TimeClassification', 'ActivityEndDateTime', 'Duration', 'ActivityStartDateTime', 'ID', 'OperationID', 'ActivityStartDepth', 'ActivityEndDepth'], 'GeologyEvent': ['ActivityID'], 'NonGeologyEvent': ['ActivityCode', 'ActivityID'], 'Well': ['Latitude', 'ID', 'Field', 'Longitude', 'Country', 'WellName', 'UWI'], 'Wellbore': ['WellID', 'SpudDate', 'WellboreName', 'ID', 'UBHI']} ------------------------------------------- |What is the total productive activity time in well Haley Torres G 428 ---------------------------
14
SELECT DISTINCT Hazard.HazardName FROM Well LEFT JOIN Wellbore ON Well.ID = Wellbore.WellID LEFT JOIN Section ON Wellbore.ID = Section.WellboreID LEFT JOIN Phase ON Section.PhaseID = Phase.ID LEFT JOIN Operation ON Phase.ID = Operation.PhaseID LEFT JOIN Activity ON Operation.ID = Activity.OperationID LEFT JOIN GeologyEvent ON Activity.ID = GeologyEvent.ActivityID LEFT JOIN Hazard ON GeologyEvent.ID = Hazard.GeologyEventID WHERE Well.WellName = 'Amber Hooper A 446' UNION SELECT DISTINCT Hazard.HazardName FROM Well LEFT JOIN Wellbore ON Well.ID = Wellbore.WellID LEFT JOIN Section ON Wellbore.ID = Section.WellboreID LEFT JOIN Phase ON Section.PhaseID = Phase.ID LEFT JOIN Operation ON Phase.ID = Operation.PhaseID LEFT JOIN Activity ON Operation.ID = Activity.OperationID LEFT JOIN NonGeologyEvent ON Activity.ID = NonGeologyEvent.ActivityID LEFT JOIN Hazard ON NonGeologyEvent.ID = Hazard.NonGeologyEventID WHERE Well.WellName = 'Amber Hooper A 446'
local
What are the differet hazards while drilling Amber Hooper A 446
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Operation', 'Mitigation', 'GeologyEvent', 'RootCause', 'Hazard', 'NonGeologyEvent', 'Lithology'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Hazard': ['Description', 'HazardName', 'ID', 'NonGeologyEventID', 'GeologyEventID'], 'Mitigation': ['HazardID', 'MitigationMeasures', 'ID'], 'RootCause': ['HazardAnalysis', 'HazardID', 'ID'], 'Operation': ['OperationCode', 'OperationStartDepth', 'OperationEndDepth', 'OperationEndDateTime', 'ID', 'OperationStartDateTime'], 'Lithology': ['LithologyTopmMD', 'RockType', 'LithologyBottommMD', 'SectionID']} ------------------------------------------- |What are the differet hazards while drilling Amber Hooper A 446 ---------------------------
15
SELECT Operation.OperationCode, sum(Activity.Duration) as TotalTimeInMins FROM Well LEFT JOIN Wellbore ON Well.ID = Wellbore.WellID LEFT JOIN Section ON Wellbore.ID = Section.WellboreID LEFT JOIN Phase ON Section.PhaseID = Phase.ID LEFT JOIN Operation ON Phase.ID = Operation.PhaseID LEFT JOIN Activity ON Operation.ID = Activity.OperationID WHERE Well.WellName = 'Haley Torres G 428' AND Activity.TimeClassification = 'Non Productive' GROUP BY Operation.OperationCode ORDER BY TotalTimeInMins DESC LIMIT 1
local
Which non productive activity has highest duration in Haley Torres G 428
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Activity', 'Operation', 'Run', 'GeologyEvent', 'Hazard', 'OperatingParameters', 'NonGeologyEvent'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Activity': ['Duration', 'TimeClassification', 'ActivityEndDateTime', 'ActivityStartDateTime', 'OperationID', 'ID', 'ActivityStartDepth', 'ActivityEndDepth'], 'NonGeologyEvent': ['ActivityCode', 'ActivityID', 'ID', 'IDSDepth'], 'GeologyEvent': ['ActivityID'], 'Hazard': ['NonGeologyEventID'], 'Operation': ['OperationEndDateTime', 'OperationStartDateTime', 'OperationStartDepth', 'OperationEndDepth', 'OperationCode', 'ID', 'PhaseID']} ------------------------------------------- |Which non productive activity has highest duration in Haley Torres G 428 ---------------------------
16
SELECT DISTINCT Well.WellName FROM Well LEFT JOIN Wellbore ON Well.ID = Wellbore.WellID LEFT JOIN Section ON Wellbore.ID = Section.WellboreID LEFT JOIN Lithology ON Section.ID = Lithology.SectionID WHERE Lithology.RockType = 'Dolomite'
local
Which wells has Dolomite rock
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Operation', 'Well', 'GeologyEvent', 'Section', 'Wellbore', 'Lithology', 'Survey'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Lithology': ['RockType', 'LithologyTopmMD', 'ID', 'LithologyBottommMD', 'SectionID'], 'Well': ['WellName', 'ID', 'UWI', 'Field', 'Country', 'Latitude', 'Longitude'], 'Wellbore': ['WellID', 'WellboreName', 'ID', 'UBHI', 'SpudDate'], 'Section': ['WellboreID', 'MinDLS', 'ID', 'MaxInclination', 'MinInclination'], 'Survey': ['WellboreID']} ------------------------------------------- |Which wells has Dolomite rock ---------------------------
17
SELECT DISTINCT Well.WellName FROM Well LEFT JOIN Wellbore ON Well.ID = Wellbore.WellID LEFT JOIN Section ON Wellbore.ID = Section.WellboreID LEFT JOIN Run ON Section.ID = Run.SectionID LEFT JOIN Bit ON Run.ID = Bit.RunID where Bit.BitType = 'Tricone'
local
Which wells used tri-cone bit type
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['OffsetWell', 'Well', 'Bit', 'Section', 'Wellbore', 'BHA', 'Lithology'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Bit': ['SecondaryOD', 'BitType', 'ID', 'Manufacturer', 'PrimaryOD', 'BitRunNumber', 'RunID', 'IADCNumber', 'SerialNumber', 'GradingOut', 'ModelNumber'], 'OffsetWell': ['BitScore', 'WellID', 'FormationLithologyScore', 'FinalDepthScore', 'ID'], 'Wellbore': ['WellID', 'WellboreName', 'UBHI', 'ID', 'SpudDate'], 'Well': ['ID', 'WellName', 'Field', 'UWI', 'Latitude', 'Country', 'Longitude'], 'Section': ['WellboreID', 'MinInclination', 'MaxInclination', 'ID']} ------------------------------------------- |Which wells used tri-cone bit type ---------------------------
18
SELECT Bit.BitType, Bit.SerialNumber, Bit.Manufacturer from Bit WHERE Bit.BitType is not null AND NOT Bit.Manufacturer = 'NA' AND NOT Bit.SerialNumber = 'NA'
local
Show bits with manufacturer name and serial number
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['OffsetWell', 'Bit', 'Casing', 'BHAComponent', 'Mud', 'MudCheck'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Bit': ['Manufacturer', 'SerialNumber', 'BitType', 'BitRunNumber', 'GradingOut', 'ID', 'SecondaryOD', 'ModelNumber', 'IADCNumber', 'PrimaryOD', 'RunID'], 'OffsetWell': ['BitScore', 'FinalDepthScore'], 'BHAComponent': ['DistanceToBit', 'ComponentName', 'ComponentOD', 'ComponentLength', 'Company', 'ComponentMaxOD', 'ComponentID', 'ComponentWeight', 'SequenceNumber', 'ID', 'NumberOfJoints', 'BHAID'], 'MudCheck': ['MinPV', 'MaxPV', 'SectionID', 'MinMudWeight', 'MaxCheckDepth', 'MaxMudWeight'], 'Casing': ['CasingBottomDepthMD', 'CasingOutsideDiameter', 'SectionID', 'ID', 'CasingTopDepthMD']} ------------------------------------------- |Show bits with manufacturer name and serial number ---------------------------
19
SELECT DISTINCT Well.WellName FROM Well LEFT JOIN Wellbore ON Well.ID = Wellbore.WellID LEFT JOIN Section ON Wellbore.ID = Section.WellboreID LEFT JOIN Formation ON Section.ID = Formation.SectionID WHERE Formation.FormationName LIKE '%Terry Anderson R 216%'
local
Which wells has Terry Anderson R 216 formation
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Operation', 'OffsetWell', 'Well', 'Formation', 'Section', 'Wellbore', 'Lithology'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Formation': ['SectionID', 'ID', 'FormationName', 'FormationTopTVD', 'FormationTopDepth'], 'OffsetWell': ['FormationLithologyScore', 'WellID', 'ID'], 'Well': ['UWI', 'Field', 'WellName', 'ID', 'Latitude', 'Country', 'Longitude'], 'Wellbore': ['WellID', 'WellboreName', 'UBHI', 'ID', 'SpudDate'], 'Section': ['WellboreID', 'MinDLS', 'ID', 'MaxInclination', 'MinInclination']} ------------------------------------------- |Which wells has Terry Anderson R 216 formation ---------------------------
20
SELECT BHAComponent.ComponentName FROM Well LEFT JOIN Wellbore ON Well.ID = Wellbore.WellID LEFT JOIN Section ON Wellbore.ID = Section.WellboreID LEFT JOIN Run ON Section.ID = Run.SectionID LEFT JOIN BHA ON Run.ID = BHA.RunID LEFT JOIN BHAComponent ON BHA.ID = BHAComponent.BHAID WHERE Well.WellName = 'Shawn Williams X 689' AND BHA.BHAType = 'Rotary'
local
Give names of the bhp components in well Shawn Williams X 689 when BHA type is Rotory
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['OffsetWell', 'Well', 'BHAComponent', 'Section', 'Wellbore', 'BHA', 'Phase'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'BHAComponent': ['ComponentName', 'ComponentMaxOD', 'ComponentOD', 'ComponentLength', 'ComponentWeight', 'ComponentID', 'BHAID', 'SequenceNumber', 'Company', 'ID', 'NumberOfJoints', 'DistanceToBit'], 'OffsetWell': ['BHAComponentScore', 'WellID', 'BHAScore', 'FormationLithologyScore'], 'Well': ['WellName', 'ID', 'Field', 'Country', 'UWI', 'Latitude', 'Longitude'], 'Wellbore': ['WellboreName', 'WellID', 'UBHI', 'ID', 'SpudDate'], 'Section': ['WellboreID', 'MinDLS', 'MaxInclination', 'SectionDiameter']} ------------------------------------------- |Give names of the bhp components in well Shawn Williams X 689 when BHA type is Rotory ---------------------------
21
SELECT Well.WellName, BHAComponent.ComponentName, BHAComponent.DistanceToBit FROM Well INNER JOIN Wellbore ON Well.ID = Wellbore.WellID INNER JOIN Section ON Wellbore.ID = Section.WellboreID INNER JOIN Run ON Section.ID = Run.SectionID INNER JOIN BHA ON Run.ID = BHA.RunID INNER JOIN BHAComponent ON BHA.ID = BHAComponent.BHAID WHERE NOT BHAComponent.DistanceToBit = 'NA'
local
Give the BHA component names and the available distance to bit values for all the wells
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['OffsetWell', 'Well', 'Bit', 'BHAComponent', 'Wellbore', 'BHA', 'Survey'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'BHAComponent': ['DistanceToBit', 'ComponentName', 'ComponentLength', 'ComponentOD', 'ComponentMaxOD', 'ComponentWeight', 'ComponentID', 'BHAID', 'ID', 'SequenceNumber', 'NumberOfJoints', 'Company'], 'OffsetWell': ['BHAComponentScore', 'DistanceScore', 'BitScore', 'BHAScore', 'WellID'], 'BHA': ['BHAStartDepth', 'BHADescription', 'BHARunNumber', 'BHALength', 'BHAEndDepth', 'ID', 'BHAType', 'RunID'], 'Bit': ['Manufacturer', 'SecondaryOD', 'BitRunNumber', 'ID', 'BitType', 'PrimaryOD', 'ModelNumber', 'RunID', 'SerialNumber', 'IADCNumber', 'GradingOut'], 'Survey': ['WellboreID']} ------------------------------------------- |Give the BHA component names and the available distance to bit values for all the wells ---------------------------
22
SELECT DISTINCT Well.WellName FROM Well
local
Show all wells
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['OffsetWell', 'Well', 'Section', 'Wellbore', 'Lithology', 'Survey'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Well': ['WellName', 'ID', 'Field', 'UWI', 'Country', 'Longitude', 'Latitude'], 'Wellbore': ['WellID', 'WellboreName', 'ID', 'UBHI', 'SpudDate'], 'Section': ['WellboreID', 'ID', 'MinDLS', 'MaxInclination', 'SectionTopDepthMD', 'SectionCaption', 'MinInclination', 'MaxDLS', 'SectionDiameter'], 'Survey': ['WellboreID', 'ID'], 'OffsetWell': ['WellID', 'FormationLithologyScore']} ------------------------------------------- |Show all wells ---------------------------
23
SELECT DISTINCT Wellbore.WellboreName FROM Wellbore
local
Show all wellbores
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Well', 'Rig', 'Section', 'Wellbore', 'Lithology', 'Survey'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Wellbore': ['WellID', 'WellboreName', 'ID', 'UBHI', 'SpudDate'], 'Survey': ['WellboreID', 'ID'], 'Section': ['WellboreID', 'MinDLS', 'SectionCaption', 'MaxInclination', 'SectionBottomDepthMD', 'ID'], 'Rig': ['WellboreID'], 'Well': ['ID', 'Field', 'WellName', 'UWI', 'Longitude', 'Country', 'Latitude']} ------------------------------------------- |Show all wellbores ---------------------------
24
SELECT DISTINCT Rig.RigName FROM Rig
local
Show all rigs
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['SurveyPoint', 'OffsetWell', 'Rig', 'Bit', 'Wellbore', 'OperatingParameters', 'Phase', 'Lithology'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Rig': ['RigType', 'RigName', 'ID', 'WellboreID'], 'OffsetWell': ['FormationLithologyScore', 'BHAScore', 'FinalDepthScore', 'DistanceScore', 'BitScore', 'BHAComponentScore', 'FieldScore'], 'SurveyPoint': ['Inclination', 'SurveyTVD'], 'Bit': ['SecondaryOD', 'Manufacturer'], 'OperatingParameters': ['AvgROP', 'FlowRateLow', 'FlowRateHigh', 'RPMHigh', 'RPMLow', 'WOBHigh', 'WOBLow']} ------------------------------------------- |Show all rigs ---------------------------
25
SELECT DISTINCT Hazard.HazardName FROM Hazard
local
Show all hazards
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Mitigation', 'Operation', 'GeologyEvent', 'RootCause', 'Hazard', 'Casing', 'NonGeologyEvent', 'Lithology'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Hazard': ['Description', 'HazardName', 'GeologyEventID', 'ID', 'NonGeologyEventID'], 'Mitigation': ['HazardID', 'MitigationMeasures', 'ID', 'ResponsibleParty'], 'RootCause': ['HazardAnalysis', 'HazardID'], 'Lithology': ['LithologyTopmMD', 'LithologyBottommMD', 'RockType', 'SectionID'], 'Casing': ['CasingTopDepthMD', 'CasingBottomDepthMD', 'CasingGrade', 'CasingOutsideDiameter', 'CasingWeight']} ------------------------------------------- |Show all hazards ---------------------------
26
SELECT DISTINCT Bit.BitType FROM Wellbore INNER JOIN Section ON Wellbore.ID = Section.WellboreID INNER JOIN Run ON Section.ID = Run.SectionID INNER JOIN Bit ON Run.ID = Bit.RunID WHERE Wellbore.WellboreName = 'Haley Torres G 428'
local
Show bits used in all sections of wellbore Haley Torres G 428
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Well', 'Bit', 'Section', 'Wellbore', 'Mud', 'MudCheck', 'Survey'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Section': ['WellboreID', 'SectionDiameter', 'MaxInclination', 'SectionBottomDepthMD', 'SectionCaption', 'ID', 'MinDLS', 'SectionNumber', 'SectionTopDepthMD', 'MinInclination', 'MaxDLS', 'PhaseID'], 'MudCheck': ['SectionID'], 'Survey': ['WellboreID'], 'Wellbore': ['WellID', 'ID', 'UBHI', 'WellboreName', 'SpudDate'], 'Bit': ['BitType', 'GradingOut', 'ID', 'BitRunNumber', 'Manufacturer', 'SecondaryOD', 'ModelNumber', 'SerialNumber', 'RunID', 'IADCNumber', 'PrimaryOD']} ------------------------------------------- |Show bits used in all sections of wellbore Haley Torres G 428 ---------------------------
27
SELECT Well.WellName FROM Well WHERE Well.Field = 'Juan Martinez T'
local
Show all wells in field 'Juan Martinez T'
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['OffsetWell', 'Well', 'Casing', 'Section', 'Wellbore', 'Lithology', 'Survey'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Well': ['Field', 'Latitude', 'Country', 'ID', 'WellName', 'Longitude', 'UWI'], 'Survey': ['WellboreID', 'ID'], 'Section': ['WellboreID', 'MinDLS', 'MinInclination', 'ID', 'MaxInclination'], 'Wellbore': ['WellID', 'WellboreName', 'ID', 'UBHI', 'SpudDate'], 'OffsetWell': ['FieldScore', 'WellID', 'FormationLithologyScore']} ------------------------------------------- |Show all wells in field 'Juan Martinez T' ---------------------------
28
SELECT Section.SectionCaption, COUNT(Bit.ID) AS NumberOfBits FROM Wellbore INNER JOIN Section ON Wellbore.ID = Section.WellboreID INNER JOIN Run ON Section.ID = Run.SectionID INNER JOIN Bit ON Run.ID = Bit.RunID WHERE Wellbore.WellboreName = 'Haley Torres G 428' GROUP BY Section.SectionCaption
local
Count number of bits for every section of the wellbore Haley Torres G 428
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Well', 'Bit', 'Section', 'Wellbore', 'Mud', 'MudCheck', 'Survey'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Section': ['WellboreID', 'SectionDiameter', 'SectionNumber', 'ID', 'SectionCaption', 'MinDLS', 'SectionBottomDepthMD', 'MaxInclination', 'SectionTopDepthMD', 'MinInclination', 'PhaseID', 'MaxDLS'], 'Bit': ['BitRunNumber', 'BitType', 'ID', 'Manufacturer', 'GradingOut', 'ModelNumber', 'SerialNumber', 'IADCNumber', 'RunID', 'SecondaryOD', 'PrimaryOD'], 'MudCheck': ['SectionID', 'MaxCheckDepth'], 'Wellbore': ['WellID', 'WellboreName', 'UBHI', 'ID', 'SpudDate'], 'Survey': ['WellboreID']} ------------------------------------------- |Count number of bits for every section of the wellbore Haley Torres G 428 ---------------------------
29
SELECT Bit.BitType, SUM(COALESCE((Operation.OperationEndDepth - Operation.OperationStartDepth) / NULLIF((datediff(hour, Operation.OperationStartDateTime, Operation.OperationEndDateTime)),0), 0)) AS metersDrilledPerHr FROM Run INNER JOIN Bit ON Run.ID = Bit.RunID INNER JOIN Operation ON Run.OperationID = Operation.ID WHERE Operation.OperationCode = 'DRL' GROUP BY Bit.BitType
local
meters drilled per hour by bit type
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['OffsetWell', 'Bit', 'BHAComponent', 'Section', 'Mud', 'Lithology', 'Survey'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Bit': ['ID', 'BitType', 'Manufacturer', 'BitRunNumber', 'GradingOut', 'ModelNumber', 'SerialNumber', 'IADCNumber', 'RunID', 'PrimaryOD', 'SecondaryOD'], 'OffsetWell': ['BitScore'], 'Section': ['SectionDiameter', 'WellboreID', 'MaxInclination', 'MinInclination'], 'BHAComponent': ['DistanceToBit'], 'Mud': ['Temp', 'PV', 'MudWeight', 'MudType']} ------------------------------------------- |meters drilled per hour by bit type ---------------------------
30
SELECT Section.SectionNumber, SUM(COALESCE((Operation.OperationEndDepth - Operation.OperationStartDepth) / NULLIF((datediff(hour, Operation.OperationStartDateTime, Operation.OperationEndDateTime)),0), 0)) AS metersDrilledPerHr FROM Wellbore INNER JOIN Section ON Wellbore.ID = Section.WellboreID INNER JOIN Run ON Section.ID = Run.SectionID INNER JOIN Operation ON Run.OperationID = Operation.ID WHERE Wellbore.WellboreName = 'Antonio Valdez J 122' AND Operation.OperationCode = 'DRL' GROUP BY Section.SectionNumber
local
show me meters drilled per hour by section number with wellbore name Antonio Valdez J 122
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Well', 'Rig', 'Section', 'Wellbore', 'Phase', 'Lithology', 'Survey'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Section': ['WellboreID', 'SectionDiameter', 'SectionNumber', 'ID', 'SectionCaption', 'SectionBottomDepthMD', 'MinDLS', 'MaxInclination', 'SectionTopDepthMD', 'PhaseID', 'MaxDLS', 'MinInclination'], 'Wellbore': ['WellboreName', 'WellID', 'ID', 'UBHI', 'SpudDate'], 'Survey': ['WellboreID', 'ID'], 'Rig': ['WellboreID'], 'Lithology': ['SectionID', 'LithologyTopmMD', 'LithologyBottommMD']} ------------------------------------------- |show me meters drilled per hour by section number with wellbore name Antonio Valdez J 122 ---------------------------
31
SELECT Section.SectionCaption,Bit.GradingOut FROM Wellbore INNER JOIN Section ON Wellbore.ID = Section.WellboreID INNER JOIN Run ON Section.ID = Run.SectionID INNER JOIN Bit ON Run.ID = Bit.RunID WHERE Wellbore.WellboreName = 'Haley Torres G 428'
local
grading out of bit in each section with wellbore name Haley Torres G 428
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Well', 'Bit', 'Section', 'Wellbore', 'Mud', 'MudCheck', 'Survey'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Bit': ['GradingOut', 'BitType', 'Manufacturer', 'ID', 'BitRunNumber', 'SecondaryOD', 'SerialNumber', 'ModelNumber', 'IADCNumber', 'RunID', 'PrimaryOD'], 'Section': ['WellboreID', 'SectionDiameter', 'SectionCaption', 'SectionNumber', 'SectionBottomDepthMD', 'MinDLS', 'SectionTopDepthMD', 'ID', 'MaxInclination', 'MinInclination', 'MaxDLS', 'PhaseID'], 'Wellbore': ['WellID', 'WellboreName', 'ID', 'UBHI', 'SpudDate'], 'MudCheck': ['SectionID', 'MaxYP'], 'Survey': ['WellboreID']} ------------------------------------------- |grading out of bit in each section with wellbore name Haley Torres G 428 ---------------------------
32
SELECT Wellbore.WellboreName, Bit.GradingOut,COALESCE((Operation.OperationEndDepth - Operation.OperationStartDepth) / NULLIF((datediff(hour, Operation.OperationStartDateTime, Operation.OperationEndDateTime)),0), 0) AS metersDrilledPerHr INNER JOIN Section ON Wellbore.ID = Section.WellboreID INNER JOIN Run ON Section.ID = Run.SectionID INNER JOIN Bit ON Run.ID = Bit.RunID INNER JOIN Operation ON Run.OperationID = Operation.ID WHERE Wellbore.WellboreName = 'Antonio Valdez J 122' AND Operation.OperationCode = 'DRL'
local
give me meters drilled per hour and grading out of bit with wellbore name Antonio Valdez J 122
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Well', 'Bit', 'Rig', 'Section', 'Wellbore', 'Mud', 'Lithology', 'Survey'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Bit': ['GradingOut', 'Manufacturer', 'ID', 'SecondaryOD', 'BitType', 'SerialNumber', 'BitRunNumber', 'ModelNumber', 'RunID', 'IADCNumber', 'PrimaryOD'], 'Wellbore': ['WellboreName', 'WellID', 'ID', 'UBHI', 'SpudDate'], 'Survey': ['WellboreID', 'ID'], 'Section': ['WellboreID', 'SectionDiameter', 'MinInclination'], 'Rig': ['WellboreID']} ------------------------------------------- |give me meters drilled per hour and grading out of bit with wellbore name Antonio Valdez J 122 ---------------------------
33
SELECT SUM(Activity.Duration) AS Prductive_time FROM Wellbore LEFT JOIN Section ON Wellbore.ID = Section.WellboreID LEFT JOIN Phase ON Section.PhaseID = Phase.ID LEFT JOIN Operation ON Phase.ID = Operation.PhaseID LEFT JOIN Activity ON Operation.ID = Activity.OperationID WHERE Wellbore.WellboreName = 'Haley Torres G 428' AND Activity.TimeClassification = 'Productive'
local
give me ProductiveTime with WellboreName Haley Torres G 428
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Activity', 'Well', 'GeologyEvent', 'Rig', 'Section', 'Wellbore', 'Survey'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Wellbore': ['WellboreName', 'WellID', 'SpudDate', 'UBHI', 'ID'], 'Activity': ['TimeClassification', 'ActivityEndDateTime', 'ActivityStartDateTime', 'Duration', 'ID', 'ActivityStartDepth', 'ActivityEndDepth', 'OperationID'], 'Survey': ['WellboreID', 'TrajectoryProfile', 'ID'], 'Section': ['WellboreID', 'SectionDiameter', 'MinDLS'], 'Rig': ['WellboreID']} ------------------------------------------- |give me ProductiveTime with WellboreName Haley Torres G 428 ---------------------------
34
SELECT Section.SectionCaption, OperatingParameters.AvgROP FROM Wellbore INNER JOIN Section ON Wellbore.ID = Section.WellboreID INNER JOIN Run ON Section.ID = Run.SectionID INNER JOIN Bit ON Run.ID = Bit.RunID INNER JOIN Operation ON Run.OperationID = Operation.ID INNER JOIN OperatingParameters ON Operation.ID = OperatingParameters.OperationID WHERE Wellbore.WellboreName = 'Jane Weiss S 528' GROUP BY Section.SectionCaption
local
give me AvgROP by section name with WellboreName Jane Weiss S 528
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Well', 'GeologyEvent', 'Formation', 'Section', 'Wellbore', 'OperatingParameters', 'NonGeologyEvent', 'Survey'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'OperatingParameters': ['AvgROP'], 'Section': ['WellboreID', 'SectionDiameter', 'SectionCaption', 'MaxInclination', 'SectionNumber', 'SectionTopDepthMD', 'MinDLS', 'SectionBottomDepthMD', 'MinInclination', 'ID', 'PhaseID', 'MaxDLS'], 'Wellbore': ['WellboreName', 'WellID', 'ID', 'UBHI', 'SpudDate'], 'Survey': ['WellboreID'], 'Formation': ['SectionID', 'FormationTopTVD', 'FormationTopDepth']} ------------------------------------------- |give me AvgROP by section name with WellboreName Jane Weiss S 528 ---------------------------
35
SELECT Section.SectionCaption, Section.SectionDiameter, OperatingParameters.AvgROP FROM Wellbore INNER JOIN Section ON Wellbore.ID = Section.WellboreID INNER JOIN Run ON Section.ID = Run.SectionID INNER JOIN Bit ON Run.ID = Bit.RunID INNER JOIN Operation ON Run.OperationID = Operation.ID INNER JOIN OperatingParameters ON Operation.ID = OperatingParameters.OperationID WHERE Wellbore.WellboreName = 'Dean Jordan N 879'
local
give me AvgROP, section diameter in each section with WellboreName Dean Jordan N 879
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Well', 'Formation', 'Section', 'Wellbore', 'OperatingParameters', 'Phase', 'Lithology'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'OperatingParameters': ['AvgROP'], 'Section': ['WellboreID', 'SectionDiameter', 'SectionCaption', 'MinInclination', 'MaxInclination', 'SectionTopDepthMD', 'SectionNumber', 'ID', 'MinDLS', 'SectionBottomDepthMD', 'PhaseID', 'MaxDLS'], 'Wellbore': ['WellboreName', 'WellID', 'UBHI', 'ID', 'SpudDate'], 'Lithology': ['SectionID', 'LithologyTopmMD', 'LithologyBottommMD', 'RockType'], 'Formation': ['SectionID', 'FormationTopDepth']} ------------------------------------------- |give me AvgROP, section diameter in each section with WellboreName Dean Jordan N 879 ---------------------------
36
SELECT Section.SectionCaption, BHA.BHAType FROM Wellbore INNER JOIN Section ON Wellbore.ID = Section.WellboreID INNER JOIN Run ON Section.ID = Run.SectionID INNER JOIN BHA ON Run.ID = BHA.RunID WHERE Wellbore.WellboreName = 'Dean Jordan N 879' AND Section.MinInclination > 30 GROUP BY Section.SectionCaption
local
give me BHA Type in each section with max inclination over 30 with wellbore name Dean Jordan N 879
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['SurveyPoint', 'Well', 'BHAComponent', 'Section', 'Wellbore', 'BHA', 'Survey'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Section': ['MaxDLS', 'WellboreID', 'MaxInclination', 'SectionDiameter', 'MinInclination', 'SectionCaption', 'MinDLS', 'SectionNumber', 'SectionTopDepthMD', 'SectionBottomDepthMD', 'ID'], 'SurveyPoint': ['Inclination', 'Azimuth'], 'BHAComponent': ['ComponentMaxOD', 'DistanceToBit', 'BHAID', 'ComponentWeight', 'SequenceNumber'], 'Wellbore': ['WellID', 'WellboreName', 'ID', 'UBHI', 'SpudDate'], 'Survey': ['WellboreID', 'TrajectoryProfile']} ------------------------------------------- |give me BHA Type in each section with max inclination over 30 with wellbore name Dean Jordan N 879 ---------------------------
37
SELECT DISTINCT Hazard.HazardName FROM Well LEFT JOIN Wellbore ON Well.ID = Wellbore.WellID LEFT JOIN Section ON Wellbore.ID = Section.WellboreID LEFT JOIN Phase ON Section.PhaseID = Phase.ID LEFT JOIN Operation ON Phase.ID = Operation.PhaseID LEFT JOIN Activity ON Operation.ID = Activity.OperationID LEFT JOIN GeologyEvent ON Activity.ID = GeologyEvent.ActivityID LEFT JOIN Hazard ON GeologyEvent.ID = Hazard.GeologyEventID WHERE Well.Field='Richard Sexton MD P' UNION SELECT DISTINCT Hazard.HazardName FROM Well LEFT JOIN Wellbore ON Well.ID = Wellbore.WellID LEFT JOIN Section ON Wellbore.ID = Section.WellboreID LEFT JOIN Phase ON Section.PhaseID = Phase.ID LEFT JOIN Operation ON Phase.ID = Operation.PhaseID LEFT JOIN Activity ON Operation.ID = Activity.OperationID LEFT JOIN NonGeologyEvent ON Activity.ID = NonGeologyEvent.ActivityID LEFT JOIN Hazard ON NonGeologyEvent.ID = Hazard.NonGeologyEventID WHERE Well.Field='Richard Sexton MD P'
local
give me hazards in field Richard Sexton MD P
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Mitigation', 'OffsetWell', 'GeologyEvent', 'RootCause', 'Well', 'Hazard', 'OperatingParameters', 'Lithology'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Hazard': ['HazardName', 'Description', 'ID', 'GeologyEventID', 'NonGeologyEventID'], 'Mitigation': ['HazardID', 'MitigationMeasures', 'ResponsibleParty', 'ID'], 'RootCause': ['HazardAnalysis', 'HazardID'], 'Well': ['Field', 'Latitude', 'Longitude', 'Country', 'ID'], 'OffsetWell': ['FieldScore', 'FormationLithologyScore', 'TrajectoryScore']} ------------------------------------------- |give me hazards in field Richard Sexton MD P ---------------------------
38
SELECT WellboreName FROM Wellbore INNER JOIN Section ON Wellbore.ID = Section.WellboreID INNER JOIN Run ON Section.ID = Run.SectionID INNER JOIN BHA ON Run.ID = BHA.RunID WHERE BHA.BHAType = 'RSS'
local
give me wellbore name where BHA type is RSS
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Well', 'Rig', 'BHAComponent', 'Section', 'Wellbore', 'BHA', 'Mud', 'Survey'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Wellbore': ['WellboreName', 'WellID', 'UBHI', 'ID', 'SpudDate'], 'Survey': ['WellboreID'], 'BHAComponent': ['BHAID', 'Company', 'ID', 'ComponentName', 'ComponentOD', 'ComponentMaxOD', 'SequenceNumber', 'ComponentWeight', 'ComponentID', 'ComponentLength', 'DistanceToBit', 'NumberOfJoints'], 'Section': ['WellboreID'], 'Rig': ['WellboreID']} ------------------------------------------- |give me wellbore name where BHA type is RSS ---------------------------
39
SELECT BHA.BHAType FROM Wellbore INNER JOIN Section ON Wellbore.ID = Section.WellboreID INNER JOIN Run ON Section.ID = Run.SectionID INNER JOIN BHA ON Run.ID = BHA.RunID WHERE Wellbore.WellboreName = 'Dean Jordan N 879'
local
give me BHA type where wellbore name is Dean Jordan N 879
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Well', 'Rig', 'BHAComponent', 'Section', 'Wellbore', 'BHA', 'Lithology', 'Survey'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Wellbore': ['WellID', 'UBHI', 'WellboreName', 'ID', 'SpudDate'], 'Survey': ['WellboreID'], 'Section': ['WellboreID', 'MinDLS', 'MaxInclination'], 'BHA': ['BHALength', 'BHARunNumber', 'BHAStartDepth', 'BHAType', 'BHAEndDepth', 'BHADescription', 'ID', 'RunID'], 'Rig': ['WellboreID']} ------------------------------------------- |give me BHA type where wellbore name is Dean Jordan N 879 ---------------------------
40
SELECT DISTINCT Section.SectionCaption FROM Wellbore INNER JOIN Section ON Wellbore.ID = Section.WellboreID INNER JOIN Run ON Section.ID = Run.SectionID INNER JOIN BHA ON Run.ID = BHA.RunID WHERE BHA.BHAType = 'RSS'
local
show sectioncaption where BHA Type is RSS
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['SurveyPoint', 'OffsetWell', 'Casing', 'BHAComponent', 'Section', 'BHA', 'MudCheck', 'Survey'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Section': ['SectionCaption', 'SectionDiameter', 'SectionNumber', 'SectionTopDepthMD', 'MinDLS', 'SectionBottomDepthMD', 'MaxInclination', 'ID', 'MinInclination', 'WellboreID', 'PhaseID', 'MaxDLS'], 'BHAComponent': ['BHAID', 'ComponentLength', 'Company', 'ComponentName', 'ID', 'ComponentWeight', 'ComponentMaxOD', 'ComponentID', 'ComponentOD', 'NumberOfJoints', 'DistanceToBit', 'SequenceNumber'], 'OffsetWell': ['BHAComponentScore', 'BHAScore'], 'MudCheck': ['SectionID'], 'Casing': ['SectionID']} ------------------------------------------- |show sectioncaption where BHA Type is RSS ---------------------------
41
SELECT DISTINCT Wellbore.WellboreName, (Section.MaxDLS-Section.MinDLS) AS DLSdifference FROM Wellbore INNER JOIN Section ON Wellbore.ID = Section.WellboreID INNER JOIN Run ON Section.ID = Run.SectionID INNER JOIN BHA ON Run.ID = BHA.RunID WHERE BHA.BHAType = 'RSS' GROUP BY Wellbore.WellboreName
local
show MaxDLS-MinDLS by wellbore name where BHA Type is RSS
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Well', 'BHAComponent', 'Section', 'Wellbore', 'BHA', 'Mud', 'MudCheck', 'Survey'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Section': ['MaxDLS', 'MinDLS', 'WellboreID', 'MaxInclination'], 'BHAComponent': ['ComponentMaxOD', 'BHAID', 'Company', 'ID', 'ComponentName', 'NumberOfJoints', 'DistanceToBit', 'ComponentWeight', 'ComponentLength', 'SequenceNumber', 'ComponentOD', 'ComponentID'], 'Wellbore': ['WellID', 'ID', 'WellboreName', 'UBHI', 'SpudDate'], 'MudCheck': ['MaxPV', 'MaxYP', 'MaxCheckDepth', 'MaxMudWeight'], 'Survey': ['WellboreID']} ------------------------------------------- |show MaxDLS-MinDLS by wellbore name where BHA Type is RSS ---------------------------
42
SELECT DISTINCT Mitigation.MitigationMeasures FROM Hazard INNER JOIN Mitigation ON Hazard.ID = Mitigation.HazardID WHERE Hazard.HazardName = 'Mudgains'
local
give hazard mitigations where hazard name is Mudgains
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Mitigation', 'GeologyEvent', 'RootCause', 'Hazard', 'Mud', 'MudCheck'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Mitigation': ['HazardID', 'MitigationMeasures', 'ID', 'ResponsibleParty'], 'Hazard': ['HazardName', 'Description', 'GeologyEventID', 'ID', 'NonGeologyEventID'], 'RootCause': ['HazardAnalysis', 'HazardID'], 'Mud': ['MudType', 'Temp', 'MudWeight', 'CheckDepth', 'MudCheckID', 'PV', 'YP', 'ID'], 'MudCheck': ['SectionID', 'MinCheckDepth', 'MinMudWeight', 'MaxCheckDepth', 'MinYP', 'MinPV', 'MaxMudWeight', 'MaxYP', 'ID', 'MaxPV']} ------------------------------------------- |give hazard mitigations where hazard name is Mudgains ---------------------------
43
SELECT DISTINCT Lithology.RockType, Wellbore.WellboreName FROM Well LEFT JOIN Wellbore ON Well.ID = Wellbore.WellID LEFT JOIN Section ON Wellbore.ID = Section.WellboreID LEFT JOIN Phase ON Section.PhaseID = Phase.ID LEFT JOIN Operation ON Phase.ID = Operation.PhaseID LEFT JOIN Activity ON Operation.ID = Activity.OperationID LEFT JOIN GeologyEvent ON Activity.ID = GeologyEvent.ActivityID LEFT JOIN Hazard ON GeologyEvent.ID = Hazard.GeologyEventID LEFT JOIN Lithology on Lithology.SectionID = Section.ID WHERE Hazard.HazardName = 'Mudlosses' GROUP BY Wellbore.WellboreName UNION SELECT DISTINCT Lithology.RockType, Wellbore.WellboreName FROM Well LEFT JOIN Wellbore ON Well.ID = Wellbore.WellID LEFT JOIN Section ON Wellbore.ID = Section.WellboreID LEFT JOIN Phase ON Section.PhaseID = Phase.ID LEFT JOIN Operation ON Phase.ID = Operation.PhaseID LEFT JOIN Activity ON Operation.ID = Activity.OperationID LEFT JOIN NonGeologyEvent ON Activity.ID = NonGeologyEvent.ActivityID LEFT JOIN Hazard ON NonGeologyEvent.ID = Hazard.NonGeologyEventID LEFT JOIN Lithology on Lithology.SectionID = Section.ID WHERE Hazard.HazardName = 'Mudlosses' GROUP BY Wellbore.WellboreName
local
give rock type by wellbore name where hazard name is mudlosses
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Well', 'GeologyEvent', 'Hazard', 'Wellbore', 'Mud', 'MudCheck', 'Lithology', 'Survey'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Wellbore': ['WellboreName', 'WellID', 'UBHI', 'ID', 'SpudDate'], 'Hazard': ['GeologyEventID', 'HazardName', 'Description', 'ID', 'NonGeologyEventID'], 'Lithology': ['RockType', 'LithologyTopmMD', 'LithologyBottommMD', 'ID'], 'Mud': ['MudType', 'PV', 'MudWeight', 'MudCheckID', 'ID', 'Temp', 'CheckDepth', 'YP'], 'Survey': ['WellboreID']} ------------------------------------------- |give rock type by wellbore name where hazard name is mudlosses ---------------------------
44
SELECT DISTINCT Formation.FormationName, Well.WellName FROM Well LEFT JOIN Wellbore ON Well.ID = Wellbore.WellID LEFT JOIN Section ON Wellbore.ID = Section.WellboreID LEFT JOIN Phase ON Section.PhaseID = Phase.ID LEFT JOIN Operation ON Phase.ID = Operation.PhaseID LEFT JOIN Activity ON Operation.ID = Activity.OperationID LEFT JOIN GeologyEvent ON Activity.ID = GeologyEvent.ActivityID LEFT JOIN Hazard ON GeologyEvent.ID = Hazard.GeologyEventID LEFT JOIN Formation on Formation.SectionID = Section.ID WHERE Hazard.HazardName = 'Stand_Up' GROUP BY Well.WellName UNION SELECT DISTINCT Formation.FormationName, Well.WellName FROM Well LEFT JOIN Wellbore ON Well.ID = Wellbore.WellID LEFT JOIN Section ON Wellbore.ID = Section.WellboreID LEFT JOIN Phase ON Section.PhaseID = Phase.ID LEFT JOIN Operation ON Phase.ID = Operation.PhaseID LEFT JOIN Activity ON Operation.ID = Activity.OperationID LEFT JOIN NonGeologyEvent ON Activity.ID = NonGeologyEvent.ActivityID LEFT JOIN Hazard ON NonGeologyEvent.ID = Hazard.NonGeologyEventID LEFT JOIN Formation on Formation.SectionID = Section.ID WHERE Hazard.HazardName = 'Stand_Up' GROUP BY Well.WellName
local
give formation name by wellbore name where hazard name is Stand Up
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Mitigation', 'Well', 'GeologyEvent', 'Hazard', 'Formation', 'Section', 'Wellbore'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Wellbore': ['WellboreName', 'WellID', 'UBHI', 'SpudDate', 'ID'], 'Hazard': ['HazardName', 'GeologyEventID', 'ID', 'Description', 'NonGeologyEventID'], 'Section': ['WellboreID', 'SectionBottomDepthMD', 'SectionCaption', 'MinDLS', 'SectionDiameter'], 'Formation': ['FormationName', 'FormationTopDepth', 'FormationTopTVD', 'SectionID', 'ID'], 'Mitigation': ['HazardID', 'MitigationMeasures', 'ID']} ------------------------------------------- |give formation name by wellbore name where hazard name is Stand Up ---------------------------
45
SELECT DISTINCT Hazard.HazardName, Operation.OperationCode FROM Operation LEFT JOIN Activity ON Operation.ID = Activity.OperationID LEFT JOIN GeologyEvent ON Activity.ID = GeologyEvent.ActivityID LEFT JOIN Hazard ON GeologyEvent.ID = Hazard.GeologyEventID WHERE Activity.TimeClassification = 'Non Productive' ORDER BY Operation.OperationCode UNION SELECT DISTINCT Hazard.HazardName, Operation.OperationCode FROM Operation LEFT JOIN Activity ON Operation.ID = Activity.OperationID LEFT JOIN NonGeologyEvent ON Activity.ID = NonGeologyEvent .ActivityID LEFT JOIN Hazard ON NonGeologyEvent .ID = Hazard.NonGeologyEventID WHERE Activity.TimeClassification = 'Non Productive' ORDER BY Operation.OperationCode
local
give me hazard name by operationcode where TimeClassifcaton is Non Productive
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Operation', 'Mitigation', 'Activity', 'Hazard', 'OperatingParameters', 'NonGeologyEvent'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Activity': ['TimeClassification', 'OperationID', 'ActivityStartDateTime', 'ActivityEndDateTime', 'Duration', 'ActivityStartDepth', 'ActivityEndDepth', 'ID'], 'Hazard': ['NonGeologyEventID', 'HazardName', 'Description', 'ID', 'GeologyEventID'], 'Operation': ['OperationStartDateTime', 'OperationEndDateTime', 'OperationCode', 'OperationStartDepth', 'OperationEndDepth', 'PhaseID', 'ID'], 'NonGeologyEvent': ['ActivityCode', 'ActivityID', 'ID', 'IDSDepth'], 'Mitigation': ['HazardID', 'MitigationMeasures', 'ID']} ------------------------------------------- |give me hazard name by operationcode where TimeClassifcaton is Non Productive ---------------------------
46
SELECT DISTINCT Hazard.HazardName FROM Operation LEFT JOIN Activity ON Operation.ID = Activity.OperationID LEFT JOIN GeologyEvent ON Activity.ID = GeologyEvent.ActivityID LEFT JOIN Hazard ON GeologyEvent.ID = Hazard.GeologyEventID WHERE Activity.TimeClassification = 'Non Productive' AND Operation.OperationCode = 'WOE' UNION SELECT DISTINCT Hazard.HazardName FROM Operation LEFT JOIN Activity ON Operation.ID = Activity.OperationID LEFT JOIN NonGeologyEvent ON Activity.ID = NonGeologyEvent .ActivityID LEFT JOIN Hazard ON NonGeologyEvent .ID = Hazard.NonGeologyEventID WHERE Activity.TimeClassification = 'Non Productive' AND Operation.OperationCode = 'WOE'
local
give me hazard name operationcode = WOE TimeClassifcaton = Non Productive
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Operation', 'Mitigation', 'Activity', 'Hazard', 'OperatingParameters', 'NonGeologyEvent'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Hazard': ['NonGeologyEventID', 'HazardName', 'Description', 'ID', 'GeologyEventID'], 'Activity': ['TimeClassification', 'OperationID', 'ActivityStartDateTime', 'ActivityEndDateTime', 'Duration', 'ActivityStartDepth', 'ActivityEndDepth', 'ID'], 'Operation': ['OperationStartDateTime', 'OperationEndDateTime', 'OperationCode', 'OperationStartDepth', 'OperationEndDepth', 'PhaseID', 'ID'], 'NonGeologyEvent': ['ActivityCode', 'ActivityID', 'ID', 'IDSDepth'], 'Mitigation': ['HazardID', 'MitigationMeasures', 'ID']} ------------------------------------------- |give me hazard name operationcode = WOE TimeClassifcaton = Non Productive ---------------------------
47
SELECT Wellbore.WellboreName FROM Well INNER JOIN Wellbore ON Well.ID = Wellbore.WellID WHERE Well.Country = 'AT'
local
Show all wellbores in country Austria(AT)
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Well', 'Rig', 'Section', 'Wellbore', 'Phase', 'Lithology', 'Survey'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Well': ['Country', 'Longitude', 'Latitude', 'UWI', 'Field', 'ID', 'WellName'], 'Wellbore': ['WellID', 'WellboreName', 'ID', 'UBHI', 'SpudDate'], 'Survey': ['WellboreID', 'ID'], 'Section': ['WellboreID', 'MinDLS', 'ID', 'MinInclination'], 'Rig': ['WellboreID']} ------------------------------------------- |Show all wellbores in country Austria(AT) ---------------------------
48
SELECT Bit.SerialNumber, Bit.Manufacturer FROM Bit WHERE Bit.BitType = '6-Bladed'
local
Show the bit serial number and manufacturers of all 6 bladed bits
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['OffsetWell', 'Bit', 'Casing', 'BHAComponent', 'BHA', 'OperatingParameters'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Bit': ['Manufacturer', 'SerialNumber', 'ID', 'ModelNumber', 'BitRunNumber', 'BitType', 'GradingOut', 'IADCNumber', 'SecondaryOD', 'PrimaryOD', 'RunID'], 'OffsetWell': ['BitScore'], 'BHAComponent': ['ComponentWeight', 'ComponentName', 'ComponentOD', 'ComponentLength', 'ComponentID', 'DistanceToBit', 'SequenceNumber', 'Company', 'ComponentMaxOD', 'NumberOfJoints', 'ID', 'BHAID'], 'Casing': ['CasingBottomDepthMD', 'CasingWeight', 'CasingOutsideDiameter', 'CasingTopDepthMD', 'ID', 'SectionID'], 'OperatingParameters': ['RPMHigh', 'WOBLow', 'FlowRateHigh', 'RPMLow', 'OperationID']} ------------------------------------------- |Show the bit serial number and manufacturers of all 6 bladed bits ---------------------------
49
SELECT DISTINCT Wellbore.WellboreName FROM Wellbore INNER JOIN Section ON Wellbore.ID = Section.WellboreID INNER JOIN Run ON Section.ID = Run.SectionID INNER JOIN Bit ON Run.ID = Bit.RunID WHERE Bit.BitType = '8-Bladed'
local
Show all wellbores that used bit type 8-Bladed
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Operation', 'Well', 'Bit', 'Rig', 'Section', 'Wellbore', 'OperatingParameters', 'Survey'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Wellbore': ['WellID', 'WellboreName', 'UBHI', 'ID', 'SpudDate'], 'Bit': ['BitType', 'BitRunNumber', 'SecondaryOD', 'Manufacturer', 'ID', 'GradingOut', 'ModelNumber', 'SerialNumber', 'RunID', 'PrimaryOD', 'IADCNumber'], 'Section': ['WellboreID', 'MinInclination'], 'Survey': ['WellboreID'], 'Rig': ['WellboreID']} ------------------------------------------- |Show all wellbores that used bit type 8-Bladed ---------------------------
50
SELECT DISTINCT Well.WellName FROM Well INNER JOIN Wellbore ON Well.ID = Wellbore.WellID INNER JOIN Section ON Wellbore.ID = Section.WellboreID INNER JOIN Run ON Section.ID = Run.SectionID INNER JOIN BHA ON Run.ID = BHA.RunID WHERE BHA.BHAType = 'Rotory'
local
Show the wells that used bha type rotory
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['OffsetWell', 'Well', 'BHAComponent', 'Section', 'Wellbore', 'BHA', 'Lithology'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'BHAComponent': ['BHAID', 'ComponentOD', 'ID', 'ComponentName', 'ComponentWeight', 'Company', 'ComponentLength', 'ComponentID', 'ComponentMaxOD', 'SequenceNumber', 'NumberOfJoints', 'DistanceToBit'], 'BHA': ['BHAEndDepth', 'BHALength', 'BHADescription', 'BHAStartDepth', 'ID', 'BHARunNumber', 'BHAType', 'RunID'], 'OffsetWell': ['BHAComponentScore', 'BHAScore', 'WellID', 'FormationLithologyScore'], 'Wellbore': ['WellboreName', 'WellID', 'UBHI', 'ID', 'SpudDate'], 'Section': ['WellboreID']} ------------------------------------------- |Show the wells that used bha type rotory ---------------------------
51
SELECT Wellbore.WellboreName, BHA.BHAType FROM Wellbore INNER JOIN Section ON Wellbore.ID = Section.WellboreID INNER JOIN Run ON Section.ID = Run.SectionID INNER JOIN BHA ON Run.ID = BHA.RunID WHERE Section.MaxInclination > 30.0
local
Show BHA's used in a wellbores that has section inclination greater than 30
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['SurveyPoint', 'OffsetWell', 'Well', 'BHAComponent', 'Section', 'Wellbore', 'BHA', 'Survey'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Section': ['WellboreID', 'SectionDiameter', 'MaxInclination', 'ID', 'SectionCaption', 'MinDLS', 'MinInclination'], 'SurveyPoint': ['Inclination', 'Azimuth'], 'Wellbore': ['WellboreName', 'WellID', 'ID', 'UBHI', 'SpudDate'], 'Survey': ['WellboreID'], 'OffsetWell': ['BHAComponentScore', 'BHAScore', 'WellID', 'FormationLithologyScore']} ------------------------------------------- |Show BHA's used in a wellbores that has section inclination greater than 30 ---------------------------
52
SELECT COUNT(Bit.ID) AS NumberOfBits FROM Wellbore INNER JOIN Section ON Wellbore.ID = Section.WellboreID INNER JOIN Run ON Section.ID = Run.SectionID INNER JOIN Bit ON Run.ID = Bit.RunID WHERE Wellbore.WellboreName = 'Gavin Ramirez J 349'
local
Give the number of bits used in the wellbore Gavin Ramirez J 349
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['OffsetWell', 'Well', 'Bit', 'Section', 'Wellbore', 'OperatingParameters', 'Mud', 'Survey'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Bit': ['Manufacturer', 'BitRunNumber', 'BitType', 'ID', 'SecondaryOD', 'SerialNumber', 'GradingOut', 'ModelNumber', 'IADCNumber', 'PrimaryOD', 'RunID'], 'Wellbore': ['WellboreName', 'WellID', 'ID', 'UBHI', 'SpudDate'], 'Section': ['WellboreID'], 'Survey': ['WellboreID'], 'OffsetWell': ['BitScore', 'WellID', 'BHAScore']} ------------------------------------------- |Give the number of bits used in the wellbore Gavin Ramirez J 349 ---------------------------
53
SELECT DISTINCT Well.WellName FROM Well INNER JOIN Wellbore ON Well.ID = Wellbore.WellID INNER JOIN Section ON Wellbore.ID = Section.WellboreID INNER JOIN Lithology ON Section.ID = Lithology.SectionID WHERE Lithology.RockType = 'Sandstone'
local
Show all the wells with rock type sandstone
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Well', 'GeologyEvent', 'Section', 'Wellbore', 'Lithology', 'Survey'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Lithology': ['RockType', 'LithologyTopmMD', 'LithologyBottommMD', 'ID', 'SectionID'], 'Section': ['WellboreID', 'MinDLS', 'ID', 'MaxInclination', 'MinInclination', 'SectionTopDepthMD'], 'Well': ['WellName', 'ID', 'UWI', 'Field', 'Country', 'Latitude', 'Longitude'], 'Wellbore': ['WellID', 'WellboreName', 'ID', 'UBHI', 'SpudDate'], 'Survey': ['WellboreID']} ------------------------------------------- |Show all the wells with rock type sandstone ---------------------------
54
SELECT Mitigation.MitigationMeasures FROM Casing INNER JOIN Section ON Casing.SectionID = Section.ID INNER JOIN Phase ON Section.PhaseID = Phase.ID INNER JOIN Operation ON Phase.ID = Operation.PhaseID INNER JOIN Activity ON Operation.ID = Activity.OperationID INNER JOIN GeologyEvent ON Activity.ID = GeologyEvent.ActivityID INNER JOIN Hazard ON GeologyEvent.ID = Hazard.GeologyEventID INNER JOIN Mitigation ON Hazard.ID = Mitigation.HazardID WHERE Hazard.HazardName = 'Cavings' AND NOT Mitigation.MitigationMeasures = 'NA' UNION SELECT Mitigation.MitigationMeasures FROM Casing INNER JOIN Section ON Casing.SectionID = Section.ID INNER JOIN Phase ON Section.PhaseID = Phase.ID INNER JOIN Operation ON Phase.ID = Operation.PhaseID INNER JOIN Activity ON Operation.ID = Activity.OperationID INNER JOIN NonGeologyEvent ON Activity.ID = NonGeologyEvent.ActivityID INNER JOIN Hazard ON NonGeologyEvent.ID = Hazard.NonGeologyEventID INNER JOIN Mitigation ON Hazard.ID = Mitigation.HazardID WHERE Hazard.HazardName = 'Cavings' AND NOT Mitigation.MitigationMeasures = 'NA'
local
Show all mitigation measures for casings when hazard (from GeologyEvent and NonGeologyEvent) is Cavings
drilling
You are a proficient MySQL database engineer. You think step by step and give clear and concise answer. Here are all the tables with their properties in a MySQL Database ['Mitigation', 'GeologyEvent', 'RootCause', 'Hazard', 'Casing', 'NonGeologyEvent'] --------------------------- ['Activity', 'BHA', 'BHAComponent', 'Bit', 'Casing', 'Formation', 'GeologyEvent', 'Hazard', 'Lithology', 'Mitigation', 'Mud', 'MudCheck', 'NonGeologyEvent', 'OffsetWell', 'OperatingParameters', 'Operation', 'Phase', 'Rig', 'RootCause', 'Run', 'Section', 'Survey', 'SurveyPoint', 'Well', 'Wellbore'] ----------------------------- {'Hazard': ['NonGeologyEventID', 'GeologyEventID', 'Description', 'HazardName', 'ID'], 'Mitigation': ['HazardID', 'MitigationMeasures', 'ID', 'ResponsibleParty'], 'GeologyEvent': ['ID', 'ActivityID', 'InterpretedDepth'], 'RootCause': ['HazardAnalysis', 'HazardID'], 'NonGeologyEvent': ['ID', 'ActivityCode', 'IDSDepth', 'ActivityID']} ------------------------------------------- |Show all mitigation measures for casings when hazard (from GeologyEvent and NonGeologyEvent) is Cavings ---------------------------
55
SELECT * FROM finland_iocg_model_data WHERE known_deposits_1km_buffer IS NOT NULL
remote
Retrieve data near known deposits.
481
56
SELECT * FROM finland_iocg_model_data WHERE glacial_till_Iron_Fe_percentage > (SELECT percentile(glacial_till_Iron_Fe_percentage, 0.5) FROM finland_iocg_model_data) AND glacial_till_Chromium_Cr_ppm < (SELECT percentile(glacial_till_Chromium_Cr_ppm, 0.5) FROM finland_iocg_model_data)
remote
Show me glacial till data with high iron content(greater than median) and low chromium content(lower than median).
481
57
SELECT t1.* FROM finland_iocg_model_data AS t1 JOIN finland_iocg_model_data AS t2 ON t1.latitude = t2.latitude AND t1.longitude = t2.longitude WHERE t1.glacial_till_Cobalt_Co_ppm > (SELECT percentile(glacial_till_Cobalt_Co_ppm, 0.5) FROM finland_iocg_model_data) AND t2.distance_to_granitoids_km <= 10
remote
Find locations with high cobalt content(greater than median) in glacial till and within 10 kilometers of granitoid formations.
481
58
SELECT * FROM finland_iocg_model_data WHERE glacial_till_Phosphorus_P_ppm > (SELECT percentile(glacial_till_Phosphorus_P_ppm, 0.5) FROM finland_iocg_model_data) AND glacial_till_Thorium_Th_ppm < (SELECT percentile(glacial_till_Thorium_Th_ppm, 0.5) FROM finland_iocg_model_data)
remote
Retrieve records of glacial till samples with both high phosphorus(greater than median) and low thorium levels(lower than median).
481
59
SELECT * FROM finland_iocg_model_data WHERE known_deposits_1km_buffer IS NOT NULL AND magnetic_anomaly_4km_window IS NOT NULL AND total_magnetic_intensity > 100.0
remote
Get data about magnetic anomalies within 4 kilometers of known deposits and with a total magnetic intensity above 100.
481
60
SELECT * FROM finland_iocg_model_data f1 WHERE f1.glacial_till_Lanthanum_La_ppm > (SELECT percentile(glacial_till_Lanthanum_La_ppm, 0.5) FROM finland_iocg_model_data) AND EXISTS ( SELECT 1 FROM finland_iocg_model_data f2 WHERE f2.distance_to_granitoids_km <= 10 AND ABS(f1.longitude - f2.longitude) <= 0.09 AND ABS(f1.latitude - f2.latitude) <= 0.09 )
remote
Find formations near granitoid formations(10km) with high lanthanum content(greater than median) in glacial till.
481
61
SELECT * FROM finland_iocg_model_data WHERE magnetic_anomaly_4km_window > (SELECT AVG(magnetic_anomaly_4km_window) + 3 * STDDEV(magnetic_anomaly_4km_window) FROM finland_iocg_model_data)
remote
Retrieve data about sections with high magnetic anomalies(greater than 3 std).
481
62
SELECT * FROM finland_iocg_model_data WHERE distance_from_black_shale_km IS NOT NULL
remote
Find locations near black shale.
481
63
SELECT * FROM finland_iocg_model_data WHERE distance_to_granitoids_km IS NOT NULL
remote
Show me data related to granitoid formations.
481
64
SELECT * FROM finland_iocg_model_data WHERE density_of_structures IS NOT NULL
remote
Get information about structures.
481
65
SELECT * FROM finland_iocg_model_data WHERE distance_to_craton_boundary_km IS NOT NULL
remote
Find data related to craton boundaries.
481
66
SELECT * FROM finland_iocg_model_data WHERE magnetic_anomaly_4km_window IS NOT NULL
remote
Retrieve records of magnetic anomalies within a 4-kilometer window.
481
67
SELECT * FROM finland_iocg_model_data WHERE north_finland_mask IS NOT NULL
remote
Show me locations in North Finland.
481
68
SELECT * FROM finland_iocg_model_data WHERE glacial_till_Phosphorus_P_ppm IS NOT NULL
remote
Get data about glacial till phosphorus levels.
481
69
SELECT * FROM finland_iocg_model_data WHERE glacial_till_Cobalt_Co_ppm IS NOT NULL
remote
Find records related to cobalt in glacial till.
481
70
SELECT * FROM finland_iocg_model_data WHERE glacial_till_Copper_Cu_ppm IS NOT NULL
remote
Show me data about copper content in glacial till.
481
71
SELECT * FROM finland_iocg_model_data WHERE SQRT(POWER(latitude - 34.0522, 2) + POWER(longitude + 118.2437, 2)) <= 10
remote
Retrieve locations within a 10-kilometer radius of a specific location (latitude: 34.0522, longitude: -118.2437).
481
72
SELECT * FROM finland_iocg_model_data WHERE total_magnetic_intensity > 500
remote
Select areas where TMI is more than 500
481
73
SELECT * FROM finland_iocg_model_data WHERE density_of_lineaments > 0.38
remote
Find areas where density of lineaments is greater than 0.38
481
74
SELECT * FROM finland_iocg_model_data WHERE glacial_till_Cobalt_Co_ppm > 10 AND glacial_till_Copper_Cu_ppm > 30 AND glacial_till_Iron_Fe_percentage > 21000
remote
Find areas where cobalt (Co) is greater than 10 ppm, copper (Cu) is greater than 30 ppm, and iron (Fe) is greater than 21,000 ppm
481
75
SELECT * FROM finland_iocg_model_data WHERE distance_to_black_shales_km < 5
remote
Select areas where distance to black shales is less than 5 km
481
76
SELECT * FROM finland_iocg_model_data WHERE distance_to_craton_boundary_km < 100
remote
Find areas within 100 km of domain boundaries
481
77
SELECT * FROM finland_iocg_model_data WHERE glacial_till_Chromium_Cr_ppm > 45 OR glacial_till_Nickel_Ni_ppm > 26 OR glacial_till_Titanium_Ti_ppm > 1320
remote
Find areas where chromium (Cr) is greater than 45 ppm, or nickel (Ni) is greater than 26 ppm or titanium (Ti) is greater than 1320 ppm
481
78
SELECT * FROM finland_iocg_model_data WHERE glacial_till_Barium_Ba_ppm > 80 OR glacial_till_Potassium_K_percentage > 0.23 OR glacial_till_Lanthanum_La_ppm > 23 OR glacial_till_Lithium_Li_ppm > 12 OR glacial_till_Phosphorus_P_ppm > 713 OR glacial_till_Thorium_Th_ppm > 9.9 OR glacial_till_Uranium_U_ppm > 2.6
remote
Find areas where any of the following are true: Barium (Ba) is greater than 80 ppm, potassium (K) is greater than 2300 ppm (0.23 %), lanthanum (La) is greater than 23 ppm, lithium (Li) is greater than 12 ppm, phosphorus (P) is greater than 713 ppm, thorium (Th) is greater than 9.9 ppm, or uranium (U) is greater than 2.6 ppm.
481
79
SELECT 2 * 6371 * ASIN( SQRT( POWER(SIN(RADIANS((-37.808694 - 33.877814) / 2)), 2) + COS(RADIANS(33.877814)) * COS(RADIANS(-37.808694)) * POWER(SIN(RADIANS((144.971431 - 151.209030) / 2)), 2) ) ) AS distance_in_km
remote
Find the distance in km between (151.209030 -33.877814) and (144.971431 -37.808694)
481
80
WITH MinNickel AS ( SELECT MIN(glacial_till_Nickel_Ni_ppm) AS min_nickel FROM finland_iocg_model_data ) SELECT DISTINCT d1.* FROM finland_iocg_model_data AS d1 JOIN MinNickel AS min_nickel ON d1.glacial_till_Nickel_Ni_ppm = min_nickel.min_nickel WHERE d1.glacial_till_Iron_Fe_percentage > ( SELECT MIN(glacial_till_Iron_Fe_percentage) FROM finland_iocg_model_data WHERE glacial_till_Nickel_Ni_ppm = min_nickel.min_nickel )
remote
Find areas where Iron is greater than the minimum at the point with minimum Nickel presence
481

Dataset Card for "drilling_drilling_prompt_set"

More Information needed

Downloads last month
0
Edit dataset card