schema
stringlengths 20
14.6k
| query
stringlengths 17
2.58k
| question
stringlengths 8
1.06k
|
---|---|---|
<table0>[compartment_class] { <col0>[compartment]:[varchar] <col1>[class_type]:[varchar] } <table1>[time_interval] { <col0>[period]:[text] <col1>[begin_time]:[int] <col2>[end_time]:[int] } <table2>[class_of_service] { <col0>[booking_class]:[varchar] <col1>[rank]:[int] <col2>[class_description]:[text] } <table3>[city] { <col0>[city_code]:[varchar] <col1>[city_name]:[varchar] <col2>[state_code]:[varchar] <col3>[country_name]:[varchar] <col4>[time_zone_code]:[varchar] } <table4>[code_description] { <col0>[code]:[varchar] <col1>[description]:[text] } <table5>[aircraft] { <col0>[aircraft_code]:[varchar] <col1>[aircraft_description]:[varchar] <col2>[manufacturer]:[varchar] <col3>[basic_type]:[varchar] <col4>[engines]:[int] <col5>[propulsion]:[varchar] <col6>[wide_body]:[varchar] <col7>[wing_span]:[int] <col8>[length]:[int] <col9>[weight]:[int] <col10>[capacity]:[int] <col11>[pay_load]:[int] <col12>[cruising_speed]:[int] <col13>[range_miles]:[int] <col14>[pressurized]:[varchar] } <table6>[flight] { <col0>[aircraft_code_sequence]:[text] <col1>[airline_code]:[varchar] } <table7>[date_day] { <col0>[month_number]:[int] <col1>[day_number]:[int] <col2>[year]:[int] <col3>[day_name]:[varchar] } <table8>[state] { <col0>[state_code]:[text] <col1>[state_name]:[text] <col2>[country_name]:[text] } <table9>[airline] { <col0>[airline_code]:[varchar] <col1>[airline_name]:[text] <col2>[note]:[text] } <table10>[month] { <col0>[month_number]:[int] <col1>[month_name]:[text] } <table11>[time_zone] { <col0>[time_zone_code]:[text] <col1>[time_zone_name]:[text] <col2>[hours_from_gmt]:[int] } <table12>[equipment_sequence] { <col0>[aircraft_code_sequence]:[varchar] <col1>[aircraft_code]:[varchar] } <table13>[dual_carrier] { <col0>[main_airline]:[varchar] <col1>[low_flight_number]:[int] <col2>[high_flight_number]:[int] <col3>[dual_airline]:[varchar] <col4>[service_name]:[text] } <table14>[flight_leg] { <col0>[flight_id]:[int] <col1>[leg_number]:[int] <col2>[leg_flight]:[int] } <table15>[flight_fare] { <col0>[flight_id]:[int] <col1>[fare_id]:[int] } <table16>[days] { <col0>[days_code]:[varchar] <col1>[day_name]:[varchar] } <table17>[ground_service] { <col0>[city_code]:[text] <col1>[airport_code]:[text] <col2>[transport_type]:[text] <col3>[ground_fare]:[int] } <table18>[airport] { <col0>[airport_code]:[varchar] <col1>[airport_name]:[text] <col2>[airport_location]:[text] <col3>[state_code]:[varchar] <col4>[country_name]:[varchar] <col5>[time_zone_code]:[varchar] <col6>[minimum_connect_time]:[int] } <table19>[flight_stop] { <col0>[flight_id]:[int] <col1>[stop_number]:[int] <col2>[stop_days]:[text] <col3>[stop_airport]:[text] <col4>[arrival_time]:[int] <col5>[arrival_airline]:[text] <col6>[arrival_flight_number]:[int] <col7>[departure_time]:[int] <col8>[departure_airline]:[text] <col9>[departure_flight_number]:[int] <col10>[stop_time]:[int] } <table20>[airport_service] { <col0>[city_code]:[varchar] <col1>[airport_code]:[varchar] <col2>[miles_distant]:[int] <col3>[direction]:[varchar] <col4>[minutes_distant]:[int] } <table21>[food_service] { <col0>[meal_code]:[text] <col1>[meal_number]:[int] <col2>[compartment]:[text] <col3>[meal_description]:[varchar] } <table22>[fare_basis] { <col0>[fare_basis_code]:[text] <col1>[booking_class]:[text] <col2>[class_type]:[text] <col3>[premium]:[text] <col4>[economy]:[text] <col5>[discounted]:[text] <col6>[night]:[text] <col7>[season]:[text] <col8>[basis_days]:[text] } <table23>[restriction] { <col0>[restriction_code]:[text] <col1>[advance_purchase]:[int] <col2>[stopovers]:[text] <col3>[saturday_stay_required]:[text] <col4>[minimum_stay]:[int] <col5>[maximum_stay]:[int] <col6>[application]:[text] <col7>[no_discounts]:[text] } <table24>[fare] { <col0>[fare_id]:[int] <col1>[from_airport]:[varchar] <col2>[to_airport]:[varchar] <col3>[fare_basis_code]:[text] <col4>[fare_airline]:[text] <col5>[restriction_code]:[text] <col6>[one_direction_cost]:[int] <col7>[round_trip_cost]:[int] <col8>[round_trip_required]:[varchar] } | SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'WASHINGTON' AND ground_service.city_code = city.city_code AND ground_service.transport_type = 'RENTAL CAR' | RENTAL CAR in WASHINGTON |
<table0>[imports] { <col0>[INT]:[product] <col1>[TEXT]:[quantity] <col2>[INT]:[country] <col3>[TEXT]:[INSERT] } | SELECT SUM( quantity ) FROM `<table0>` WHERE product LIKE '%fish%' AND country LIKE 'Asia%'; | What is the total weight of fish imported from Asia? |
<table0>[grapes] { <col0>[INTEGER]:[Grape] <col1>[TEXT]:[Color] } <table1>[wine] { <col0>[INTEGER]:[Grape] <col1>[TEXT]:[Winery] <col2>[TEXT]:[Appelation] <col3>[TEXT]:[State] <col4>[TEXT]:[TEXT] <col5>[Year]:[INTEGER] <col6>[Price]:[INTEGER] <col7>[Score]:[INTEGER] <col8>[Cases]:[INTEGER] <col9>[Drink]:[TEXT] } <table2>[appellations] { <col0>[INTEGER]:[Appelation] <col1>[TEXT]:[County] <col2>[TEXT]:[State] <col3>[TEXT]:[Area] <col4>[TEXT]:[isAVA] } | SELECT Year, MAX( `<col6>` ) FROM `<table1>` GROUP BY `<col5>` ORDER BY `<col5>` | What is the maximum price of wines in each year?, sort by the X-axis from low to high. |
<table0>[table_name_25] { <col0>[date]:[VARCHAR] <col1>[loss]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "politte ( 0-2 )" | What was the date of the game that had a loss of Politte (0-2)? |
<table0>[Customer_Contact_Channels] { <col0>[customer_id]:[INTEGER] <col1>[channel_code]:[VARCHAR] <col2>[active_from_date]:[DATETIME] <col3>[active_to_date]:[DATETIME] <col4>[contact_number]:[VARCHAR] } <table1>[Addresses] { <col0>[address_id]:[INTEGER] <col1>[address_content]:[VARCHAR] <col2>[city]:[VARCHAR] <col3>[zip_postcode]:[VARCHAR] <col4>[state_province_county]:[VARCHAR] <col5>[country]:[VARCHAR] <col6>[other_address_details]:[VARCHAR] } <table2>[Customer_Addresses] { <col0>[customer_id]:[INTEGER] <col1>[address_id]:[INTEGER] <col2>[date_address_from]:[DATETIME] <col3>[address_type]:[VARCHAR] <col4>[date_address_to]:[DATETIME] } <table3>[Customer_Orders] { <col0>[order_id]:[INTEGER] <col1>[customer_id]:[INTEGER] <col2>[order_status]:[VARCHAR] <col3>[order_date]:[DATETIME] <col4>[order_details]:[VARCHAR] } <table4>[Order_Items] { <col0>[order_id]:[INTEGER] <col1>[product_id]:[INTEGER] <col2>[order_quantity]:[VARCHAR] } <table5>[Products] { <col0>[product_id]:[INTEGER] <col1>[product_details]:[VARCHAR] } <table6>[Customers] { <col0>[customer_id]:[INTEGER] <col1>[payment_method]:[VARCHAR] <col2>[customer_name]:[VARCHAR] <col3>[date_became_customer]:[DATETIME] <col4>[other_customer_details]:[VARCHAR] } | SELECT date_became_customer, COUNT( `<col3>` ) FROM `<table6>` WHERE `<col0>` BETWEEN 10 AND 20 ORDER BY COUNT( `<col3>` ) DESC | A bar chart for what are the number of the dates when customers with ids between 10 and 20 became customers?, list the number of date became customer in descending order. |
<table0>[animal_species] { <col0>[INT]:[name] <col1>[VARCHAR]:[habitat_id] <col2>[INT]:[INSERT] } <table1>[habitats] { <col0>[INT]:[type] <col1>[VARCHAR]:[INSERT] } | SELECT h.type, COUNT( DISTINCT a.name ) as unique_species FROM `<table0>` a JOIN habitats h ON a.habitat_id = h.id GROUP BY h.type; | Show the number of distinct animal species per habitat |
<table0>[Candidates] { <col0>[candidate_id]:[INTEGER] <col1>[candidate_details]:[VARCHAR] } <table1>[Student_Course_Attendance] { <col0>[student_id]:[INTEGER] <col1>[course_id]:[INTEGER] <col2>[date_of_attendance]:[DATETIME] } <table2>[People] { <col0>[person_id]:[INTEGER] <col1>[first_name]:[VARCHAR] <col2>[255]:[middle_name] <col3>[VARCHAR]:[255] <col4>[last_name]:[VARCHAR] <col5>[255]:[cell_mobile_number] <col6>[VARCHAR]:[email_address] <col7>[VARCHAR]:[login_name] <col8>[VARCHAR]:[password] } <table3>[People_Addresses] { <col0>[person_address_id]:[INTEGER] <col1>[person_id]:[INTEGER] <col2>[address_id]:[INTEGER] <col3>[date_from]:[DATETIME] <col4>[date_to]:[DATETIME] } <table4>[Candidate_Assessments] { <col0>[candidate_id]:[INTEGER] <col1>[qualification]:[CHAR] <col2>[assessment_date]:[DATETIME] <col3>[asessment_outcome_code]:[CHAR] } <table5>[Student_Course_Registrations] { <col0>[student_id]:[INTEGER] <col1>[course_id]:[INTEGER] <col2>[registration_date]:[DATETIME] } <table6>[Students] { <col0>[student_id]:[INTEGER] <col1>[student_details]:[VARCHAR] } <table7>[Courses] { <col0>[course_id]:[VARCHAR] <col1>[100]:[course_name] <col2>[VARCHAR]:[120] <col3>[course_description]:[VARCHAR] <col4>[255]:[other_details] <col5>[VARCHAR]:[255] } <table8>[Addresses] { <col0>[address_id]:[INTEGER] <col1>[line_1]:[VARCHAR] <col2>[line_2]:[VARCHAR] <col3>[city]:[VARCHAR] <col4>[zip_postcode]:[CHAR] <col5>[state_province_county]:[VARCHAR] <col6>[country]:[VARCHAR] } | SELECT T1.student_id, COUNT( * ) FROM `<table6>` AS T1 JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id | List the id of students who registered some courses and the number of their registered courses. Show the correlation.
|
<table0>[student] { <col0>[student_id]:[int] <col1>[lastname]:[varchar] <col2>[firstname]:[varchar] <col3>[program_id]:[int] <col4>[declare_major]:[varchar] <col5>[total_credit]:[int] <col6>[total_gpa]:[float] <col7>[entered_as]:[varchar] <col8>[admit_term]:[int] <col9>[predicted_graduation_semester]:[int] <col10>[degree]:[varchar] <col11>[minor]:[varchar] <col12>[internship]:[varchar] } <table1>[program_course] { <col0>[program_id]:[int] <col1>[course_id]:[int] <col2>[workload]:[int] <col3>[category]:[varchar] } <table2>[jobs] { <col0>[job_id]:[int] <col1>[job_title]:[varchar] <col2>[description]:[varchar] <col3>[requirement]:[varchar] <col4>[city]:[varchar] <col5>[state]:[varchar] <col6>[country]:[varchar] <col7>[zip]:[int] } <table3>[course_tags_count] { <col0>[course_id]:[int] <col1>[clear_grading]:[int] <col2>[pop_quiz]:[int] <col3>[group_projects]:[int] <col4>[inspirational]:[int] <col5>[long_lectures]:[int] <col6>[extra_credit]:[int] <col7>[few_tests]:[int] <col8>[good_feedback]:[int] <col9>[tough_tests]:[int] <col10>[heavy_papers]:[int] <col11>[cares_for_students]:[int] <col12>[heavy_assignments]:[int] <col13>[respected]:[int] <col14>[participation]:[int] <col15>[heavy_reading]:[int] <col16>[tough_grader]:[int] <col17>[hilarious]:[int] <col18>[would_take_again]:[int] <col19>[good_lecture]:[int] <col20>[no_skip]:[int] } <table4>[comment_instructor] { <col0>[instructor_id]:[int] <col1>[student_id]:[int] <col2>[score]:[int] <col3>[comment_text]:[varchar] } <table5>[instructor] { <col0>[instructor_id]:[int] <col1>[name]:[varchar] <col2>[uniqname]:[varchar] } <table6>[course] { <col0>[course_id]:[int] <col1>[name]:[varchar] <col2>[department]:[varchar] <col3>[number]:[varchar] <col4>[credits]:[varchar] <col5>[advisory_requirement]:[varchar] <col6>[enforced_requirement]:[varchar] <col7>[description]:[varchar] <col8>[num_semesters]:[int] <col9>[num_enrolled]:[int] <col10>[has_discussion]:[varchar] <col11>[has_lab]:[varchar] <col12>[has_projects]:[varchar] <col13>[has_exams]:[varchar] <col14>[num_reviews]:[int] <col15>[clarity_score]:[int] <col16>[easiness_score]:[int] <col17>[helpfulness_score]:[int] } <table7>[program_requirement] { <col0>[program_id]:[int] <col1>[category]:[varchar] <col2>[min_credit]:[int] <col3>[additional_req]:[varchar] } <table8>[campus_job_id] { <col0>[int]:[student_id] <col1>[int]:[location] } <table9>[offering_instructor] { <col0>[offering_instructor_id]:[int] <col1>[offering_id]:[int] <col2>[instructor_id]:[int] } <table10>[area] { <col0>[course_id]:[int] } <table11>[course_offering] { <col0>[offering_id]:[int] <col1>[course_id]:[int] <col2>[semester]:[int] <col3>[section_number]:[int] <col4>[start_time]:[time] <col5>[end_time]:[time] <col6>[monday]:[varchar] <col7>[tuesday]:[varchar] <col8>[wednesday]:[varchar] <col9>[thursday]:[varchar] <col10>[friday]:[varchar] <col11>[saturday]:[varchar] <col12>[sunday]:[varchar] <col13>[has_final_project]:[varchar] <col14>[has_final_exam]:[varchar] <col15>[textbook]:[varchar] <col16>[class_address]:[varchar] <col17>[allow_audit]:[varchar] } <table12>[gsi] { <col0>[course_offering_id]:[int] <col1>[student_id]:[int] } <table13>[semester] { <col0>[semester_id]:[int] } <table14>[program] { <col0>[program_id]:[int] <col1>[name]:[varchar] <col2>[college]:[varchar] <col3>[introduction]:[varchar] } <table15>[student_record] { <col0>[student_id]:[int] <col1>[course_id]:[int] <col2>[semester]:[int] <col3>[grade]:[varchar] <col4>[varchar]:[transfer_source] <col5>[varchar]:[earn_credit] <col6>[varchar]:[repeat_term] <col7>[varchar]:[test_id] } <table16>[requirement] { <col0>[requirement_id]:[int] } <table17>[course_prerequisite] { <col0>[pre_course_id]:[int] <col1>[course_id]:[int] } | SELECT COUNT( * ) > 0 FROM `<table6>` AS COURSE_0, `<table6>` AS COURSE_1, `<table6>`_prerequisite WHERE COURSE_0.`<table6>`_id = `<table6>`_prerequisite.pre_`<table6>`_id AND COURSE_0.department = 'SCAND' AND COURSE_0.number = 349 AND COURSE_1.`<table6>`_id = `<table6>`_prerequisite.`<table6>`_id AND COURSE_1.department = 'SCAND' AND COURSE_1.number = 103 | Do I need to take SCAND 349 before taking SCAND 103 ? |
<table0>[table_name_73] { <col0>[nationality]:[VARCHAR] <col1>[college_junior_club_team__league]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE college_junior_club_team__league_ = "guelph storm ( ohl )" | What is Nationality, when College/Junior/Club Team (League) is 'Guelph Storm ( OHL )'? |
<table0>[Engineer_Skills] { <col0>[engineer_id]:[INTEGER] <col1>[skill_id]:[INTEGER] } <table1>[Engineer_Visits] { <col0>[engineer_visit_id]:[INTEGER] <col1>[contact_staff_id]:[INTEGER] <col2>[engineer_id]:[INTEGER] <col3>[fault_log_entry_id]:[INTEGER] <col4>[fault_status]:[VARCHAR] <col5>[visit_start_datetime]:[DATETIME] <col6>[visit_end_datetime]:[DATETIME] <col7>[other_visit_details]:[VARCHAR] } <table2>[Fault_Log_Parts] { <col0>[fault_log_entry_id]:[INTEGER] <col1>[part_fault_id]:[INTEGER] <col2>[fault_status]:[VARCHAR] } <table3>[Third_Party_Companies] { <col0>[company_id]:[INTEGER] <col1>[company_type]:[VARCHAR] <col2>[company_name]:[VARCHAR] <col3>[255]:[company_address] <col4>[VARCHAR]:[255] <col5>[other_company_details]:[VARCHAR] } <table4>[Asset_Parts] { <col0>[asset_id]:[INTEGER] <col1>[part_id]:[INTEGER] } <table5>[Assets] { <col0>[asset_id]:[INTEGER] <col1>[maintenance_contract_id]:[INTEGER] <col2>[supplier_company_id]:[INTEGER] <col3>[asset_details]:[VARCHAR] <col4>[255]:[asset_make] <col5>[VARCHAR]:[asset_model] <col6>[VARCHAR]:[asset_acquired_date] <col7>[DATETIME]:[asset_disposed_date] <col8>[DATETIME]:[other_asset_details] <col9>[VARCHAR]:[255] } <table6>[Maintenance_Contracts] { <col0>[maintenance_contract_id]:[INTEGER] <col1>[maintenance_contract_company_id]:[INTEGER] <col2>[contract_start_date]:[DATETIME] <col3>[contract_end_date]:[DATETIME] <col4>[other_contract_details]:[VARCHAR] } <table7>[Staff] { <col0>[staff_id]:[INTEGER] <col1>[staff_name]:[VARCHAR] <col2>[255]:[gender] <col3>[VARCHAR]:[other_staff_details] <col4>[VARCHAR]:[255] } <table8>[Fault_Log] { <col0>[fault_log_entry_id]:[INTEGER] <col1>[asset_id]:[INTEGER] <col2>[recorded_by_staff_id]:[INTEGER] <col3>[fault_log_entry_datetime]:[DATETIME] <col4>[fault_description]:[VARCHAR] <col5>[255]:[other_fault_details] <col6>[VARCHAR]:[255] } <table9>[Parts] { <col0>[part_id]:[INTEGER] <col1>[part_name]:[VARCHAR] <col2>[255]:[chargeable_yn] <col3>[VARCHAR]:[chargeable_amount] <col4>[VARCHAR]:[other_part_details] <col5>[VARCHAR]:[255] } <table10>[Skills_Required_To_Fix] { <col0>[part_fault_id]:[INTEGER] <col1>[skill_id]:[INTEGER] } <table11>[Maintenance_Engineers] { <col0>[engineer_id]:[INTEGER] <col1>[company_id]:[INTEGER] <col2>[first_name]:[VARCHAR] <col3>[last_name]:[VARCHAR] <col4>[other_details]:[VARCHAR] } <table12>[Part_Faults] { <col0>[part_fault_id]:[INTEGER] <col1>[part_id]:[INTEGER] <col2>[fault_short_name]:[VARCHAR] <col3>[fault_description]:[VARCHAR] <col4>[255]:[other_fault_details] <col5>[VARCHAR]:[255] } <table13>[Skills] { <col0>[skill_id]:[INTEGER] <col1>[skill_code]:[VARCHAR] <col2>[skill_description]:[VARCHAR] } | SELECT asset_make, COUNT( asset_make ) FROM `<table5>` GROUP BY asset_make ORDER BY asset_make | Show the number of assets and group by asset make in a bar chart, and could you display in ascending by the X-axis? |
<table0>[customer_usage] { <col0>[customer_id]:[INT] <col1>[service]:[VARCHAR] <col2>[data_usage]:[FLOAT] <col3>[usage_duration]:[INT] } | CREATE TABLE customer_usage ( customer_id INT, service VARCHAR( 10 ), data_usage FLOAT, usage_duration INT ); | Create a table named 'customer_usage' to store data on broadband and mobile customers' usage patterns |
<table0>[Treatments] { <col0>[professional_id]:[VARCHAR] } <table1>[Professionals] { <col0>[professional_id]:[VARCHAR] <col1>[last_name]:[VARCHAR] <col2>[cell_number]:[VARCHAR] } <table2>[Professionals] { <col0>[professional_id]:[VARCHAR] <col1>[last_name]:[VARCHAR] <col2>[cell_number]:[VARCHAR] <col3>[state]:[VARCHAR] } | SELECT professional_id, last_name, `<col2>` FROM `<table1>` WHERE `<col6>` = 'Indiana' UNION SELECT T1.professional_id, T1.last_name, T1.cell_number FROM `<table1>` AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT( * ) > 2 | Which professionals live in the state of Indiana or have done treatment on more than 2 treatments? List his or her id, last name and cell phone. |
<table0>[table_27279050_3] { <col0>[country]:[VARCHAR] <col1>[last_current_driver_s__3_november_2013]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Daniel Abt ( 2012 )" | What is the country when last/current driver(s) 3 november 2013 is daniel abt ( 2012 )? |
<table0>[area] { <col0>[course_id]:[int] } <table1>[instructor] { <col0>[instructor_id]:[int] <col1>[name]:[varchar] <col2>[uniqname]:[varchar] } <table2>[jobs] { <col0>[job_id]:[int] <col1>[job_title]:[varchar] <col2>[description]:[varchar] <col3>[requirement]:[varchar] <col4>[city]:[varchar] <col5>[state]:[varchar] <col6>[country]:[varchar] <col7>[zip]:[int] } <table3>[program] { <col0>[program_id]:[int] <col1>[name]:[varchar] <col2>[college]:[varchar] <col3>[introduction]:[varchar] } <table4>[course_prerequisite] { <col0>[pre_course_id]:[int] <col1>[course_id]:[int] } <table5>[program_requirement] { <col0>[program_id]:[int] <col1>[category]:[varchar] <col2>[min_credit]:[int] <col3>[additional_req]:[varchar] } <table6>[gsi] { <col0>[course_offering_id]:[int] <col1>[student_id]:[int] } <table7>[student] { <col0>[student_id]:[int] <col1>[lastname]:[varchar] <col2>[firstname]:[varchar] <col3>[program_id]:[int] <col4>[declare_major]:[varchar] <col5>[total_credit]:[int] <col6>[total_gpa]:[float] <col7>[entered_as]:[varchar] <col8>[admit_term]:[int] <col9>[predicted_graduation_semester]:[int] <col10>[degree]:[varchar] <col11>[minor]:[varchar] <col12>[internship]:[varchar] } <table8>[program_course] { <col0>[program_id]:[int] <col1>[course_id]:[int] <col2>[workload]:[int] <col3>[category]:[varchar] } <table9>[course] { <col0>[course_id]:[int] <col1>[name]:[varchar] <col2>[department]:[varchar] <col3>[number]:[varchar] <col4>[credits]:[varchar] <col5>[advisory_requirement]:[varchar] <col6>[enforced_requirement]:[varchar] <col7>[description]:[varchar] <col8>[num_semesters]:[int] <col9>[num_enrolled]:[int] <col10>[has_discussion]:[varchar] <col11>[has_lab]:[varchar] <col12>[has_projects]:[varchar] <col13>[has_exams]:[varchar] <col14>[num_reviews]:[int] <col15>[clarity_score]:[int] <col16>[easiness_score]:[int] <col17>[helpfulness_score]:[int] } <table10>[comment_instructor] { <col0>[instructor_id]:[int] <col1>[student_id]:[int] <col2>[score]:[int] <col3>[comment_text]:[varchar] } <table11>[campus_job_id] { <col0>[int]:[student_id] <col1>[int]:[location] } <table12>[course_offering] { <col0>[offering_id]:[int] <col1>[course_id]:[int] <col2>[semester]:[int] <col3>[section_number]:[int] <col4>[start_time]:[time] <col5>[end_time]:[time] <col6>[monday]:[varchar] <col7>[tuesday]:[varchar] <col8>[wednesday]:[varchar] <col9>[thursday]:[varchar] <col10>[friday]:[varchar] <col11>[saturday]:[varchar] <col12>[sunday]:[varchar] <col13>[has_final_project]:[varchar] <col14>[has_final_exam]:[varchar] <col15>[textbook]:[varchar] <col16>[class_address]:[varchar] <col17>[allow_audit]:[varchar] } <table13>[course_tags_count] { <col0>[course_id]:[int] <col1>[clear_grading]:[int] <col2>[pop_quiz]:[int] <col3>[group_projects]:[int] <col4>[inspirational]:[int] <col5>[long_lectures]:[int] <col6>[extra_credit]:[int] <col7>[few_tests]:[int] <col8>[good_feedback]:[int] <col9>[tough_tests]:[int] <col10>[heavy_papers]:[int] <col11>[cares_for_students]:[int] <col12>[heavy_assignments]:[int] <col13>[respected]:[int] <col14>[participation]:[int] <col15>[heavy_reading]:[int] <col16>[tough_grader]:[int] <col17>[hilarious]:[int] <col18>[would_take_again]:[int] <col19>[good_lecture]:[int] <col20>[no_skip]:[int] } <table14>[offering_instructor] { <col0>[offering_instructor_id]:[int] <col1>[offering_id]:[int] <col2>[instructor_id]:[int] } <table15>[requirement] { <col0>[requirement_id]:[int] } <table16>[student_record] { <col0>[student_id]:[int] <col1>[course_id]:[int] <col2>[semester]:[int] <col3>[grade]:[varchar] <col4>[varchar]:[transfer_source] <col5>[varchar]:[earn_credit] <col6>[varchar]:[repeat_term] <col7>[varchar]:[test_id] } <table17>[semester] { <col0>[semester_id]:[int] } | SELECT DISTINCT program.name FROM `<table9>` INNER JOIN program_`<table9>` ON program_`<table9>`.`<table9>`_id = `<table9>`.`<table9>`_id INNER JOIN program ON program.program_id = program_`<table9>`.program_id WHERE `<table9>`.department = 'BIOLCHEM' AND `<table9>`.number = 416 | BIOLCHEM 416 is compulsory in which programs ?
|
<table0>[wildlife] { <col0>[INT]:[forest_id] <col1>[INT]:[species] } | SELECT COUNT( DISTINCT species ) FROM wildlife; | How many animal species inhabit the forests in the 'wildlife' table? |
<table0>[Products] { <col0>[Code]:[INTEGER] <col1>[VARCHAR]:[255] <col2>[Price]:[DECIMAL] <col3>[Manufacturer]:[INTEGER] } <table1>[Manufacturers] { <col0>[Code]:[INTEGER] <col1>[VARCHAR]:[255] <col2>[Headquarter]:[VARCHAR] <col3>[255]:[Founder] <col4>[VARCHAR]:[255] <col5>[Revenue]:[REAL] } | SELECT T1.Name, T1.Price FROM `<table0>` AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name | For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and the average of price , and group by attribute name. |
<table0>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } <table1>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table2>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table3>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[text] <col4>[age]:[text] <col5>[dob]:[text] <col6>[gender]:[text] <col7>[language]:[text] <col8>[religion]:[text] <col9>[admission_type]:[text] <col10>[days_stay]:[text] <col11>[insurance]:[text] <col12>[ethnicity]:[text] <col13>[expire_flag]:[text] <col14>[admission_location]:[text] <col15>[discharge_location]:[text] <col16>[diagnosis]:[text] <col17>[dod]:[text] <col18>[dob_year]:[text] <col19>[dod_year]:[text] <col20>[admittime]:[text] <col21>[dischtime]:[text] <col22>[admityear]:[text] } <table4>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug_cd]:[text] <col6>[route]:[text] <col7>[drug_dose]:[text] } | SELECT `<table3>`.admission_type, `<table3>`.days_stay FROM `<table3>` WHERE `<table3>`.subject_id = "7273" | what is admission type and days of hospital stay of subject id 7273?
|
<table0>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } <table1>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug_cd]:[text] <col6>[route]:[text] <col7>[drug_dose]:[text] } <table2>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table3>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[text] <col4>[age]:[text] <col5>[dob]:[text] <col6>[gender]:[text] <col7>[language]:[text] <col8>[religion]:[text] <col9>[admission_type]:[text] <col10>[days_stay]:[text] <col11>[insurance]:[text] <col12>[ethnicity]:[text] <col13>[expire_flag]:[text] <col14>[admission_location]:[text] <col15>[discharge_location]:[text] <col16>[diagnosis]:[text] <col17>[dod]:[text] <col18>[dob_year]:[text] <col19>[dod_year]:[text] <col20>[admittime]:[text] <col21>[dischtime]:[text] <col22>[admityear]:[text] } <table4>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } | SELECT COUNT( DISTINCT `<table3>`.subject_id ) FROM `<table3>` INNER JOIN lab ON `<table3>`.hadm_id = lab.hadm_id WHERE `<table3>`.admission_type = "URGENT" AND lab.label = "Macrophage" | count the number of patients whose admission type is urgent and lab test name is macrophage? |
<table0>[table_name_83] { <col0>[round]:[VARCHAR] <col1>[college_junior_club_team__league]:[VARCHAR] } | SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE college_junior_club_team__league_ = "kelowna rockets ( whl )" | What is the total number of Round, when College/Junior/Club Team (League) is "Kelowna Rockets ( WHL )"? |
<table0>[journal_committee] { <col0>[Editor_ID]:[int] <col1>[Journal_ID]:[int] <col2>[Work_Type]:[text] } <table1>[editor] { <col0>[Editor_ID]:[int] <col1>[text]:[Age] } <table2>[journal] { <col0>[Journal_ID]:[int] <col1>[Date]:[text] <col2>[Theme]:[text] <col3>[Sales]:[int] } | SELECT Name, Age FROM `<table1>` ORDER BY Name | Compare each editors' ages using a bar chart, sort by the x axis in ascending.
|
<table0>[table_name_76] { <col0>[team__number1]:[VARCHAR] <col1>[time___cest]:[INTEGER] } | SELECT `<col0>` FROM `<table0>` WHERE time___cest__ < 18 | What id the team with a smaller Time than 18? |
<table0>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug_cd]:[text] <col6>[route]:[text] <col7>[drug_dose]:[text] } <table1>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } <table2>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[text] <col4>[age]:[text] <col5>[dob]:[text] <col6>[gender]:[text] <col7>[language]:[text] <col8>[religion]:[text] <col9>[admission_type]:[text] <col10>[days_stay]:[text] <col11>[insurance]:[text] <col12>[ethnicity]:[text] <col13>[expire_flag]:[text] <col14>[admission_location]:[text] <col15>[discharge_location]:[text] <col16>[diagnosis]:[text] <col17>[dod]:[text] <col18>[dob_year]:[text] <col19>[dod_year]:[text] <col20>[admittime]:[text] <col21>[dischtime]:[text] <col22>[admityear]:[text] } <table3>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table4>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } | SELECT COUNT( DISTINCT `<table2>`.subject_id ) FROM `<table2>` INNER JOIN procedures ON `<table2>`.hadm_id = procedures.hadm_id WHERE `<table2>`.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND procedures.long_title = "Spinal tap" | provide the number of patients whose admission location is transfer from hosp/extram and procedure long title is spinal tap? |
<table0>[CloseReasonTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table1>[Posts] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table2>[PostFeedback] { <col0>[number]:[PostId] <col1>[number]:[IsAnonymous] <col2>[boolean]:[VoteTypeId] <col3>[number]:[CreationDate] } <table3>[ReviewTasks] { <col0>[number]:[ReviewTaskTypeId] <col1>[number]:[CreationDate] <col2>[time]:[DeletionDate] <col3>[time]:[ReviewTaskStateId] <col4>[number]:[PostId] <col5>[number]:[SuggestedEditId] <col6>[number]:[CompletedByReviewTaskId] } <table4>[ReviewRejectionReasons] { <col0>[number]:[text] <col1>[Description]:[text] <col2>[PostTypeId]:[number] } <table5>[ReviewTaskStates] { <col0>[number]:[text] <col1>[Description]:[text] } <table6>[PostLinks] { <col0>[number]:[CreationDate] <col1>[time]:[PostId] <col2>[number]:[RelatedPostId] <col3>[number]:[LinkTypeId] } <table7>[Badges] { <col0>[number]:[UserId] <col1>[number]:[text] <col2>[Date]:[time] <col3>[Class]:[number] <col4>[TagBased]:[boolean] } <table8>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[BelongsOnBaseHostAddress] } <table9>[Users] { <col0>[number]:[Reputation] <col1>[number]:[CreationDate] <col2>[time]:[DisplayName] <col3>[text]:[LastAccessDate] <col4>[time]:[WebsiteUrl] <col5>[text]:[Location] <col6>[text]:[AboutMe] <col7>[text]:[Views] <col8>[number]:[UpVotes] <col9>[number]:[DownVotes] <col10>[number]:[ProfileImageUrl] <col11>[text]:[EmailHash] <col12>[text]:[AccountId] } <table10>[PostHistoryTypes] { <col0>[number]:[text] } <table11>[VoteTypes] { <col0>[number]:[text] } <table12>[PostNotices] { <col0>[number]:[PostId] <col1>[number]:[PostNoticeTypeId] <col2>[number]:[CreationDate] <col3>[time]:[DeletionDate] <col4>[time]:[ExpiryDate] <col5>[time]:[Body] <col6>[text]:[OwnerUserId] <col7>[number]:[DeletionUserId] } <table13>[SuggestedEditVotes] { <col0>[number]:[SuggestedEditId] <col1>[number]:[UserId] <col2>[number]:[VoteTypeId] <col3>[number]:[CreationDate] <col4>[time]:[TargetUserId] <col5>[number]:[TargetRepChange] } <table14>[ReviewTaskTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table15>[SuggestedEdits] { <col0>[number]:[PostId] <col1>[number]:[CreationDate] <col2>[time]:[ApprovalDate] <col3>[time]:[RejectionDate] <col4>[time]:[OwnerUserId] <col5>[number]:[Comment] <col6>[text]:[Text] <col7>[text]:[Title] <col8>[text]:[Tags] <col9>[text]:[RevisionGUID] } <table16>[ReviewTaskResults] { <col0>[number]:[ReviewTaskId] <col1>[number]:[ReviewTaskResultTypeId] <col2>[number]:[CreationDate] <col3>[time]:[RejectionReasonId] <col4>[number]:[Comment] } <table17>[FlagTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table18>[PostHistory] { <col0>[number]:[PostHistoryTypeId] <col1>[number]:[PostId] <col2>[number]:[RevisionGUID] <col3>[CreationDate]:[time] <col4>[UserId]:[number] <col5>[UserDisplayName]:[text] <col6>[Comment]:[text] <col7>[Text]:[text] <col8>[ContentLicense]:[text] } <table19>[PostsWithDeleted] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table20>[CloseAsOffTopicReasonTypes] { <col0>[number]:[IsUniversal] <col1>[boolean]:[InputTitle] <col2>[text]:[MarkdownInputGuidance] <col3>[text]:[MarkdownPostOwnerGuidance] <col4>[text]:[MarkdownPrivilegedUserGuidance] <col5>[text]:[MarkdownConcensusDescription] <col6>[text]:[CreationDate] <col7>[time]:[CreationModeratorId] <col8>[number]:[ApprovalDate] <col9>[time]:[ApprovalModeratorId] <col10>[number]:[DeactivationDate] <col11>[time]:[DeactivationModeratorId] } <table21>[Tags] { <col0>[number]:[TagName] <col1>[text]:[Count] <col2>[number]:[ExcerptPostId] <col3>[number]:[WikiPostId] } <table22>[ReviewTaskResultTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table23>[PostNoticeTypes] { <col0>[number]:[ClassId] <col1>[number]:[text] <col2>[Body]:[text] <col3>[IsHidden]:[boolean] <col4>[Predefined]:[boolean] <col5>[PostNoticeDurationId]:[number] } <table24>[Comments] { <col0>[number]:[PostId] <col1>[number]:[Score] <col2>[number]:[Text] <col3>[text]:[CreationDate] <col4>[time]:[UserDisplayName] <col5>[text]:[UserId] <col6>[number]:[ContentLicense] } <table25>[PostTags] { <col0>[PostId]:[number] <col1>[TagId]:[number] } <table26>[TagSynonyms] { <col0>[number]:[SourceTagName] <col1>[text]:[TargetTagName] <col2>[text]:[CreationDate] <col3>[time]:[OwnerUserId] <col4>[number]:[AutoRenameCount] <col5>[number]:[LastAutoRename] <col6>[time]:[Score] <col7>[number]:[ApprovedByUserId] <col8>[number]:[ApprovalDate] } <table27>[Votes] { <col0>[number]:[PostId] <col1>[number]:[VoteTypeId] <col2>[number]:[UserId] <col3>[number]:[CreationDate] <col4>[time]:[BountyAmount] } <table28>[PostTypes] { <col0>[number]:[text] } | SELECT DATEADD( week, DATEDIFF( week, 0, CreationDate ), 0 ), SUM( CASE WHEN ReviewTaskTypeId = 4 THEN 1 ELSE 0 END ) AS "FP", SUM( CASE WHEN ReviewTaskTypeId = 5 THEN 1 ELSE 0 END ) AS "LA" FROM `<table3>` WHERE ReviewTaskTypeId IN ( 4, 5 ) AND CreationDate >= '2018-01-01' GROUP BY DATEADD( week, DATEDIFF( week, 0, CreationDate ), 0 ) ORDER BY DATEADD( week, DATEDIFF( week, 0, CreationDate ), 0 ) | Number of First Posts and Late Answers per week.
|
<table0>[course] { <col0>[course_id]:[integer] <col1>[courseLevel]:[text] } <table1>[person] { <col0>[p_id]:[integer] <col1>[professor]:[integer] <col2>[student]:[integer] <col3>[hasPosition]:[text] <col4>[inPhase]:[text] <col5>[yearsInProgram]:[text] } <table2>[advisedBy] { <col0>[p_id]:[integer] <col1>[p_id_dummy]:[integer] } <table3>[taughtBy] { <col0>[course_id]:[integer] <col1>[p_id]:[integer] } | SELECT COUNT( * ) FROM `<table2>` WHERE `<col1>` = 415 | How many students are under advisor 415? |
<table0>[table_13758945_3] { <col0>[points]:[VARCHAR] <col1>[tries_for]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "64" | what's the points with tries for being 64 |
<table0>[table_62300] { <col0>[Tournament]:[text] <col1>[Wins]:[real] <col2>[Top]:[real] <col3>[Top]:[real] <col4>[Top]:[real] <col5>[Events]:[real] <col6>[Cuts]:[real] } | SELECT AVG( "Cuts made" ) FROM `<table0>` WHERE "Top-5" > '1' | How many cuts made when the top-5 is greater than 1?
|
<table0>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } <table1>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table2>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table3>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug_cd]:[text] <col6>[route]:[text] <col7>[drug_dose]:[text] } <table4>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[text] <col4>[age]:[text] <col5>[dob]:[text] <col6>[gender]:[text] <col7>[language]:[text] <col8>[religion]:[text] <col9>[admission_type]:[text] <col10>[days_stay]:[text] <col11>[insurance]:[text] <col12>[ethnicity]:[text] <col13>[expire_flag]:[text] <col14>[admission_location]:[text] <col15>[discharge_location]:[text] <col16>[diagnosis]:[text] <col17>[dod]:[text] <col18>[dob_year]:[text] <col19>[dod_year]:[text] <col20>[admittime]:[text] <col21>[dischtime]:[text] <col22>[admityear]:[text] } | SELECT COUNT( DISTINCT `<table4>`.subject_id ) FROM `<table4>` INNER JOIN diagnoses ON `<table4>`.hadm_id = diagnoses.hadm_id WHERE `<table4>`.dob_year < "2035" AND diagnoses.short_title = "Preterm NEC 1750-1999g" | what is the number of patients born before 2035 who were diagnosed with preterm nec,1750-1999g?
|
<table0>[table_201_13] { <col0>[number]:[city] <col1>[text]:[county] <col2>[ies]:[text] <col3>[population]:[2000] <col4>[census]:[number] <col5>[population]:[2010] <col6>[census]:[number] <col7>[class]:[text] <col8>[incorporation]:[ndate] } | SELECT "city" FROM `<table0>` ORDER BY "population\n( 2010 `<col4>` )" DESC LIMIT 1 | which city in wisconsin is the most populous , based on the 2010 census ? |
<table0>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } <table1>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[text] <col4>[age]:[text] <col5>[dob]:[text] <col6>[gender]:[text] <col7>[language]:[text] <col8>[religion]:[text] <col9>[admission_type]:[text] <col10>[days_stay]:[text] <col11>[insurance]:[text] <col12>[ethnicity]:[text] <col13>[expire_flag]:[text] <col14>[admission_location]:[text] <col15>[discharge_location]:[text] <col16>[diagnosis]:[text] <col17>[dod]:[text] <col18>[dob_year]:[text] <col19>[dod_year]:[text] <col20>[admittime]:[text] <col21>[dischtime]:[text] <col22>[admityear]:[text] } <table2>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table3>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug_cd]:[text] <col6>[route]:[text] <col7>[drug_dose]:[text] } <table4>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } | SELECT lab.label, lab.fluid FROM `<table1>` INNER JOIN lab ON `<table1>`.hadm_id = lab.hadm_id WHERE `<table1>`.name = "Shawn Green" | Find the lab test and lab test fluid of Shawn Green. |
<table0>[table_2562572_44] { <col0>[population__2011]:[VARCHAR] <col1>[settlement]:[VARCHAR] } | SELECT population__2011_ FROM `<table0>` WHERE `<col1>` = "Banatski Karlovac" | What was the population in 2011 of banatski karlovac?
|
<table0>[lab] { <col0>[labid]:[number] <col1>[patientunitstayid]:[number] <col2>[labname]:[text] <col3>[labresult]:[number] <col4>[labresulttime]:[time] } <table1>[cost] { <col0>[costid]:[number] <col1>[uniquepid]:[text] <col2>[patienthealthsystemstayid]:[number] <col3>[eventtype]:[text] <col4>[eventid]:[number] <col5>[chargetime]:[time] } <table2>[intakeoutput] { <col0>[intakeoutputid]:[number] <col1>[patientunitstayid]:[number] <col2>[cellpath]:[text] <col3>[celllabel]:[text] <col4>[cellvaluenumeric]:[number] <col5>[intakeoutputtime]:[time] } <table3>[patient] { <col0>[uniquepid]:[text] <col1>[patienthealthsystemstayid]:[number] <col2>[patientunitstayid]:[number] <col3>[gender]:[text] <col4>[age]:[text] <col5>[ethnicity]:[text] <col6>[hospitalid]:[number] <col7>[wardid]:[number] <col8>[admissionheight]:[number] <col9>[admissionweight]:[number] <col10>[dischargeweight]:[number] <col11>[hospitaladmittime]:[time] <col12>[hospitaladmitsource]:[text] <col13>[unitadmittime]:[time] <col14>[unitdischargetime]:[time] <col15>[hospitaldischargetime]:[time] <col16>[hospitaldischargestatus]:[text] } <table4>[vitalperiodic] { <col0>[vitalperiodicid]:[number] <col1>[patientunitstayid]:[number] <col2>[temperature]:[number] <col3>[sao2]:[number] <col4>[heartrate]:[number] <col5>[respiration]:[number] <col6>[systemicsystolic]:[number] <col7>[systemicdiastolic]:[number] <col8>[systemicmean]:[number] <col9>[observationtime]:[time] } <table5>[allergy] { <col0>[allergyid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[allergyname]:[text] <col4>[allergytime]:[time] } <table6>[diagnosis] { <col0>[diagnosisid]:[number] <col1>[patientunitstayid]:[number] <col2>[diagnosisname]:[text] <col3>[diagnosistime]:[time] <col4>[icd9code]:[text] } <table7>[medication] { <col0>[medicationid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[dosage]:[text] <col4>[routeadmin]:[text] <col5>[drugstarttime]:[time] <col6>[drugstoptime]:[time] } <table8>[treatment] { <col0>[treatmentid]:[number] <col1>[patientunitstayid]:[number] <col2>[treatmentname]:[text] <col3>[treatmenttime]:[time] } <table9>[microlab] { <col0>[microlabid]:[number] <col1>[patientunitstayid]:[number] <col2>[culturesite]:[text] <col3>[organism]:[text] <col4>[culturetakentime]:[time] } | SELECT COUNT( DISTINCT `<table3>`.uniquepid ) FROM `<table3>` WHERE NOT `<table3>`.hospitaldischargetime IS NULL AND STRFTIME( '%y', `<table3>`.hospitaldischargetime ) = '2101' | count the number of patients who have been discharged from a hospital in 2101.
|
<table0>[Workers] { <col0>[INT]:[industry] <col1>[VARCHAR]:[employment_status] <col2>[VARCHAR]:[INSERT] } | SELECT COUNT( * ) FROM `<table0>` WHERE industry = 'Manufacturing' AND employment_status = 'Part-time'; | How many workers in the 'Manufacturing' industry have a 'Part-time' status? |
<table0>[marine_species] { <col0>[INT]:[name] <col1>[VARCHAR]:[255] <col2>[conservation_status]:[VARCHAR] <col3>[255]:[INSERT] } <table1>[oceanography] { <col0>[INT]:[species_name] <col1>[VARCHAR]:[255] <col2>[location]:[VARCHAR] <col3>[255]:[INSERT] } | SELECT name FROM `<table0>` WHERE name NOT IN ( SELECT species_name FROM `<table1>` ); | List all marine species that are not found in the oceanography table. |
<table0>[table_name_88] { <col0>[away_team]:[VARCHAR] <col1>[home_team]:[VARCHAR] } | SELECT `<col0>` AS score FROM `<table0>` WHERE `<col1>` = "fitzroy" | What is the score of the away team with the home team Fitzroy? |
<table0>[submission] { <col0>[submission_id]:[number] <col1>[scores]:[number] <col2>[author]:[text] <col3>[college]:[text] } <table1>[workshop] { <col0>[workshop_id]:[number] <col1>[date]:[text] <col2>[venue]:[text] <col3>[name]:[text] } <table2>[acceptance] { <col0>[submission_id]:[number] <col1>[workshop_id]:[number] <col2>[result]:[text] } | SELECT author, `<col3>` FROM `<table0>` | For each submission, show the author and their affiliated college. |
<table0>[Regions] { <col0>[Region]:[VARCHAR] <col1>[Population]:[INT] <col2>[Vaccinated]:[INT] } | SELECT Region, ( SUM( `<col2>` ) / SUM( `<col1>` ) ) * 100 AS VaccinationPercentage FROM `<table0>` GROUP BY Region; | What is the percentage of the population that is fully vaccinated against COVID-19 in each region? |
<table0>[customer_addresses] { <col0>[customer_id]:[number] <col1>[address_id]:[number] <col2>[date_address_from]:[time] <col3>[address_type]:[text] <col4>[date_address_to]:[time] } <table1>[customers] { <col0>[customer_id]:[number] <col1>[payment_method]:[text] <col2>[customer_name]:[text] <col3>[date_became_customer]:[time] <col4>[other_customer_details]:[text] } <table2>[products] { <col0>[product_id]:[number] <col1>[product_details]:[text] } <table3>[addresses] { <col0>[address_id]:[number] <col1>[address_content]:[text] <col2>[city]:[text] <col3>[zip_postcode]:[text] <col4>[state_province_county]:[text] <col5>[country]:[text] <col6>[other_address_details]:[text] } <table4>[order_items] { <col0>[order_id]:[number] <col1>[product_id]:[number] <col2>[order_quantity]:[text] } <table5>[customer_orders] { <col0>[order_id]:[number] <col1>[customer_id]:[number] <col2>[order_status]:[text] <col3>[order_date]:[time] <col4>[order_details]:[text] } <table6>[customer_contact_channels] { <col0>[customer_id]:[number] <col1>[channel_code]:[text] <col2>[active_from_date]:[time] <col3>[active_to_date]:[time] <col4>[contact_number]:[text] } | SELECT COUNT( * ) FROM `<table1>` AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.city = "Lake Geovannyton" | How many customers are living in city 'Lake Geovannyton'? |
<table0>[status] { <col0>[station_id]:[INTEGER] <col1>[bikes_available]:[INTEGER] <col2>[docks_available]:[INTEGER] <col3>[time]:[TEXT] } <table1>[station] { <col0>[INTEGER]:[name] <col1>[TEXT]:[lat] <col2>[NUMERIC]:[long] <col3>[NUMERIC]:[dock_count] <col4>[INTEGER]:[city] <col5>[TEXT]:[installation_date] } <table2>[trip] { <col0>[INTEGER]:[duration] <col1>[INTEGER]:[start_date] <col2>[TEXT]:[start_station_name] <col3>[TEXT]:[start_station_id] <col4>[INTEGER]:[end_date] <col5>[TEXT]:[end_station_name] <col6>[TEXT]:[end_station_id] <col7>[INTEGER]:[bike_id] <col8>[INTEGER]:[subscription_type] <col9>[TEXT]:[zip_code] } <table3>[weather] { <col0>[date]:[TEXT] <col1>[max_temperature_f]:[INTEGER] <col2>[mean_temperature_f]:[INTEGER] <col3>[min_temperature_f]:[INTEGER] <col4>[max_dew_point_f]:[INTEGER] <col5>[mean_dew_point_f]:[INTEGER] <col6>[min_dew_point_f]:[INTEGER] <col7>[max_humidity]:[INTEGER] <col8>[mean_humidity]:[INTEGER] <col9>[min_humidity]:[INTEGER] <col10>[max_sea_level_pressure_inches]:[NUMERIC] <col11>[mean_sea_level_pressure_inches]:[NUMERIC] <col12>[min_sea_level_pressure_inches]:[NUMERIC] <col13>[max_visibility_miles]:[INTEGER] <col14>[mean_visibility_miles]:[INTEGER] <col15>[min_visibility_miles]:[INTEGER] <col16>[max_wind_Speed_mph]:[INTEGER] <col17>[mean_wind_speed_mph]:[INTEGER] <col18>[max_gust_speed_mph]:[INTEGER] <col19>[precipitation_inches]:[INTEGER] <col20>[cloud_cover]:[INTEGER] <col21>[events]:[TEXT] <col22>[wind_dir_degrees]:[INTEGER] <col23>[zip_code]:[INTEGER] } | SELECT end_station_name, COUNT( end_station_name ) FROM `<table2>` GROUP BY end_station_name ORDER BY id LIMIT 3 | Please give me a pie chart to show the proportion of end stations for the trips with the three smallest ids?
|
<table0>[program] { <col0>[program_id]:[int] <col1>[name]:[varchar] <col2>[college]:[varchar] <col3>[introduction]:[varchar] } <table1>[program_requirement] { <col0>[program_id]:[int] <col1>[category]:[varchar] <col2>[min_credit]:[int] <col3>[additional_req]:[varchar] } <table2>[area] { <col0>[course_id]:[int] } <table3>[gsi] { <col0>[course_offering_id]:[int] <col1>[student_id]:[int] } <table4>[course] { <col0>[course_id]:[int] <col1>[name]:[varchar] <col2>[department]:[varchar] <col3>[number]:[varchar] <col4>[credits]:[varchar] <col5>[advisory_requirement]:[varchar] <col6>[enforced_requirement]:[varchar] <col7>[description]:[varchar] <col8>[num_semesters]:[int] <col9>[num_enrolled]:[int] <col10>[has_discussion]:[varchar] <col11>[has_lab]:[varchar] <col12>[has_projects]:[varchar] <col13>[has_exams]:[varchar] <col14>[num_reviews]:[int] <col15>[clarity_score]:[int] <col16>[easiness_score]:[int] <col17>[helpfulness_score]:[int] } <table5>[semester] { <col0>[semester_id]:[int] } <table6>[instructor] { <col0>[instructor_id]:[int] <col1>[name]:[varchar] <col2>[uniqname]:[varchar] } <table7>[student] { <col0>[student_id]:[int] <col1>[lastname]:[varchar] <col2>[firstname]:[varchar] <col3>[program_id]:[int] <col4>[declare_major]:[varchar] <col5>[total_credit]:[int] <col6>[total_gpa]:[float] <col7>[entered_as]:[varchar] <col8>[admit_term]:[int] <col9>[predicted_graduation_semester]:[int] <col10>[degree]:[varchar] <col11>[minor]:[varchar] <col12>[internship]:[varchar] } <table8>[course_prerequisite] { <col0>[pre_course_id]:[int] <col1>[course_id]:[int] } <table9>[offering_instructor] { <col0>[offering_instructor_id]:[int] <col1>[offering_id]:[int] <col2>[instructor_id]:[int] } <table10>[campus_job_id] { <col0>[int]:[student_id] <col1>[int]:[location] } <table11>[requirement] { <col0>[requirement_id]:[int] } <table12>[course_tags_count] { <col0>[course_id]:[int] <col1>[clear_grading]:[int] <col2>[pop_quiz]:[int] <col3>[group_projects]:[int] <col4>[inspirational]:[int] <col5>[long_lectures]:[int] <col6>[extra_credit]:[int] <col7>[few_tests]:[int] <col8>[good_feedback]:[int] <col9>[tough_tests]:[int] <col10>[heavy_papers]:[int] <col11>[cares_for_students]:[int] <col12>[heavy_assignments]:[int] <col13>[respected]:[int] <col14>[participation]:[int] <col15>[heavy_reading]:[int] <col16>[tough_grader]:[int] <col17>[hilarious]:[int] <col18>[would_take_again]:[int] <col19>[good_lecture]:[int] <col20>[no_skip]:[int] } <table13>[comment_instructor] { <col0>[instructor_id]:[int] <col1>[student_id]:[int] <col2>[score]:[int] <col3>[comment_text]:[varchar] } <table14>[student_record] { <col0>[student_id]:[int] <col1>[course_id]:[int] <col2>[semester]:[int] <col3>[grade]:[varchar] <col4>[varchar]:[transfer_source] <col5>[varchar]:[earn_credit] <col6>[varchar]:[repeat_term] <col7>[varchar]:[test_id] } <table15>[course_offering] { <col0>[offering_id]:[int] <col1>[course_id]:[int] <col2>[semester]:[int] <col3>[section_number]:[int] <col4>[start_time]:[time] <col5>[end_time]:[time] <col6>[monday]:[varchar] <col7>[tuesday]:[varchar] <col8>[wednesday]:[varchar] <col9>[thursday]:[varchar] <col10>[friday]:[varchar] <col11>[saturday]:[varchar] <col12>[sunday]:[varchar] <col13>[has_final_project]:[varchar] <col14>[has_final_exam]:[varchar] <col15>[textbook]:[varchar] <col16>[class_address]:[varchar] <col17>[allow_audit]:[varchar] } <table16>[jobs] { <col0>[job_id]:[int] <col1>[job_title]:[varchar] <col2>[description]:[varchar] <col3>[requirement]:[varchar] <col4>[city]:[varchar] <col5>[state]:[varchar] <col6>[country]:[varchar] <col7>[zip]:[int] } <table17>[program_course] { <col0>[program_id]:[int] <col1>[course_id]:[int] <col2>[workload]:[int] <col3>[category]:[varchar] } | SELECT DISTINCT `<table4>`_offering.start_time FROM `<table4>` INNER JOIN program_`<table4>` ON program_`<table4>`.`<table4>`_id = `<table4>`.`<table4>`_id INNER JOIN `<table4>`_offering ON `<table4>`.`<table4>`_id = `<table4>`_offering.`<table4>`_id INNER JOIN semester ON semester.semester_id = `<table4>`_offering.semester WHERE `<table4>`.department = 'NATIVEAM' AND `<table4>`.number = 311 AND semester.semester = 'FA' AND semester.year = 2016 | What time do NATIVEAM 311 lectures start next semester ?
|
<table0>[table_name_5] { <col0>[written_by]:[VARCHAR] <col1>[prod_code]:[VARCHAR] <col2>[directed_by]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` > 1.4 AND `<col2>` = "rick wallace" | Who wrote the episode with a production code greater than 1.4 direcyed by rick wallace? |
<table0>[table_200_14] { <col0>[number]:[act] <col1>[text]:[year] <col2>[signed]:[number] <col3>[albums]:[released] <col4>[bad]:[boy] } | SELECT "year signed" FROM `<table0>` WHERE "act" = 'the notorious b.i.g' | when was the notorious b.i.g signed to bad boy ?
|
<table0>[table_77776] { <col0>[Home]:[team] <col1>[text]:[Home] <col2>[team]:[score] <col3>[text]:[Away] <col4>[team]:[text] <col5>[Away]:[team] <col6>[score]:[text] <col7>[Venue]:[text] <col8>[Crowd]:[real] <col9>[Date]:[text] } | SELECT "Venue" FROM `<table0>` WHERE "Away `<col2>` score" = '7.11 ( 53 )' | When the away team scored 7.11 (53) what venue did they play at?
|
<table0>[Posts] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table1>[ReviewTaskTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table2>[PostNotices] { <col0>[number]:[PostId] <col1>[number]:[PostNoticeTypeId] <col2>[number]:[CreationDate] <col3>[time]:[DeletionDate] <col4>[time]:[ExpiryDate] <col5>[time]:[Body] <col6>[text]:[OwnerUserId] <col7>[number]:[DeletionUserId] } <table3>[ReviewTaskResults] { <col0>[number]:[ReviewTaskId] <col1>[number]:[ReviewTaskResultTypeId] <col2>[number]:[CreationDate] <col3>[time]:[RejectionReasonId] <col4>[number]:[Comment] } <table4>[TagSynonyms] { <col0>[number]:[SourceTagName] <col1>[text]:[TargetTagName] <col2>[text]:[CreationDate] <col3>[time]:[OwnerUserId] <col4>[number]:[AutoRenameCount] <col5>[number]:[LastAutoRename] <col6>[time]:[Score] <col7>[number]:[ApprovedByUserId] <col8>[number]:[ApprovalDate] } <table5>[PostNoticeTypes] { <col0>[number]:[ClassId] <col1>[number]:[text] <col2>[Body]:[text] <col3>[IsHidden]:[boolean] <col4>[Predefined]:[boolean] <col5>[PostNoticeDurationId]:[number] } <table6>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[BelongsOnBaseHostAddress] } <table7>[Comments] { <col0>[number]:[PostId] <col1>[number]:[Score] <col2>[number]:[Text] <col3>[text]:[CreationDate] <col4>[time]:[UserDisplayName] <col5>[text]:[UserId] <col6>[number]:[ContentLicense] } <table8>[VoteTypes] { <col0>[number]:[text] } <table9>[PostTypes] { <col0>[number]:[text] } <table10>[Votes] { <col0>[number]:[PostId] <col1>[number]:[VoteTypeId] <col2>[number]:[UserId] <col3>[number]:[CreationDate] <col4>[time]:[BountyAmount] } <table11>[Tags] { <col0>[number]:[TagName] <col1>[text]:[Count] <col2>[number]:[ExcerptPostId] <col3>[number]:[WikiPostId] } <table12>[PostHistoryTypes] { <col0>[number]:[text] } <table13>[FlagTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table14>[ReviewRejectionReasons] { <col0>[number]:[text] <col1>[Description]:[text] <col2>[PostTypeId]:[number] } <table15>[ReviewTaskStates] { <col0>[number]:[text] <col1>[Description]:[text] } <table16>[ReviewTasks] { <col0>[number]:[ReviewTaskTypeId] <col1>[number]:[CreationDate] <col2>[time]:[DeletionDate] <col3>[time]:[ReviewTaskStateId] <col4>[number]:[PostId] <col5>[number]:[SuggestedEditId] <col6>[number]:[CompletedByReviewTaskId] } <table17>[PostLinks] { <col0>[number]:[CreationDate] <col1>[time]:[PostId] <col2>[number]:[RelatedPostId] <col3>[number]:[LinkTypeId] } <table18>[SuggestedEditVotes] { <col0>[number]:[SuggestedEditId] <col1>[number]:[UserId] <col2>[number]:[VoteTypeId] <col3>[number]:[CreationDate] <col4>[time]:[TargetUserId] <col5>[number]:[TargetRepChange] } <table19>[PostHistory] { <col0>[number]:[PostHistoryTypeId] <col1>[number]:[PostId] <col2>[number]:[RevisionGUID] <col3>[CreationDate]:[time] <col4>[UserId]:[number] <col5>[UserDisplayName]:[text] <col6>[Comment]:[text] <col7>[Text]:[text] <col8>[ContentLicense]:[text] } <table20>[CloseAsOffTopicReasonTypes] { <col0>[number]:[IsUniversal] <col1>[boolean]:[InputTitle] <col2>[text]:[MarkdownInputGuidance] <col3>[text]:[MarkdownPostOwnerGuidance] <col4>[text]:[MarkdownPrivilegedUserGuidance] <col5>[text]:[MarkdownConcensusDescription] <col6>[text]:[CreationDate] <col7>[time]:[CreationModeratorId] <col8>[number]:[ApprovalDate] <col9>[time]:[ApprovalModeratorId] <col10>[number]:[DeactivationDate] <col11>[time]:[DeactivationModeratorId] } <table21>[PostTags] { <col0>[PostId]:[number] <col1>[TagId]:[number] } <table22>[PostsWithDeleted] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table23>[SuggestedEdits] { <col0>[number]:[PostId] <col1>[number]:[CreationDate] <col2>[time]:[ApprovalDate] <col3>[time]:[RejectionDate] <col4>[time]:[OwnerUserId] <col5>[number]:[Comment] <col6>[text]:[Text] <col7>[text]:[Title] <col8>[text]:[Tags] <col9>[text]:[RevisionGUID] } <table24>[Users] { <col0>[number]:[Reputation] <col1>[number]:[CreationDate] <col2>[time]:[DisplayName] <col3>[text]:[LastAccessDate] <col4>[time]:[WebsiteUrl] <col5>[text]:[Location] <col6>[text]:[AboutMe] <col7>[text]:[Views] <col8>[number]:[UpVotes] <col9>[number]:[DownVotes] <col10>[number]:[ProfileImageUrl] <col11>[text]:[EmailHash] <col12>[text]:[AccountId] } <table25>[CloseReasonTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table26>[Badges] { <col0>[number]:[UserId] <col1>[number]:[text] <col2>[Date]:[time] <col3>[Class]:[number] <col4>[TagBased]:[boolean] } <table27>[PostFeedback] { <col0>[number]:[PostId] <col1>[number]:[IsAnonymous] <col2>[boolean]:[VoteTypeId] <col3>[number]:[CreationDate] } <table28>[ReviewTaskResultTypes] { <col0>[number]:[text] <col1>[Description]:[text] } | SELECT Reputation, Id AS "user_link", Location, age FROM `<table24>` WHERE Location LIKE '%##country##%' ORDER BY Reputation DESC | Are you one of the top SO-users in your country or state?. As in the title. Depends on what people type into the country description.
|
<table0>[esports_tournaments] { <col0>[INT]:[PRIMARY] <col1>[KEY]:[name] <col2>[VARCHAR]:[game_name] <col3>[VARCHAR]:[location] <col4>[VARCHAR]:[start_date] <col5>[DATE]:[end_date] <col6>[DATE]:[INSERT] } | UPDATE esports_tournaments SET start_date = DATEADD( day, -7, start_date ); | Update the eSports tournament start dates to be one week earlier |
<table0>[people] { <col0>[People_ID]:[int] <col1>[District]:[text] <col2>[text]:[Party] <col3>[text]:[Age] } <table1>[debate] { <col0>[Debate_ID]:[int] <col1>[Date]:[text] <col2>[Venue]:[text] <col3>[Num_of_Audience]:[int] } <table2>[debate_people] { <col0>[Debate_ID]:[int] <col1>[Affirmative]:[int] <col2>[Negative]:[int] <col3>[If_Affirmative_Win]:[bool] } | SELECT Name, COUNT( Name ) FROM `<table2>` AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Affirmative = T3.People_ID GROUP BY Name | Show the number of debates for each person on the affirmative side in a pie chart. |
<table0>[table_204_108] { <col0>[number]:[typ] <col1>[text]:[construction] <col2>[time]:[text] <col3>[cylinders]:[text] <col4>[capacity]:[text] <col5>[power]:[text] <col6>[speed]:[text] } | SELECT "typ" FROM `<table0>` WHERE "typ" IN ( '4/8 ps', 'k 5/13 ps' ) ORDER BY "construction time" LIMIT 1 | which was built first ? the 4/8 ps or the k 5/13 ps ? |
<table0>[chartevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[itemid]:[number] <col5>[charttime]:[time] <col6>[valuenum]:[number] <col7>[valueuom]:[text] } <table1>[prescriptions] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[startdate]:[time] <col4>[enddate]:[time] <col5>[drug]:[text] <col6>[dose_val_rx]:[text] <col7>[dose_unit_rx]:[text] <col8>[route]:[text] } <table2>[microbiologyevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[charttime]:[time] <col4>[spec_type_desc]:[text] <col5>[org_name]:[text] } <table3>[outputevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[charttime]:[time] <col5>[itemid]:[number] <col6>[value]:[number] } <table4>[d_icd_procedures] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[text] } <table5>[labevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[itemid]:[number] <col4>[charttime]:[time] <col5>[valuenum]:[number] <col6>[valueuom]:[text] } <table6>[inputevents_cv] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[charttime]:[time] <col5>[itemid]:[number] } <table7>[d_labitems] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] } <table8>[d_items] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] <col3>[linksto]:[text] } <table9>[admissions] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[admittime]:[time] <col4>[dischtime]:[time] <col5>[admission_type]:[text] <col6>[admission_location]:[text] <col7>[discharge_location]:[text] <col8>[insurance]:[text] <col9>[language]:[text] <col10>[marital_status]:[text] <col11>[ethnicity]:[text] <col12>[age]:[number] } <table10>[transfers] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[eventtype]:[text] <col5>[careunit]:[text] <col6>[wardid]:[number] <col7>[intime]:[time] <col8>[outtime]:[time] } <table11>[patients] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[gender]:[text] <col3>[dob]:[time] <col4>[dod]:[time] } <table12>[diagnoses_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table13>[cost] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[event_type]:[text] <col4>[event_id]:[number] <col5>[chargetime]:[time] } <table14>[procedures_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table15>[d_icd_diagnoses] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[text] } <table16>[icustays] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[first_careunit]:[text] <col5>[last_careunit]:[text] <col6>[first_wardid]:[number] <col7>[last_wardid]:[number] <col8>[intime]:[time] <col9>[outtime]:[time] } | SELECT COUNT( * ) FROM `<table1>` WHERE `<table1>`.drug = 'heparin flush picc ( 100 units/ml )' AND STRFTIME( '%y', `<table1>`.startdate ) <= '2104' | what's the number of times heparin flush picc (100 units/ml) was prescribed until 2104?
|
<table0>[student_accommodations] { <col0>[student_id]:[INT] <col1>[disability_type]:[VARCHAR] <col2>[255]:[country] <col3>[VARCHAR]:[255] <col4>[date]:[DATE] <col5>[cost]:[INT] } | SELECT SUM( `<col5>` ) as total_cost FROM `<table0>` WHERE `<col1>` = 'Mobility Impairment' AND `<col4>` BETWEEN DATE_SUB( NOW( ), INTERVAL 3 MONTH ) AND NOW( ); | What is the total cost of accommodations for students with mobility impairments in the last 3 months? |
<table0>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[BelongsOnBaseHostAddress] } <table1>[PostsWithDeleted] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table2>[PostNoticeTypes] { <col0>[number]:[ClassId] <col1>[number]:[text] <col2>[Body]:[text] <col3>[IsHidden]:[boolean] <col4>[Predefined]:[boolean] <col5>[PostNoticeDurationId]:[number] } <table3>[PostHistoryTypes] { <col0>[number]:[text] } <table4>[Comments] { <col0>[number]:[PostId] <col1>[number]:[Score] <col2>[number]:[Text] <col3>[text]:[CreationDate] <col4>[time]:[UserDisplayName] <col5>[text]:[UserId] <col6>[number]:[ContentLicense] } <table5>[Posts] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table6>[PostTypes] { <col0>[number]:[text] } <table7>[PostHistory] { <col0>[number]:[PostHistoryTypeId] <col1>[number]:[PostId] <col2>[number]:[RevisionGUID] <col3>[CreationDate]:[time] <col4>[UserId]:[number] <col5>[UserDisplayName]:[text] <col6>[Comment]:[text] <col7>[Text]:[text] <col8>[ContentLicense]:[text] } <table8>[ReviewTaskTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table9>[ReviewTaskResultTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table10>[PostNotices] { <col0>[number]:[PostId] <col1>[number]:[PostNoticeTypeId] <col2>[number]:[CreationDate] <col3>[time]:[DeletionDate] <col4>[time]:[ExpiryDate] <col5>[time]:[Body] <col6>[text]:[OwnerUserId] <col7>[number]:[DeletionUserId] } <table11>[SuggestedEditVotes] { <col0>[number]:[SuggestedEditId] <col1>[number]:[UserId] <col2>[number]:[VoteTypeId] <col3>[number]:[CreationDate] <col4>[time]:[TargetUserId] <col5>[number]:[TargetRepChange] } <table12>[FlagTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table13>[Tags] { <col0>[number]:[TagName] <col1>[text]:[Count] <col2>[number]:[ExcerptPostId] <col3>[number]:[WikiPostId] } <table14>[Users] { <col0>[number]:[Reputation] <col1>[number]:[CreationDate] <col2>[time]:[DisplayName] <col3>[text]:[LastAccessDate] <col4>[time]:[WebsiteUrl] <col5>[text]:[Location] <col6>[text]:[AboutMe] <col7>[text]:[Views] <col8>[number]:[UpVotes] <col9>[number]:[DownVotes] <col10>[number]:[ProfileImageUrl] <col11>[text]:[EmailHash] <col12>[text]:[AccountId] } <table15>[VoteTypes] { <col0>[number]:[text] } <table16>[PostLinks] { <col0>[number]:[CreationDate] <col1>[time]:[PostId] <col2>[number]:[RelatedPostId] <col3>[number]:[LinkTypeId] } <table17>[ReviewTasks] { <col0>[number]:[ReviewTaskTypeId] <col1>[number]:[CreationDate] <col2>[time]:[DeletionDate] <col3>[time]:[ReviewTaskStateId] <col4>[number]:[PostId] <col5>[number]:[SuggestedEditId] <col6>[number]:[CompletedByReviewTaskId] } <table18>[PostFeedback] { <col0>[number]:[PostId] <col1>[number]:[IsAnonymous] <col2>[boolean]:[VoteTypeId] <col3>[number]:[CreationDate] } <table19>[ReviewTaskResults] { <col0>[number]:[ReviewTaskId] <col1>[number]:[ReviewTaskResultTypeId] <col2>[number]:[CreationDate] <col3>[time]:[RejectionReasonId] <col4>[number]:[Comment] } <table20>[ReviewTaskStates] { <col0>[number]:[text] <col1>[Description]:[text] } <table21>[SuggestedEdits] { <col0>[number]:[PostId] <col1>[number]:[CreationDate] <col2>[time]:[ApprovalDate] <col3>[time]:[RejectionDate] <col4>[time]:[OwnerUserId] <col5>[number]:[Comment] <col6>[text]:[Text] <col7>[text]:[Title] <col8>[text]:[Tags] <col9>[text]:[RevisionGUID] } <table22>[CloseReasonTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table23>[PostTags] { <col0>[PostId]:[number] <col1>[TagId]:[number] } <table24>[CloseAsOffTopicReasonTypes] { <col0>[number]:[IsUniversal] <col1>[boolean]:[InputTitle] <col2>[text]:[MarkdownInputGuidance] <col3>[text]:[MarkdownPostOwnerGuidance] <col4>[text]:[MarkdownPrivilegedUserGuidance] <col5>[text]:[MarkdownConcensusDescription] <col6>[text]:[CreationDate] <col7>[time]:[CreationModeratorId] <col8>[number]:[ApprovalDate] <col9>[time]:[ApprovalModeratorId] <col10>[number]:[DeactivationDate] <col11>[time]:[DeactivationModeratorId] } <table25>[Badges] { <col0>[number]:[UserId] <col1>[number]:[text] <col2>[Date]:[time] <col3>[Class]:[number] <col4>[TagBased]:[boolean] } <table26>[ReviewRejectionReasons] { <col0>[number]:[text] <col1>[Description]:[text] <col2>[PostTypeId]:[number] } <table27>[TagSynonyms] { <col0>[number]:[SourceTagName] <col1>[text]:[TargetTagName] <col2>[text]:[CreationDate] <col3>[time]:[OwnerUserId] <col4>[number]:[AutoRenameCount] <col5>[number]:[LastAutoRename] <col6>[time]:[Score] <col7>[number]:[ApprovedByUserId] <col8>[number]:[ApprovalDate] } <table28>[Votes] { <col0>[number]:[PostId] <col1>[number]:[VoteTypeId] <col2>[number]:[UserId] <col3>[number]:[CreationDate] <col4>[time]:[BountyAmount] } | SELECT t.TagName, COUNT( a.Id ) AS NumAnswers, SUM( a.Score ) AS TotalScore, AVG( a.Score + 0.0 ) AS AvgScore FROM `<table5>` AS a JOIN `<table5>` AS q ON a.ParentId = q.Id JOIN PostTags AS pt ON pt.PostId = q.Id JOIN Tags AS t ON t.Id = pt.TagId WHERE a.PostTypeId = 2 AND t.TagName IN ( 'java', 'c#', 'c', 'c++', 'python', 'ruby', 'scala', 'haskell', 'clojure', 'objective-c', 'f#', 'scheme', 'ocaml', 'lisp', 'php', 'javascript', 'perl', 'r', 'bash', 'matlab', 'fortran', 'go', 'cobol', 'delphi' ) GROUP BY t.TagName, t.Id HAVING COUNT( a.Id ) >= 1000 ORDER BY AvgScore DESC | Tags with highest average answer scores (among tags with at least 1000 answers).
|
<table0>[table_57742] { <col0>[Game]:[real] <col1>[Date]:[text] <col2>[Team]:[text] <col3>[Score]:[text] <col4>[High]:[points] <col5>[text]:[High] <col6>[assists]:[text] <col7>[Location]:[Attendance] <col8>[text]:[Record] } | SELECT "Location Attendance" FROM `<table0>` WHERE "Team" = 'golden state' | What is the location attendance when the team is Golden State?
|
<table0>[table_name_18] { <col0>[location]:[VARCHAR] <col1>[event]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "ufc 154" | Where was the UFC 154 match held?
|
<table0>[table_25008327_8] { <col0>[VARCHAR]:[polish] } | SELECT словјански FROM `<table0>` WHERE polish = "książka" | What is every value for if polish is ksi ka?
|
<table0>[table_name_81] { <col0>[location]:[VARCHAR] <col1>[tournament]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "b.c. open" | What is the location of the b.c. open? |
<table0>[buildings] { <col0>[int]:[name] <col1>[text]:[City] <col2>[text]:[Height] <col3>[int]:[Stories] <col4>[int]:[Status] } <table1>[Office_locations] { <col0>[building_id]:[int] <col1>[company_id]:[int] <col2>[move_in_year]:[int] } <table2>[Companies] { <col0>[int]:[name] <col1>[text]:[Headquarters] <col2>[text]:[Industry] <col3>[text]:[Sales_billion] <col4>[real]:[Profits_billion] <col5>[real]:[Assets_billion] <col6>[real]:[Market_Value_billion] } | SELECT name, Assets_billion FROM `<table2>` ORDER BY name | Return a bar chart on what are the name and assets of each company, sorted in ascending order of company name? |
<table0>[Comments] { <col0>[number]:[PostId] <col1>[number]:[Score] <col2>[number]:[Text] <col3>[text]:[CreationDate] <col4>[time]:[UserDisplayName] <col5>[text]:[UserId] <col6>[number]:[ContentLicense] } <table1>[CloseAsOffTopicReasonTypes] { <col0>[number]:[IsUniversal] <col1>[boolean]:[InputTitle] <col2>[text]:[MarkdownInputGuidance] <col3>[text]:[MarkdownPostOwnerGuidance] <col4>[text]:[MarkdownPrivilegedUserGuidance] <col5>[text]:[MarkdownConcensusDescription] <col6>[text]:[CreationDate] <col7>[time]:[CreationModeratorId] <col8>[number]:[ApprovalDate] <col9>[time]:[ApprovalModeratorId] <col10>[number]:[DeactivationDate] <col11>[time]:[DeactivationModeratorId] } <table2>[SuggestedEdits] { <col0>[number]:[PostId] <col1>[number]:[CreationDate] <col2>[time]:[ApprovalDate] <col3>[time]:[RejectionDate] <col4>[time]:[OwnerUserId] <col5>[number]:[Comment] <col6>[text]:[Text] <col7>[text]:[Title] <col8>[text]:[Tags] <col9>[text]:[RevisionGUID] } <table3>[PostTypes] { <col0>[number]:[text] } <table4>[VoteTypes] { <col0>[number]:[text] } <table5>[PostHistoryTypes] { <col0>[number]:[text] } <table6>[CloseReasonTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table7>[PostFeedback] { <col0>[number]:[PostId] <col1>[number]:[IsAnonymous] <col2>[boolean]:[VoteTypeId] <col3>[number]:[CreationDate] } <table8>[Posts] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table9>[Users] { <col0>[number]:[Reputation] <col1>[number]:[CreationDate] <col2>[time]:[DisplayName] <col3>[text]:[LastAccessDate] <col4>[time]:[WebsiteUrl] <col5>[text]:[Location] <col6>[text]:[AboutMe] <col7>[text]:[Views] <col8>[number]:[UpVotes] <col9>[number]:[DownVotes] <col10>[number]:[ProfileImageUrl] <col11>[text]:[EmailHash] <col12>[text]:[AccountId] } <table10>[ReviewTaskResultTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table11>[PostNoticeTypes] { <col0>[number]:[ClassId] <col1>[number]:[text] <col2>[Body]:[text] <col3>[IsHidden]:[boolean] <col4>[Predefined]:[boolean] <col5>[PostNoticeDurationId]:[number] } <table12>[Votes] { <col0>[number]:[PostId] <col1>[number]:[VoteTypeId] <col2>[number]:[UserId] <col3>[number]:[CreationDate] <col4>[time]:[BountyAmount] } <table13>[PostsWithDeleted] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table14>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[BelongsOnBaseHostAddress] } <table15>[ReviewTasks] { <col0>[number]:[ReviewTaskTypeId] <col1>[number]:[CreationDate] <col2>[time]:[DeletionDate] <col3>[time]:[ReviewTaskStateId] <col4>[number]:[PostId] <col5>[number]:[SuggestedEditId] <col6>[number]:[CompletedByReviewTaskId] } <table16>[ReviewRejectionReasons] { <col0>[number]:[text] <col1>[Description]:[text] <col2>[PostTypeId]:[number] } <table17>[PostHistory] { <col0>[number]:[PostHistoryTypeId] <col1>[number]:[PostId] <col2>[number]:[RevisionGUID] <col3>[CreationDate]:[time] <col4>[UserId]:[number] <col5>[UserDisplayName]:[text] <col6>[Comment]:[text] <col7>[Text]:[text] <col8>[ContentLicense]:[text] } <table18>[Badges] { <col0>[number]:[UserId] <col1>[number]:[text] <col2>[Date]:[time] <col3>[Class]:[number] <col4>[TagBased]:[boolean] } <table19>[PostLinks] { <col0>[number]:[CreationDate] <col1>[time]:[PostId] <col2>[number]:[RelatedPostId] <col3>[number]:[LinkTypeId] } <table20>[FlagTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table21>[ReviewTaskTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table22>[SuggestedEditVotes] { <col0>[number]:[SuggestedEditId] <col1>[number]:[UserId] <col2>[number]:[VoteTypeId] <col3>[number]:[CreationDate] <col4>[time]:[TargetUserId] <col5>[number]:[TargetRepChange] } <table23>[TagSynonyms] { <col0>[number]:[SourceTagName] <col1>[text]:[TargetTagName] <col2>[text]:[CreationDate] <col3>[time]:[OwnerUserId] <col4>[number]:[AutoRenameCount] <col5>[number]:[LastAutoRename] <col6>[time]:[Score] <col7>[number]:[ApprovedByUserId] <col8>[number]:[ApprovalDate] } <table24>[PostNotices] { <col0>[number]:[PostId] <col1>[number]:[PostNoticeTypeId] <col2>[number]:[CreationDate] <col3>[time]:[DeletionDate] <col4>[time]:[ExpiryDate] <col5>[time]:[Body] <col6>[text]:[OwnerUserId] <col7>[number]:[DeletionUserId] } <table25>[Tags] { <col0>[number]:[TagName] <col1>[text]:[Count] <col2>[number]:[ExcerptPostId] <col3>[number]:[WikiPostId] } <table26>[ReviewTaskStates] { <col0>[number]:[text] <col1>[Description]:[text] } <table27>[ReviewTaskResults] { <col0>[number]:[ReviewTaskId] <col1>[number]:[ReviewTaskResultTypeId] <col2>[number]:[CreationDate] <col3>[time]:[RejectionReasonId] <col4>[number]:[Comment] } <table28>[PostTags] { <col0>[PostId]:[number] <col1>[TagId]:[number] } | SELECT ROW_NUMBER( ) OVER ( ORDER BY Reputation DESC ) AS "#", Id AS "user_link", DisplayName, Reputation FROM `<table9>` WHERE LOWER( Location ) LIKE LOWER( '%##CountryName##%' ) ORDER BY Reputation DESC LIMIT 50 | Top 50 Users by Country Name. |
<table0>[storm] { <col0>[Storm_ID]:[int] <col1>[text]:[Dates_active] <col2>[text]:[Max_speed] <col3>[int]:[Damage_millions_USD] <col4>[real]:[Number_Deaths] } <table1>[affected_region] { <col0>[Region_id]:[int] <col1>[Storm_ID]:[int] <col2>[Number_city_affected]:[real] } <table2>[region] { <col0>[Region_id]:[int] <col1>[Region_code]:[text] <col2>[Region_name]:[text] } | SELECT Dates_active, Number_Deaths FROM `<table0>` WHERE Number_Deaths >= 1 | For all storms with at least 1 death, compare the total number of deaths by dates_active attribute.
|
<table0>[ReviewTaskTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table1>[PostFeedback] { <col0>[number]:[PostId] <col1>[number]:[IsAnonymous] <col2>[boolean]:[VoteTypeId] <col3>[number]:[CreationDate] } <table2>[TagSynonyms] { <col0>[number]:[SourceTagName] <col1>[text]:[TargetTagName] <col2>[text]:[CreationDate] <col3>[time]:[OwnerUserId] <col4>[number]:[AutoRenameCount] <col5>[number]:[LastAutoRename] <col6>[time]:[Score] <col7>[number]:[ApprovedByUserId] <col8>[number]:[ApprovalDate] } <table3>[PostsWithDeleted] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table4>[SuggestedEdits] { <col0>[number]:[PostId] <col1>[number]:[CreationDate] <col2>[time]:[ApprovalDate] <col3>[time]:[RejectionDate] <col4>[time]:[OwnerUserId] <col5>[number]:[Comment] <col6>[text]:[Text] <col7>[text]:[Title] <col8>[text]:[Tags] <col9>[text]:[RevisionGUID] } <table5>[PostLinks] { <col0>[number]:[CreationDate] <col1>[time]:[PostId] <col2>[number]:[RelatedPostId] <col3>[number]:[LinkTypeId] } <table6>[VoteTypes] { <col0>[number]:[text] } <table7>[Badges] { <col0>[number]:[UserId] <col1>[number]:[text] <col2>[Date]:[time] <col3>[Class]:[number] <col4>[TagBased]:[boolean] } <table8>[SuggestedEditVotes] { <col0>[number]:[SuggestedEditId] <col1>[number]:[UserId] <col2>[number]:[VoteTypeId] <col3>[number]:[CreationDate] <col4>[time]:[TargetUserId] <col5>[number]:[TargetRepChange] } <table9>[Posts] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table10>[Comments] { <col0>[number]:[PostId] <col1>[number]:[Score] <col2>[number]:[Text] <col3>[text]:[CreationDate] <col4>[time]:[UserDisplayName] <col5>[text]:[UserId] <col6>[number]:[ContentLicense] } <table11>[CloseAsOffTopicReasonTypes] { <col0>[number]:[IsUniversal] <col1>[boolean]:[InputTitle] <col2>[text]:[MarkdownInputGuidance] <col3>[text]:[MarkdownPostOwnerGuidance] <col4>[text]:[MarkdownPrivilegedUserGuidance] <col5>[text]:[MarkdownConcensusDescription] <col6>[text]:[CreationDate] <col7>[time]:[CreationModeratorId] <col8>[number]:[ApprovalDate] <col9>[time]:[ApprovalModeratorId] <col10>[number]:[DeactivationDate] <col11>[time]:[DeactivationModeratorId] } <table12>[Tags] { <col0>[number]:[TagName] <col1>[text]:[Count] <col2>[number]:[ExcerptPostId] <col3>[number]:[WikiPostId] } <table13>[PostNoticeTypes] { <col0>[number]:[ClassId] <col1>[number]:[text] <col2>[Body]:[text] <col3>[IsHidden]:[boolean] <col4>[Predefined]:[boolean] <col5>[PostNoticeDurationId]:[number] } <table14>[ReviewTaskStates] { <col0>[number]:[text] <col1>[Description]:[text] } <table15>[PostHistory] { <col0>[number]:[PostHistoryTypeId] <col1>[number]:[PostId] <col2>[number]:[RevisionGUID] <col3>[CreationDate]:[time] <col4>[UserId]:[number] <col5>[UserDisplayName]:[text] <col6>[Comment]:[text] <col7>[Text]:[text] <col8>[ContentLicense]:[text] } <table16>[FlagTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table17>[ReviewTaskResults] { <col0>[number]:[ReviewTaskId] <col1>[number]:[ReviewTaskResultTypeId] <col2>[number]:[CreationDate] <col3>[time]:[RejectionReasonId] <col4>[number]:[Comment] } <table18>[ReviewTasks] { <col0>[number]:[ReviewTaskTypeId] <col1>[number]:[CreationDate] <col2>[time]:[DeletionDate] <col3>[time]:[ReviewTaskStateId] <col4>[number]:[PostId] <col5>[number]:[SuggestedEditId] <col6>[number]:[CompletedByReviewTaskId] } <table19>[Users] { <col0>[number]:[Reputation] <col1>[number]:[CreationDate] <col2>[time]:[DisplayName] <col3>[text]:[LastAccessDate] <col4>[time]:[WebsiteUrl] <col5>[text]:[Location] <col6>[text]:[AboutMe] <col7>[text]:[Views] <col8>[number]:[UpVotes] <col9>[number]:[DownVotes] <col10>[number]:[ProfileImageUrl] <col11>[text]:[EmailHash] <col12>[text]:[AccountId] } <table20>[PostTypes] { <col0>[number]:[text] } <table21>[CloseReasonTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table22>[PostNotices] { <col0>[number]:[PostId] <col1>[number]:[PostNoticeTypeId] <col2>[number]:[CreationDate] <col3>[time]:[DeletionDate] <col4>[time]:[ExpiryDate] <col5>[time]:[Body] <col6>[text]:[OwnerUserId] <col7>[number]:[DeletionUserId] } <table23>[Votes] { <col0>[number]:[PostId] <col1>[number]:[VoteTypeId] <col2>[number]:[UserId] <col3>[number]:[CreationDate] <col4>[time]:[BountyAmount] } <table24>[ReviewRejectionReasons] { <col0>[number]:[text] <col1>[Description]:[text] <col2>[PostTypeId]:[number] } <table25>[PostTags] { <col0>[PostId]:[number] <col1>[TagId]:[number] } <table26>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[BelongsOnBaseHostAddress] } <table27>[PostHistoryTypes] { <col0>[number]:[text] } <table28>[ReviewTaskResultTypes] { <col0>[number]:[text] <col1>[Description]:[text] } | SELECT P.Title, P.Tags, P.ViewCount, P.Score, P.AnswerCount, P.CreationDate FROM `<table9>` AS P WHERE ( P.Tags LIKE '%android-testing%' ) OR ( P.Tags LIKE '%robotium%' ) OR ( P.Tags LIKE '%androidviewclient%' ) OR ( P.Tags LIKE '%monkeyrunner%' ) OR ( P.Tags LIKE '%android-espresso%' ) OR ( P.Tags LIKE '%android-emulator%' AND P.Tags LIKE '%test%' ) OR ( P.Tags LIKE '%android%' AND P.Tags LIKE '%uiautomator%' ) OR ( P.Tags LIKE '%android%' AND P.Tags LIKE '%appium%' ) OR ( P.Tags LIKE '%android%' AND P.Tags LIKE '%calabash%' ) OR ( P.Tags LIKE '%android%' AND P.Tags LIKE '%test%' ) ORDER BY P.Score DESC | All info Mobile Android Testing without EMulator.
|
<table0>[products] { <col0>[product_id]:[VARCHAR] <col1>[product_name]:[VARCHAR] } <table1>[order_items] { <col0>[product_id]:[VARCHAR] <col1>[order_item_status]:[VARCHAR] <col2>[order_id]:[VARCHAR] } <table2>[orders] { <col0>[customer_id]:[VARCHAR] <col1>[order_id]:[VARCHAR] } <table3>[customers] { <col0>[customer_name]:[VARCHAR] <col1>[customer_id]:[VARCHAR] } | SELECT T1.customer_name FROM `<table3>` AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T3.order_item_status = "Cancel" AND T4.product_name = "food" GROUP BY T1.customer_id HAVING COUNT( * ) >= 1 | List the names of customers who have once canceled the purchase of the product 'food' (the item status is 'Cancel'). |
<table0>[table_203_191] { <col0>[number]:[year] <col1>[number]:[group] <col2>[text]:[award] <col3>[text]:[result] <col4>[text]:[notes] } | SELECT "group" FROM `<table0>` WHERE "result" = 'nominated' ORDER BY "year" LIMIT 1 | which was erbedija 's first festival/event where he was nominated but did n't win an award ?
|
<table0>[table_203_548] { <col0>[number]:[rank] <col1>[number]:[nation] <col2>[text]:[gold] <col3>[number]:[silver] <col4>[number]:[bronze] <col5>[number]:[total] } | SELECT ( SELECT "gold" FROM `<table0>` WHERE "nation" = 'spain' ) + ( SELECT "gold" FROM `<table0>` WHERE "nation" = 'egypt' ) | what was the total number of gold awards won between spain and egypt ? |
<table0>[table_19625976_1] { <col0>[film_title_used_in_nomination]:[VARCHAR] <col1>[persian_title]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "گبه" | For the Persian title , What was the film title used for the nomination? |
<table0>[Sales] { <col0>[SaleID]:[INT] <col1>[MenuItemID]:[INT] <col2>[Quantity]:[INT] <col3>[SaleDate]:[DATETIME] } | SELECT MenuItems.MenuItemName, SUM( MenuItems.Price * Sales.Quantity ) as Revenue FROM MenuItems JOIN Sales ON MenuItems.MenuItemID = Sales.MenuItemID WHERE MenuItems.Category = 'Vegetarian' GROUP BY MenuItems.MenuItemName ORDER BY Revenue DESC | Which vegetarian menu items generate the most revenue? |
<table0>[charging_stations] { <col0>[INT]:[system_type] <col1>[VARCHAR]:[city] <col2>[VARCHAR]:[num_stations] <col3>[INT]:[INSERT] } | SELECT num_stations FROM `<table0>` WHERE system_type = 'Public Transportation' AND city = 'Tokyo'; | how many charging stations are there in the public transportation system in Tokyo? |
<table0>[flight_leg] { <col0>[flight_id]:[int] <col1>[leg_number]:[int] <col2>[leg_flight]:[int] } <table1>[compartment_class] { <col0>[compartment]:[varchar] <col1>[class_type]:[varchar] } <table2>[class_of_service] { <col0>[booking_class]:[varchar] <col1>[rank]:[int] <col2>[class_description]:[text] } <table3>[fare] { <col0>[fare_id]:[int] <col1>[from_airport]:[varchar] <col2>[to_airport]:[varchar] <col3>[fare_basis_code]:[text] <col4>[fare_airline]:[text] <col5>[restriction_code]:[text] <col6>[one_direction_cost]:[int] <col7>[round_trip_cost]:[int] <col8>[round_trip_required]:[varchar] } <table4>[aircraft] { <col0>[aircraft_code]:[varchar] <col1>[aircraft_description]:[varchar] <col2>[manufacturer]:[varchar] <col3>[basic_type]:[varchar] <col4>[engines]:[int] <col5>[propulsion]:[varchar] <col6>[wide_body]:[varchar] <col7>[wing_span]:[int] <col8>[length]:[int] <col9>[weight]:[int] <col10>[capacity]:[int] <col11>[pay_load]:[int] <col12>[cruising_speed]:[int] <col13>[range_miles]:[int] <col14>[pressurized]:[varchar] } <table5>[airline] { <col0>[airline_code]:[varchar] <col1>[airline_name]:[text] <col2>[note]:[text] } <table6>[state] { <col0>[state_code]:[text] <col1>[state_name]:[text] <col2>[country_name]:[text] } <table7>[food_service] { <col0>[meal_code]:[text] <col1>[meal_number]:[int] <col2>[compartment]:[text] <col3>[meal_description]:[varchar] } <table8>[fare_basis] { <col0>[fare_basis_code]:[text] <col1>[booking_class]:[text] <col2>[class_type]:[text] <col3>[premium]:[text] <col4>[economy]:[text] <col5>[discounted]:[text] <col6>[night]:[text] <col7>[season]:[text] <col8>[basis_days]:[text] } <table9>[city] { <col0>[city_code]:[varchar] <col1>[city_name]:[varchar] <col2>[state_code]:[varchar] <col3>[country_name]:[varchar] <col4>[time_zone_code]:[varchar] } <table10>[flight] { <col0>[aircraft_code_sequence]:[text] <col1>[airline_code]:[varchar] } <table11>[flight_stop] { <col0>[flight_id]:[int] <col1>[stop_number]:[int] <col2>[stop_days]:[text] <col3>[stop_airport]:[text] <col4>[arrival_time]:[int] <col5>[arrival_airline]:[text] <col6>[arrival_flight_number]:[int] <col7>[departure_time]:[int] <col8>[departure_airline]:[text] <col9>[departure_flight_number]:[int] <col10>[stop_time]:[int] } <table12>[code_description] { <col0>[code]:[varchar] <col1>[description]:[text] } <table13>[days] { <col0>[days_code]:[varchar] <col1>[day_name]:[varchar] } <table14>[ground_service] { <col0>[city_code]:[text] <col1>[airport_code]:[text] <col2>[transport_type]:[text] <col3>[ground_fare]:[int] } <table15>[airport] { <col0>[airport_code]:[varchar] <col1>[airport_name]:[text] <col2>[airport_location]:[text] <col3>[state_code]:[varchar] <col4>[country_name]:[varchar] <col5>[time_zone_code]:[varchar] <col6>[minimum_connect_time]:[int] } <table16>[airport_service] { <col0>[city_code]:[varchar] <col1>[airport_code]:[varchar] <col2>[miles_distant]:[int] <col3>[direction]:[varchar] <col4>[minutes_distant]:[int] } <table17>[month] { <col0>[month_number]:[int] <col1>[month_name]:[text] } <table18>[date_day] { <col0>[month_number]:[int] <col1>[day_number]:[int] <col2>[year]:[int] <col3>[day_name]:[varchar] } <table19>[time_zone] { <col0>[time_zone_code]:[text] <col1>[time_zone_name]:[text] <col2>[hours_from_gmt]:[int] } <table20>[flight_fare] { <col0>[flight_id]:[int] <col1>[fare_id]:[int] } <table21>[equipment_sequence] { <col0>[aircraft_code_sequence]:[varchar] <col1>[aircraft_code]:[varchar] } <table22>[dual_carrier] { <col0>[main_airline]:[varchar] <col1>[low_flight_number]:[int] <col2>[high_flight_number]:[int] <col3>[dual_airline]:[varchar] <col4>[service_name]:[text] } <table23>[time_interval] { <col0>[period]:[text] <col1>[begin_time]:[int] <col2>[end_time]:[int] } <table24>[restriction] { <col0>[restriction_code]:[text] <col1>[advance_purchase]:[int] <col2>[stopovers]:[text] <col3>[saturday_stay_required]:[text] <col4>[minimum_stay]:[int] <col5>[maximum_stay]:[int] <col6>[application]:[text] <col7>[no_discounts]:[text] } | SELECT DISTINCT fare.fare_id FROM `<table16>` AS AIRPORT_SERVICE_0, `<table16>` AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day AS DATE_DAY_0, date_day AS DATE_DAY_1, days AS DAYS_0, days AS DAYS_1, fare, fare_basis, flight, flight_fare WHERE ( CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SEATTLE' AND DATE_DAY_1.day_number = 1 AND DATE_DAY_1.month_number = 7 AND DATE_DAY_1.year = 1991 AND DAYS_1.day_name = DATE_DAY_1.day_name AND flight.flight_days = DAYS_1.days_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code ) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'MINNEAPOLIS' AND DATE_DAY_0.day_number = 1 AND DATE_DAY_0.month_number = 7 AND DATE_DAY_0.year = 1991 AND DAYS_0.day_name = DATE_DAY_0.day_name AND fare_basis.basis_days = DAYS_0.days_code AND fare.fare_basis_code = fare_basis.fare_basis_code AND flight_fare.fare_id = fare.fare_id AND flight.flight_id = flight_fare.flight_id AND flight.from_airport = AIRPORT_SERVICE_0.airport_code | show me fares for flights from MINNEAPOLIS to SEATTLE on 7 1 1991 |
<table0>[table_name_81] { <col0>[venue]:[VARCHAR] <col1>[date]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "27 may 2000" | What venue was on 27 May 2000?
|
<table0>[essays] { <col0>[projectid]:[text] <col1>[teacher_acctid]:[text] <col2>[title]:[text] <col3>[short_description]:[text] <col4>[need_statement]:[text] <col5>[essay]:[text] } <table1>[projects] { <col0>[projectid]:[text] <col1>[teacher_acctid]:[text] <col2>[schoolid]:[text] <col3>[school_ncesid]:[text] <col4>[school_latitude]:[real] <col5>[school_longitude]:[real] <col6>[school_city]:[text] <col7>[school_state]:[text] <col8>[school_zip]:[integer] <col9>[school_metro]:[text] <col10>[school_district]:[text] <col11>[school_county]:[text] <col12>[school_charter]:[text] <col13>[school_magnet]:[text] <col14>[school_year_round]:[text] <col15>[school_nlns]:[text] <col16>[school_kipp]:[text] <col17>[school_charter_ready_promise]:[text] <col18>[teacher_prefix]:[text] <col19>[teacher_teach_for_america]:[text] <col20>[teacher_ny_teaching_fellow]:[text] <col21>[primary_focus_subject]:[text] <col22>[primary_focus_area]:[text] <col23>[secondary_focus_subject]:[text] <col24>[secondary_focus_area]:[text] <col25>[resource_type]:[text] <col26>[poverty_level]:[text] <col27>[grade_level]:[text] <col28>[fulfillment_labor_materials]:[real] <col29>[total_price_excluding_optional_support]:[real] <col30>[total_price_including_optional_support]:[real] <col31>[students_reached]:[integer] <col32>[eligible_double_your_impact_match]:[text] <col33>[eligible_almost_home_match]:[text] <col34>[date_posted]:[date] } <table2>[donations] { <col0>[donationid]:[text] <col1>[projectid]:[text] <col2>[donor_acctid]:[text] <col3>[donor_city]:[text] <col4>[donor_state]:[text] <col5>[donor_zip]:[text] <col6>[is_teacher_acct]:[text] <col7>[donation_timestamp]:[datetime] <col8>[donation_to_project]:[real] <col9>[donation_optional_support]:[real] <col10>[donation_total]:[real] <col11>[dollar_amount]:[text] <col12>[donation_included_optional_support]:[text] <col13>[payment_method]:[text] <col14>[payment_included_acct_credit]:[text] <col15>[payment_included_campaign_gift_card]:[text] <col16>[payment_included_web_purchased_gift_card]:[text] <col17>[payment_was_promo_matched]:[text] <col18>[via_giving_page]:[text] <col19>[for_honoree]:[text] <col20>[donation_message]:[text] } <table3>[resources] { <col0>[resourceid]:[text] <col1>[projectid]:[text] <col2>[vendorid]:[integer] <col3>[vendor_name]:[text] <col4>[project_resource_type]:[text] <col5>[item_name]:[text] <col6>[item_number]:[text] <col7>[item_unit_price]:[real] <col8>[item_quantity]:[integer] } | SELECT COUNT( `<col0>` ) FROM `<table1>` WHERE `<col10>` = 'Boston Public School District' AND `<col27>` = 'Grades 3-5' | What is the total number of projects that was created by the teachers that teach 3-5 grades in Boston Public School District? |
<table0>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug_cd]:[text] <col6>[route]:[text] <col7>[drug_dose]:[text] } <table1>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table2>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } <table3>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[text] <col4>[age]:[text] <col5>[dob]:[text] <col6>[gender]:[text] <col7>[language]:[text] <col8>[religion]:[text] <col9>[admission_type]:[text] <col10>[days_stay]:[text] <col11>[insurance]:[text] <col12>[ethnicity]:[text] <col13>[expire_flag]:[text] <col14>[admission_location]:[text] <col15>[discharge_location]:[text] <col16>[diagnosis]:[text] <col17>[dod]:[text] <col18>[dob_year]:[text] <col19>[dod_year]:[text] <col20>[admittime]:[text] <col21>[dischtime]:[text] <col22>[admityear]:[text] } <table4>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } | SELECT COUNT( DISTINCT `<table3>`.subject_id ) FROM `<table3>` INNER JOIN diagnoses ON `<table3>`.hadm_id = diagnoses.hadm_id WHERE `<table3>`.expire_flag = "0" AND diagnoses.short_title = "Angioneurotic edema" | count the number of patients whose death status is 0 and diagnoses short title is angioneurotic edema? |
<table0>[table_name_40] { <col0>[date]:[VARCHAR] <col1>[game_site]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "lincoln financial field" | On what date was the game at Lincoln Financial Field? |
<table0>[procedures_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table1>[diagnoses_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table2>[d_items] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] <col3>[linksto]:[text] } <table3>[d_icd_diagnoses] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[text] } <table4>[inputevents_cv] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[charttime]:[time] <col5>[itemid]:[number] } <table5>[prescriptions] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[startdate]:[time] <col4>[enddate]:[time] <col5>[drug]:[text] <col6>[dose_val_rx]:[text] <col7>[dose_unit_rx]:[text] <col8>[route]:[text] } <table6>[d_icd_procedures] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[text] } <table7>[transfers] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[eventtype]:[text] <col5>[careunit]:[text] <col6>[wardid]:[number] <col7>[intime]:[time] <col8>[outtime]:[time] } <table8>[patients] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[gender]:[text] <col3>[dob]:[time] <col4>[dod]:[time] } <table9>[cost] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[event_type]:[text] <col4>[event_id]:[number] <col5>[chargetime]:[time] } <table10>[chartevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[itemid]:[number] <col5>[charttime]:[time] <col6>[valuenum]:[number] <col7>[valueuom]:[text] } <table11>[admissions] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[admittime]:[time] <col4>[dischtime]:[time] <col5>[admission_type]:[text] <col6>[admission_location]:[text] <col7>[discharge_location]:[text] <col8>[insurance]:[text] <col9>[language]:[text] <col10>[marital_status]:[text] <col11>[ethnicity]:[text] <col12>[age]:[number] } <table12>[outputevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[charttime]:[time] <col5>[itemid]:[number] <col6>[value]:[number] } <table13>[icustays] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[first_careunit]:[text] <col5>[last_careunit]:[text] <col6>[first_wardid]:[number] <col7>[last_wardid]:[number] <col8>[intime]:[time] <col9>[outtime]:[time] } <table14>[microbiologyevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[charttime]:[time] <col4>[spec_type_desc]:[text] <col5>[org_name]:[text] } <table15>[labevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[itemid]:[number] <col4>[charttime]:[time] <col5>[valuenum]:[number] <col6>[valueuom]:[text] } <table16>[d_labitems] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] } | SELECT COUNT( * ) FROM `<table15>` WHERE `<table15>`.itemid IN ( SELECT `<table16>`.itemid FROM `<table16>` WHERE `<table16>`.label = 'bicarbonate' ) AND `<table15>`.hadm_id IN ( SELECT `<table11>`.hadm_id FROM `<table11>` WHERE `<table11>`.subject_id = 28253 ) AND STRFTIME( '%y', `<table15>`.charttime ) = '2102' | what was the number of times patient 28253 had a bicarbonate test in 2102? |
<table0>[icustays] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[first_careunit]:[text] <col5>[last_careunit]:[text] <col6>[first_wardid]:[number] <col7>[last_wardid]:[number] <col8>[intime]:[time] <col9>[outtime]:[time] } <table1>[d_icd_procedures] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[text] } <table2>[diagnoses_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table3>[chartevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[itemid]:[number] <col5>[charttime]:[time] <col6>[valuenum]:[number] <col7>[valueuom]:[text] } <table4>[prescriptions] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[startdate]:[time] <col4>[enddate]:[time] <col5>[drug]:[text] <col6>[dose_val_rx]:[text] <col7>[dose_unit_rx]:[text] <col8>[route]:[text] } <table5>[transfers] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[eventtype]:[text] <col5>[careunit]:[text] <col6>[wardid]:[number] <col7>[intime]:[time] <col8>[outtime]:[time] } <table6>[d_items] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] <col3>[linksto]:[text] } <table7>[admissions] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[admittime]:[time] <col4>[dischtime]:[time] <col5>[admission_type]:[text] <col6>[admission_location]:[text] <col7>[discharge_location]:[text] <col8>[insurance]:[text] <col9>[language]:[text] <col10>[marital_status]:[text] <col11>[ethnicity]:[text] <col12>[age]:[number] } <table8>[procedures_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table9>[microbiologyevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[charttime]:[time] <col4>[spec_type_desc]:[text] <col5>[org_name]:[text] } <table10>[d_icd_diagnoses] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[text] } <table11>[cost] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[event_type]:[text] <col4>[event_id]:[number] <col5>[chargetime]:[time] } <table12>[labevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[itemid]:[number] <col4>[charttime]:[time] <col5>[valuenum]:[number] <col6>[valueuom]:[text] } <table13>[outputevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[charttime]:[time] <col5>[itemid]:[number] <col6>[value]:[number] } <table14>[inputevents_cv] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[charttime]:[time] <col5>[itemid]:[number] } <table15>[d_labitems] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] } <table16>[patients] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[gender]:[text] <col3>[dob]:[time] <col4>[dod]:[time] } | SELECT COUNT( DISTINCT t1.subject_id ) FROM ( SELECT admissions.subject_id, `<table8>`.charttime FROM `<table8>` JOIN admissions ON `<table8>`.hadm_id = admissions.hadm_id WHERE `<table8>`.icd9_code = ( SELECT `<table1>`.icd9_code FROM `<table1>` WHERE `<table1>`.short_title = 'nephroureterectomy' ) AND DATETIME( `<table8>`.charttime, 'start of year' ) = DATETIME( CURRENT_TIME( ), 'start of year', '-0 year' ) ) AS t1 JOIN ( SELECT admissions.subject_id, `<table8>`.charttime FROM `<table8>` JOIN admissions ON `<table8>`.hadm_id = admissions.hadm_id WHERE `<table8>`.icd9_code = ( SELECT `<table1>`.icd9_code FROM `<table1>` WHERE `<table1>`.short_title = 'cont inv mec ven 96+ hrs' ) AND DATETIME( `<table8>`.charttime, 'start of year' ) = DATETIME( CURRENT_TIME( ), 'start of year', '-0 year' ) ) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.charttime AND DATETIME( t1.charttime, 'start of month' ) = DATETIME( t2.charttime, 'start of month' ) | how many patients have undergone cont inv mec ven 96+ hrs within the same month after the previous nephroureterectomy in this year? |
<table0>[table_name_54] { <col0>[record]:[VARCHAR] <col1>[loss]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "kendrick ( 11–8 )" | Loss of kendrick (11 8) had what record? |
<table0>[STUDENT] { <col0>[STU_NUM]:[int] <col1>[STU_LNAME]:[varchar] <col2>[STU_FNAME]:[varchar] <col3>[STU_INIT]:[varchar] <col4>[STU_DOB]:[datetime] <col5>[STU_HRS]:[int] <col6>[STU_CLASS]:[varchar] <col7>[STU_GPA]:[float] <col8>[STU_TRANSFER]:[numeric] <col9>[DEPT_CODE]:[varchar] <col10>[STU_PHONE]:[varchar] <col11>[PROF_NUM]:[int] } <table1>[COURSE] { <col0>[CRS_CODE]:[varchar] <col1>[DEPT_CODE]:[varchar] <col2>[CRS_DESCRIPTION]:[varchar] <col3>[CRS_CREDIT]:[float] } <table2>[CLASS] { <col0>[CLASS_CODE]:[varchar] <col1>[CRS_CODE]:[varchar] <col2>[CLASS_SECTION]:[varchar] <col3>[CLASS_TIME]:[varchar] <col4>[CLASS_ROOM]:[varchar] <col5>[PROF_NUM]:[int] } <table3>[EMPLOYEE] { <col0>[EMP_NUM]:[int] <col1>[EMP_LNAME]:[varchar] <col2>[EMP_FNAME]:[varchar] <col3>[EMP_INITIAL]:[varchar] <col4>[EMP_JOBCODE]:[varchar] <col5>[EMP_HIREDATE]:[datetime] <col6>[EMP_DOB]:[datetime] } <table4>[ENROLL] { <col0>[CLASS_CODE]:[varchar] <col1>[STU_NUM]:[int] <col2>[ENROLL_GRADE]:[varchar] } <table5>[DEPARTMENT] { <col0>[DEPT_CODE]:[varchar] <col1>[DEPT_NAME]:[varchar] <col2>[SCHOOL_CODE]:[varchar] <col3>[EMP_NUM]:[int] <col4>[DEPT_ADDRESS]:[varchar] <col5>[DEPT_EXTENSION]:[varchar] } <table6>[PROFESSOR] { <col0>[EMP_NUM]:[int] <col1>[DEPT_CODE]:[varchar] <col2>[PROF_OFFICE]:[varchar] <col3>[PROF_EXTENSION]:[varchar] <col4>[PROF_HIGH_DEGREE]:[varchar] } | SELECT DEPT_CODE, SUM( `<col5>` ) FROM `<table0>` GROUP BY `<col9>` ORDER BY SUM( `<col5>` ) | Return a bar chart on how many hours do the students spend studying in each department?, and I want to sort by the y axis in ascending.
|
<table0>[ContractNegotiations] { <col0>[INT]:[country1] <col1>[VARCHAR]:[country2] <col2>[VARCHAR]:[date] } <table1>[RiskAssessments] { <col0>[INT]:[country] <col1>[VARCHAR]:[risk_score] } | SELECT `<table0>`.country1, `<table0>`.country2, `<table0>`.date, RiskAssessments.risk_score FROM `<table0>` INNER JOIN RiskAssessments ON ( `<table0>`.country1 = RiskAssessments.country OR `<table0>`.country2 = RiskAssessments.country ) WHERE ( `<table0>`.country1 = 'US' AND `<table0>`.country2 = 'Russia' ) OR ( `<table0>`.country1 = 'Russia' AND `<table0>`.country2 = 'US' ); | List the defense contract negotiations involving the US and Russia, along with the associated geopolitical risk assessment scores. |
<table0>[table_name_9] { <col0>[country_region]:[VARCHAR] <col1>[label]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "beat records" | What is the country/region for the releases from Beat Records? |
<table0>[table_70641] { <col0>[Season]:[text] <col1>[Games]:[real] <col2>[Lost]:[real] <col3>[Points]:[real] <col4>[Goalsfor]:[real] <col5>[Goalsagainst]:[real] } | SELECT AVG( "Points" ) FROM `<table0>` WHERE "Goalsagainst" = '285' AND "Season" = '2006–07' AND "Games" < '70' | Goalsagainst of 285, and a Season of 2006 07, and a Games smaller than 70 has what average points? |
<table0>[project] { <col0>[INT]:[name] <col1>[TEXT]:[country] <col2>[TEXT]:[type] <col3>[TEXT]:[capacity] <col4>[INT]:[INSERT] } | SELECT SUM( capacity ) FROM `<table0>` WHERE ( type = 'Geothermal' OR type = 'Wind' ); | Find the combined capacity (in MW) of geothermal and wind projects in the world |
<table0>[biosensor_patents] { <col0>[INT]:[country] <col1>[VARCHAR]:[num_patents] <col2>[INT]:[INSERT] } | SELECT country, SUM( num_patents ) FROM `<table0>` GROUP BY country ORDER BY SUM( num_patents ) DESC LIMIT 3; | List the top 3 countries with the most biosensor technology patents. |
<table0>[dataset] { <col0>[datasetid]:[int] <col1>[datasetname]:[varchar] } <table1>[keyphrase] { <col0>[keyphraseid]:[int] <col1>[keyphrasename]:[varchar] } <table2>[author] { <col0>[authorid]:[int] <col1>[authorname]:[varchar] } <table3>[paperdataset] { <col0>[paperid]:[int] <col1>[datasetid]:[int] } <table4>[cite] { <col0>[citingpaperid]:[int] <col1>[citedpaperid]:[int] } <table5>[paperkeyphrase] { <col0>[paperid]:[int] <col1>[keyphraseid]:[int] } <table6>[journal] { <col0>[journalid]:[int] <col1>[journalname]:[varchar] } <table7>[field] { <col0>[fieldid]:[int] } <table8>[paperfield] { <col0>[fieldid]:[int] <col1>[paperid]:[int] } <table9>[venue] { <col0>[venueid]:[int] <col1>[venuename]:[varchar] } <table10>[paper] { <col0>[paperid]:[int] <col1>[title]:[varchar] <col2>[venueid]:[int] <col3>[year]:[int] <col4>[numciting]:[int] <col5>[numcitedby]:[int] <col6>[journalid]:[int] } <table11>[writes] { <col0>[paperid]:[int] <col1>[authorid]:[int] } | SELECT DISTINCT COUNT( DISTINCT writes.paperid ) FROM author, writes WHERE author.authorname = 'ameet soni' AND writes.authorid = author.authorid | how many papers has ameet soni published ?
|
<table0>[table_name_34] { <col0>[drivers]:[VARCHAR] <col1>[races]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "15-20" | What driver had a 15-20 record? |
<table0>[users] { <col0>[INT]:[name] <col1>[VARCHAR]:[email] <col2>[VARCHAR]:[last_login] } | DELETE FROM `<table0>` WHERE last_login < DATE_SUB( CURDATE( ), INTERVAL 3 MONTH ); | Delete records of users who have not logged in for the last three months from the users table |
<table0>[date_day] { <col0>[month_number]:[int] <col1>[day_number]:[int] <col2>[year]:[int] <col3>[day_name]:[varchar] } <table1>[code_description] { <col0>[code]:[varchar] <col1>[description]:[text] } <table2>[equipment_sequence] { <col0>[aircraft_code_sequence]:[varchar] <col1>[aircraft_code]:[varchar] } <table3>[state] { <col0>[state_code]:[text] <col1>[state_name]:[text] <col2>[country_name]:[text] } <table4>[dual_carrier] { <col0>[main_airline]:[varchar] <col1>[low_flight_number]:[int] <col2>[high_flight_number]:[int] <col3>[dual_airline]:[varchar] <col4>[service_name]:[text] } <table5>[ground_service] { <col0>[city_code]:[text] <col1>[airport_code]:[text] <col2>[transport_type]:[text] <col3>[ground_fare]:[int] } <table6>[airport] { <col0>[airport_code]:[varchar] <col1>[airport_name]:[text] <col2>[airport_location]:[text] <col3>[state_code]:[varchar] <col4>[country_name]:[varchar] <col5>[time_zone_code]:[varchar] <col6>[minimum_connect_time]:[int] } <table7>[flight_leg] { <col0>[flight_id]:[int] <col1>[leg_number]:[int] <col2>[leg_flight]:[int] } <table8>[month] { <col0>[month_number]:[int] <col1>[month_name]:[text] } <table9>[flight_stop] { <col0>[flight_id]:[int] <col1>[stop_number]:[int] <col2>[stop_days]:[text] <col3>[stop_airport]:[text] <col4>[arrival_time]:[int] <col5>[arrival_airline]:[text] <col6>[arrival_flight_number]:[int] <col7>[departure_time]:[int] <col8>[departure_airline]:[text] <col9>[departure_flight_number]:[int] <col10>[stop_time]:[int] } <table10>[airport_service] { <col0>[city_code]:[varchar] <col1>[airport_code]:[varchar] <col2>[miles_distant]:[int] <col3>[direction]:[varchar] <col4>[minutes_distant]:[int] } <table11>[city] { <col0>[city_code]:[varchar] <col1>[city_name]:[varchar] <col2>[state_code]:[varchar] <col3>[country_name]:[varchar] <col4>[time_zone_code]:[varchar] } <table12>[restriction] { <col0>[restriction_code]:[text] <col1>[advance_purchase]:[int] <col2>[stopovers]:[text] <col3>[saturday_stay_required]:[text] <col4>[minimum_stay]:[int] <col5>[maximum_stay]:[int] <col6>[application]:[text] <col7>[no_discounts]:[text] } <table13>[time_zone] { <col0>[time_zone_code]:[text] <col1>[time_zone_name]:[text] <col2>[hours_from_gmt]:[int] } <table14>[days] { <col0>[days_code]:[varchar] <col1>[day_name]:[varchar] } <table15>[food_service] { <col0>[meal_code]:[text] <col1>[meal_number]:[int] <col2>[compartment]:[text] <col3>[meal_description]:[varchar] } <table16>[airline] { <col0>[airline_code]:[varchar] <col1>[airline_name]:[text] <col2>[note]:[text] } <table17>[fare_basis] { <col0>[fare_basis_code]:[text] <col1>[booking_class]:[text] <col2>[class_type]:[text] <col3>[premium]:[text] <col4>[economy]:[text] <col5>[discounted]:[text] <col6>[night]:[text] <col7>[season]:[text] <col8>[basis_days]:[text] } <table18>[flight] { <col0>[aircraft_code_sequence]:[text] <col1>[airline_code]:[varchar] } <table19>[compartment_class] { <col0>[compartment]:[varchar] <col1>[class_type]:[varchar] } <table20>[aircraft] { <col0>[aircraft_code]:[varchar] <col1>[aircraft_description]:[varchar] <col2>[manufacturer]:[varchar] <col3>[basic_type]:[varchar] <col4>[engines]:[int] <col5>[propulsion]:[varchar] <col6>[wide_body]:[varchar] <col7>[wing_span]:[int] <col8>[length]:[int] <col9>[weight]:[int] <col10>[capacity]:[int] <col11>[pay_load]:[int] <col12>[cruising_speed]:[int] <col13>[range_miles]:[int] <col14>[pressurized]:[varchar] } <table21>[fare] { <col0>[fare_id]:[int] <col1>[from_airport]:[varchar] <col2>[to_airport]:[varchar] <col3>[fare_basis_code]:[text] <col4>[fare_airline]:[text] <col5>[restriction_code]:[text] <col6>[one_direction_cost]:[int] <col7>[round_trip_cost]:[int] <col8>[round_trip_required]:[varchar] } <table22>[time_interval] { <col0>[period]:[text] <col1>[begin_time]:[int] <col2>[end_time]:[int] } <table23>[flight_fare] { <col0>[flight_id]:[int] <col1>[fare_id]:[int] } <table24>[class_of_service] { <col0>[booking_class]:[varchar] <col1>[rank]:[int] <col2>[class_description]:[text] } | SELECT DISTINCT flight.flight_id FROM `<table10>` AS AIRPORT_SERVICE_0, `<table10>` AS AIRPORT_SERVICE_1, `<table10>` AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, flight, flight_stop WHERE ( CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'WASHINGTON' AND CITY_2.city_code = AIRPORT_SERVICE_2.city_code AND CITY_2.city_name = 'INDIANAPOLIS' AND flight_stop.stop_airport = AIRPORT_SERVICE_2.airport_code AND flight.flight_id = flight_stop.flight_id AND flight.to_airport = AIRPORT_SERVICE_1.airport_code ) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'SAN FRANCISCO' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code | what flights go from SAN FRANCISCO to WASHINGTON via INDIANAPOLIS
|
<table0>[table_6880] { <col0>[Date]:[text] <col1>[Score]:[text] <col2>[Set]:[text] <col3>[Set]:[text] <col4>[Set]:[text] <col5>[Set]:[text] <col6>[Set]:[text] <col7>[Total]:[text] } | SELECT "Set 4" FROM `<table0>` WHERE "Set 1" = '19-25' AND "Set 2" = '23-25' | What is Set 4, when Set 1 is 19-25, and when Set 2 is 23-25?
|
<table0>[climate_communication_projects] { <col0>[project_id]:[INT] <col1>[project_name]:[VARCHAR] <col2>[255]:[start_year] <col3>[INT]:[INSERT] } | SELECT COUNT( * ) FROM `<table0>` WHERE start_year < 2018; | How many climate communication projects were initiated before 2018? |
<table0>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table1>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table2>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug_cd]:[text] <col6>[route]:[text] <col7>[drug_dose]:[text] } <table3>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[text] <col4>[age]:[text] <col5>[dob]:[text] <col6>[gender]:[text] <col7>[language]:[text] <col8>[religion]:[text] <col9>[admission_type]:[text] <col10>[days_stay]:[text] <col11>[insurance]:[text] <col12>[ethnicity]:[text] <col13>[expire_flag]:[text] <col14>[admission_location]:[text] <col15>[discharge_location]:[text] <col16>[diagnosis]:[text] <col17>[dod]:[text] <col18>[dob_year]:[text] <col19>[dod_year]:[text] <col20>[admittime]:[text] <col21>[dischtime]:[text] <col22>[admityear]:[text] } <table4>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } | SELECT COUNT( DISTINCT `<table3>`.subject_id ) FROM `<table3>` INNER JOIN prescriptions ON `<table3>`.hadm_id = prescriptions.hadm_id INNER JOIN lab ON `<table3>`.hadm_id = lab.hadm_id WHERE prescriptions.formulary_drug_cd = "ALTE1I" AND lab.fluid = "Ascites" | how many patients used the drug code alte1i and tested with ascites in lab?
|
<table0>[table_58663] { <col0>[Position]:[real] <col1>[Team]:[text] <col2>[Played]:[real] <col3>[Drawn]:[real] <col4>[Lost]:[real] <col5>[Goals]:[real] <col6>[Goals]:[real] <col7>[Goal]:[Difference] <col8>[text]:[Points] } | SELECT MAX( "Goals For" ) FROM `<table0>` WHERE "Team" = 'cheadle town' AND "Drawn" > '7' | What is the highest Goals For, when Team is 'Cheadle Town', and when Drawn is greater than 7? |
<table0>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table1>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[text] <col4>[age]:[text] <col5>[dob]:[text] <col6>[gender]:[text] <col7>[language]:[text] <col8>[religion]:[text] <col9>[admission_type]:[text] <col10>[days_stay]:[text] <col11>[insurance]:[text] <col12>[ethnicity]:[text] <col13>[expire_flag]:[text] <col14>[admission_location]:[text] <col15>[discharge_location]:[text] <col16>[diagnosis]:[text] <col17>[dod]:[text] <col18>[dob_year]:[text] <col19>[dod_year]:[text] <col20>[admittime]:[text] <col21>[dischtime]:[text] <col22>[admityear]:[text] } <table2>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug_cd]:[text] <col6>[route]:[text] <col7>[drug_dose]:[text] } <table3>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table4>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } | SELECT COUNT( DISTINCT `<table1>`.subject_id ) FROM `<table1>` INNER JOIN diagnoses ON `<table1>`.hadm_id = diagnoses.hadm_id WHERE `<table1>`.admission_location = "TRSF WITHIN THIS FACILITY" AND diagnoses.short_title = "Protein-cal malnutr NOS" | how many of the patients with protein-cal malnutr nos were discharged to trsf within this facility?
|
<table0>[ReviewTaskResults] { <col0>[number]:[ReviewTaskId] <col1>[number]:[ReviewTaskResultTypeId] <col2>[number]:[CreationDate] <col3>[time]:[RejectionReasonId] <col4>[number]:[Comment] } <table1>[PostTypes] { <col0>[number]:[text] } <table2>[ReviewTaskResultTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table3>[Comments] { <col0>[number]:[PostId] <col1>[number]:[Score] <col2>[number]:[Text] <col3>[text]:[CreationDate] <col4>[time]:[UserDisplayName] <col5>[text]:[UserId] <col6>[number]:[ContentLicense] } <table4>[PostNotices] { <col0>[number]:[PostId] <col1>[number]:[PostNoticeTypeId] <col2>[number]:[CreationDate] <col3>[time]:[DeletionDate] <col4>[time]:[ExpiryDate] <col5>[time]:[Body] <col6>[text]:[OwnerUserId] <col7>[number]:[DeletionUserId] } <table5>[PostNoticeTypes] { <col0>[number]:[ClassId] <col1>[number]:[text] <col2>[Body]:[text] <col3>[IsHidden]:[boolean] <col4>[Predefined]:[boolean] <col5>[PostNoticeDurationId]:[number] } <table6>[CloseAsOffTopicReasonTypes] { <col0>[number]:[IsUniversal] <col1>[boolean]:[InputTitle] <col2>[text]:[MarkdownInputGuidance] <col3>[text]:[MarkdownPostOwnerGuidance] <col4>[text]:[MarkdownPrivilegedUserGuidance] <col5>[text]:[MarkdownConcensusDescription] <col6>[text]:[CreationDate] <col7>[time]:[CreationModeratorId] <col8>[number]:[ApprovalDate] <col9>[time]:[ApprovalModeratorId] <col10>[number]:[DeactivationDate] <col11>[time]:[DeactivationModeratorId] } <table7>[Badges] { <col0>[number]:[UserId] <col1>[number]:[text] <col2>[Date]:[time] <col3>[Class]:[number] <col4>[TagBased]:[boolean] } <table8>[FlagTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table9>[VoteTypes] { <col0>[number]:[text] } <table10>[ReviewTasks] { <col0>[number]:[ReviewTaskTypeId] <col1>[number]:[CreationDate] <col2>[time]:[DeletionDate] <col3>[time]:[ReviewTaskStateId] <col4>[number]:[PostId] <col5>[number]:[SuggestedEditId] <col6>[number]:[CompletedByReviewTaskId] } <table11>[Tags] { <col0>[number]:[TagName] <col1>[text]:[Count] <col2>[number]:[ExcerptPostId] <col3>[number]:[WikiPostId] } <table12>[CloseReasonTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table13>[ReviewTaskTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table14>[PostHistoryTypes] { <col0>[number]:[text] } <table15>[Votes] { <col0>[number]:[PostId] <col1>[number]:[VoteTypeId] <col2>[number]:[UserId] <col3>[number]:[CreationDate] <col4>[time]:[BountyAmount] } <table16>[TagSynonyms] { <col0>[number]:[SourceTagName] <col1>[text]:[TargetTagName] <col2>[text]:[CreationDate] <col3>[time]:[OwnerUserId] <col4>[number]:[AutoRenameCount] <col5>[number]:[LastAutoRename] <col6>[time]:[Score] <col7>[number]:[ApprovedByUserId] <col8>[number]:[ApprovalDate] } <table17>[PostFeedback] { <col0>[number]:[PostId] <col1>[number]:[IsAnonymous] <col2>[boolean]:[VoteTypeId] <col3>[number]:[CreationDate] } <table18>[ReviewRejectionReasons] { <col0>[number]:[text] <col1>[Description]:[text] <col2>[PostTypeId]:[number] } <table19>[ReviewTaskStates] { <col0>[number]:[text] <col1>[Description]:[text] } <table20>[Posts] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table21>[SuggestedEditVotes] { <col0>[number]:[SuggestedEditId] <col1>[number]:[UserId] <col2>[number]:[VoteTypeId] <col3>[number]:[CreationDate] <col4>[time]:[TargetUserId] <col5>[number]:[TargetRepChange] } <table22>[SuggestedEdits] { <col0>[number]:[PostId] <col1>[number]:[CreationDate] <col2>[time]:[ApprovalDate] <col3>[time]:[RejectionDate] <col4>[time]:[OwnerUserId] <col5>[number]:[Comment] <col6>[text]:[Text] <col7>[text]:[Title] <col8>[text]:[Tags] <col9>[text]:[RevisionGUID] } <table23>[Users] { <col0>[number]:[Reputation] <col1>[number]:[CreationDate] <col2>[time]:[DisplayName] <col3>[text]:[LastAccessDate] <col4>[time]:[WebsiteUrl] <col5>[text]:[Location] <col6>[text]:[AboutMe] <col7>[text]:[Views] <col8>[number]:[UpVotes] <col9>[number]:[DownVotes] <col10>[number]:[ProfileImageUrl] <col11>[text]:[EmailHash] <col12>[text]:[AccountId] } <table24>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[BelongsOnBaseHostAddress] } <table25>[PostHistory] { <col0>[number]:[PostHistoryTypeId] <col1>[number]:[PostId] <col2>[number]:[RevisionGUID] <col3>[CreationDate]:[time] <col4>[UserId]:[number] <col5>[UserDisplayName]:[text] <col6>[Comment]:[text] <col7>[Text]:[text] <col8>[ContentLicense]:[text] } <table26>[PostsWithDeleted] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditorUserId] <col11>[number]:[LastEditorDisplayName] <col12>[text]:[LastEditDate] <col13>[time]:[LastActivityDate] <col14>[time]:[Title] <col15>[text]:[Tags] <col16>[text]:[AnswerCount] <col17>[number]:[CommentCount] <col18>[number]:[FavoriteCount] <col19>[number]:[ClosedDate] <col20>[time]:[CommunityOwnedDate] <col21>[time]:[ContentLicense] } <table27>[PostLinks] { <col0>[number]:[CreationDate] <col1>[time]:[PostId] <col2>[number]:[RelatedPostId] <col3>[number]:[LinkTypeId] } <table28>[PostTags] { <col0>[PostId]:[number] <col1>[TagId]:[number] } | WITH cte AS ( SELECT Id, NTILE( 100 ) OVER ( ORDER BY LENGTH( Body ) ) AS percentile FROM `<table20>` WHERE PostTypeId = 1 ) SELECT cte.percentile, MIN( LENGTH( p.Body ) ) AS LengthStart, MAX( LENGTH( p.Body ) ) AS LengthStop, AVG( p.Score ) AS avgScore, AVG( p.AnswerCount ) AS AvgAnswerCount, AVG( p.ViewCount ) AS AvgViewCount, AVG( p.CommentCount ) AS AvgCommentCount FROM `<table20>` AS p INNER JOIN cte ON p.Id = cte.Id WHERE Tags LIKE '%javascript%' GROUP BY cte.percentile ORDER BY cte.percentile | Question Body length percentile and statistics.
|
<table0>[teams] { <col0>[INT]:[name] <col1>[VARCHAR]:[255] } | DELETE FROM players WHERE team_id IN ( SELECT id FROM `<table0>` WHERE name = 'Boston Celtics' ); | Delete all players from the 'Boston Celtics' |
<table0>[table_name_85] { <col0>[record]:[VARCHAR] <col1>[score]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "11-10" | What was the record when the score was 11-10? |
<table0>[table_name_96] { <col0>[place]:[VARCHAR] <col1>[points]:[VARCHAR] } | SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = 33 | How many places have more than 33 points?
|
<table0>[table_name_42] { <col0>[surface]:[VARCHAR] <col1>[outcome]:[VARCHAR] <col2>[score]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "runner-up" AND `<col2>` = "julia görges polona hercog" | What is the surface of the match when the outcome was runner-up, and a Score of julia görges polona hercog? |
<table0>[Ref_Detention_Type] { <col0>[detention_type_code]:[VARCHAR] <col1>[detention_type_description]:[VARCHAR] } <table1>[Teachers] { <col0>[teacher_id]:[INTEGER] <col1>[address_id]:[INTEGER] <col2>[first_name]:[VARCHAR] <col3>[middle_name]:[VARCHAR] <col4>[last_name]:[VARCHAR] <col5>[gender]:[VARCHAR] <col6>[cell_mobile_number]:[VARCHAR] <col7>[email_address]:[VARCHAR] <col8>[other_details]:[VARCHAR] } <table2>[Addresses] { <col0>[address_id]:[INTEGER] <col1>[line_1]:[VARCHAR] <col2>[120]:[line_2] <col3>[VARCHAR]:[120] <col4>[line_3]:[VARCHAR] <col5>[120]:[city] <col6>[VARCHAR]:[zip_postcode] <col7>[VARCHAR]:[state_province_county] <col8>[VARCHAR]:[country] <col9>[VARCHAR]:[other_address_details] <col10>[VARCHAR]:[255] } <table3>[Students] { <col0>[student_id]:[INTEGER] <col1>[address_id]:[INTEGER] <col2>[first_name]:[VARCHAR] <col3>[middle_name]:[VARCHAR] <col4>[last_name]:[VARCHAR] <col5>[cell_mobile_number]:[VARCHAR] <col6>[email_address]:[VARCHAR] <col7>[date_first_rental]:[DATETIME] <col8>[date_left_university]:[DATETIME] <col9>[other_student_details]:[VARCHAR] } <table4>[Student_Addresses] { <col0>[student_id]:[INTEGER] <col1>[address_id]:[INTEGER] <col2>[date_address_from]:[DATETIME] <col3>[date_address_to]:[DATETIME] <col4>[monthly_rental]:[DECIMAL] <col5>[other_details]:[VARCHAR] } <table5>[Ref_Incident_Type] { <col0>[incident_type_code]:[VARCHAR] <col1>[incident_type_description]:[VARCHAR] } <table6>[Behavior_Incident] { <col0>[incident_id]:[INTEGER] <col1>[incident_type_code]:[VARCHAR] <col2>[student_id]:[INTEGER] <col3>[date_incident_start]:[DATETIME] <col4>[date_incident_end]:[DATETIME] <col5>[incident_summary]:[VARCHAR] <col6>[255]:[recommendations] <col7>[VARCHAR]:[255] <col8>[other_details]:[VARCHAR] } <table7>[Ref_Address_Types] { <col0>[address_type_code]:[VARCHAR] <col1>[address_type_description]:[VARCHAR] } <table8>[Students_in_Detention] { <col0>[student_id]:[INTEGER] <col1>[detention_id]:[INTEGER] <col2>[incident_id]:[INTEGER] } <table9>[Detention] { <col0>[detention_id]:[INTEGER] <col1>[detention_type_code]:[VARCHAR] <col2>[teacher_id]:[INTEGER] <col3>[datetime_detention_start]:[DATETIME] <col4>[datetime_detention_end]:[DATETIME] <col5>[detention_summary]:[VARCHAR] <col6>[255]:[other_details] <col7>[VARCHAR]:[255] } <table10>[Assessment_Notes] { <col0>[notes_id]:[INTEGER] <col1>[student_id]:[INTEGER] <col2>[teacher_id]:[INTEGER] <col3>[date_of_notes]:[DATETIME] <col4>[text_of_notes]:[VARCHAR] <col5>[255]:[other_details] <col6>[VARCHAR]:[255] } | SELECT date_address_from, SUM( `<col4>` ) FROM `<table4>` ORDER BY `<col4>` DESC | Find date_address_from and the sum of monthly_rental bin date_address_from by weekday, and visualize them by a bar chart. |
<table0>[table_40651] { <col0>[Date]:[text] <col1>[Visitor]:[text] <col2>[Score]:[text] <col3>[Home]:[text] <col4>[Leading]:[scorer] <col5>[text]:[Record] } | SELECT "Date" FROM `<table0>` WHERE "Home" = 'hornets' | Which date had the Hornets as the home team?
|
<table0>[CountryRegion] { <col0>[CountryRegionCode]:[text] <col1>[text]:[ModifiedDate] } <table1>[Culture] { <col0>[CultureID]:[text] <col1>[text]:[ModifiedDate] } <table2>[Currency] { <col0>[CurrencyCode]:[text] <col1>[text]:[ModifiedDate] } <table3>[CountryRegionCurrency] { <col0>[CountryRegionCode]:[text] <col1>[CurrencyCode]:[text] <col2>[ModifiedDate]:[datetime] } <table4>[Person] { <col0>[BusinessEntityID]:[integer] <col1>[PersonType]:[text] <col2>[NameStyle]:[integer] <col3>[Title]:[text] <col4>[FirstName]:[text] <col5>[MiddleName]:[text] <col6>[LastName]:[text] <col7>[Suffix]:[text] <col8>[EmailPromotion]:[integer] <col9>[AdditionalContactInfo]:[text] <col10>[Demographics]:[text] <col11>[rowguid]:[text] <col12>[ModifiedDate]:[datetime] } <table5>[BusinessEntityContact] { <col0>[BusinessEntityID]:[integer] <col1>[PersonID]:[integer] <col2>[ContactTypeID]:[integer] <col3>[rowguid]:[text] <col4>[ModifiedDate]:[datetime] } <table6>[EmailAddress] { <col0>[BusinessEntityID]:[integer] <col1>[EmailAddressID]:[integer] } <table7>[Employee] { <col0>[BusinessEntityID]:[integer] <col1>[NationalIDNumber]:[text] <col2>[LoginID]:[text] <col3>[OrganizationNode]:[text] <col4>[OrganizationLevel]:[integer] <col5>[JobTitle]:[text] <col6>[BirthDate]:[date] <col7>[MaritalStatus]:[text] <col8>[Gender]:[text] <col9>[HireDate]:[date] <col10>[SalariedFlag]:[integer] <col11>[VacationHours]:[integer] <col12>[SickLeaveHours]:[integer] <col13>[CurrentFlag]:[integer] <col14>[rowguid]:[text] <col15>[ModifiedDate]:[datetime] } <table8>[Password] { <col0>[BusinessEntityID]:[integer] <col1>[PasswordHash]:[text] <col2>[PasswordSalt]:[text] <col3>[rowguid]:[text] <col4>[ModifiedDate]:[datetime] } <table9>[PersonCreditCard] { <col0>[BusinessEntityID]:[integer] <col1>[CreditCardID]:[integer] <col2>[ModifiedDate]:[datetime] } <table10>[ProductCategory] { <col0>[ProductCategoryID]:[integer] <col1>[text]:[rowguid] <col2>[text]:[ModifiedDate] } <table11>[ProductDescription] { <col0>[ProductDescriptionID]:[integer] <col1>[Description]:[text] <col2>[rowguid]:[text] <col3>[ModifiedDate]:[datetime] } <table12>[ProductModel] { <col0>[ProductModelID]:[integer] <col1>[text]:[CatalogDescription] <col2>[text]:[Instructions] <col3>[text]:[rowguid] <col4>[text]:[ModifiedDate] } <table13>[ProductModelProductDescriptionCulture] { <col0>[ProductModelID]:[integer] <col1>[ProductDescriptionID]:[integer] <col2>[CultureID]:[text] <col3>[ModifiedDate]:[datetime] } <table14>[ProductPhoto] { <col0>[ProductPhotoID]:[integer] <col1>[ThumbNailPhoto]:[blob] <col2>[ThumbnailPhotoFileName]:[text] <col3>[LargePhoto]:[blob] <col4>[LargePhotoFileName]:[text] <col5>[ModifiedDate]:[datetime] } <table15>[ProductSubcategory] { <col0>[ProductSubcategoryID]:[integer] <col1>[ProductCategoryID]:[integer] <col2>[text]:[rowguid] <col3>[text]:[ModifiedDate] } <table16>[SalesReason] { <col0>[SalesReasonID]:[integer] <col1>[text]:[ReasonType] <col2>[text]:[ModifiedDate] } <table17>[SalesTerritory] { <col0>[TerritoryID]:[integer] <col1>[text]:[CountryRegionCode] <col2>[text]:[Group] <col3>[text]:[SalesYTD] <col4>[real]:[SalesLastYear] <col5>[real]:[CostYTD] <col6>[real]:[CostLastYear] <col7>[real]:[rowguid] <col8>[text]:[ModifiedDate] } <table18>[SalesPerson] { <col0>[BusinessEntityID]:[integer] <col1>[TerritoryID]:[integer] <col2>[SalesQuota]:[real] <col3>[Bonus]:[real] <col4>[CommissionPct]:[real] <col5>[SalesYTD]:[real] <col6>[SalesLastYear]:[real] <col7>[rowguid]:[text] <col8>[ModifiedDate]:[datetime] } <table19>[SalesPersonQuotaHistory] { <col0>[BusinessEntityID]:[integer] <col1>[QuotaDate]:[datetime] <col2>[SalesQuota]:[real] <col3>[rowguid]:[text] <col4>[ModifiedDate]:[datetime] } <table20>[SalesTerritoryHistory] { <col0>[BusinessEntityID]:[integer] <col1>[TerritoryID]:[integer] <col2>[StartDate]:[datetime] <col3>[EndDate]:[datetime] <col4>[rowguid]:[text] <col5>[ModifiedDate]:[datetime] } <table21>[ScrapReason] { <col0>[ScrapReasonID]:[integer] <col1>[text]:[ModifiedDate] } <table22>[Shift] { <col0>[ShiftID]:[integer] <col1>[text]:[StartTime] <col2>[text]:[EndTime] <col3>[text]:[ModifiedDate] } <table23>[ShipMethod] { <col0>[ShipMethodID]:[integer] <col1>[text]:[ShipBase] <col2>[real]:[ShipRate] <col3>[real]:[rowguid] <col4>[text]:[ModifiedDate] } <table24>[SpecialOffer] { <col0>[SpecialOfferID]:[integer] <col1>[Description]:[text] <col2>[DiscountPct]:[real] <col3>[Type]:[text] <col4>[Category]:[text] <col5>[StartDate]:[datetime] <col6>[EndDate]:[datetime] <col7>[MinQty]:[integer] <col8>[MaxQty]:[integer] <col9>[rowguid]:[text] <col10>[ModifiedDate]:[datetime] } <table25>[BusinessEntityAddress] { <col0>[BusinessEntityID]:[integer] <col1>[AddressID]:[integer] <col2>[AddressTypeID]:[integer] <col3>[rowguid]:[text] <col4>[ModifiedDate]:[datetime] } <table26>[SalesTaxRate] { <col0>[SalesTaxRateID]:[integer] <col1>[StateProvinceID]:[integer] <col2>[TaxType]:[integer] <col3>[TaxRate]:[real] <col4>[text]:[rowguid] <col5>[text]:[ModifiedDate] } <table27>[Store] { <col0>[BusinessEntityID]:[integer] <col1>[text]:[SalesPersonID] <col2>[integer]:[Demographics] <col3>[text]:[rowguid] <col4>[text]:[ModifiedDate] } <table28>[SalesOrderHeaderSalesReason] { <col0>[SalesOrderID]:[integer] <col1>[SalesReasonID]:[integer] <col2>[ModifiedDate]:[datetime] } <table29>[TransactionHistoryArchive] { <col0>[TransactionID]:[integer] <col1>[ProductID]:[integer] <col2>[ReferenceOrderID]:[integer] <col3>[ReferenceOrderLineID]:[integer] <col4>[TransactionDate]:[datetime] <col5>[TransactionType]:[text] <col6>[Quantity]:[integer] <col7>[ActualCost]:[real] <col8>[ModifiedDate]:[datetime] } <table30>[UnitMeasure] { <col0>[UnitMeasureCode]:[text] <col1>[text]:[ModifiedDate] } <table31>[ProductCostHistory] { <col0>[ProductID]:[integer] <col1>[StartDate]:[date] <col2>[EndDate]:[date] <col3>[StandardCost]:[real] <col4>[ModifiedDate]:[datetime] } <table32>[ProductDocument] { <col0>[ProductID]:[integer] <col1>[DocumentNode]:[text] <col2>[ModifiedDate]:[datetime] } <table33>[ProductInventory] { <col0>[ProductID]:[integer] <col1>[LocationID]:[integer] <col2>[Shelf]:[text] <col3>[Bin]:[integer] <col4>[Quantity]:[integer] <col5>[rowguid]:[text] <col6>[ModifiedDate]:[datetime] } <table34>[ProductProductPhoto] { <col0>[ProductID]:[integer] <col1>[ProductPhotoID]:[integer] <col2>[Primary]:[integer] <col3>[ModifiedDate]:[datetime] } <table35>[ProductReview] { <col0>[ProductReviewID]:[integer] <col1>[ProductID]:[integer] <col2>[ReviewerName]:[text] <col3>[ReviewDate]:[datetime] <col4>[EmailAddress]:[text] <col5>[Rating]:[integer] <col6>[Comments]:[text] <col7>[ModifiedDate]:[datetime] } <table36>[ShoppingCartItem] { <col0>[ShoppingCartItemID]:[integer] <col1>[ShoppingCartID]:[text] <col2>[Quantity]:[integer] <col3>[ProductID]:[integer] <col4>[DateCreated]:[datetime] <col5>[ModifiedDate]:[datetime] } <table37>[SpecialOfferProduct] { <col0>[SpecialOfferID]:[integer] <col1>[ProductID]:[integer] <col2>[rowguid]:[text] <col3>[ModifiedDate]:[datetime] } <table38>[SalesOrderDetail] { <col0>[SalesOrderID]:[integer] <col1>[SalesOrderDetailID]:[integer] <col2>[CarrierTrackingNumber]:[text] <col3>[OrderQty]:[integer] <col4>[ProductID]:[integer] <col5>[SpecialOfferID]:[integer] <col6>[UnitPrice]:[real] <col7>[UnitPriceDiscount]:[real] <col8>[LineTotal]:[real] <col9>[rowguid]:[text] <col10>[ModifiedDate]:[datetime] } <table39>[TransactionHistory] { <col0>[TransactionID]:[integer] <col1>[ProductID]:[integer] <col2>[ReferenceOrderID]:[integer] <col3>[ReferenceOrderLineID]:[integer] <col4>[TransactionDate]:[datetime] <col5>[TransactionType]:[text] <col6>[Quantity]:[integer] <col7>[ActualCost]:[real] <col8>[ModifiedDate]:[datetime] } <table40>[Vendor] { <col0>[BusinessEntityID]:[integer] <col1>[AccountNumber]:[text] <col2>[text]:[CreditRating] <col3>[integer]:[PreferredVendorStatus] <col4>[integer]:[ActiveFlag] <col5>[integer]:[PurchasingWebServiceURL] <col6>[text]:[ModifiedDate] } <table41>[ProductVendor] { <col0>[ProductID]:[integer] <col1>[BusinessEntityID]:[integer] <col2>[AverageLeadTime]:[integer] <col3>[StandardPrice]:[real] <col4>[LastReceiptCost]:[real] <col5>[LastReceiptDate]:[datetime] <col6>[MinOrderQty]:[integer] <col7>[MaxOrderQty]:[integer] <col8>[OnOrderQty]:[integer] <col9>[UnitMeasureCode]:[text] <col10>[ModifiedDate]:[datetime] } <table42>[PurchaseOrderHeader] { <col0>[PurchaseOrderID]:[integer] <col1>[RevisionNumber]:[integer] <col2>[Status]:[integer] <col3>[EmployeeID]:[integer] <col4>[VendorID]:[integer] <col5>[ShipMethodID]:[integer] <col6>[OrderDate]:[datetime] <col7>[ShipDate]:[datetime] <col8>[SubTotal]:[real] <col9>[TaxAmt]:[real] <col10>[Freight]:[real] <col11>[TotalDue]:[real] <col12>[ModifiedDate]:[datetime] } <table43>[PurchaseOrderDetail] { <col0>[PurchaseOrderID]:[integer] <col1>[PurchaseOrderDetailID]:[integer] <col2>[DueDate]:[datetime] <col3>[OrderQty]:[integer] <col4>[ProductID]:[integer] <col5>[UnitPrice]:[real] <col6>[LineTotal]:[real] <col7>[ReceivedQty]:[real] <col8>[RejectedQty]:[real] <col9>[StockedQty]:[real] <col10>[ModifiedDate]:[datetime] } <table44>[WorkOrder] { <col0>[WorkOrderID]:[integer] <col1>[ProductID]:[integer] <col2>[OrderQty]:[integer] <col3>[StockedQty]:[integer] <col4>[ScrappedQty]:[integer] <col5>[StartDate]:[datetime] <col6>[EndDate]:[datetime] <col7>[DueDate]:[datetime] <col8>[ScrapReasonID]:[integer] <col9>[ModifiedDate]:[datetime] } <table45>[WorkOrderRouting] { <col0>[WorkOrderID]:[integer] <col1>[ProductID]:[integer] <col2>[OperationSequence]:[integer] <col3>[LocationID]:[integer] <col4>[ScheduledStartDate]:[datetime] <col5>[ScheduledEndDate]:[datetime] <col6>[ActualStartDate]:[datetime] <col7>[ActualEndDate]:[datetime] <col8>[ActualResourceHrs]:[real] <col9>[PlannedCost]:[real] <col10>[ActualCost]:[real] <col11>[ModifiedDate]:[datetime] } <table46>[Customer] { <col0>[CustomerID]:[integer] <col1>[PersonID]:[integer] <col2>[StoreID]:[integer] <col3>[TerritoryID]:[integer] <col4>[AccountNumber]:[text] <col5>[rowguid]:[text] <col6>[ModifiedDate]:[datetime] } <table47>[ProductListPriceHistory] { <col0>[ProductID]:[integer] <col1>[StartDate]:[date] <col2>[EndDate]:[date] <col3>[ListPrice]:[real] <col4>[ModifiedDate]:[datetime] } <table48>[Address] { <col0>[AddressID]:[integer] <col1>[AddressLine1]:[text] <col2>[AddressLine2]:[text] <col3>[City]:[text] <col4>[StateProvinceID]:[integer] <col5>[PostalCode]:[text] <col6>[SpatialLocation]:[text] <col7>[rowguid]:[text] <col8>[ModifiedDate]:[datetime] } <table49>[AddressType] { <col0>[AddressTypeID]:[integer] <col1>[text]:[rowguid] <col2>[text]:[ModifiedDate] } <table50>[BillOfMaterials] { <col0>[BillOfMaterialsID]:[integer] <col1>[ProductAssemblyID]:[integer] <col2>[ComponentID]:[integer] <col3>[StartDate]:[datetime] <col4>[EndDate]:[datetime] <col5>[UnitMeasureCode]:[text] <col6>[BOMLevel]:[integer] <col7>[PerAssemblyQty]:[real] <col8>[ModifiedDate]:[datetime] } <table51>[BusinessEntity] { <col0>[BusinessEntityID]:[integer] <col1>[rowguid]:[text] <col2>[ModifiedDate]:[datetime] } <table52>[ContactType] { <col0>[ContactTypeID]:[integer] <col1>[text]:[ModifiedDate] } <table53>[CurrencyRate] { <col0>[CurrencyRateID]:[integer] <col1>[CurrencyRateDate]:[datetime] <col2>[FromCurrencyCode]:[text] <col3>[ToCurrencyCode]:[text] <col4>[AverageRate]:[real] <col5>[EndOfDayRate]:[real] <col6>[ModifiedDate]:[datetime] } <table54>[Department] { <col0>[DepartmentID]:[integer] <col1>[text]:[GroupName] <col2>[text]:[ModifiedDate] } <table55>[EmployeeDepartmentHistory] { <col0>[BusinessEntityID]:[integer] <col1>[DepartmentID]:[integer] <col2>[ShiftID]:[integer] <col3>[StartDate]:[date] <col4>[EndDate]:[date] <col5>[ModifiedDate]:[datetime] } <table56>[EmployeePayHistory] { <col0>[BusinessEntityID]:[integer] <col1>[RateChangeDate]:[datetime] <col2>[Rate]:[real] <col3>[PayFrequency]:[integer] <col4>[ModifiedDate]:[datetime] } <table57>[JobCandidate] { <col0>[JobCandidateID]:[integer] <col1>[BusinessEntityID]:[integer] <col2>[Resume]:[text] <col3>[ModifiedDate]:[datetime] } <table58>[Location] { <col0>[LocationID]:[integer] <col1>[text]:[CostRate] <col2>[real]:[Availability] <col3>[real]:[ModifiedDate] } <table59>[PhoneNumberType] { <col0>[PhoneNumberTypeID]:[integer] <col1>[text]:[ModifiedDate] } <table60>[Product] { <col0>[ProductID]:[integer] <col1>[text]:[ProductNumber] <col2>[text]:[MakeFlag] <col3>[integer]:[FinishedGoodsFlag] <col4>[integer]:[Color] <col5>[text]:[SafetyStockLevel] <col6>[integer]:[ReorderPoint] <col7>[integer]:[StandardCost] <col8>[real]:[ListPrice] <col9>[real]:[Size] <col10>[text]:[SizeUnitMeasureCode] <col11>[text]:[WeightUnitMeasureCode] <col12>[text]:[Weight] <col13>[real]:[DaysToManufacture] <col14>[integer]:[ProductLine] <col15>[text]:[Class] <col16>[text]:[Style] <col17>[text]:[ProductSubcategoryID] <col18>[integer]:[ProductModelID] <col19>[integer]:[SellStartDate] <col20>[datetime]:[SellEndDate] <col21>[datetime]:[DiscontinuedDate] <col22>[datetime]:[rowguid] <col23>[text]:[ModifiedDate] } <table61>[Document] { <col0>[DocumentNode]:[text] <col1>[DocumentLevel]:[integer] <col2>[Title]:[text] <col3>[Owner]:[integer] <col4>[FolderFlag]:[integer] <col5>[FileName]:[text] <col6>[FileExtension]:[text] <col7>[Revision]:[text] <col8>[ChangeNumber]:[integer] <col9>[Status]:[integer] <col10>[DocumentSummary]:[text] } <table62>[StateProvince] { <col0>[StateProvinceID]:[integer] <col1>[StateProvinceCode]:[text] <col2>[CountryRegionCode]:[text] <col3>[IsOnlyStateProvinceFlag]:[integer] <col4>[text]:[TerritoryID] <col5>[integer]:[rowguid] <col6>[text]:[ModifiedDate] } <table63>[CreditCard] { <col0>[CreditCardID]:[integer] <col1>[CardType]:[text] <col2>[CardNumber]:[text] <col3>[ExpMonth]:[integer] <col4>[ExpYear]:[integer] <col5>[ModifiedDate]:[datetime] } <table64>[SalesOrderHeader] { <col0>[SalesOrderID]:[integer] <col1>[RevisionNumber]:[integer] <col2>[OrderDate]:[datetime] <col3>[DueDate]:[datetime] <col4>[ShipDate]:[datetime] <col5>[Status]:[integer] <col6>[OnlineOrderFlag]:[integer] <col7>[SalesOrderNumber]:[text] <col8>[PurchaseOrderNumber]:[text] <col9>[AccountNumber]:[text] <col10>[CustomerID]:[integer] <col11>[SalesPersonID]:[integer] <col12>[TerritoryID]:[integer] <col13>[BillToAddressID]:[integer] <col14>[ShipToAddressID]:[integer] <col15>[ShipMethodID]:[integer] <col16>[CreditCardID]:[integer] <col17>[CreditCardApprovalCode]:[text] <col18>[CurrencyRateID]:[integer] <col19>[SubTotal]:[real] <col20>[TaxAmt]:[real] <col21>[Freight]:[real] <col22>[TotalDue]:[real] <col23>[Comment]:[text] <col24>[rowguid]:[text] <col25>[ModifiedDate]:[datetime] } | SELECT T1.Rating FROM `<table35>` AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T1.ReviewerName = 'Jill' AND T2.Name = 'HL Mountain Pedal' | What rating did Jill give for HL Mountain Pedal? |
<table0>[table_67870] { <col0>[Member]:[countries] <col1>[text]:[Population] <col2>[real]:[Area] <col3>[u00b2]:[real] <col4>[GDP]:[billion] <col5>[real]:[GDP] <col6>[capita]:[text] } | SELECT SUM( "Population" ) FROM `<table0>` WHERE "Area ( km\u00b2 )" = '30,528' AND "GDP ( billion US$ )" > '58.316' | What is the population of the place that has an area (km ) of 30,528, and a GDP (billion US$) larger than 58.316?
|
<table0>[circular_economy] { <col0>[city]:[VARCHAR] <col1>[255]:[year] <col2>[INT]:[initiative] <col3>[VARCHAR]:[255] } | INSERT INTO circular_economy ( city, year, initiative ) VALUES ( 'Berlin', 2022, 'Plastic waste reduction campaign' ); | Insert a new record for circular economy initiative in Berlin in 2022. |
<table0>[table_51601] { <col0>[Home]:[team] <col1>[text]:[Home] <col2>[team]:[score] <col3>[text]:[Away] <col4>[team]:[text] <col5>[Away]:[team] <col6>[score]:[text] <col7>[Venue]:[text] <col8>[Crowd]:[real] <col9>[Date]:[text] } | SELECT "Away `<col2>` score" FROM `<table0>` WHERE "Venue" = 'vfl park' | I want to know the away team score for vfl park venue
|
<table0>[table_2873] { <col0>[Year]:[real] <col1>[Title]:[Drama] <col2>[text]:[Role] <col3>[text]:[Nature] <col4>[Role]:[text] <col5>[Artists]:[text] <col6>[Location]:[text] } | SELECT COUNT( "Location" ) FROM `<table0>` WHERE "Name of Role" = 'Xiao Gui 小鬼' | How many locations for name of role as Xiao Gui ?
|
<table0>[table_49061] { <col0>[Driver]:[text] <col1>[Team]:[text] <col2>[Laps]:[real] <col3>[Time]:[Retired] <col4>[text]:[Grid] <col5>[real]:[Points] } | SELECT MAX( "Points" ) FROM `<table0>` WHERE "Time/Retired" = '+32.256 secs' AND "Grid" > '12' | What are the greatest points for a time/retired of +32.256 secs, and a a grid larger than 12?
|
<table0>[exists] { <col0>[eai_techniques]:[technique_id] <col1>[INT]:[PRIMARY] <col2>[KEY]:[name] <col3>[TEXT]:[INSERT] <col4>[eai_techniques]:[technique_id] <col5>[name]:[VALUES] <col6>[Feature]:[Attribution] <col7>[Model]:[Simplification] <col8>[Rule]:[Extraction] } <table1>[exists] { <col0>[ai_applications]:[app_id] <col1>[INT]:[PRIMARY] <col2>[KEY]:[name] <col3>[TEXT]:[technique_id] <col4>[INT]:[country] <col5>[TEXT]:[INSERT] <col6>[ai_applications]:[app_id] <col7>[name]:[technique_id] <col8>[country]:[VALUES] <col9>[DeepArt]:[USA] <col10>[DeepDream]:[NULL] <col11>[Canada]:[Shelley] } | SELECT COUNT( DISTINCT technique_id ) FROM ai_applications WHERE country = 'UK'; | How many explainable AI techniques are used in AI applications developed in the UK? |