conversations
listlengths
4
22
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "human", "value": "Schema:\nWeb_client_accelerator (id, name, Operating_system, Client, Connection)\nbrowser (id, name, market_share)\naccelerator_compatible_browser (accelerator_id, browser_id, compatible_since_year)\nPlease answer with SQL." }, { "from": "gpt", "value": "Sure, I unde...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\ncounty_public_safety (County_ID, Name, Population, Police_officers, Residents_per_officer, Case_burden, Crime_rate, Police_force, Location)\ncity (City_ID, County_ID, Name, White, Black, Amerindian, Asian, Multiracial, Hispanic)\nPlease answer with SQL." }, { "f...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nAddresses (address_id, line_1_number_building, town_city, zip_postcode, state_province_county, country)\nServices (service_id, service_type_code, service_name, service_descriptio)\nForms (form_id, form_type_code, service_id, form_number, form_name, form_description)\nIn...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nactor (actor_id, first_name, last_name, last_update)\naddress (address_id, address, address2, district, city_id, postal_code, phone, last_update)\ncategory (category_id, name, last_update)\ncity (city_id, city, country_id, last_update)\ncountry (country_id, country, las...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\ncandidate (Candidate_ID, People_ID, Poll_Source, Date, Support_rate, Consider_rate, Oppose_rate, Unsure_rate)\npeople (People_ID, Sex, Name, Date_of_Birth, Height, Weight)\nPlease answer with SQL." }, { "from": "gpt", "value": "Sure, I understand." }, { ...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nflight (flno, origin, destination, distance, departure_date, arrival_date, price, aid)\naircraft (aid, name, distance)\nemployee (eid, name, salary)\ncertificate (eid, aid)\nPlease answer with SQL." }, { "from": "gpt", "value": "Sure, I understand." }, {...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nrace (Race_ID, Name, Class, Date, Track_ID)\ntrack (Track_ID, Name, Location, Seating, Year_Opened)\nPlease answer with SQL." }, { "from": "gpt", "value": "Sure, I understand." }, { "from": "human", "value": "Show the name of track with most numb...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nprogram (Program_ID, Name, Origin, Launch, Owner)\nchannel (Channel_ID, Name, Owner, Share_in_percent, Rating_in_percent)\nbroadcast (Channel_ID, Program_ID, Time_of_day)\nbroadcast_share (Channel_ID, Program_ID, Date, Share_in_percent)\nPlease answer with SQL." }, ...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nProducts (product_id, product_name, product_price, product_description)\nAddresses (address_id, address_details, city, zip_postcode, state_province_county, country)\nCustomers (customer_id, payment_method, customer_name, customer_phone, customer_email, date_became_custo...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nmountain (id, name, Height, Prominence, Range, Country)\ncamera_lens (id, brand, name, focal_length_mm, max_aperture)\nphotos (id, camera_lens_id, mountain_id, color, name)\nPlease answer with SQL." }, { "from": "gpt", "value": "Sure, I understand." }, {...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nartists (id, name)\nsqlite_sequence (name, seq)\nalbums (id, title, artist_id)\nemployees (id, last_name, first_name, title, reports_to, birth_date, hire_date, address, city, state, country, postal_code, phone, fax, email)\ncustomers (id, first_name, last_name, company,...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nbank (branch_ID, bname, no_of_customers, city, state)\ncustomer (cust_ID, cust_name, acc_type, acc_bal, no_of_loans, credit_score, branch_ID, state)\nloan (loan_ID, loan_type, cust_ID, branch_ID, amount)\nPlease answer with SQL." }, { "from": "gpt", "value":...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nCustomers (customer_id, customer_first_name, customer_middle_initial, customer_last_name, gender, email_address, login_name, login_password, phone_number, town_city, state_county_province, country)\nOrders (order_id, customer_id, date_order_placed, order_details)\nInvoi...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nRef_Hotel_Star_Ratings (star_rating_code, star_rating_description)\nLocations (Location_ID, Location_Name, Address, Other_Details)\nRef_Attraction_Types (Attraction_Type_Code, Attraction_Type_Description)\nVisitors (Tourist_ID, Tourist_Details)\nFeatures (Feature_ID, Fe...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nstation (id, name, lat, long, dock_count, city, installation_date)\nstatus (station_id, bikes_available, docks_available, time)\ntrip (id, duration, start_date, start_station_name, start_station_id, end_date, end_station_name, end_station_id, bike_id, subscription_type,...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nchip_model (Model_name, Launch_year, RAM_MiB, ROM_MiB, Slots, WiFi, Bluetooth)\nscreen_mode (Graphics_mode, Char_cells, Pixels, Hardware_colours, used_kb, map, Type)\nphone (Company_name, Hardware_Model_name, Accreditation_type, Accreditation_level, Date, chip_model, sc...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nCourse_Authors_and_Tutors (author_id, author_tutor_ATB, login_name, password, personal_name, middle_name, family_name, gender_mf, address_line_1)\nStudents (student_id, date_of_registration, date_of_latest_logon, login_name, password, personal_name, middle_name, family_...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\ngenre (g_name, rating, most_popular_in)\nartist (artist_name, country, gender, preferred_genre)\nfiles (f_id, artist_name, file_size, duration, formats)\nsong (song_name, artist_name, country, f_id, genre_is, rating, languages, releasedate, resolution)\nPlease answer wi...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\ndevice (Device_ID, Device, Carrier, Package_Version, Applications, Software_Platform)\nshop (Shop_ID, Shop_Name, Location, Open_Date, Open_Year)\nstock (Shop_ID, Device_ID, Quantity)\nPlease answer with SQL." }, { "from": "gpt", "value": "Sure, I understand....
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nclassroom (building, room_number, capacity)\ndepartment (dept_name, building, budget)\ncourse (course_id, title, dept_name, credits)\ninstructor (ID, name, dept_name, salary)\nsection (course_id, sec_id, semester, year, building, room_number, time_slot_id)\nteaches (ID,...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nAddresses (address_id, line_1_number_building, town_city, zip_postcode, state_province_county, country)\nServices (service_id, service_type_code, service_name, service_descriptio)\nForms (form_id, form_type_code, service_id, form_number, form_name, form_description)\nIn...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nThird_Party_Companies (company_id, company_type, company_name, company_address, other_company_details)\nMaintenance_Contracts (maintenance_contract_id, maintenance_contract_company_id, contract_start_date, contract_end_date, other_contract_details)\nParts (part_id, part...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nAddresses (address_id, line_1, line_2, city, zip_postcode, state_province_county, country)\nPeople (person_id, first_name, middle_name, last_name, cell_mobile_number, email_address, login_name, password)\nStudents (student_id, student_details)\nCourses (course_id, cours...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nRef_Characteristic_Types (characteristic_type_code, characteristic_type_description)\nRef_Colors (color_code, color_description)\nRef_Product_Categories (product_category_code, product_category_description, unit_of_measure)\nCharacteristics (characteristic_id, character...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\ndriver (Driver_ID, Name, Party, Home_city, Age)\nschool (School_ID, Grade, School, Location, Type)\nschool_bus (School_ID, Driver_ID, Years_Working, If_full_time)\nPlease answer with SQL." }, { "from": "gpt", "value": "Sure, I understand." }, { "from...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nmanufacturer (Manufacturer_ID, Open_Year, Name, Num_of_Factories, Num_of_Shops)\nfurniture (Furniture_ID, Name, Num_of_Component, Market_Rate)\nfurniture_manufacte (Manufacturer_ID, Furniture_ID, Price_in_Dollar)\nPlease answer with SQL." }, { "from": "gpt", ...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nbuilding (building_id, Name, Street_address, Years_as_tallest, Height_feet, Floors)\nInstitution (Institution_id, Institution, Location, Founded, Type, Enrollment, Team, Primary_Conference, building_id)\nprotein (common_name, protein_name, divergence_from_human_lineage,...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nServices (Service_ID, Service_Type_Code)\nParticipants (Participant_ID, Participant_Type_Code, Participant_Details)\nEvents (Event_ID, Service_ID, Event_Details)\nParticipants_in_Events (Event_ID, Participant_ID)\nPlease answer with SQL." }, { "from": "gpt", ...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nPremises (premise_id, premises_type, premise_details)\nProducts (product_id, product_category, product_name)\nCustomers (customer_id, payment_method, customer_name, customer_phone, customer_email, customer_address, customer_login, customer_password)\nMailshot_Campaigns ...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nWeb_client_accelerator (id, name, Operating_system, Client, Connection)\nbrowser (id, name, market_share)\naccelerator_compatible_browser (accelerator_id, browser_id, compatible_since_year)\nPlease answer with SQL." }, { "from": "gpt", "value": "Sure, I unde...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nStudent (StuID, LName, Fname, Age, Sex, Major, Advisor, city_code)\nVideo_Games (GameID, GName, GType)\nPlays_Games (StuID, GameID, Hours_Played)\nSportsInfo (StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship)\nPlease answer with SQL." }, { "from": "gpt...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nRooms (RoomId, roomName, beds, bedType, maxOccupancy, basePrice, decor)\nReservations (Code, Room, CheckIn, CheckOut, Rate, LastName, FirstName, Adults, Kids)\nPlease answer with SQL." }, { "from": "gpt", "value": "Sure, I understand." }, { "from": "...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\npeople (People_ID, Age, Name, Nationality, Graduation_College)\ncompany (Company_ID, Name, Headquarters, Industry, Sales_in_Billion, Profits_in_Billion, Assets_in_Billion, Market_Value_in_Billion)\nemployment (Company_ID, People_ID, Year_working)\nPlease answer with SQL...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nMovie (mID, title, year, director)\nReviewer (rID, name)\nRating (rID, mID, stars, ratingDate)\nPlease answer with SQL." }, { "from": "gpt", "value": "Sure, I understand." }, { "from": "human", "value": "Show the names of all reviewers." }, {...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nRef_Document_Types (Document_Type_Code, Document_Type_Name, Document_Type_Description)\nRef_Calendar (Calendar_Date, Day_Number)\nRef_Locations (Location_Code, Location_Name, Location_Description)\nRoles (Role_Code, Role_Name, Role_Description)\nAll_Documents (Document_...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nActivity (actid, activity_name)\nParticipates_in (stuid, actid)\nFaculty_Participates_in (FacID, actid)\nStudent (StuID, LName, Fname, Age, Sex, Major, Advisor, city_code)\nFaculty (FacID, Lname, Fname, Rank, Sex, Phone, Room, Building)\nPlease answer with SQL." }, ...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nProducts (product_id, product_name, product_price, product_description)\nAddresses (address_id, address_details, city, zip_postcode, state_province_county, country)\nCustomers (customer_id, payment_method, customer_name, customer_phone, customer_email, date_became_custo...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nflight (flno, origin, destination, distance, departure_date, arrival_date, price, aid)\naircraft (aid, name, distance)\nemployee (eid, name, salary)\ncertificate (eid, aid)\nPlease answer with SQL." }, { "from": "gpt", "value": "Sure, I understand." }, {...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nrepair (repair_ID, name, Launch_Date, Notes)\nmachine (Machine_ID, Making_Year, Class, Team, Machine_series, value_points, quality_rank)\ntechnician (technician_id, Name, Team, Starting_Year, Age)\nrepair_assignment (technician_id, repair_ID, Machine_ID)\nPlease answer ...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\ndepartment (Department_ID, Name, Creation, Ranking, Budget_in_Billions, Num_Employees)\nhead (head_ID, name, born_state, age)\nmanagement (department_ID, head_ID, temporary_acting)\nPlease answer with SQL." }, { "from": "gpt", "value": "Sure, I understand." ...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nartists (id, name)\nsqlite_sequence (name, seq)\nalbums (id, title, artist_id)\nemployees (id, last_name, first_name, title, reports_to, birth_date, hire_date, address, city, state, country, postal_code, phone, fax, email)\ncustomers (id, first_name, last_name, company,...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nartists (id, name)\nsqlite_sequence (name, seq)\nalbums (id, title, artist_id)\nemployees (id, last_name, first_name, title, reports_to, birth_date, hire_date, address, city, state, country, postal_code, phone, fax, email)\ncustomers (id, first_name, last_name, company,...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nCustomers (Customer_ID, Customer_Details)\nCustomer_Policies (Policy_ID, Customer_ID, Policy_Type_Code, Start_Date, End_Date)\nClaims (Claim_ID, Policy_ID, Date_Claim_Made, Date_Claim_Settled, Amount_Claimed, Amount_Settled)\nSettlements (Settlement_ID, Claim_ID, Date_C...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nstate (state_name, population, area, country_name, capital, density)\ncity (city_name, population, country_name, state_name)\nborder_info (state_name, border)\nhighlow (state_name, highest_elevation, lowest_point, highest_point, lowest_elevation)\nlake (lake_name, area,...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nAddresses (Address_ID, address_details)\nLocations (Location_ID, Other_Details)\nProducts (Product_ID, Product_Type_Code, Product_Name, Product_Price)\nParties (Party_ID, Party_Details)\nAssets (Asset_ID, Other_Details)\nChannels (Channel_ID, Other_Details)\nFinances (F...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nAddresses (address_id, line_1, line_2, city, zip_postcode, state_province_county, country)\nPeople (person_id, first_name, middle_name, last_name, cell_mobile_number, email_address, login_name, password)\nStudents (student_id, student_details)\nCourses (course_id, cours...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nAddresses (address_id, address_details)\nStaff (staff_id, staff_gender, staff_name)\nSuppliers (supplier_id, supplier_name, supplier_phone)\nDepartment_Store_Chain (dept_store_chain_id, dept_store_chain_name)\nCustomers (customer_id, payment_method_code, customer_code, ...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nclassroom (building, room_number, capacity)\ndepartment (dept_name, building, budget)\ncourse (course_id, title, dept_name, credits)\ninstructor (ID, name, dept_name, salary)\nsection (course_id, sec_id, semester, year, building, room_number, time_slot_id)\nteaches (ID,...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nScientists (SSN, Name)\nProjects (Code, Name, Hours)\nAssignedTo (Scientist, Project)\nPlease answer with SQL." }, { "from": "gpt", "value": "Sure, I understand." }, { "from": "human", "value": "find the names of all projects." }, { "from...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nRef_Document_Types (Document_Type_Code, Document_Type_Name, Document_Type_Description)\nRef_Calendar (Calendar_Date, Day_Number)\nRef_Locations (Location_Code, Location_Name, Location_Description)\nRoles (Role_Code, Role_Name, Role_Description)\nAll_Documents (Document_...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\ngenre (g_name, rating, most_popular_in)\nartist (artist_name, country, gender, preferred_genre)\nfiles (f_id, artist_name, file_size, duration, formats)\nsong (song_name, artist_name, country, f_id, genre_is, rating, languages, releasedate, resolution)\nPlease answer wi...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nStudent (StuID, LName, Fname, Age, Sex, Major, Advisor, city_code)\nVideo_Games (GameID, GName, GType)\nPlays_Games (StuID, GameID, Hours_Played)\nSportsInfo (StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship)\nPlease answer with SQL." }, { "from": "gpt...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nInvestors (investor_id, Investor_details)\nLots (lot_id, investor_id, lot_details)\nRef_Transaction_Types (transaction_type_code, transaction_type_description)\nTransactions (transaction_id, investor_id, transaction_type_code, date_of_transaction, amount_of_transaction,...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nrailway (Railway_ID, Railway, Builder, Built, Wheels, Location, ObjectNumber)\ntrain (Train_ID, Train_Num, Name, From, Arrival, Railway_ID)\nmanager (Manager_ID, Name, Country, Working_year_starts, Age, Level)\nrailway_manage (Railway_ID, Manager_ID, From_Year)\nPlease ...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nartist (Artist_ID, Artist, Age, Famous_Title, Famous_Release_date)\nvolume (Volume_ID, Volume_Issue, Issue_Date, Weeks_on_Top, Song, Artist_ID)\nmusic_festival (ID, Music_Festival, Date_of_ceremony, Category, Volume, Result)\nPlease answer with SQL." }, { "from"...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\ngrapes (ID, Grape, Color)\nappellations (No, Appelation, County, State, Area, isAVA)\nwine (No, Grape, Winery, Appelation, State, Name, Year, Price, Score, Cases, Drink)\nPlease answer with SQL." }, { "from": "gpt", "value": "Sure, I understand." }, { ...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nCustomers (Customer_ID, Customer_name)\nServices (Service_ID, Service_name)\nAvailable_Policies (Policy_ID, policy_type_code, Customer_Phone)\nCustomers_Policies (Customer_ID, Policy_ID, Date_Opened, Date_Closed)\nFirst_Notification_of_Loss (FNOL_ID, Customer_ID, Policy...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nMovie (mID, title, year, director)\nReviewer (rID, name)\nRating (rID, mID, stars, ratingDate)\nPlease answer with SQL." }, { "from": "gpt", "value": "Sure, I understand." }, { "from": "human", "value": "How many movies are in the list?" }, {...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nActivity (actid, activity_name)\nParticipates_in (stuid, actid)\nFaculty_Participates_in (FacID, actid)\nStudent (StuID, LName, Fname, Age, Sex, Major, Advisor, city_code)\nFaculty (FacID, Lname, Fname, Rank, Sex, Phone, Room, Building)\nPlease answer with SQL." }, ...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nclass (CLASS_CODE, CRS_CODE, CLASS_SECTION, CLASS_TIME, CLASS_ROOM, PROF_NUM)\ncourse (CRS_CODE, DEPT_CODE, CRS_DESCRIPTION, CRS_CREDIT)\ndepartment (DEPT_CODE, DEPT_NAME, SCHOOL_CODE, EMP_NUM, DEPT_ADDRESS, DEPT_EXTENSION)\nemployee (EMP_NUM, EMP_LNAME, EMP_FNAME, EMP_...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nclub (Club_ID, name, Region, Start_year)\nclub_rank (Rank, Club_ID, Gold, Silver, Bronze, Total)\nplayer (Player_ID, name, Position, Club_ID, Apps, Tries, Goals, Points)\ncompetition (Competition_ID, Year, Competition_type, Country)\ncompetition_result (Competition_ID, ...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nmountain (Mountain_ID, Name, Height, Prominence, Range, Country)\nclimber (Climber_ID, Name, Country, Time, Points, Mountain_ID)\nPlease answer with SQL." }, { "from": "gpt", "value": "Sure, I understand." }, { "from": "human", "value": "List all...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\naccounts (custid, name)\nsavings (custid, balance)\nchecking (custid, balance)\nPlease answer with SQL." }, { "from": "gpt", "value": "Sure, I understand." }, { "from": "human", "value": "What are all the savings balances?" }, { "from": "...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nStudent (StuID, LName, Fname, Age, Sex, Major, Advisor, city_code)\nVideo_Games (GameID, GName, GType)\nPlays_Games (StuID, GameID, Hours_Played)\nSportsInfo (StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship)\nPlease answer with SQL." }, { "from": "gpt...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nfilm (Film_ID, Rank_in_series, Number_in_season, Title, Directed_by, Original_air_date, Production_code)\ncinema (Cinema_ID, Name, Openning_year, Capacity, Location)\nschedule (Cinema_ID, Film_ID, Date, Show_times_per_day, Price)\nPlease answer with SQL." }, { "...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\npeople (People_ID, Name, Country, Is_Male, Age)\nchurch (Church_ID, Name, Organized_by, Open_Date, Continuation_of)\nwedding (Church_ID, Male_ID, Female_ID, Year)\nPlease answer with SQL." }, { "from": "gpt", "value": "Sure, I understand." }, { "from...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nDiscount_Coupons (coupon_id, date_issued, coupon_amount)\nCustomers (customer_id, coupon_id, good_or_bad_customer, first_name, last_name, gender_mf, date_became_customer, date_last_hire)\nBookings (booking_id, customer_id, booking_status_code, returned_damaged_yn, booki...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nairport (id, City, Country, IATA, ICAO, name)\noperate_company (id, name, Type, Principal_activities, Incorporated_in, Group_Equity_Shareholding)\nflight (id, Vehicle_Flight_number, Date, Pilot, Velocity, Altitude, airport_id, company_id)\nPlease answer with SQL." }, ...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nCustomers (Customer_ID, Customer_Details)\nStaff (Staff_ID, Staff_Details)\nPolicies (Policy_ID, Customer_ID, Policy_Type_Code, Start_Date, End_Date)\nClaim_Headers (Claim_Header_ID, Claim_Status_Code, Claim_Type_Code, Policy_ID, Date_of_Claim, Date_of_Settlement, Amoun...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\ngenre (g_name, rating, most_popular_in)\nartist (artist_name, country, gender, preferred_genre)\nfiles (f_id, artist_name, file_size, duration, formats)\nsong (song_name, artist_name, country, f_id, genre_is, rating, languages, releasedate, resolution)\nPlease answer wi...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nstate (state_name, population, area, country_name, capital, density)\ncity (city_name, population, country_name, state_name)\nborder_info (state_name, border)\nhighlow (state_name, highest_elevation, lowest_point, highest_point, lowest_elevation)\nlake (lake_name, area,...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nStudent (StuID, LName, Fname, Age, Sex, Major, Advisor, city_code)\nVideo_Games (GameID, GName, GType)\nPlays_Games (StuID, GameID, Hours_Played)\nSportsInfo (StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship)\nPlease answer with SQL." }, { "from": "gpt...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nStudent (StuID, LName, Fname, Age, Sex, Major, Advisor, city_code)\nVideo_Games (GameID, GName, GType)\nPlays_Games (StuID, GameID, Hours_Played)\nSportsInfo (StuID, SportName, HoursPerWeek, GamesPlayed, OnScholarship)\nPlease answer with SQL." }, { "from": "gpt...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\ngeographic (CITY_NAME, COUNTY, REGION)\nrestaurant (ID, NAME, FOOD_TYPE, CITY_NAME, RATING)\nlocation (RESTAURANT_ID, HOUSE_NUMBER, STREET_NAME, CITY_NAME)\nPlease answer with SQL." }, { "from": "gpt", "value": "Sure, I understand." }, { "from": "hum...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\ndepartment (Department_ID, Name, Creation, Ranking, Budget_in_Billions, Num_Employees)\nhead (head_ID, name, born_state, age)\nmanagement (department_ID, head_ID, temporary_acting)\nPlease answer with SQL." }, { "from": "gpt", "value": "Sure, I understand." ...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nartists (id, name)\nsqlite_sequence (name, seq)\nalbums (id, title, artist_id)\nemployees (id, last_name, first_name, title, reports_to, birth_date, hire_date, address, city, state, country, postal_code, phone, fax, email)\ncustomers (id, first_name, last_name, company,...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nitem (i_id, title)\nreview (a_id, u_id, i_id, rating, rank)\nuseracct (u_id, name)\ntrust (source_u_id, target_u_id, trust)\nPlease answer with SQL." }, { "from": "gpt", "value": "Sure, I understand." }, { "from": "human", "value": "What items we...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nAddresses (address_id, address_content, city, zip_postcode, state_province_county, country, other_address_details)\nProducts (product_id, product_details)\nCustomers (customer_id, payment_method, customer_name, date_became_customer, other_customer_details)\nCustomer_Add...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nWeb_client_accelerator (id, name, Operating_system, Client, Connection)\nbrowser (id, name, market_share)\naccelerator_compatible_browser (accelerator_id, browser_id, compatible_since_year)\nPlease answer with SQL." }, { "from": "gpt", "value": "Sure, I unde...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nvenue (venueId, venueName)\nauthor (authorId, authorName)\ndataset (datasetId, datasetName)\njournal (journalId, journalName)\nkeyphrase (keyphraseId, keyphraseName)\npaper (paperId, title, venueId, year, numCiting, numCitedBy, journalId)\ncite (citingPaperId, citedPape...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\ncompany (Company_ID, Rank, Company, Headquarters, Main_Industry, Sales_billion, Profits_billion, Assets_billion, Market_Value)\ngas_station (Station_ID, Open_Year, Location, Manager_Name, Vice_Manager_Name, Representative_Name)\nstation_company (Station_ID, Company_ID, ...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nAddresses (address_id, line_1_number_building, town_city, zip_postcode, state_province_county, country)\nServices (service_id, service_type_code, service_name, service_descriptio)\nForms (form_id, form_type_code, service_id, form_number, form_name, form_description)\nIn...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nplayer (Player_ID, Sponsor_name, Player_name, Gender, Residence, Occupation, Votes, Rank)\nclub (Club_ID, Club_name, Region, Start_year)\ncoach (Coach_ID, Coach_name, Gender, Club_ID, Rank)\nplayer_coach (Player_ID, Coach_ID, Starting_year)\nmatch_result (Rank, Club_ID,...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nstate (state_name, population, area, country_name, capital, density)\ncity (city_name, population, country_name, state_name)\nborder_info (state_name, border)\nhighlow (state_name, highest_elevation, lowest_point, highest_point, lowest_elevation)\nlake (lake_name, area,...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nrace (Race_ID, Name, Class, Date, Track_ID)\ntrack (Track_ID, Name, Location, Seating, Year_Opened)\nPlease answer with SQL." }, { "from": "gpt", "value": "Sure, I understand." }, { "from": "human", "value": "can you show me names of races?" },...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nphone (Name, Phone_ID, Memory_in_G, Carrier, Price)\nmarket (Market_ID, District, Num_of_employees, Num_of_shops, Ranking)\nphone_market (Market_ID, Phone_ID, Num_of_stock)\nPlease answer with SQL." }, { "from": "gpt", "value": "Sure, I understand." }, {...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nfilm (Film_ID, Title, Studio, Director, Gross_in_dollar)\nmarket (Market_ID, Country, Number_cities)\nfilm_market_estimation (Estimation_ID, Low_Estimate, High_Estimate, Film_ID, Type, Market_ID, Year)\nPlease answer with SQL." }, { "from": "gpt", "value": "...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nartist (Artist_ID, Artist, Age, Famous_Title, Famous_Release_date)\nvolume (Volume_ID, Volume_Issue, Issue_Date, Weeks_on_Top, Song, Artist_ID)\nmusic_festival (ID, Music_Festival, Date_of_ceremony, Category, Volume, Result)\nPlease answer with SQL." }, { "from"...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nRef_Hotel_Star_Ratings (star_rating_code, star_rating_description)\nLocations (Location_ID, Location_Name, Address, Other_Details)\nRef_Attraction_Types (Attraction_Type_Code, Attraction_Type_Description)\nVisitors (Tourist_ID, Tourist_Details)\nFeatures (Feature_ID, Fe...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nDocument_Types (document_type_code, document_description)\nDocuments (document_id, document_type_code, grant_id, sent_date, response_received_date, other_details)\nGrants (grant_id, organisation_id, grant_amount, grant_start_date, grant_end_date, other_details)\nOrganis...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\njournal (Journal_ID, Date, Theme, Sales)\neditor (Editor_ID, Name, Age)\njournal_committee (Editor_ID, Journal_ID, Work_Type)\nPlease answer with SQL." }, { "from": "gpt", "value": "Sure, I understand." }, { "from": "human", "value": "tell me the...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nInst (instID, name, country)\nAuthors (authID, lname, fname)\nPapers (paperID, title)\nAuthorship (authID, instID, paperID, authOrder)\nPlease answer with SQL." }, { "from": "gpt", "value": "Sure, I understand." }, { "from": "human", "value": "Re...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nroller_coaster (Roller_Coaster_ID, Name, Park, Country_ID, Length, Height, Speed, Opened, Status)\ncountry (Country_ID, Name, Population, Area, Languages)\nPlease answer with SQL." }, { "from": "gpt", "value": "Sure, I understand." }, { "from": "huma...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\ngymnast (Gymnast_ID, Floor_Exercise_Points, Pommel_Horse_Points, Rings_Points, Vault_Points, Parallel_Bars_Points, Horizontal_Bar_Points, Total_Points)\npeople (People_ID, Name, Age, Height, Hometown)\nPlease answer with SQL." }, { "from": "gpt", "value": "S...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nbank (branch_ID, bname, no_of_customers, city, state)\ncustomer (cust_ID, cust_name, acc_type, acc_bal, no_of_loans, credit_score, branch_ID, state)\nloan (loan_ID, loan_type, cust_ID, branch_ID, amount)\nPlease answer with SQL." }, { "from": "gpt", "value":...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nfollows (f1, f2)\ntweets (id, uid, text, createdate)\nuser_profiles (uid, name, email, partitionid, followers)\nPlease answer with SQL." }, { "from": "gpt", "value": "Sure, I understand." }, { "from": "human", "value": "How many followers does th...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nactor (actor_id, first_name, last_name, last_update)\naddress (address_id, address, address2, district, city_id, postal_code, phone, last_update)\ncategory (category_id, name, last_update)\ncity (city_id, city, country_id, last_update)\ncountry (country_id, country, las...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nvenue (venueId, venueName)\nauthor (authorId, authorName)\ndataset (datasetId, datasetName)\njournal (journalId, journalName)\nkeyphrase (keyphraseId, keyphraseName)\npaper (paperId, title, venueId, year, numCiting, numCitedBy, journalId)\ncite (citingPaperId, citedPape...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nPhysician (EmployeeID, Name, Position, SSN)\nDepartment (DepartmentID, Name, Head)\nAffiliated_With (Physician, Department, PrimaryAffiliation)\nProcedures (Code, Name, Cost)\nTrained_In (Physician, Treatment, CertificationDate, CertificationExpires)\nPatient (SSN, Name...
processed_unified_sqlv2
chosen
[ { "from": "human", "value": "Schema:\nPhysician (EmployeeID, Name, Position, SSN)\nDepartment (DepartmentID, Name, Head)\nAffiliated_With (Physician, Department, PrimaryAffiliation)\nProcedures (Code, Name, Cost)\nTrained_In (Physician, Treatment, CertificationDate, CertificationExpires)\nPatient (SSN, Name...
processed_unified_sqlv2
chosen