conversations listlengths 2 2 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Given the following schema:\nrestriction (restriction_code, advance_purchase, stopovers, saturday_stay_required, minimum_stay, maximum_stay, application, no_discounts)\nclass_of_service (booking_class, rank, class_description)\ncompartment_class (compartment, class_type)\nstate ... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\narea (course_id, area)\nprogram_requirement (program_id, category, min_credit, additional_req)\nstudent (student_id, lastname, firstname, program_id, declare_major, total_credit, total_gpa, entered_as, admit_term, predicted_graduation_semester, degre... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ntime_interval (period, begin_time, end_time)\nclass_of_service (booking_class, rank, class_description)\nfare_basis (fare_basis_code, booking_class, class_type, premium, economy, discounted, night, season, basis_days)\nairport_service (city_code, air... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nairline (airline_code, airline_name, note)\nfare_basis (fare_basis_code, booking_class, class_type, premium, economy, discounted, night, season, basis_days)\ndate_day (month_number, day_number, year, day_name)\nstate (state_code, state_name, country_... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nmovie (movie_id, Title, Year, Director, Budget_million, Gross_worldwide)\nbook_club (book_club_id, Year, Author_or_Editor, Book_Title, Publisher, Category, Result)\nculture_company (Company_name, Type, Incorporated_in, Group_Equity_Shareholding, book... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nvolume (Volume_ID, Volume_Issue, Issue_Date, Weeks_on_Top, Song, Artist_ID)\nartist (Artist_ID, Artist, Age, Famous_Title, Famous_Release_date)\nmusic_festival (ID, Music_Festival, Date_of_ceremony, Category, Volume, Result)\nWrite a SQL query to wha... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nrequirement (requirement_id, requirement, college)\njobs (job_id, job_title, description, requirement, city, state, country, zip)\nsemester (semester_id, semester, year)\nprogram_requirement (program_id, category, min_credit, additional_req)\nprogram... | 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 what are the names and flags of ships that do not have a captain with the rank of Midshipman?"
},
{
"from": "gpt"... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\npaperdataset (paperid, datasetid)\npaperfield (fieldid, paperid)\ndataset (datasetid, datasetname)\nauthor (authorid, authorname)\njournal (journalid, journalname)\npaper (paperid, title, venueid, year, numciting, numcitedby, journalid)\nfield (field... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ncity (city_code, city_name, state_code, country_name, time_zone_code)\nfare_basis (fare_basis_code, booking_class, class_type, premium, economy, discounted, night, season, basis_days)\nstate (state_code, state_name, country_name)\nequipment_sequence ... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nActivity (actid, activity_name)\nStudent (StuID, LName, Fname, Age, Sex, Major, Advisor, city_code)\nParticipates_in (stuid, actid)\nFaculty_Participates_in (FacID, actid)\nFaculty (FacID, Lname, Fname, Rank, Sex, Phone, Room, Building)\nWrite a SQL ... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nequipment_sequence (aircraft_code_sequence, aircraft_code)\nfood_service (meal_code, meal_number, compartment, meal_description)\nground_service (city_code, airport_code, transport_type, ground_fare)\ncity (city_code, city_name, state_code, country_n... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nlake (lake_name, area, country_name, state_name)\nmountain (mountain_name, mountain_altitude, country_name, state_name)\nborder_info (state_name, border)\nstate (state_name, population, area, country_name, capital, density)\nhighlow (state_name, high... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nkeyphrase (keyphraseId, keyphraseName)\nauthor (authorId, authorName)\nwrites (paperId, authorId)\ncite (citingPaperId, citedPaperId)\npaperKeyphrase (paperId, keyphraseId)\njournal (journalId, journalName)\npaperDataset (paperId, datasetId)\ndataset... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ncity (city_code, city_name, state_code, country_name, time_zone_code)\nflight_leg (flight_id, leg_number, leg_flight)\ntime_zone (time_zone_code, time_zone_name, hours_from_gmt)\nfood_service (meal_code, meal_number, compartment, meal_description)\nm... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ncity (City_ID, County_ID, Name, White, Black, Amerindian, Asian, Multiracial, Hispanic)\ncounty_public_safety (County_ID, Name, Population, Police_officers, Residents_per_officer, Case_burden, Crime_rate, Police_force, Location)\nWrite a SQL query to... | 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)\nflight_leg (flight_id, leg_number, leg_flight)\nequipment_sequ... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ndays (days_code, day_name)\nfood_service (meal_code, meal_number, compartment, meal_description)\nclass_of_service (booking_class, rank, class_description)\ndate_day (month_number, day_number, year, day_name)\nairport (airport_code, airport_name, air... | 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)\ndual_carrier (main_airline, low_flight_number, high_flight_number, dual_airline, service_name)\ncity (city_cod... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nneighborhood (id, business_id, neighborhood_name)\ncategory (id, business_id, category_name)\ncheckin (cid, business_id, count, day)\ntip (tip_id, business_id, text, user_id, likes, year, month)\nuser (uid, user_id, name)\nbusiness (bid, business_id,... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ncity (city_name, population, country_name, state_name)\nborder_info (state_name, border)\nstate (state_name, population, area, country_name, capital, density)\nhighlow (state_name, highest_elevation, lowest_point, highest_point, lowest_elevation)\nri... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nhighlow (state_name, highest_elevation, lowest_point, highest_point, lowest_elevation)\nlake (lake_name, area, country_name, state_name)\nriver (river_name, length, country_name, traverse)\ncity (city_name, population, country_name, state_name)\nstat... | 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)\nflight (aircraft_code_sequence, airline_code, airline_flight, ... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\noffering_instructor (offering_instructor_id, offering_id, instructor_id)\nrequirement (requirement_id, requirement, college)\nprogram_requirement (program_id, category, min_credit, additional_req)\nta (campus_job_id, student_id, location)\ncourse_off... | 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)\nairline (airline_code, airline_name, note)\nfood_service (meal_code, meal_number, compartment, meal_descriptio... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nServices (Service_ID, Service_Type_Code, Workshop_Group_ID, Product_Description, Product_Name, Product_Price, Other_Product_Service_Details)\nCustomers (Customer_ID, Address_ID, Customer_Name, Customer_Phone, Customer_Email_Address, Other_Details)\nP... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nlake (lake_name, area, state_name, country_name)\nhighlow (state_name, highest_point, highest_elevation, lowest_point, lowest_elevation)\ncity (city_name, state_name, population, country_name)\nborder_info (state_name, border)\nriver (river_name, len... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ndate_day (month_number, day_number, year, day_name)\ntime_interval (period, begin_time, end_time)\nstate (state_code, state_name, country_name)\ndual_carrier (main_airline, low_flight_number, high_flight_number, dual_airline, service_name)\ntime_zone... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nmountain (mountain_name, mountain_altitude, state_name, country_name)\nborder_info (state_name, border)\nroad (road_name, state_name)\nlake (lake_name, area, state_name, country_name)\ncity (city_name, state_name, population, country_name)\nriver (ri... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nfare_basis (fare_basis_code, booking_class, class_type, premium, economy, discounted, night, season, basis_days)\ndate_day (month_number, day_number, year, day_name)\nairport_service (city_code, airport_code, miles_distant, direction, minutes_distant... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nriver (river_name, length, traverse, country_name)\ncity (city_name, state_name, population, country_name)\nstate (state_name, capital, population, area, country_name, density)\nborder_info (state_name, border)\nmountain (mountain_name, mountain_alti... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nhighlow (state_name, highest_point, highest_elevation, lowest_point, lowest_elevation)\nroad (road_name, state_name)\nstate (state_name, capital, population, area, country_name, density)\ncity (city_name, state_name, population, country_name)\nmounta... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ngeographic (CITY_NAME, COUNTY, REGION)\nlocation (RESTAURANT_ID, HOUSE_NUMBER, STREET_NAME, CITY_NAME)\nrestaurant (ID, NAME, FOOD_TYPE, CITY_NAME, RATING)\nWrite a SQL query to where are some restaurants good for arabic food on buchanan in san franc... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nrestaurant (ID, NAME, FOOD_TYPE, CITY_NAME, RATING)\nlocation (RESTAURANT_ID, HOUSE_NUMBER, STREET_NAME, CITY_NAME)\ngeographic (CITY_NAME, COUNTY, REGION)\nWrite a SQL query to give me a restaurant on bethel island rd in bethel island ?"
},
{
... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ncopyright (id, msid, cid)\nwritten_by (id, msid, wid)\ncast (id, msid, aid, role)\ntags (id, msid, kid)\nwriter (wid, gender, name, nationality, num_of_episodes, birth_city, birth_year)\nclassification (id, msid, gid)\nactor (aid, gender, name, natio... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nteachers (LastName, FirstName, Classroom)\nlist (LastName, FirstName, Grade, Classroom)\nWrite a SQL query to which are the first and last names of the students taught by MARROTTE KIRK?"
},
{
"from": "gpt",
"value": "SELECT T1.firstname ,... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nairline (airline_code, airline_name, note)\ncompartment_class (compartment, class_type)\nclass_of_service (booking_class, rank, class_description)\nflight_fare (flight_id, fare_id)\ncode_description (code, description)\nairport_service (city_code, ai... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nclub (Club_ID, Club_name, Region, Start_year)\ncoach (Coach_ID, Coach_name, Gender, Club_ID, Rank)\nplayer (Player_ID, Sponsor_name, Player_name, Gender, Residence, Occupation, Votes, Rank)\nmatch_result (Rank, Club_ID, Gold, Big_Silver, Small_Silver... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nfare_basis (fare_basis_code, booking_class, class_type, premium, economy, discounted, night, season, basis_days)\nstate (state_code, state_name, country_name)\nairport_service (city_code, airport_code, miles_distant, direction, minutes_distant)\nrest... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nairports (apid, name, city, country, x, y, elevation, iata, icao)\nroutes (rid, dst_apid, dst_ap, src_apid, src_ap, alid, airline, codeshare)\nairlines (alid, name, iata, icao, callsign, country, active)\nWrite a SQL query to what is the total number... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nsong (song_name, artist_name, country, f_id, genre_is, rating, languages, releasedate, resolution)\nartist (artist_name, country, gender, preferred_genre)\ngenre (g_name, rating, most_popular_in)\nfiles (f_id, artist_name, file_size, duration, format... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nteachers (LastName, FirstName, Classroom)\nlist (LastName, FirstName, Grade, Classroom)\nWrite a SQL query to how many teachers does the student named MADLOCK RAY have?"
},
{
"from": "gpt",
"value": "SELECT COUNT( * ) FROM list AS T1 JOIN... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nrestaurant (id, name, food_type, city_name, rating)\nlocation (restaurant_id, house_number, street_name, city_name)\ngeographic (city_name, county, region)\nWrite a SQL query to give me a good restaurant in the yosemite and mono lake area for french ... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nwrites (paperId, authorId)\npaper (paperId, title, venueId, year, numCiting, numCitedBy, journalId)\njournal (journalId, journalName)\nkeyphrase (keyphraseId, keyphraseName)\ncite (citingPaperId, citedPaperId)\nvenue (venueId, venueName)\nauthor (aut... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\narea (course_id, area)\nstudent (student_id, lastname, firstname, program_id, declare_major, total_credit, total_gpa, entered_as, admit_term, predicted_graduation_semester, degree, minor, internship)\ncourse_prerequisite (pre_course_id, course_id)\nc... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nequipment_sequence (aircraft_code_sequence, aircraft_code)\nairport_service (city_code, airport_code, miles_distant, direction, minutes_distant)\nstate (state_code, state_name, country_name)\ntime_zone (time_zone_code, time_zone_name, hours_from_gmt)... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nmission (Mission_ID, Ship_ID, Code, Launched_Year, Location, Speed_knots, Fate)\nship (Ship_ID, Name, Type, Nationality, Tonnage)\nWrite a SQL query to show different types of ships and the average tonnage of ships of each type."
},
{
"from":... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nground_service (city_code, airport_code, transport_type, ground_fare)\nfare (fare_id, from_airport, to_airport, fare_basis_code, fare_airline, restriction_code, one_direction_cost, round_trip_cost, round_trip_required)\ntime_interval (period, begin_t... | 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)\nApartment_Buildings (building_id, building_short_name, building_full_name, building_descri... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nauthor (aid, homepage, name, oid)\ndomain_journal (did, jid)\npublication (abstract, cid, citation_num, jid, pid, reference_num, title, year)\npublication_keyword (kid, pid)\ndomain (did, name)\ndomain_publication (did, pid)\nkeyword (keyword, kid)\n... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ncourse (course_id, name, department, number, credits, advisory_requirement, enforced_requirement, description, num_semesters, num_enrolled, has_discussion, has_lab, has_projects, has_exams, num_reviews, clarity_score, easiness_score, helpfulness_scor... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ndomain_keyword (did, kid)\ndomain_conference (cid, did)\ndomain_author (aid, did)\nwrites (aid, pid)\ncite (cited, citing)\ndomain_publication (did, pid)\nconference (cid, homepage, name)\njournal (homepage, jid, name)\npublication (abstract, cid, ci... | 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)\ntime_zone (time_zone_code, time_zone_name, hours_from_gmt)\ncode_description... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nmusic_festival (ID, Music_Festival, Date_of_ceremony, Category, Volume, Result)\nvolume (Volume_ID, Volume_Issue, Issue_Date, Weeks_on_Top, Song, Artist_ID)\nartist (Artist_ID, Artist, Age, Famous_Title, Famous_Release_date)\nWrite a SQL query to ret... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nwrites (paperId, authorId)\npaper (paperId, title, venueId, year, numCiting, numCitedBy, journalId)\ndataset (datasetId, datasetName)\npaperKeyphrase (paperId, keyphraseId)\ncite (citingPaperId, citedPaperId)\nauthor (authorId, authorName)\npaperData... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nborder_info (state_name, border)\nstate (state_name, capital, population, area, country_name, density)\nriver (river_name, length, traverse, country_name)\ncity (city_name, state_name, population, country_name)\nhighlow (state_name, highest_point, hi... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ntweets (id, uid, text, createdate)\nuser_profiles (uid, name, email, partitionid, followers)\nfollows (f1, f2)\nWrite a SQL query to find the name of each user and number of tweets tweeted by each of them."
},
{
"from": "gpt",
"value": "S... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\noffering_instructor (offering_instructor_id, offering_id, instructor_id)\nsemester (semester_id, semester, year)\nstudent_record (student_id, course_id, semester, grade, how, transfer_source, earn_credit, repeat_term, test_id)\ncourse_offering (offer... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nstation (Station_ID, Name, Annual_entry_exit, Annual_interchanges, Total_Passengers, Location, Main_Services, Number_of_Platforms)\ntrain (Train_ID, Name, Time, Service)\ntrain_station (Train_ID, Station_ID)\nWrite a SQL query to show all locations w... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nmusical (Musical_ID, Name, Year, Award, Category, Nominee, Result)\nactor (Actor_ID, Name, Musical_ID, Character, Duration, age)\nWrite a SQL query to return the most frequent result across all musicals."
},
{
"from": "gpt",
"value": "SEL... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nclass (CLASS_CODE, CRS_CODE, CLASS_SECTION, CLASS_TIME, CLASS_ROOM, PROF_NUM)\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)\nstude... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nriver (river_name, length, country_name, traverse)\nmountain (mountain_name, mountain_altitude, country_name, state_name)\nlake (lake_name, area, country_name, state_name)\nborder_info (state_name, border)\nstate (state_name, population, area, countr... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\npaper (paperId, title, venueId, year, numCiting, numCitedBy, journalId)\nauthor (authorId, authorName)\nwrites (paperId, authorId)\ndataset (datasetId, datasetName)\njournal (journalId, journalName)\npaperDataset (paperId, datasetId)\ncite (citingPap... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nRef_Characteristic_Types (characteristic_type_code, characteristic_type_description)\nCharacteristics (characteristic_id, characteristic_type_code, characteristic_data_type, characteristic_name, other_characteristic_details)\nProduct_Characteristics ... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nship (Ship_ID, Name, Type, Nationality, Tonnage)\nmission (Mission_ID, Ship_ID, Code, Launched_Year, Location, Speed_knots, Fate)\nWrite a SQL query to list the nations that have more than two ships."
},
{
"from": "gpt",
"value": "SELECT ... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nStudent (StuID, LName, Fname, Age, Sex, Major, Advisor, city_code)\nAllergy_Type (Allergy, AllergyType)\nHas_Allergy (StuID, Allergy)\nWrite a SQL query to what are the full names of all students"
},
{
"from": "gpt",
"value": "SELECT Fnam... | 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)\naircraft (aircraft_code, aircraft_description, manufacturer, b... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\noffering_instructor (offering_instructor_id, offering_id, instructor_id)\nprogram (program_id, name, college, introduction)\nsemester (semester_id, semester, year)\nprogram_requirement (program_id, category, min_credit, additional_req)\njobs (job_id,... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nstation (id, name, lat, long, dock_count, city, installation_date)\ntrip (id, duration, start_date, start_station_name, start_station_id, end_date, end_station_name, end_station_id, bike_id, subscription_type, zip_code)\nstatus (station_id, bikes_ava... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nParticipates_in (stuid, actid)\nActivity (actid, activity_name)\nFaculty (FacID, Lname, Fname, Rank, Sex, Phone, Room, Building)\nFaculty_Participates_in (FacID, actid)\nStudent (StuID, LName, Fname, Age, Sex, Major, Advisor, city_code)\nWrite a SQL ... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nsubmission (Submission_ID, Scores, Author, College)\nworkshop (Workshop_ID, Date, Venue, Name)\nAcceptance (Submission_ID, Workshop_ID, Result)\nWrite a SQL query to what are the authors of submissions and their colleges?"
},
{
"from": "gpt",... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nCouncil_Tax (council_tax_id, cmi_cross_ref_id)\nParking_Fines (council_tax_id, cmi_cross_ref_id)\nBenefits_Overpayments (council_tax_id, cmi_cross_ref_id)\nElectoral_Register (electoral_register_id, cmi_cross_ref_id)\nRent_Arrears (council_tax_id, cm... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nmember (Member_ID, Member_Name, Party_ID, In_office)\nparty (Party_ID, Minister, Took_office, Left_office, Region_ID, Party_name)\nparty_events (Event_ID, Event_Name, Party_ID, Member_in_charge_ID)\nregion (Region_ID, Region_name, Date, Label, Format... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ncourse (course_id, name, department, number, credits, advisory_requirement, enforced_requirement, description, num_semesters, num_enrolled, has_discussion, has_lab, has_projects, has_exams, num_reviews, clarity_score, easiness_score, helpfulness_scor... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ndataset (datasetid, datasetname)\nfield (fieldid)\njournal (journalid, journalname)\ncite (citingpaperid, citedpaperid)\nwrites (paperid, authorid)\npaper (paperid, title, venueid, year, numciting, numcitedby, journalid)\nkeyphrase (keyphraseid, keyp... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nbusiness (bid, business_id, name, full_address, city, latitude, longitude, review_count, is_open, rating, state)\nuser (uid, user_id, name)\ntip (tip_id, business_id, text, user_id, likes, year, month)\ncategory (id, business_id, category_name)\nneig... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nplayer (Player_ID, Player, Years_Played, Total_WL, Singles_WL, Doubles_WL, Team)\ncountry (Country_id, Country_name, Capital, Official_native_language)\nmatch_season (Season, Player, Position, Country, Team, Draft_Pick_Number, Draft_Class, College)\n... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ncourse (course_id, name, department, number, credits, advisory_requirement, enforced_requirement, description, num_semesters, num_enrolled, has_discussion, has_lab, has_projects, has_exams, num_reviews, clarity_score, easiness_score, helpfulness_scor... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nfood_service (meal_code, meal_number, compartment, meal_description)\ncode_description (code, description)\ndual_carrier (main_airline, low_flight_number, high_flight_number, dual_airline, service_name)\nairport (airport_code, airport_name, airport_l... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nground_service (city_code, airport_code, transport_type, ground_fare)\nairport (airport_code, airport_name, airport_location, state_code, country_name, time_zone_code, minimum_connect_time)\nstate (state_code, state_name, country_name)\nfare (fare_id... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nfood_service (meal_code, meal_number, compartment, meal_description)\nground_service (city_code, airport_code, transport_type, ground_fare)\ndual_carrier (main_airline, low_flight_number, high_flight_number, dual_airline, service_name)\nflight_stop (... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\neditor (Editor_ID, Name, Age)\njournal_committee (Editor_ID, Journal_ID, Work_Type)\njournal (Journal_ID, Date, Theme, Sales)\nWrite a SQL query to show the names of editors that are on the committee of journals with sales bigger than 3000."
},
{... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nairline (airline_code, airline_name, note)\ntime_interval (period, begin_time, end_time)\ntime_zone (time_zone_code, time_zone_name, hours_from_gmt)\nfood_service (meal_code, meal_number, compartment, meal_description)\nflight (aircraft_code_sequence... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ndate_day (month_number, day_number, year, day_name)\nairport (airport_code, airport_name, airport_location, state_code, country_name, time_zone_code, minimum_connect_time)\nfare (fare_id, from_airport, to_airport, fare_basis_code, fare_airline, restr... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nCustomers (Customer_ID, Customer_name)\nCustomers_Policies (Customer_ID, Policy_ID, Date_Opened, Date_Closed)\nSettlements (Settlement_ID, Claim_ID, Effective_Date, Settlement_Amount)\nServices (Service_ID, Service_name)\nFirst_Notification_of_Loss (... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ndays (days_code, day_name)\ncompartment_class (compartment, class_type)\ntime_zone (time_zone_code, time_zone_name, hours_from_gmt)\nairline (airline_code, airline_name, note)\nairport_service (city_code, airport_code, miles_distant, direction, minut... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nstate (state_name, capital, population, area, country_name, density)\nborder_info (state_name, border)\nmountain (mountain_name, mountain_altitude, state_name, country_name)\nhighlow (state_name, highest_point, highest_elevation, lowest_point, lowest... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ncity (city_name, population, country_name, state_name)\nlake (lake_name, area, country_name, state_name)\nhighlow (state_name, highest_elevation, lowest_point, highest_point, lowest_elevation)\nstate (state_name, population, area, country_name, capit... | 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)\nairline (airline_code, airline_name, note)\nclass_of_service (booking_class, rank, ... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nairport_service (city_code, airport_code, miles_distant, direction, minutes_distant)\ncompartment_class (compartment, class_type)\nfood_service (meal_code, meal_number, compartment, meal_description)\ntime_zone (time_zone_code, time_zone_name, hours_... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nmonth (month_number, month_name)\ntime_zone (time_zone_code, time_zone_name, hours_from_gmt)\ndays (days_code, day_name)\nfood_service (meal_code, meal_number, compartment, meal_description)\ntime_interval (period, begin_time, end_time)\nstate (state... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ndataset (datasetId, datasetName)\npaperDataset (paperId, datasetId)\nwrites (paperId, authorId)\npaper (paperId, title, venueId, year, numCiting, numCitedBy, journalId)\npaperKeyphrase (paperId, keyphraseId)\nkeyphrase (keyphraseId, keyphraseName)\nc... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ncity (city_code, city_name, state_code, country_name, time_zone_code)\ndate_day (month_number, day_number, year, day_name)\nflight_stop (flight_id, stop_number, stop_days, stop_airport, arrival_time, arrival_airline, arrival_flight_number, departure_... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nhighlow (state_name, highest_elevation, lowest_point, highest_point, lowest_elevation)\nriver (river_name, length, country_name, traverse)\nlake (lake_name, area, country_name, state_name)\ncity (city_name, population, country_name, state_name)\nbord... | 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)\ndate_day (month_number, day_number, year, day_name)\nstate (st... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nBusiness_Rates (business_rates_id, cmi_cross_ref_id)\nCustomer_Master_Index (master_customer_id, cmi_details)\nRent_Arrears (council_tax_id, cmi_cross_ref_id)\nBenefits_Overpayments (council_tax_id, cmi_cross_ref_id)\nCouncil_Tax (council_tax_id, cmi... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nprogram (program_id, name, college, introduction)\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_assig... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\ninstructor (instructor_id, name, uniqname)\ncomment_instructor (instructor_id, student_id, score, comment_text)\ncourse (course_id, name, department, number, credits, advisory_requirement, enforced_requirement, description, num_semesters, num_enrolle... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\naircraft (aircraft_code, aircraft_description, manufacturer, basic_type, engines, propulsion, wide_body, wing_span, length, weight, capacity, pay_load, cruising_speed, range_miles, pressurized)\nflight_stop (flight_id, stop_number, stop_days, stop_ai... | processed_unified_sqlv1 | chosen |
[
{
"from": "human",
"value": "Given the following schema:\nhosting_city (Year, Match_ID, Host_City)\ntemperature (City_ID, Jan, Feb, Mar, Apr, Jun, Jul, Aug, Sep, Oct, Nov, Dec)\ncity (City_ID, City, Hanzi, Hanyu_Pinyin, Regional_Population, GDP)\nmatch (Match_ID, Date, Venue, Score, Result, Competition)\nWr... | processed_unified_sqlv1 | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.