conversations listlengths 2 2 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Given the following schema:\nCustomer_Contact_Channels (customer_id, channel_code, active_from_date, active_to_date, contact_number)\nProducts (product_id, product_details)\nCustomer_Addresses (customer_id, address_id, date_address_from, address_type, date_address_to)\nOrder_Ite... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ntime_zone (time_zone_code, time_zone_name, hours_from_gmt)\ndays (days_code, day_name)\nmonth (month_number, month_name)\nclass_of_service (booking_class, rank, class_description)\nfood_service (meal_code, meal_number, compartment, meal_description)\... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ndate_day (month_number, day_number, year, day_name)\nrestriction (restriction_code, advance_purchase, stopovers, saturday_stay_required, minimum_stay, maximum_stay, application, no_discounts)\ntime_zone (time_zone_code, time_zone_name, hours_from_gmt... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ndual_carrier (main_airline, low_flight_number, high_flight_number, dual_airline, service_name)\ntime_interval (period, begin_time, end_time)\nairport (airport_code, airport_name, airport_location, state_code, country_name, time_zone_code, minimum_con... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nmonth (month_number, month_name)\nclass_of_service (booking_class, rank, class_description)\nflight_fare (flight_id, fare_id)\nflight_leg (flight_id, leg_number, leg_flight)\nairport (airport_code, airport_name, airport_location, state_code, country_... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nlanguage (language_id, name, last_update)\nfilm_category (film_id, category_id, last_update)\ninventory (inventory_id, film_id, store_id, last_update)\nfilm_actor (actor_id, film_id, last_update)\ncategory (category_id, name, last_update)\nfilm_text ... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nriver (river_name, length, country_name, traverse)\ncity (city_name, population, country_name, state_name)\nhighlow (state_name, highest_elevation, lowest_point, highest_point, lowest_elevation)\nlake (lake_name, area, country_name, state_name)\nstat... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ntime_interval (period, begin_time, end_time)\ncode_description (code, description)\nflight_leg (flight_id, leg_number, leg_flight)\nclass_of_service (booking_class, rank, class_description)\nstate (state_code, state_name, country_name)\nmonth (month_... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nfaculty (Campus, Year, Faculty)\nCampuses (Id, Campus, Location, County, Year)\nenrollments (Campus, Year, TotalEnrollment_AY, FTE_AY)\ndiscipline_enrollments (Campus, Discipline, Year, Undergraduate, Graduate)\ndegrees (Year, Campus, Degrees)\ncsu_f... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nprogram (program_id, name, college, introduction)\njobs (job_id, job_title, description, requirement, city, state, country, zip)\nprogram_requirement (program_id, category, min_credit, additional_req)\nrequirement (requirement_id, requirement, colleg... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nfiles (f_id, artist_name, file_size, duration, formats)\ngenre (g_name, rating, most_popular_in)\nsong (song_name, artist_name, country, f_id, genre_is, rating, languages, releasedate, resolution)\nartist (artist_name, country, gender, preferred_genr... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nRef_Locations (Location_Code, Location_Name, Location_Description)\nRef_Document_Types (Document_Type_Code, Document_Type_Name, Document_Type_Description)\nRef_Calendar (Calendar_Date, Day_Number)\nDocument_Locations (Document_ID, Location_Code, Date... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nProducts (Code, Name, Price, Manufacturer)\nManufacturers (Code, Name, Headquarter, Founder, Revenue)\nWrite a SQL query to select the names of manufacturer whose products have an average price higher than or equal to $150."
},
{
"from": "gpt... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ndual_carrier (main_airline, low_flight_number, high_flight_number, dual_airline, service_name)\ncity (city_code, city_name, state_code, country_name, time_zone_code)\nflight_leg (flight_id, leg_number, leg_flight)\nstate (state_code, state_name, coun... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nstate (state_name, population, area, country_name, capital, density)\nhighlow (state_name, highest_elevation, lowest_point, highest_point, lowest_elevation)\nlake (lake_name, area, country_name, state_name)\nborder_info (state_name, border)\nmountain... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ntime_interval (period, begin_time, end_time)\nairport_service (city_code, airport_code, miles_distant, direction, minutes_distant)\nflight_fare (flight_id, fare_id)\nfare (fare_id, from_airport, to_airport, fare_basis_code, fare_airline, restriction_... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ntv_series (sid, title, release_year, num_of_seasons, num_of_episodes, title_aka, budget)\nwriter (wid, gender, name, nationality, birth_city, birth_year)\ngenre (gid, genre)\nactor (aid, gender, name, nationality, birth_city, birth_year)\nproducer (p... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nstation (id, name, lat, long, dock_count, city, installation_date)\nweather (date, max_temperature_f, mean_temperature_f, min_temperature_f, max_dew_point_f, mean_dew_point_f, min_dew_point_f, max_humidity, mean_humidity, min_humidity, max_sea_level_... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nairport (airport_code, airport_name, airport_location, state_code, country_name, time_zone_code, minimum_connect_time)\nfood_service (meal_code, meal_number, compartment, meal_description)\ntime_interval (period, begin_time, end_time)\nstate (state_c... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\narea (course_id, area)\nprogram (program_id, name, college, introduction)\nstudent_record (student_id, course_id, semester, grade, how, transfer_source, earn_credit, repeat_term, test_id)\njobs (job_id, job_title, description, requirement, city, stat... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nstate (state_name, population, area, country_name, capital, density)\nborder_info (state_name, border)\nhighlow (state_name, highest_elevation, lowest_point, highest_point, lowest_elevation)\nlake (lake_name, area, country_name, state_name)\nriver (r... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nApartment_Bookings (apt_booking_id, apt_id, guest_id, booking_status_code, booking_start_date, booking_end_date)\nApartment_Facilities (apt_id, facility_code)\nGuests (guest_id, gender_code, guest_first_name, guest_last_name, date_of_birth)\nApartmen... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nNurse (EmployeeID, Name, Position, Registered, SSN)\nRoom (RoomNumber, RoomType, BlockFloor, BlockCode, Unavailable)\nPrescribes (Physician, Patient, Medication, Date, Appointment, Dose)\nOn_Call (Nurse, BlockFloor, BlockCode, OnCallStart, OnCallEnd)... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ncomment_instructor (instructor_id, student_id, score, comment_text)\ncourse (course_id, name, department, number, credits, advisory_requirement, enforced_requirement, description, num_semesters, num_enrolled, has_discussion, has_lab, has_projects, ha... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ncity (city_code, city_name, state_code, country_name, time_zone_code)\nairport_service (city_code, airport_code, miles_distant, direction, minutes_distant)\ntime_zone (time_zone_code, time_zone_name, hours_from_gmt)\ntime_interval (period, begin_time... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nlocation (restaurant_id, house_number, street_name, city_name)\ngeographic (city_name, county, region)\nrestaurant (id, name, food_type, city_name, rating)\nWrite a SQL query to what is a good restaurant in alameda ?"
},
{
"from": "gpt",
... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nenroll (CLASS_CODE, STU_NUM, ENROLL_GRADE)\nstudent (STU_NUM, STU_LNAME, STU_FNAME, STU_INIT, STU_DOB, STU_HRS, STU_CLASS, STU_GPA, STU_TRANSFER, DEPT_CODE, STU_PHONE, PROF_NUM)\nclass (CLASS_CODE, CRS_CODE, CLASS_SECTION, CLASS_TIME, CLASS_ROOM, PRO... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nprogram_requirement (program_id, category, min_credit, additional_req)\ncourse_offering (offering_id, course_id, semester, section_number, start_time, end_time, monday, tuesday, wednesday, thursday, friday, saturday, sunday, has_final_project, has_fi... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nStudent (StuID, LName, Fname, Age, Sex, Major, Advisor, city_code)\nLives_in (stuid, dormid, room_number)\nDorm_amenity (amenid, amenity_name)\nDorm (dormid, dorm_name, student_capacity, gender)\nHas_amenity (dormid, amenid)\nWrite a SQL query to fin... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nflight_stop (flight_id, stop_number, stop_days, stop_airport, arrival_time, arrival_airline, arrival_flight_number, departure_time, departure_airline, departure_flight_number, stop_time)\ntime_zone (time_zone_code, time_zone_name, hours_from_gmt)\nai... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nequipment_sequence (aircraft_code_sequence, aircraft_code)\ncompartment_class (compartment, class_type)\nairline (airline_code, airline_name, note)\nfood_service (meal_code, meal_number, compartment, meal_description)\ntime_zone (time_zone_code, time... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nmountain (mountain_name, mountain_altitude, country_name, state_name)\nhighlow (state_name, highest_elevation, lowest_point, highest_point, lowest_elevation)\ncity (city_name, population, country_name, state_name)\nborder_info (state_name, border)\nl... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nhappy_hour_member (HH_ID, Member_ID, Total_amount)\nhappy_hour (HH_ID, Shop_ID, Month, Num_of_shaff_in_charge)\nshop (Shop_ID, Address, Num_of_staff, Score, Open_Year)\nmember (Member_ID, Name, Membership_card, Age, Time_of_purchase, Level_of_members... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nlist (LastName, FirstName, Grade, Classroom)\nteachers (LastName, FirstName, Classroom)\nWrite a SQL query to find all first-grade students who are NOT taught by OTHA MOYER. Report their first and last names."
},
{
"from": "gpt",
"value":... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nprofessor (EMP_NUM, DEPT_CODE, PROF_OFFICE, PROF_EXTENSION, PROF_HIGH_DEGREE)\ndepartment (DEPT_CODE, DEPT_NAME, SCHOOL_CODE, EMP_NUM, DEPT_ADDRESS, DEPT_EXTENSION)\nemployee (EMP_NUM, EMP_LNAME, EMP_FNAME, EMP_INITIAL, EMP_JOBCODE, EMP_HIREDATE, EMP... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\npeople (People_ID, Sex, Name, Date_of_Birth, Height, Weight)\ncandidate (Candidate_ID, People_ID, Poll_Source, Date, Support_rate, Consider_rate, Oppose_rate, Unsure_rate)\nWrite a SQL query to what are the names of people who have a height greater t... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nequipment_sequence (aircraft_code_sequence, aircraft_code)\nmonth (month_number, month_name)\nflight_leg (flight_id, leg_number, leg_flight)\nstate (state_code, state_name, country_name)\ntime_interval (period, begin_time, end_time)\ndays (days_code,... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nrestaurant (ID, NAME, FOOD_TYPE, CITY_NAME, RATING)\ngeographic (CITY_NAME, COUNTY, REGION)\nlocation (RESTAURANT_ID, HOUSE_NUMBER, STREET_NAME, CITY_NAME)\nWrite a SQL query to where is a good french restaurant in the yosemite and mono lake area ?"
... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nflight_leg (flight_id, leg_number, leg_flight)\ncompartment_class (compartment, class_type)\ndate_day (month_number, day_number, year, day_name)\nrestriction (restriction_code, advance_purchase, stopovers, saturday_stay_required, minimum_stay, maximu... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ndate_day (month_number, day_number, year, day_name)\ncompartment_class (compartment, class_type)\nflight_stop (flight_id, stop_number, stop_days, stop_airport, arrival_time, arrival_airline, arrival_flight_number, departure_time, departure_airline, d... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\narea (course_id, area)\noffering_instructor (offering_instructor_id, offering_id, instructor_id)\nta (campus_job_id, student_id, location)\ncourse_offering (offering_id, course_id, semester, section_number, start_time, end_time, monday, tuesday, wedn... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nground_service (city_code, airport_code, transport_type, ground_fare)\nflight_fare (flight_id, fare_id)\naircraft (aircraft_code, aircraft_description, manufacturer, basic_type, engines, propulsion, wide_body, wing_span, length, weight, capacity, pay... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nchecking (custid, balance)\naccounts (custid, name)\nsavings (custid, balance)\nWrite a SQL query to what is the average balance in checking accounts?"
},
{
"from": "gpt",
"value": "SELECT avg ( balance ) FROM checking ;"
}
] | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nairline (airline_code, airline_name, note)\nstate (state_code, state_name, country_name)\nfare_basis (fare_basis_code, booking_class, class_type, premium, economy, discounted, night, season, basis_days)\ntime_zone (time_zone_code, time_zone_name, hou... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nCustomers (Customer_ID, Customer_Details)\nSettlements (Settlement_ID, Claim_ID, Date_Claim_Made, Date_Claim_Settled, Amount_Claimed, Amount_Settled, Customer_Policy_ID)\nPayments (Payment_ID, Settlement_ID, Payment_Method_Code, Date_Payment_Made, Am... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nwrites (paperid, authorid)\npaperkeyphrase (paperid, keyphraseid)\npaperdataset (paperid, datasetid)\ndataset (datasetid, datasetname)\npaperfield (fieldid, paperid)\nkeyphrase (keyphraseid, keyphrasename)\nfield (fieldid)\njournal (journalid, journa... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ndomain_conference (cid, did)\npublication (abstract, cid, citation_num, jid, pid, reference_num, title, year)\ndomain_keyword (did, kid)\ndomain_publication (did, pid)\nwrites (aid, pid)\norganization (continent, homepage, name, oid)\ndomain_author (... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ntime_interval (period, begin_time, end_time)\nequipment_sequence (aircraft_code_sequence, aircraft_code)\ncity (city_code, city_name, state_code, country_name, time_zone_code)\ntime_zone (time_zone_code, time_zone_name, hours_from_gmt)\nmonth (month_... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nLocations (Location_ID, Location_Name, Address, Other_Details)\nTourist_Attraction_Features (Tourist_Attraction_ID, Feature_ID)\nHotels (hotel_id, star_rating_code, pets_allowed_yn, price_range, other_hotel_details)\nStreet_Markets (Market_ID, Market... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nprogram_course (program_id, course_id, workload, category)\nprogram (program_id, name, college, introduction)\ncomment_instructor (instructor_id, student_id, score, comment_text)\ngsi (course_offering_id, student_id)\nstudent_record (student_id, cour... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nairport_aircraft (ID, Airport_ID, Aircraft_ID)\nairport (Airport_ID, Airport_Name, Total_Passengers, %_Change_2007, International_Passengers, Domestic_Passengers, Transit_Passengers, Aircraft_Movements, Freight_Metric_Tonnes)\nmatch (Round, Location,... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nroller_coaster (Roller_Coaster_ID, Name, Park, Country_ID, Length, Height, Speed, Opened, Status)\ncountry (Country_ID, Name, Population, Area, Languages)\nWrite a SQL query to show the park of the roller coaster with the highest speed."
},
{
... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nCustomers (customer_id, payment_method_code, customer_code, customer_name, customer_address, customer_phone, customer_email)\nDepartment_Stores (dept_store_id, dept_store_chain_id, store_name, store_address, store_phone, store_email)\nSuppliers (supp... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ndays (days_code, day_name)\nflight (aircraft_code_sequence, airline_code, airline_flight, arrival_time, connections, departure_time, dual_carrier, flight_days, flight_id, flight_number, from_airport, meal_code, stops, time_elapsed, to_airport)\nstate... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nBookings (Booking_ID, Customer_ID, Workshop_Group_ID, Status_Code, Store_ID, Order_Date, Planned_Delivery_Date, Actual_Delivery_Date, Other_Order_Details)\nProducts (Product_ID, Product_Name, Product_Price, Product_Description, Other_Product_Service_... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nPlayer (pID, pName, yCard, HS)\nTryout (pID, cName, pPos, decision)\nCollege (cName, state, enr)\nWrite a SQL query to find the name and college of students whose decisions are yes in the tryout."
},
{
"from": "gpt",
"value": "SELECT T1.p... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nProduct_Suppliers (product_id, supplier_id, date_supplied_from, date_supplied_to, total_amount_purchased, total_value_purchased)\nCustomer_Addresses (customer_id, address_id, date_from, date_to)\nDepartments (department_id, dept_store_id, department_... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nriver (river_name, length, traverse, country_name)\nroad (road_name, state_name)\nmountain (mountain_name, mountain_altitude, state_name, country_name)\nstate (state_name, capital, population, area, country_name, density)\nhighlow (state_name, highes... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nmonth (month_number, month_name)\nrestriction (restriction_code, advance_purchase, stopovers, saturday_stay_required, minimum_stay, maximum_stay, application, no_discounts)\nfood_service (meal_code, meal_number, compartment, meal_description)\nfare_b... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nTracklists (AlbumId, Position, SongId)\nVocals (SongId, Bandmate, Type)\nPerformance (SongId, Bandmate, StagePosition)\nInstruments (SongId, BandmateId, Instrument)\nAlbums (AId, Title, Year, Label, Type)\nSongs (SongId, Title)\nBand (Id, Firstname, ... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ninstructor (instructor_id, name, uniqname)\nprogram (program_id, name, college, introduction)\ncomment_instructor (instructor_id, student_id, score, comment_text)\noffering_instructor (offering_instructor_id, offering_id, instructor_id)\nrequirement ... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nbridge (architect_id, id, name, location, length_meters, length_feet)\narchitect (id, name, nationality, gender)\nmill (architect_id, id, location, name, type, built_year, notes)\nWrite a SQL query to what are the ids and names of the architects who ... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nmonth (month_number, month_name)\nflight_leg (flight_id, leg_number, leg_flight)\nairport (airport_code, airport_name, airport_location, state_code, country_name, time_zone_code, minimum_connect_time)\naircraft (aircraft_code, aircraft_description, m... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nRef_Document_Types (Document_Type_Code, Document_Type_Name, Document_Type_Description)\nDocument_Locations (Document_ID, Location_Code, Date_in_Location_From, Date_in_Locaton_To)\nRef_Calendar (Calendar_Date, Day_Number)\nEmployees (Employee_ID, Role... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nprogram_course (program_id, course_id, workload, category)\nstudent (student_id, lastname, firstname, program_id, declare_major, total_credit, total_gpa, entered_as, admit_term, predicted_graduation_semester, degree, minor, internship)\ncourse_tags_c... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nprogram_course (program_id, course_id, workload, category)\ncourse_tags_count (course_id, clear_grading, pop_quiz, group_projects, inspirational, long_lectures, extra_credit, few_tests, good_feedback, tough_tests, heavy_papers, cares_for_students, he... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ndepartments (DEPARTMENT_ID, DEPARTMENT_NAME, MANAGER_ID, LOCATION_ID)\njob_history (EMPLOYEE_ID, START_DATE, END_DATE, JOB_ID, DEPARTMENT_ID)\njobs (JOB_ID, JOB_TITLE, MIN_SALARY, MAX_SALARY)\ncountries (COUNTRY_ID, COUNTRY_NAME, REGION_ID)\nlocation... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nflight_stop (flight_id, stop_number, stop_days, stop_airport, arrival_time, arrival_airline, arrival_flight_number, departure_time, departure_airline, departure_flight_number, stop_time)\nstate (state_code, state_name, country_name)\nfare (fare_id, f... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ncity (city_code, city_name, state_code, country_name, time_zone_code)\nfare (fare_id, from_airport, to_airport, fare_basis_code, fare_airline, restriction_code, one_direction_cost, round_trip_cost, round_trip_required)\nmonth (month_number, month_nam... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nregions (REGION_ID, REGION_NAME)\njob_history (EMPLOYEE_ID, START_DATE, END_DATE, JOB_ID, DEPARTMENT_ID)\ncountries (COUNTRY_ID, COUNTRY_NAME, REGION_ID)\ndepartments (DEPARTMENT_ID, DEPARTMENT_NAME, MANAGER_ID, LOCATION_ID)\nemployees (EMPLOYEE_ID, ... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ncity (city_code, city_name, state_code, country_name, time_zone_code)\nrestriction (restriction_code, advance_purchase, stopovers, saturday_stay_required, minimum_stay, maximum_stay, application, no_discounts)\ntime_zone (time_zone_code, time_zone_na... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nPlayer_Attributes (id, player_fifa_api_id, player_api_id, date, overall_rating, potential, preferred_foot, attacking_work_rate, defensive_work_rate, crossing, finishing, heading_accuracy, short_passing, volleys, dribbling, curve, free_kick_accuracy, ... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nta (campus_job_id, student_id, location)\njobs (job_id, job_title, description, requirement, city, state, country, zip)\nstudent (student_id, lastname, firstname, program_id, declare_major, total_credit, total_gpa, entered_as, admit_term, predicted_g... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ncustomers (id, first_name, last_name, company, address, city, state, country, postal_code, phone, fax, email, support_rep_id)\nartists (id, name)\ninvoices (id, customer_id, invoice_date, billing_address, billing_city, billing_state, billing_country,... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following 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)\nWrite a SQL query to list the distinct carriers of phones with memories bigg... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nfood_service (meal_code, meal_number, compartment, meal_description)\ndays (days_code, day_name)\ntime_zone (time_zone_code, time_zone_name, hours_from_gmt)\ntime_interval (period, begin_time, end_time)\naircraft (aircraft_code, aircraft_description,... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nairport (airport_code, airport_name, airport_location, state_code, country_name, time_zone_code, minimum_connect_time)\ndate_day (month_number, day_number, year, day_name)\nmonth (month_number, month_name)\nflight_stop (flight_id, stop_number, stop_d... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ncompartment_class (compartment, class_type)\nfare_basis (fare_basis_code, booking_class, class_type, premium, economy, discounted, night, season, basis_days)\naircraft (aircraft_code, aircraft_description, manufacturer, basic_type, engines, propulsio... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ncourse_tags_count (course_id, clear_grading, pop_quiz, group_projects, inspirational, long_lectures, extra_credit, few_tests, good_feedback, tough_tests, heavy_papers, cares_for_students, heavy_assignments, respected, participation, heavy_reading, to... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nStudent (StuID, LName, Fname, Age, Sex, Major, Advisor, city_code)\nClub (ClubID, ClubName, ClubDesc, ClubLocation)\nMember_of_club (StuID, ClubID, Position)\nWrite a SQL query to where is the club 'Pen and Paper Gaming' located?"
},
{
"from"... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nShip (Ship_ID, Name, Type, Built_Year, Class, Flag)\ncaptain (Captain_ID, Name, Ship_ID, age, Class, Rank)\nWrite a SQL query to how many different captain ranks are there?"
},
{
"from": "gpt",
"value": "SELECT COUNT( DISTINCT rank ) FROM... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nwrites (paperId, authorId)\ndataset (datasetId, datasetName)\njournal (journalId, journalName)\npaper (paperId, title, venueId, year, numCiting, numCitedBy, journalId)\npaperDataset (paperId, datasetId)\nkeyphrase (keyphraseId, keyphraseName)\npaperK... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nstudent (student_id, lastname, firstname, program_id, declare_major, total_credit, total_gpa, entered_as, admit_term, predicted_graduation_semester, degree, minor, internship)\ncourse_offering (offering_id, course_id, semester, section_number, start_... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nriver (river_name, length, traverse, country_name)\nmountain (mountain_name, mountain_altitude, state_name, country_name)\nlake (lake_name, area, state_name, country_name)\nstate (state_name, capital, population, area, country_name, density)\nroad (r... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nclass_of_service (booking_class, rank, class_description)\nflight_stop (flight_id, stop_number, stop_days, stop_airport, arrival_time, arrival_airline, arrival_flight_number, departure_time, departure_airline, departure_flight_number, stop_time)\nfli... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nfield (fieldid)\npaper (paperid, title, venueid, year, numciting, numcitedby, journalid)\nvenue (venueid, venuename)\nwrites (paperid, authorid)\nkeyphrase (keyphraseid, keyphrasename)\ndataset (datasetid, datasetname)\nauthor (authorid, authorname)\... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nResidents (resident_id, property_id, date_moved_in, date_moved_out, other_details)\nThings (thing_id, organization_id, Type_of_Thing_Code, service_type_code, service_details)\nCustomers (customer_id, customer_details)\nOrganizations (organization_id,... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\naircraft (aid, name, distance)\ncertificate (eid, aid)\nflight (flno, origin, destination, distance, departure_date, arrival_date, price, aid)\nemployee (eid, name, salary)\nWrite a SQL query to what are the names of all employees who are not certifi... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ncountries (COUNTRY_ID, COUNTRY_NAME, REGION_ID)\njob_history (EMPLOYEE_ID, START_DATE, END_DATE, JOB_ID, DEPARTMENT_ID)\nemployees (EMPLOYEE_ID, FIRST_NAME, LAST_NAME, EMAIL, PHONE_NUMBER, HIRE_DATE, JOB_ID, SALARY, COMMISSION_PCT, MANAGER_ID, DEPART... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ncourse_offering (offering_id, course_id, semester, section_number, start_time, end_time, monday, tuesday, wednesday, thursday, friday, saturday, sunday, has_final_project, has_final_exam, textbook, class_address, allow_audit)\nrequirement (requiremen... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nrestriction (restriction_code, advance_purchase, stopovers, saturday_stay_required, minimum_stay, maximum_stay, application, no_discounts)\ntime_interval (period, begin_time, end_time)\nfood_service (meal_code, meal_number, compartment, meal_descript... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\narea (course_id, area)\ngsi (course_offering_id, student_id)\ncomment_instructor (instructor_id, student_id, score, comment_text)\ncourse (course_id, name, department, number, credits, advisory_requirement, enforced_requirement, description, num_seme... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nApartment_Facilities (apt_id, facility_code)\nApartment_Bookings (apt_booking_id, apt_id, guest_id, booking_status_code, booking_start_date, booking_end_date)\nApartment_Buildings (building_id, building_short_name, building_full_name, building_descri... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nlake (lake_name, area, state_name, country_name)\nriver (river_name, length, traverse, country_name)\nroad (road_name, state_name)\ncity (city_name, state_name, population, country_name)\nborder_info (state_name, border)\nstate (state_name, capital, ... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\npaperdataset (paperid, datasetid)\nwrites (paperid, authorid)\nauthor (authorid, authorname)\npaperkeyphrase (paperid, keyphraseid)\nvenue (venueid, venuename)\njournal (journalid, journalname)\npaper (paperid, title, venueid, year, numciting, numcit... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nlocation (RESTAURANT_ID, HOUSE_NUMBER, STREET_NAME, CITY_NAME)\nrestaurant (ID, NAME, FOOD_TYPE, CITY_NAME, RATING)\ngeographic (CITY_NAME, COUNTY, REGION)\nWrite a SQL query to where is a restaurant in alameda ?"
},
{
"from": "gpt",
"val... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nElimination (Elimination_ID, Wrestler_ID, Team, Eliminated_By, Elimination_Move, Time)\nwrestler (Wrestler_ID, Name, Reign, Days_held, Location, Event)\nWrite a SQL query to show teams that have suffered more than three eliminations."
},
{
"f... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nstudent (student_id, lastname, firstname, program_id, declare_major, total_credit, total_gpa, entered_as, admit_term, predicted_graduation_semester, degree, minor, internship)\ngsi (course_offering_id, student_id)\nta (campus_job_id, student_id, loca... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ndays (days_code, day_name)\ncode_description (code, description)\nmonth (month_number, month_name)\nfood_service (meal_code, meal_number, compartment, meal_description)\nequipment_sequence (aircraft_code_sequence, aircraft_code)\nflight (aircraft_cod... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nrestriction (restriction_code, advance_purchase, stopovers, saturday_stay_required, minimum_stay, maximum_stay, application, no_discounts)\ntime_interval (period, begin_time, end_time)\ncity (city_code, city_name, state_code, country_name, time_zone_... | processed_unified_sqlv1 | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.