schema
stringlengths 20
14.6k
| query
stringlengths 17
2.58k
| question
stringlengths 8
1.06k
|
---|---|---|
<table0>[city] { <col0>[city_code]:[varchar] <col1>[city_name]:[varchar] <col2>[state_code]:[varchar] <col3>[country_name]:[varchar] <col4>[time_zone_code]:[varchar] } <table1>[food_service] { <col0>[meal_code]:[text] <col1>[meal_number]:[int] <col2>[compartment]:[text] <col3>[meal_description]:[varchar] } <table2>[flight_fare] { <col0>[flight_id]:[int] <col1>[fare_id]:[int] } <table3>[month] { <col0>[month_number]:[int] <col1>[month_name]:[text] } <table4>[flight_leg] { <col0>[flight_id]:[int] <col1>[leg_number]:[int] <col2>[leg_flight]:[int] } <table5>[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] } <table6>[airline] { <col0>[airline_code]:[varchar] <col1>[airline_name]:[text] <col2>[note]:[text] } <table7>[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] } <table8>[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] } <table9>[flight] { <col0>[aircraft_code_sequence]:[text] <col1>[airline_code]:[varchar] } <table10>[date_day] { <col0>[month_number]:[int] <col1>[day_number]:[int] <col2>[year]:[int] <col3>[day_name]:[varchar] } <table11>[code_description] { <col0>[code]:[varchar] <col1>[description]:[text] } <table12>[dual_carrier] { <col0>[main_airline]:[varchar] <col1>[low_flight_number]:[int] <col2>[high_flight_number]:[int] <col3>[dual_airline]:[varchar] <col4>[service_name]:[text] } <table13>[equipment_sequence] { <col0>[aircraft_code_sequence]:[varchar] <col1>[aircraft_code]:[varchar] } <table14>[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] } <table15>[days] { <col0>[days_code]:[varchar] <col1>[day_name]:[varchar] } <table16>[state] { <col0>[state_code]:[text] <col1>[state_name]:[text] <col2>[country_name]:[text] } <table17>[time_zone] { <col0>[time_zone_code]:[text] <col1>[time_zone_name]:[text] <col2>[hours_from_gmt]:[int] } <table18>[airport_service] { <col0>[city_code]:[varchar] <col1>[airport_code]:[varchar] <col2>[miles_distant]:[int] <col3>[direction]:[varchar] <col4>[minutes_distant]:[int] } <table19>[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] } <table20>[ground_service] { <col0>[city_code]:[text] <col1>[airport_code]:[text] <col2>[transport_type]:[text] <col3>[ground_fare]:[int] } <table21>[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] } <table22>[class_of_service] { <col0>[booking_class]:[varchar] <col1>[rank]:[int] <col2>[class_description]:[text] } <table23>[compartment_class] { <col0>[compartment]:[varchar] <col1>[class_type]:[varchar] } <table24>[time_interval] { <col0>[period]:[text] <col1>[begin_time]:[int] <col2>[end_time]:[int] } | SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'DALLAS' AND ground_service.city_code = city.city_code | i need ground transportation in DALLAS please show me what 's available
|
<table0>[procedures] { <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>[diagnoses] { <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>` WHERE `<table1>`.insurance = "Medicaid" AND `<table1>`.diagnosis = "LIVER TRANSPLANT" | how many patients with medicaid insurance had liver transplant?
|
<table0>[table_47715] { <col0>[Res]:[text] <col1>[Record]:[text] <col2>[Opponent]:[text] <col3>[Method]:[text] <col4>[Event]:[text] <col5>[Round]:[text] <col6>[Time]:[text] <col7>[Location]:[text] } | SELECT "Round" FROM `<table0>` WHERE "Time" = '3:01' | Which round has a time of 3:01?
|
<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>[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>[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>[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 `<table1>`.subject_id ) FROM `<table1>` INNER JOIN prescriptions ON `<table1>`.hadm_id = prescriptions.hadm_id WHERE `<table1>`.admission_type = "URGENT" AND prescriptions.drug_type = "MAIN" | give me the number of patients whose admission type is urgent and drug type is main? |
<table0>[requirement] { <col0>[requirement_id]:[int] } <table1>[campus_job_id] { <col0>[int]:[student_id] <col1>[int]:[location] } <table2>[program_requirement] { <col0>[program_id]:[int] <col1>[category]:[varchar] <col2>[min_credit]:[int] <col3>[additional_req]:[varchar] } <table3>[gsi] { <col0>[course_offering_id]:[int] <col1>[student_id]:[int] } <table4>[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] } <table5>[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] } <table6>[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] } <table7>[offering_instructor] { <col0>[offering_instructor_id]:[int] <col1>[offering_id]:[int] <col2>[instructor_id]:[int] } <table8>[area] { <col0>[course_id]:[int] } <table9>[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] } <table10>[course_prerequisite] { <col0>[pre_course_id]:[int] <col1>[course_id]:[int] } <table11>[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] } <table12>[instructor] { <col0>[instructor_id]:[int] <col1>[name]:[varchar] <col2>[uniqname]:[varchar] } <table13>[semester] { <col0>[semester_id]:[int] } <table14>[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] } <table15>[comment_instructor] { <col0>[instructor_id]:[int] <col1>[student_id]:[int] <col2>[score]:[int] <col3>[comment_text]:[varchar] } <table16>[program] { <col0>[program_id]:[int] <col1>[name]:[varchar] <col2>[college]:[varchar] <col3>[introduction]:[varchar] } <table17>[program_course] { <col0>[program_id]:[int] <col1>[course_id]:[int] <col2>[workload]:[int] <col3>[category]:[varchar] } | SELECT DISTINCT `<col12>` FROM `<table14>` WHERE `<col2>` = 'EECS' AND `<col3>` = 545 | Is there a project in class 545 ? |
<table0>[building_projects] { <col0>[INT]:[name] <col1>[TEXT]:[state] <col2>[TEXT]:[is_sustainable] } <table1>[project_costs] { <col0>[INT]:[project_id] <col1>[INT]:[cost] <col2>[INT]:[INSERT] <col3>[building_projects]:[name] <col4>[state]:[is_sustainable] <col5>[VALUES]:[Eco] <col6>[Tower]:[Oregon] <col7>[true]:[INSERT] <col8>[building_projects]:[name] <col9>[state]:[is_sustainable] <col10>[VALUES]:[Green] <col11>[Heights]:[California] <col12>[false]:[INSERT] } | SELECT SUM( cost ) FROM `<table1>` JOIN `<col3>` ON `<table1>`.project_id = building_projects.id WHERE building_projects.state = 'Oregon' AND building_projects.is_sustainable = true; | What is the total cost of sustainable building projects in Oregon? |
<table0>[menus] { <col0>[menu_category]:[VARCHAR] <col1>[avg_price]:[DECIMAL] } | SELECT menu_category, AVG( `<col1>` ) FROM `<table0>` GROUP BY `<col0>` ORDER BY AVG( `<col1>` ) DESC LIMIT 1; | Which menu category has the highest average price? |
<table0>[competition_result] { <col0>[Competition_ID]:[int] <col1>[Club_ID_1]:[int] <col2>[Club_ID_2]:[int] <col3>[Score]:[text] } <table1>[club] { <col0>[Club_ID]:[int] <col1>[name]:[text] <col2>[Region]:[text] <col3>[Start_year]:[text] } <table2>[club_rank] { <col0>[Rank]:[real] <col1>[Club_ID]:[int] <col2>[Gold]:[real] <col3>[Silver]:[real] <col4>[Bronze]:[real] <col5>[Total]:[real] } <table3>[player] { <col0>[Player_ID]:[int] <col1>[name]:[text] <col2>[Position]:[text] <col3>[Club_ID]:[int] <col4>[Apps]:[real] <col5>[Tries]:[real] <col6>[Goals]:[text] <col7>[Points]:[real] } <table4>[competition] { <col0>[Competition_ID]:[int] <col1>[Year]:[real] <col2>[Competition_type]:[text] <col3>[Country]:[text] } | SELECT Competition_type, COUNT( * ) FROM `<table4>` GROUP BY `<col2>` ORDER BY COUNT( * ) DESC | List the types of competition and the number of competitions of each type Visualize by bar chart, and I want to order the total number from high to low order. |
<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 COUNT( * ) = 0 FROM `<table9>` INNER JOIN `<table9>`_offering ON `<table9>`.`<table9>`_id = `<table9>`_offering.`<table9>`_id INNER JOIN semester ON semester.semester_id = `<table9>`_offering.semester WHERE ( `<table9>`.number = 431 OR `<table9>`.number = 823 ) AND `<table9>`_offering.end_time > '17:00:00' AND semester.semester = 'WN' AND semester.year = 2016 | Will I be finished with my classes for the day by 5:00 P.M. if I take 431 and 823 ?
|
<table0>[table_name_27] { <col0>[date]:[VARCHAR] <col1>[away_team]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "north melbourne" | What date did the Away team, North Melbourne, play Geelong?
|
<table0>[member] { <col0>[VARCHAR]:[College_ID] } <table1>[college] { <col0>[College_Location]:[VARCHAR] <col1>[College_ID]:[VARCHAR] } | SELECT T2.Name, T1.College_Location FROM `<table1>` AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID ORDER BY T2.Name | Show the names of members and the locations of colleges they go to in ascending alphabetical order of member names. |
<table0>[table_name_49] { <col0>[captain]:[VARCHAR] <col1>[team]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "norwich city" | What is the name of the captain for team Norwich City?
|
<table0>[airline] { <col0>[airline_code]:[varchar] <col1>[airline_name]:[text] <col2>[note]:[text] } <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>[time_zone] { <col0>[time_zone_code]:[text] <col1>[time_zone_name]:[text] <col2>[hours_from_gmt]:[int] } <table4>[days] { <col0>[days_code]:[varchar] <col1>[day_name]:[varchar] } <table5>[flight_leg] { <col0>[flight_id]:[int] <col1>[leg_number]:[int] <col2>[leg_flight]:[int] } <table6>[airport_service] { <col0>[city_code]:[varchar] <col1>[airport_code]:[varchar] <col2>[miles_distant]:[int] <col3>[direction]:[varchar] <col4>[minutes_distant]:[int] } <table7>[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] } <table8>[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] } <table9>[code_description] { <col0>[code]:[varchar] <col1>[description]:[text] } <table10>[food_service] { <col0>[meal_code]:[text] <col1>[meal_number]:[int] <col2>[compartment]:[text] <col3>[meal_description]:[varchar] } <table11>[equipment_sequence] { <col0>[aircraft_code_sequence]:[varchar] <col1>[aircraft_code]:[varchar] } <table12>[date_day] { <col0>[month_number]:[int] <col1>[day_number]:[int] <col2>[year]:[int] <col3>[day_name]:[varchar] } <table13>[compartment_class] { <col0>[compartment]:[varchar] <col1>[class_type]:[varchar] } <table14>[flight] { <col0>[aircraft_code_sequence]:[text] <col1>[airline_code]:[varchar] } <table15>[dual_carrier] { <col0>[main_airline]:[varchar] <col1>[low_flight_number]:[int] <col2>[high_flight_number]:[int] <col3>[dual_airline]:[varchar] <col4>[service_name]:[text] } <table16>[city] { <col0>[city_code]:[varchar] <col1>[city_name]:[varchar] <col2>[state_code]:[varchar] <col3>[country_name]:[varchar] <col4>[time_zone_code]:[varchar] } <table17>[state] { <col0>[state_code]:[text] <col1>[state_name]:[text] <col2>[country_name]:[text] } <table18>[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] } <table19>[ground_service] { <col0>[city_code]:[text] <col1>[airport_code]:[text] <col2>[transport_type]:[text] <col3>[ground_fare]:[int] } <table20>[flight_fare] { <col0>[flight_id]:[int] <col1>[fare_id]:[int] } <table21>[month] { <col0>[month_number]:[int] <col1>[month_name]:[text] } <table22>[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] } <table23>[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] } <table24>[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] } | SELECT DISTINCT flight.flight_id FROM `<table6>` AS AIRPORT_SERVICE_0, `<table6>` AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE ( CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ATLANTA' AND flight.arrival_time <= 1200 AND flight.to_airport = AIRPORT_SERVICE_1.airport_code ) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BALTIMORE' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code | i'd like to see flights from BALTIMORE to ATLANTA that arrive before 1200
|
<table0>[Sustainable_Ratings] { <col0>[INT]:[property_id] <col1>[INT]:[sustainable_rating] <col2>[INT]:[CREATE] <col3>[VIEW]:[High_Sustainable_Properties] <col4>[SELECT]:[property_id] <col5>[address]:[sustainable_rating] } | SELECT hsp.address, AVG( p.price ) as avg_price FROM High_Sustainable_Properties hsp JOIN Property p ON hsp.property_id = p.id GROUP BY hsp.address; | What is the average price of properties with a sustainable rating above 70 in each city? |
<table0>[table_24399615_10] { <col0>[episode_no]:[VARCHAR] <col1>[bbc_three_weekly_ranking]:[VARCHAR] <col2>[cable_rank]:[VARCHAR] } | SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "N/A" AND `<col2>` = "N/A" | Which episode had bbc ranking and canle ranking of n/a? |
<table0>[vessels] { <col0>[INT]:[name] <col1>[VARCHAR]:[flag_state] <col2>[VARCHAR]:[INSERT] } <table1>[transactions] { <col0>[INT]:[vessel_id] <col1>[INT]:[port_id] <col2>[INT]:[timestamp] <col3>[TIMESTAMP]:[INSERT] } | SELECT t.id, v.name as vessel_name, t.port_id, t.timestamp FROM `<table1>` t JOIN vessels v ON t.vessel_id = v.id WHERE v.flag_state = 'India'; | List all cargo handling transactions and related vessel information for vessels from India. |
<table0>[volunteers] { <col0>[INT]:[name] <col1>[TEXT]:[volunteer_hours] } | SELECT COUNT( * ) FROM volunteers; | How many volunteers are there in 'volunteers' table? |
<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>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table2>[diagnoses] { <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 lab ON `<table4>`.hadm_id = lab.hadm_id WHERE `<table4>`.admityear < "2124" AND lab."CATEGORY" = "Hematology" | count the number of patients who were admitted before 2124 and had hematology lab test category. |
<table0>[jybgb] { <col0>[BBCJBW]:[text] <col1>[BBDM]:[text] <col2>[BBMC]:[text] <col3>[BBZT]:[number] <col4>[BGDH]:[text] <col5>[BGJGDM]:[text] <col6>[BGJGMC]:[text] <col7>[BGRGH]:[text] <col8>[BGRQ]:[time] <col9>[BGRXM]:[text] <col10>[BGSJ]:[time] <col11>[CJRQ]:[time] <col12>[JSBBRQSJ]:[time] <col13>[JSBBSJ]:[time] <col14>[JYBBH]:[text] <col15>[JYJGMC]:[text] <col16>[JYJSGH]:[text] <col17>[JYJSQM]:[text] <col18>[JYKSBM]:[text] <col19>[JYKSMC]:[text] <col20>[JYLX]:[number] <col21>[JYRQ]:[time] <col22>[JYSQJGMC]:[text] <col23>[JYXMDM]:[text] <col24>[JYXMMC]:[text] <col25>[JZLSH]:[text] <col26>[JZLSH_MZJZJLB]:[text] <col27>[JZLSH_ZYJZJLB]:[text] <col28>[JZLX]:[number] <col29>[KSBM]:[text] <col30>[KSMC]:[text] <col31>[SHRGH]:[text] <col32>[SHRXM]:[text] <col33>[SHSJ]:[time] <col34>[SQKS]:[text] <col35>[SQKSMC]:[text] <col36>[SQRGH]:[text] <col37>[SQRQ]:[time] <col38>[SQRXM]:[text] <col39>[YLJGDM]:[text] <col40>[YLJGDM_ZYJZJLB]:[text] } <table1>[person_info] { <col0>[CSD]:[text] <col1>[CSRQ]:[time] <col2>[GJDM]:[text] <col3>[GJMC]:[text] <col4>[JGDM]:[text] <col5>[JGMC]:[text] <col6>[MZDM]:[text] <col7>[MZMC]:[text] <col8>[RYBH]:[text] <col9>[XBDM]:[number] <col10>[XBMC]:[text] <col11>[XLDM]:[text] <col12>[XLMC]:[text] <col13>[text]:[ZYLBDM] <col14>[text]:[ZYMC] } <table2>[hz_info] { <col0>[text]:[KLX] <col1>[number]:[RYBH] <col2>[text]:[YLJGDM] } <table3>[mzjzjlb] { <col0>[HXPLC]:[number] <col1>[HZXM]:[text] <col2>[JLSJ]:[time] <col3>[JZJSSJ]:[time] <col4>[JZKSBM]:[text] <col5>[JZKSMC]:[text] <col6>[JZKSRQ]:[time] <col7>[JZLSH]:[text] <col8>[JZZDBM]:[text] <col9>[JZZDSM]:[text] <col10>[JZZTDM]:[number] <col11>[JZZTMC]:[text] <col12>[text]:[KLX] <col13>[number]:[MJZH] <col14>[text]:[number] <col15>[MZZYZDZZBM]:[text] <col16>[MZZYZDZZMC]:[text] <col17>[NLS]:[number] <col18>[NLY]:[number] <col19>[QTJZYSGH]:[text] <col20>[number]:[SSY] <col21>[number]:[SZY] <col22>[number]:[number] <col23>[TXBZ]:[number] <col24>[number]:[WDBZ] <col25>[number]:[number] <col26>[YLJGDM]:[text] <col27>[ZSEBZ]:[number] <col28>[ZZBZ]:[number] <col29>[ZZYSGH]:[text] } <table4>[jyjgzbb] { <col0>[BGDH]:[text] <col1>[BGRQ]:[time] <col2>[CKZFWDX]:[text] <col3>[CKZFWSX]:[number] <col4>[CKZFWXX]:[number] <col5>[JCFF]:[text] <col6>[JCRGH]:[text] <col7>[JCRXM]:[text] <col8>[JCXMMC]:[text] <col9>[JCZBDM]:[text] <col10>[JCZBJGDL]:[number] <col11>[JCZBJGDW]:[text] <col12>[JCZBJGDX]:[text] <col13>[JCZBMC]:[text] <col14>[JLDW]:[text] <col15>[JYRQ]:[time] <col16>[JYZBLSH]:[text] <col17>[SBBM]:[text] <col18>[SHRGH]:[text] <col19>[SHRXM]:[text] <col20>[YLJGDM]:[text] <col21>[YQBH]:[text] <col22>[YQMC]:[text] } <table5>[zyjzjlb] { <col0>[CYBQDM]:[text] <col1>[CYBQMC]:[text] <col2>[CYCWH]:[text] <col3>[CYKSDM]:[text] <col4>[CYKSMC]:[text] <col5>[CYSJ]:[time] <col6>[CYZTDM]:[number] <col7>[HZXM]:[text] <col8>[JZKSDM]:[text] <col9>[JZKSMC]:[text] <col10>[JZLSH]:[text] <col11>[text]:[KLX] <col12>[number]:[MZBMLX] <col13>[number]:[MZJZLSH] <col14>[text]:[MZZDBM] <col15>[text]:[MZZDMC] <col16>[text]:[MZZYZDZZBM] <col17>[text]:[RYCWH] <col18>[text]:[RYDJSJ] <col19>[time]:[RYSJ] <col20>[time]:[RYTJDM] <col21>[number]:[RYTJMC] <col22>[text]:[RZBQDM] <col23>[text]:[RZBQMC] <col24>[text]:[WDBZ] <col25>[number]:[YLJGDM] <col26>[text]:[ZYBMLX] <col27>[number]:[ZYZDBM] <col28>[text]:[ZYZDMC] <col29>[text]:[ZYZYZDZZBM] <col30>[text]:[ZYZYZDZZMC] } <table6>[mzjzjlb_jybgb] { <col0>[YLJGDM_MZJZJLB]:[text] <col1>[BGDH]:[number] <col2>[YLJGDM]:[number] } | SELECT COUNT( * ) FROM `<table1>` JOIN hz_info JOIN mzjzjlb ON `<table1>`.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE `<table1>`.XM = '袁雅云' AND mzjzjlb.JZKSRQ BETWEEN '2001-04-21' AND '2019-08-21' AND mzjzjlb.YLJGDM = '3211067' | 从01年4月21日至2019年8月21日之内袁雅云患者在医疗机构3211067的门诊共就诊的次数是多少?
|
<table0>[production] { <col0>[INT]:[element] <col1>[VARCHAR]:[year] <col2>[INT]:[quantity] <col3>[INT]:[INSERT] } | DELETE FROM `<table0>` WHERE element = 'dysprosium' AND year < 2019; | Delete records of dysprosium magnet production from the table 'production' before 2019 |
<table0>[rural_projects] { <col0>[INT]:[name] <col1>[VARCHAR]:[100] <col2>[country]:[VARCHAR] <col3>[investment]:[FLOAT] } <table1>[agri_innovations] { <col0>[INT]:[project_id] <col1>[INT]:[type] <col2>[VARCHAR]:[cost] <col3>[FLOAT]:[INSERT] } | SELECT AVG( a.cost ) FROM `<table1>` a JOIN rural_projects r ON a.project_id = r.id WHERE r.country LIKE 'Africa%'; | What is the average agricultural innovation investment per rural infrastructure project in Africa? |
<table0>[table_name_48] { <col0>[voice_actor__harmony_gold_ova_dub]:[VARCHAR] <col1>[japanese_voice_actor]:[VARCHAR] } | SELECT voice_actor__harmony_gold_ova_dub_ FROM `<table0>` WHERE `<col1>` = "yoku shioya" | Who is the voice actor of the character with the Japanese voice actor Yoku Shioya?
|
<table0>[time_zone] { <col0>[time_zone_code]:[text] <col1>[time_zone_name]:[text] <col2>[hours_from_gmt]:[int] } <table1>[airline] { <col0>[airline_code]:[varchar] <col1>[airline_name]:[text] <col2>[note]:[text] } <table2>[flight_leg] { <col0>[flight_id]:[int] <col1>[leg_number]:[int] <col2>[leg_flight]:[int] } <table3>[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] } <table4>[month] { <col0>[month_number]:[int] <col1>[month_name]:[text] } <table5>[flight] { <col0>[aircraft_code_sequence]:[text] <col1>[airline_code]:[varchar] } <table6>[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] } <table7>[time_interval] { <col0>[period]:[text] <col1>[begin_time]:[int] <col2>[end_time]:[int] } <table8>[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] } <table9>[code_description] { <col0>[code]:[varchar] <col1>[description]:[text] } <table10>[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] } <table11>[dual_carrier] { <col0>[main_airline]:[varchar] <col1>[low_flight_number]:[int] <col2>[high_flight_number]:[int] <col3>[dual_airline]:[varchar] <col4>[service_name]:[text] } <table12>[airport_service] { <col0>[city_code]:[varchar] <col1>[airport_code]:[varchar] <col2>[miles_distant]:[int] <col3>[direction]:[varchar] <col4>[minutes_distant]:[int] } <table13>[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] } <table14>[compartment_class] { <col0>[compartment]:[varchar] <col1>[class_type]:[varchar] } <table15>[city] { <col0>[city_code]:[varchar] <col1>[city_name]:[varchar] <col2>[state_code]:[varchar] <col3>[country_name]:[varchar] <col4>[time_zone_code]:[varchar] } <table16>[ground_service] { <col0>[city_code]:[text] <col1>[airport_code]:[text] <col2>[transport_type]:[text] <col3>[ground_fare]:[int] } <table17>[date_day] { <col0>[month_number]:[int] <col1>[day_number]:[int] <col2>[year]:[int] <col3>[day_name]:[varchar] } <table18>[equipment_sequence] { <col0>[aircraft_code_sequence]:[varchar] <col1>[aircraft_code]:[varchar] } <table19>[class_of_service] { <col0>[booking_class]:[varchar] <col1>[rank]:[int] <col2>[class_description]:[text] } <table20>[days] { <col0>[days_code]:[varchar] <col1>[day_name]:[varchar] } <table21>[food_service] { <col0>[meal_code]:[text] <col1>[meal_number]:[int] <col2>[compartment]:[text] <col3>[meal_description]:[varchar] } <table22>[state] { <col0>[state_code]:[text] <col1>[state_name]:[text] <col2>[country_name]:[text] } <table23>[flight_fare] { <col0>[flight_id]:[int] <col1>[fare_id]:[int] } <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 airport, airport_service, city, ground_service WHERE airport.airport_code = airport_service.airport_code AND city.city_code = airport_service.city_code AND city.city_name = 'WESTCHESTER COUNTY' AND ground_service.airport_code = airport.airport_code | show me the ground transportation to WESTCHESTER COUNTY
|
<table0>[table_name_35] { <col0>[player]:[VARCHAR] <col1>[score]:[VARCHAR] <col2>[country]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = 68 AND `<col2>` = "canada" | Which player has 68 as the score and canada as the country? |
<table0>[conditions] { <col0>[condition_id]:[INT] <col1>[condition]:[VARCHAR] } <table1>[patients] { <col0>[patient_id]:[INT] <col1>[condition_id]:[INT] <col2>[country]:[VARCHAR] } | SELECT DISTINCT `<table0>`.condition FROM `<table0>` INNER JOIN patients ON `<table0>`.condition_id = patients.condition_id WHERE patients.country = 'India'; | List of unique mental health conditions treated in India. |
<table0>[table_27914] { <col0>[Settlement]:[text] <col1>[Cyrillic]:[Names] <col2>[text]:[Type] <col3>[text]:[Population] <col4>[2011]:[real] <col5>[Largest]:[ethnic] <col6>[group]:[2002] <col7>[text]:[Dominant] <col8>[religion]:[2002] } | SELECT "Type" FROM `<table0>` WHERE "Cyrillic Name Other Names" = 'Футог' | What type of settlement is ? |
<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>[patients] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[gender]:[text] <col3>[dob]:[time] <col4>[dod]:[time] } <table2>[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] } <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>[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] } <table5>[cost] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[event_type]:[text] <col4>[event_id]:[number] <col5>[chargetime]:[time] } <table6>[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] } <table7>[d_items] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] <col3>[linksto]:[text] } <table8>[d_icd_procedures] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[text] } <table9>[diagnoses_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <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>[procedures_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table12>[inputevents_cv] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[charttime]:[time] <col5>[itemid]:[number] } <table13>[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] } <table14>[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] } <table15>[d_labitems] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] } <table16>[d_icd_diagnoses] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[text] } | SELECT COUNT( DISTINCT `<table13>`.subject_id ) FROM `<table13>` WHERE DATETIME( `<table13>`.admittime, 'start of year' ) = DATETIME( CURRENT_TIME( ), 'start of year', '-0 year' ) | calculate the number of patients who were admitted to hospital during this year.
|
<table0>[table_1817879_2] { <col0>[number_of_new_stations]:[VARCHAR] <col1>[length__miles]:[VARCHAR] } | SELECT COUNT( _number_of_new_stations ) FROM `<table0>` WHERE length__miles_ = "6.0" | How many new stations have a lenght (miles) of 6.0? |
<table0>[table_name_96] { <col0>[country]:[VARCHAR] <col1>[player]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "hale irwin" | What is Country, when Player is 'Hale Irwin'?
|
<table0>[drug_approval] { <col0>[region]:[varchar] <col1>[year]:[int] <col2>[drug]:[varchar] } | SELECT DISTINCT `<col2>` FROM `<table0>` WHERE `<col0>` = 'RegionY' AND `<col1>` = 2018; | Which drugs were approved in 'RegionY' in 2018? |
<table0>[cost] { <col0>[costid]:[number] <col1>[uniquepid]:[text] <col2>[patienthealthsystemstayid]:[number] <col3>[eventtype]:[text] <col4>[eventid]:[number] <col5>[chargetime]:[time] } <table1>[allergy] { <col0>[allergyid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[allergyname]:[text] <col4>[allergytime]:[time] } <table2>[lab] { <col0>[labid]:[number] <col1>[patientunitstayid]:[number] <col2>[labname]:[text] <col3>[labresult]:[number] <col4>[labresulttime]:[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>[medication] { <col0>[medicationid]:[number] <col1>[patientunitstayid]:[number] <col2>[drugname]:[text] <col3>[dosage]:[text] <col4>[routeadmin]:[text] <col5>[drugstarttime]:[time] <col6>[drugstoptime]:[time] } <table5>[microlab] { <col0>[microlabid]:[number] <col1>[patientunitstayid]:[number] <col2>[culturesite]:[text] <col3>[organism]:[text] <col4>[culturetakentime]:[time] } <table6>[treatment] { <col0>[treatmentid]:[number] <col1>[patientunitstayid]:[number] <col2>[treatmentname]:[text] <col3>[treatmenttime]:[time] } <table7>[diagnosis] { <col0>[diagnosisid]:[number] <col1>[patientunitstayid]:[number] <col2>[diagnosisname]:[text] <col3>[diagnosistime]:[time] <col4>[icd9code]:[text] } <table8>[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] } <table9>[intakeoutput] { <col0>[intakeoutputid]:[number] <col1>[patientunitstayid]:[number] <col2>[cellpath]:[text] <col3>[celllabel]:[text] <col4>[cellvaluenumeric]:[number] <col5>[intakeoutputtime]:[time] } | SELECT COUNT( * ) > 0 FROM `<table9>` WHERE `<table9>`.`<table3>`unitstayid IN ( SELECT `<table3>`.`<table3>`unitstayid FROM `<table3>` WHERE `<table3>`.`<table3>`healthsystemstayid IN ( SELECT `<table3>`.`<table3>`healthsystemstayid FROM `<table3>` WHERE `<table3>`.uniquepid = '016-38131' ) ) AND `<table9>`.cellpath LIKE '%output%' AND `<table9>`.celllabel = 'bulb #2' AND DATETIME( `<table9>`.`<table9>`time, 'start of day' ) = DATETIME( CURRENT_TIME( ), 'start of day', '-0 day' ) | today, did patient 016-38131 have any bulb #2 output? |
<table0>[InfectiousDiseases] { <col0>[INT]:[Disease] <col1>[TEXT]:[Region] <col2>[TEXT]:[Date] <col3>[DATE]:[INSERT] } | DELETE FROM `<table0>` WHERE Region = 'Region C'; | Delete all records of infectious diseases reported in Region C. |
<table0>[restorative_justice] { <col0>[INT]:[country] <col1>[VARCHAR]:[255] <col2>[program]:[VARCHAR] <col3>[255]:[INSERT] } <table1>[legal_tech] { <col0>[INT]:[country] <col1>[VARCHAR]:[255] <col2>[initiative]:[VARCHAR] <col3>[255]:[INSERT] } | SELECT COUNT( * ) FROM ( SELECT * FROM `<table0>` UNION SELECT * FROM `<table1>` ) AS total_programs; | What is the total number of restorative justice programs and legal technology initiatives in the US and Canada? |
<table0>[table_204_870] { <col0>[number]:[product] <col1>[text]:[main] <col2>[functionality]:[text] <col3>[input]:[format] <col4>[text]:[output] <col5>[format]:[text] <col6>[platform]:[text] <col7>[license]:[cost] <col8>[text]:[notes] } | SELECT "input format", "output format" FROM `<table0>` WHERE "product" = 'allegrograph' | what is the only input/output format for allegrograph ?
|
<table0>[procedures] { <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>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table3>[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] } <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 COUNT( DISTINCT `<table1>`.subject_id ) FROM `<table1>` INNER JOIN procedures ON `<table1>`.hadm_id = procedures.hadm_id WHERE `<table1>`.admission_type = "ELECTIVE" AND procedures.long_title = "Fiber-optic bronchoscopy" | what is the number of patients whose admission type is elective and procedure long title is fiber-optic bronchoscopy?
|
<table0>[table_name_63] { <col0>[venue]:[VARCHAR] <col1>[year]:[VARCHAR] <col2>[result]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = 2005 AND `<col2>` = "8th" | What is Venue, when Year is 2005, and when Result is 8th?
|
<table0>[table_66792] { <col0>[Date]:[text] <col1>[Opponent]:[text] <col2>[Score]:[text] <col3>[Loss]:[text] <col4>[Attendance]:[real] <col5>[Record]:[text] } | SELECT "Record" FROM `<table0>` WHERE "Attendance" > '39,980' AND "Date" = 'july 26' | What is the record that has an attendance greater than 39,980 with july 26 as the date?
|
<table0>[marine_species] { <col0>[INT]:[name] <col1>[VARCHAR]:[population] } | INSERT INTO marine_species ( name, population ) VALUES ( 'Oceanic Whitetip Shark', 1200 ); | Insert a new record in the marine_species table for a species named 'Oceanic Whitetip Shark' with a population of 1200 |
<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>[diagnoses] { <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>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } | SELECT COUNT( DISTINCT `<table1>`.subject_id ) FROM `<table1>` INNER JOIN procedures ON `<table1>`.hadm_id = procedures.hadm_id WHERE `<table1>`.marital_status = "SINGLE" AND procedures.long_title = "Single internal mammary-coronary artery bypass" | how many single patients had the procedure long title single internal mammary-coronary artery bypass? |
<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>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table2>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table3>[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] } <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 `<table4>`.dischtime FROM `<table4>` WHERE `<table4>`.name = "Stephanie Suchan" | what is discharge time of subject name stephanie suchan?
|
<table0>[table_1385] { <col0>[Year]:[real] <col1>[January]:[text] <col2>[February]:[text] <col3>[March]:[text] <col4>[April]:[text] <col5>[text]:[June] <col6>[text]:[July] <col7>[text]:[August] <col8>[text]:[September] <col9>[text]:[October] <col10>[text]:[November] <col11>[text]:[December] <col12>[text]:[Annual] <col13>[Additions]:[millions] <col14>[text]:[Average] <col15>[Monthly]:[Additions] <col16>[millions]:[text] } | SELECT "December" FROM `<table0>` WHERE "January" = '8.77' | What December is 8.77 in January
|
<table0>[safety_scores] { <col0>[INT]:[vehicle] <col1>[VARCHAR]:[VARCHAR] <col2>[country]:[VARCHAR] <col3>[score]:[INT] } | SELECT * FROM `<table0>` WHERE `<col2>` = 'Japan'; | Show safety testing scores for vehicles manufactured in Japan |
<table0>[table_name_39] { <col0>[internet_explorer]:[VARCHAR] <col1>[firefox]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "27.85%" | What percentage of browsers were using Internet Explorer during the period in which 27.85% were using Firefox?
|
<table0>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[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>[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>` WHERE `<table4>`.language = "SPAN" AND `<table4>`.age < "76" | provide the number of patients aged below 76 years whose language is spanish. |
<table0>[mangrove_forests] { <col0>[INT]:[region] <col1>[VARCHAR]:[name] <col2>[VARCHAR]:[area_sqkm] <col3>[FLOAT]:[INSERT] } | SELECT region, SUM( area_sqkm ) FROM `<table0>` GROUP BY region; | What is the total area covered by mangrove forests in each region? |
<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>[instructor] { <col0>[instructor_id]:[int] <col1>[name]:[varchar] <col2>[uniqname]:[varchar] } <table2>[area] { <col0>[course_id]:[int] } <table3>[comment_instructor] { <col0>[instructor_id]:[int] <col1>[student_id]:[int] <col2>[score]:[int] <col3>[comment_text]:[varchar] } <table4>[program_course] { <col0>[program_id]:[int] <col1>[course_id]:[int] <col2>[workload]:[int] <col3>[category]:[varchar] } <table5>[program_requirement] { <col0>[program_id]:[int] <col1>[category]:[varchar] <col2>[min_credit]:[int] <col3>[additional_req]:[varchar] } <table6>[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] } <table7>[gsi] { <col0>[course_offering_id]:[int] <col1>[student_id]:[int] } <table8>[offering_instructor] { <col0>[offering_instructor_id]:[int] <col1>[offering_id]:[int] <col2>[instructor_id]:[int] } <table9>[course_prerequisite] { <col0>[pre_course_id]:[int] <col1>[course_id]:[int] } <table10>[campus_job_id] { <col0>[int]:[student_id] <col1>[int]:[location] } <table11>[requirement] { <col0>[requirement_id]:[int] } <table12>[program] { <col0>[program_id]:[int] <col1>[name]:[varchar] <col2>[college]:[varchar] <col3>[introduction]:[varchar] } <table13>[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] } <table14>[semester] { <col0>[semester_id]:[int] } <table15>[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] } <table16>[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] } <table17>[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] } | SELECT DISTINCT course.department, course.name, course.number FROM course, program, program_course WHERE course.department <> 'NAVSCI' AND program_course.course_id = course.course_id AND program.program_id = program_course.program_id | Are there any courses required for the major that are not in the NAVSCI department ? |
<table0>[table_62308] { <col0>[Season]:[real] <col1>[Team]:[text] <col2>[Country]:[text] <col3>[League]:[text] <col4>[Level]:[real] <col5>[Apps]:[real] <col6>[Goals]:[real] } | SELECT SUM( "Level" ) FROM `<table0>` WHERE "Apps" = '27' AND "Season" > '2006' | What is the total Level with 27 Apps after 2006?
|
<table0>[table_name_75] { <col0>[number]:[INTEGER] <col1>[song_title]:[VARCHAR] } | SELECT AVG( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "o sudha" | What is the average number for the song 'O Sudha'? |
<table0>[EventAttendance] { <col0>[event_id]:[INT] <col1>[attendance]:[INT] <col2>[free_admission]:[BOOLEAN] } | SELECT SUM( `<col1>` ) AS total_attendance FROM `<table0>` WHERE `<col2>` = true AND `<col0>` IN ( SELECT `<col0>` FROM Events WHERE event_date BETWEEN '2022-01-01' AND '2022-06-30' ); | What was the total attendance for events with free admission in H1 2022? |
<table0>[sales] { <col0>[INT]:[dispensary_name] <col1>[TEXT]:[state] <col2>[TEXT]:[revenue] <col3>[INT]:[date] <col4>[DATE]:[INSERT] } | SELECT SUM( revenue ) FROM `<table0>` WHERE state = 'California' AND date BETWEEN '2021-01-01' AND '2021-12-31'; | What was the total revenue for the state of California in 2021? |
<table0>[artists] { <col0>[INT]:[name] <col1>[VARCHAR]:[country] <col2>[VARCHAR]:[INSERT] } | SELECT name FROM `<table0>` WHERE country IN ( 'Nigeria', 'South Africa' ); | Which artists are from Africa? |
<table0>[donors] { <col0>[donor_id]:[INT] <col1>[donor_name]:[VARCHAR] <col2>[255]:[donation_date] <col3>[DATE]:[cause] <col4>[VARCHAR]:[255] } | SELECT cause, COUNT( DISTINCT `<col0>` ) AS num_unique_`<table0>` FROM `<table0>` WHERE donation_date BETWEEN '2022-01-01' AND '2022-06-30' GROUP BY cause; | How many unique donors contributed to each cause in H1 2022? |
<table0>[diagnoses_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table1>[d_items] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] <col3>[linksto]:[text] } <table2>[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] } <table3>[cost] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[event_type]:[text] <col4>[event_id]:[number] <col5>[chargetime]:[time] } <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>[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] } <table6>[d_labitems] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] } <table7>[inputevents_cv] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[charttime]:[time] <col5>[itemid]:[number] } <table8>[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] } <table9>[d_icd_diagnoses] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[text] } <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>[procedures_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table12>[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] } <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>[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] } <table15>[d_icd_procedures] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[text] } <table16>[patients] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[gender]:[text] <col3>[dob]:[time] <col4>[dod]:[time] } | SELECT `<table15>`.short_title FROM `<table15>` WHERE `<table15>`.icd9_code IN ( SELECT t1.icd9_code FROM ( SELECT `<table11>`.icd9_code, COUNT( `<table11>`.charttime ) AS c1 FROM `<table11>` WHERE `<table11>`.hadm_id IN ( SELECT `<table12>`.hadm_id FROM `<table12>` WHERE `<table12>`.subject_id = 61003 ) AND DATETIME( `<table11>`.charttime, 'start of year' ) = DATETIME( CURRENT_TIME( ), 'start of year', '-1 year' ) AND STRFTIME( '%m', `<table11>`.charttime ) = '01' GROUP BY `<table11>`.icd9_code ) AS t1 WHERE t1.c1 >= 2 ) | what is the name of the procedure that has been done two or more times in 01/last year to patient 61003?
|
<table0>[PostFeedback] { <col0>[number]:[PostId] <col1>[number]:[IsAnonymous] <col2>[boolean]:[VoteTypeId] <col3>[number]:[CreationDate] } <table1>[VoteTypes] { <col0>[number]:[text] } <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>[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] } <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>[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] } <table6>[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] } <table7>[CloseReasonTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table8>[PostTypes] { <col0>[number]:[text] } <table9>[ReviewTaskResults] { <col0>[number]:[ReviewTaskId] <col1>[number]:[ReviewTaskResultTypeId] <col2>[number]:[CreationDate] <col3>[time]:[RejectionReasonId] <col4>[number]:[Comment] } <table10>[ReviewTaskResultTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table11>[ReviewTaskTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table12>[PostLinks] { <col0>[number]:[CreationDate] <col1>[time]:[PostId] <col2>[number]:[RelatedPostId] <col3>[number]:[LinkTypeId] } <table13>[PostTags] { <col0>[PostId]:[number] <col1>[TagId]:[number] } <table14>[SuggestedEditVotes] { <col0>[number]:[SuggestedEditId] <col1>[number]:[UserId] <col2>[number]:[VoteTypeId] <col3>[number]:[CreationDate] <col4>[time]:[TargetUserId] <col5>[number]:[TargetRepChange] } <table15>[Tags] { <col0>[number]:[TagName] <col1>[text]:[Count] <col2>[number]:[ExcerptPostId] <col3>[number]:[WikiPostId] } <table16>[Votes] { <col0>[number]:[PostId] <col1>[number]:[VoteTypeId] <col2>[number]:[UserId] <col3>[number]:[CreationDate] <col4>[time]:[BountyAmount] } <table17>[ReviewRejectionReasons] { <col0>[number]:[text] <col1>[Description]:[text] <col2>[PostTypeId]:[number] } <table18>[PostNoticeTypes] { <col0>[number]:[ClassId] <col1>[number]:[text] <col2>[Body]:[text] <col3>[IsHidden]:[boolean] <col4>[Predefined]:[boolean] <col5>[PostNoticeDurationId]:[number] } <table19>[Badges] { <col0>[number]:[UserId] <col1>[number]:[text] <col2>[Date]:[time] <col3>[Class]:[number] <col4>[TagBased]:[boolean] } <table20>[Comments] { <col0>[number]:[PostId] <col1>[number]:[Score] <col2>[number]:[Text] <col3>[text]:[CreationDate] <col4>[time]:[UserDisplayName] <col5>[text]:[UserId] <col6>[number]:[ContentLicense] } <table21>[FlagTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table22>[ReviewTasks] { <col0>[number]:[ReviewTaskTypeId] <col1>[number]:[CreationDate] <col2>[time]:[DeletionDate] <col3>[time]:[ReviewTaskStateId] <col4>[number]:[PostId] <col5>[number]:[SuggestedEditId] <col6>[number]:[CompletedByReviewTaskId] } <table23>[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] } <table24>[ReviewTaskStates] { <col0>[number]:[text] <col1>[Description]:[text] } <table25>[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] } <table26>[PostHistoryTypes] { <col0>[number]:[text] } <table27>[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] } <table28>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[BelongsOnBaseHostAddress] } | SELECT COUNT( * ) AS Total`<table6>` FROM `<table6>` WHERE LOWER( Location ) LIKE LOWER( '%##NombrePais##%' ) | Total Users Of A Especific Country. |
<table0>[Donations] { <col0>[INT]:[name] <col1>[TEXT]:[region] <col2>[TEXT]:[donation] <col3>[FLOAT]:[INSERT] } | SELECT AVG( donation ) FROM `<table0>` WHERE region = 'East Coast'; | What is the average donation amount in the 'East Coast' region? |
<table0>[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] } <table1>[PostTypes] { <col0>[number]:[text] } <table2>[Tags] { <col0>[number]:[TagName] <col1>[text]:[Count] <col2>[number]:[ExcerptPostId] <col3>[number]:[WikiPostId] } <table3>[ReviewTaskResultTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table4>[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] } <table5>[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] } <table6>[ReviewTaskTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table7>[PostHistoryTypes] { <col0>[number]:[text] } <table8>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[BelongsOnBaseHostAddress] } <table9>[Votes] { <col0>[number]:[PostId] <col1>[number]:[VoteTypeId] <col2>[number]:[UserId] <col3>[number]:[CreationDate] <col4>[time]:[BountyAmount] } <table10>[ReviewTasks] { <col0>[number]:[ReviewTaskTypeId] <col1>[number]:[CreationDate] <col2>[time]:[DeletionDate] <col3>[time]:[ReviewTaskStateId] <col4>[number]:[PostId] <col5>[number]:[SuggestedEditId] <col6>[number]:[CompletedByReviewTaskId] } <table11>[SuggestedEditVotes] { <col0>[number]:[SuggestedEditId] <col1>[number]:[UserId] <col2>[number]:[VoteTypeId] <col3>[number]:[CreationDate] <col4>[time]:[TargetUserId] <col5>[number]:[TargetRepChange] } <table12>[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] } <table13>[ReviewRejectionReasons] { <col0>[number]:[text] <col1>[Description]:[text] <col2>[PostTypeId]:[number] } <table14>[ReviewTaskStates] { <col0>[number]:[text] <col1>[Description]:[text] } <table15>[PostFeedback] { <col0>[number]:[PostId] <col1>[number]:[IsAnonymous] <col2>[boolean]:[VoteTypeId] <col3>[number]:[CreationDate] } <table16>[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] } <table17>[Badges] { <col0>[number]:[UserId] <col1>[number]:[text] <col2>[Date]:[time] <col3>[Class]:[number] <col4>[TagBased]:[boolean] } <table18>[PostLinks] { <col0>[number]:[CreationDate] <col1>[time]:[PostId] <col2>[number]:[RelatedPostId] <col3>[number]:[LinkTypeId] } <table19>[CloseReasonTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table20>[Comments] { <col0>[number]:[PostId] <col1>[number]:[Score] <col2>[number]:[Text] <col3>[text]:[CreationDate] <col4>[time]:[UserDisplayName] <col5>[text]:[UserId] <col6>[number]:[ContentLicense] } <table21>[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] } <table22>[PostNoticeTypes] { <col0>[number]:[ClassId] <col1>[number]:[text] <col2>[Body]:[text] <col3>[IsHidden]:[boolean] <col4>[Predefined]:[boolean] <col5>[PostNoticeDurationId]:[number] } <table23>[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] } <table24>[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] } <table25>[FlagTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table26>[VoteTypes] { <col0>[number]:[text] } <table27>[PostTags] { <col0>[PostId]:[number] <col1>[TagId]:[number] } <table28>[ReviewTaskResults] { <col0>[number]:[ReviewTaskId] <col1>[number]:[ReviewTaskResultTypeId] <col2>[number]:[CreationDate] <col3>[time]:[RejectionReasonId] <col4>[number]:[Comment] } | SELECT t.TagName, t2.TagName FROM `<table2>` AS t, `<table2>` AS t2 WHERE t.TagName = REPLACE( t2.TagName, '.', '' ) AND t.Id != t2.Id | find tags with tag dot tag not dot. |
<table0>[table_51142] { <col0>[2004]:[text] <col1>[2007]:[text] <col2>[2010]:[text] <col3>[2011]:[text] <col4>[2012]:[text] } | SELECT "2012/ 13" FROM `<table0>` WHERE "2011/ 12" = 'non-ranking' | What is the 2012/ 13 when the 2011/ 12 is non-ranking? |
<table0>[borders] { <col0>[Country1]:[text] <col1>[Country2]:[text] <col2>[Length]:[real] } <table1>[city] { <col0>[text]:[Country] <col1>[text]:[Province] <col2>[text]:[Population] <col3>[integer]:[Longitude] <col4>[real]:[Latitude] } <table2>[continent] { <col0>[text]:[Area] } <table3>[country] { <col0>[text]:[Code] <col1>[text]:[Capital] <col2>[text]:[Province] <col3>[text]:[Area] <col4>[real]:[Population] } <table4>[desert] { <col0>[text]:[Area] <col1>[real]:[Longitude] <col2>[real]:[Latitude] } <table5>[economy] { <col0>[Country]:[text] <col1>[GDP]:[real] <col2>[Agriculture]:[real] <col3>[Service]:[real] <col4>[Industry]:[real] <col5>[Inflation]:[real] } <table6>[encompasses] { <col0>[Country]:[text] <col1>[Continent]:[text] <col2>[Percentage]:[real] } <table7>[ethnicGroup] { <col0>[Country]:[text] <col1>[text]:[Percentage] } <table8>[geo_desert] { <col0>[Desert]:[text] <col1>[Country]:[text] <col2>[Province]:[text] } <table9>[geo_estuary] { <col0>[River]:[text] <col1>[Country]:[text] <col2>[Province]:[text] } <table10>[geo_island] { <col0>[Island]:[text] <col1>[Country]:[text] <col2>[Province]:[text] } <table11>[geo_lake] { <col0>[Lake]:[text] <col1>[Country]:[text] <col2>[Province]:[text] } <table12>[geo_mountain] { <col0>[Mountain]:[text] <col1>[Country]:[text] <col2>[Province]:[text] } <table13>[geo_river] { <col0>[River]:[text] <col1>[Country]:[text] <col2>[Province]:[text] } <table14>[geo_sea] { <col0>[Sea]:[text] <col1>[Country]:[text] <col2>[Province]:[text] } <table15>[geo_source] { <col0>[River]:[text] <col1>[Country]:[text] <col2>[Province]:[text] } <table16>[island] { <col0>[text]:[Islands] <col1>[text]:[Area] <col2>[real]:[Height] <col3>[real]:[Type] <col4>[text]:[Longitude] <col5>[real]:[Latitude] } <table17>[islandIn] { <col0>[Island]:[text] <col1>[Sea]:[text] <col2>[Lake]:[text] <col3>[River]:[text] } <table18>[isMember] { <col0>[Country]:[text] <col1>[Organization]:[text] <col2>[Type]:[text] } <table19>[lake] { <col0>[text]:[Area] <col1>[real]:[Depth] <col2>[real]:[Altitude] <col3>[real]:[Type] <col4>[text]:[River] <col5>[text]:[Longitude] <col6>[real]:[Latitude] } <table20>[language] { <col0>[Country]:[text] <col1>[text]:[Percentage] } <table21>[located] { <col0>[City]:[text] <col1>[Province]:[text] <col2>[Country]:[text] <col3>[River]:[text] <col4>[Lake]:[text] <col5>[Sea]:[text] } <table22>[locatedOn] { <col0>[City]:[text] <col1>[Province]:[text] <col2>[Country]:[text] <col3>[Island]:[text] } <table23>[mergesWith] { <col0>[Sea1]:[text] <col1>[Sea2]:[text] } <table24>[mountain] { <col0>[text]:[Mountains] <col1>[text]:[Height] <col2>[real]:[Type] <col3>[text]:[Longitude] <col4>[real]:[Latitude] } <table25>[mountainOnIsland] { <col0>[Mountain]:[text] <col1>[Island]:[text] } <table26>[organization] { <col0>[Abbreviation]:[text] <col1>[text]:[City] <col2>[text]:[Country] <col3>[text]:[Province] <col4>[text]:[Established] } <table27>[politics] { <col0>[Country]:[text] <col1>[Independence]:[date] <col2>[Dependent]:[text] <col3>[Government]:[text] } <table28>[population] { <col0>[Country]:[text] <col1>[Population_Growth]:[real] <col2>[Infant_Mortality]:[real] } <table29>[province] { <col0>[text]:[Country] <col1>[text]:[Population] <col2>[integer]:[Area] <col3>[real]:[Capital] <col4>[text]:[CapProv] } <table30>[religion] { <col0>[Country]:[text] <col1>[text]:[Percentage] } <table31>[river] { <col0>[text]:[River] <col1>[text]:[Lake] <col2>[text]:[Sea] <col3>[text]:[Length] <col4>[real]:[SourceLongitude] <col5>[real]:[SourceLatitude] <col6>[real]:[Mountains] <col7>[text]:[SourceAltitude] <col8>[real]:[EstuaryLongitude] <col9>[real]:[EstuaryLatitude] } <table32>[sea] { <col0>[text]:[Depth] } <table33>[target] { <col0>[Country]:[text] <col1>[Target]:[text] } | SELECT CAST( T1.Population AS REAL ) * 100 / T2.Population FROM `<table1>` AS T1 INNER JOIN province AS T2 ON T1.Province = T2.Name WHERE T1.Name = 'Edmonton' | Calculate the percentage of population in Edmonton city to the population of its province. |
<table0>[txmzjzjlb] { <col0>[HXPLC]:[number] <col1>[HZXM]:[text] <col2>[JLSJ]:[time] <col3>[JZJSSJ]:[time] <col4>[JZKSBM]:[text] <col5>[JZKSMC]:[text] <col6>[JZKSRQ]:[time] <col7>[JZLSH]:[number] <col8>[JZZDBM]:[text] <col9>[JZZDSM]:[text] <col10>[JZZTDM]:[number] <col11>[JZZTMC]:[text] <col12>[text]:[KLX] <col13>[number]:[MJZH] <col14>[text]:[number] <col15>[MZZYZDZZBM]:[text] <col16>[MZZYZDZZMC]:[text] <col17>[NLS]:[number] <col18>[NLY]:[number] <col19>[QTJZYSGH]:[text] <col20>[number]:[SSY] <col21>[number]:[SZY] <col22>[number]:[number] <col23>[number]:[WDBZ] <col24>[number]:[number] <col25>[YLJGDM]:[number] <col26>[ZSEBZ]:[number] <col27>[ZZBZ]:[number] <col28>[ZZYSGH]:[text] } <table1>[hz_info] { <col0>[text]:[KLX] <col1>[number]:[RYBH] <col2>[text]:[YLJGDM] } <table2>[ftxmzjzjlb] { <col0>[HXPLC]:[number] <col1>[HZXM]:[text] <col2>[JLSJ]:[time] <col3>[JZJSSJ]:[time] <col4>[JZKSBM]:[text] <col5>[JZKSMC]:[text] <col6>[JZKSRQ]:[time] <col7>[JZLSH]:[number] <col8>[JZZDBM]:[text] <col9>[JZZDSM]:[text] <col10>[JZZTDM]:[number] <col11>[JZZTMC]:[text] <col12>[text]:[KLX] <col13>[number]:[MJZH] <col14>[text]:[number] <col15>[MZZYZDZZBM]:[text] <col16>[MZZYZDZZMC]:[text] <col17>[NLS]:[number] <col18>[NLY]:[number] <col19>[QTJZYSGH]:[text] <col20>[number]:[SSY] <col21>[number]:[SZY] <col22>[number]:[number] <col23>[number]:[WDBZ] <col24>[number]:[number] <col25>[YLJGDM]:[number] <col26>[ZSEBZ]:[number] <col27>[ZZBZ]:[number] <col28>[ZZYSGH]:[text] } <table3>[zyjzjlb] { <col0>[CYBQDM]:[text] <col1>[CYBQMC]:[text] <col2>[CYCWH]:[text] <col3>[CYKSDM]:[text] <col4>[CYKSMC]:[text] <col5>[CYSJ]:[time] <col6>[CYZTDM]:[number] <col7>[HZXM]:[text] <col8>[JZKSDM]:[text] <col9>[JZKSMC]:[text] <col10>[JZLSH]:[text] <col11>[text]:[KLX] <col12>[number]:[MZBMLX] <col13>[number]:[MZJZLSH] <col14>[text]:[MZZDBM] <col15>[text]:[MZZDMC] <col16>[text]:[MZZYZDZZBM] <col17>[text]:[RYCWH] <col18>[text]:[RYDJSJ] <col19>[time]:[RYSJ] <col20>[time]:[RYTJDM] <col21>[number]:[RYTJMC] <col22>[text]:[RZBQDM] <col23>[text]:[RZBQMC] <col24>[text]:[WDBZ] <col25>[number]:[YLJGDM] <col26>[text]:[ZYBMLX] <col27>[number]:[ZYZDBM] <col28>[text]:[ZYZDMC] <col29>[text]:[ZYZYZDZZBM] <col30>[text]:[ZYZYZDZZMC] } <table4>[jyjgzbb] { <col0>[BGDH]:[text] <col1>[BGRQ]:[time] <col2>[CKZFWDX]:[text] <col3>[CKZFWSX]:[number] <col4>[CKZFWXX]:[number] <col5>[JCFF]:[text] <col6>[JCRGH]:[text] <col7>[JCRXM]:[text] <col8>[JCXMMC]:[text] <col9>[JCZBDM]:[text] <col10>[JCZBJGDL]:[number] <col11>[JCZBJGDW]:[text] <col12>[JCZBJGDX]:[text] <col13>[JCZBMC]:[text] <col14>[JLDW]:[text] <col15>[JYRQ]:[time] <col16>[JYZBLSH]:[text] <col17>[SBBM]:[text] <col18>[SHRGH]:[text] <col19>[SHRXM]:[text] <col20>[YLJGDM]:[text] <col21>[YQBH]:[text] <col22>[YQMC]:[text] } <table5>[jybgb] { <col0>[BBCJBW]:[text] <col1>[BBDM]:[text] <col2>[BBMC]:[text] <col3>[BBZT]:[number] <col4>[BGDH]:[text] <col5>[BGJGDM]:[text] <col6>[BGJGMC]:[text] <col7>[BGRGH]:[text] <col8>[BGRQ]:[time] <col9>[BGRXM]:[text] <col10>[BGSJ]:[time] <col11>[CJRQ]:[time] <col12>[JSBBRQSJ]:[time] <col13>[JSBBSJ]:[time] <col14>[JYBBH]:[text] <col15>[JYJGMC]:[text] <col16>[JYJSGH]:[text] <col17>[JYJSQM]:[text] <col18>[JYKSBM]:[text] <col19>[JYKSMC]:[text] <col20>[JYLX]:[number] <col21>[JYRQ]:[time] <col22>[JYSQJGMC]:[text] <col23>[JYXMDM]:[text] <col24>[JYXMMC]:[text] <col25>[JZLSH]:[text] <col26>[JZLSH_MZJZJLB]:[text] <col27>[JZLSH_ZYJZJLB]:[text] <col28>[JZLX]:[number] <col29>[KSBM]:[text] <col30>[KSMC]:[text] <col31>[SHRGH]:[text] <col32>[SHRXM]:[text] <col33>[SHSJ]:[time] <col34>[SQKS]:[text] <col35>[SQKSMC]:[text] <col36>[SQRGH]:[text] <col37>[SQRQ]:[time] <col38>[SQRXM]:[text] <col39>[YLJGDM]:[text] <col40>[YLJGDM_MZJZJLB]:[text] <col41>[YLJGDM_ZYJZJLB]:[text] } <table6>[person_info] { <col0>[CSD]:[text] <col1>[CSRQ]:[time] <col2>[GJDM]:[text] <col3>[GJMC]:[text] <col4>[JGDM]:[text] <col5>[JGMC]:[text] <col6>[MZDM]:[text] <col7>[MZMC]:[text] <col8>[RYBH]:[text] <col9>[XBDM]:[number] <col10>[XBMC]:[text] <col11>[XLDM]:[text] <col12>[XLMC]:[text] <col13>[text]:[ZYLBDM] <col14>[text]:[ZYMC] } | SELECT `<table0>`.JZKSRQ FROM `<table0>` WHERE `<table0>`.JZLSH = '45399366381' UNION SELECT f`<table0>`.JZKSRQ FROM f`<table0>` WHERE f`<table0>`.JZLSH = '45399366381' | 能提供出门诊就诊45399366381的日期是多少吗?
|
<table0>[military_innovation_spending] { <col0>[spending_id]:[INT] <col1>[country]:[VARCHAR] <col2>[year]:[INT] <col3>[spending]:[INT] } | SELECT mi.country, YEAR( mi.year ), SUM( mi.spending ) as total_spending FROM `<table0>` mi GROUP BY mi.country, YEAR( mi.year ); | What is the total spending on military innovation by country and year? |
<table0>[table_203_88] { <col0>[number]:[language] <col1>[text]:[number] <col2>[number]:[percentage] <col3>[number]:[males] <col4>[number]:[females] } | SELECT "language" FROM `<table0>` WHERE "language" <> 'polish' ORDER BY "percentage ( % )" DESC LIMIT 1 | what is the highest percentage of speakers other than polish ? |
<table0>[cost] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[event_type]:[text] <col4>[event_id]:[number] <col5>[chargetime]:[time] } <table1>[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] } <table2>[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] } <table3>[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] } <table4>[d_icd_diagnoses] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[text] } <table5>[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] } <table6>[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] } <table7>[d_icd_procedures] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[text] } <table8>[d_items] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] <col3>[linksto]:[text] } <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>[procedures_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table11>[inputevents_cv] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[charttime]:[time] <col5>[itemid]:[number] } <table12>[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] } <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>[patients] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[gender]:[text] <col3>[dob]:[time] <col4>[dod]:[time] } <table15>[diagnoses_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table16>[d_labitems] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] } | SELECT t3.drug FROM ( SELECT t2.drug, DENSE_RANK( ) OVER ( ORDER BY COUNT( * ) DESC ) AS c1 FROM ( SELECT admissions.subject_id, `<table15>`.charttime, admissions.hadm_id FROM `<table15>` JOIN admissions ON `<table15>`.hadm_id = admissions.hadm_id WHERE `<table15>`.icd9_code = ( SELECT `<table4>`.icd9_code FROM `<table4>` WHERE `<table4>`.short_title = 'tobacco use disorder' ) AND STRFTIME( '%y', `<table15>`.charttime ) >= '2105' ) AS t1 JOIN ( SELECT admissions.subject_id, `<table12>`.drug, `<table12>`.startdate, admissions.hadm_id FROM `<table12>` JOIN admissions ON `<table12>`.hadm_id = admissions.hadm_id WHERE admissions.subject_id IN ( SELECT `<table14>`.subject_id FROM `<table14>` WHERE `<table14>`.gender = 'f' ) AND admissions.age BETWEEN 50 AND 59 AND STRFTIME( '%y', `<table12>`.startdate ) >= '2105' ) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.startdate AND t1.hadm_id = t2.hadm_id GROUP BY t2.drug ) AS t3 WHERE t3.c1 <= 5 | since 2105 what are the five most frequent medications prescribed during the same hospital visit to female patients of age 50s after they have been diagnosed with tobacco use disorder?
|
<table0>[site_visits] { <col0>[site_id]:[INT] <col1>[site_name]:[VARCHAR] <col2>[255]:[country] <col3>[VARCHAR]:[255] <col4>[visits]:[INT] } | SELECT site_name, `<col4>` FROM `<table0>` WHERE country = 'Spain' ORDER BY `<col4>` DESC LIMIT 3; | List the names and number of visits for the top 3 most visited cultural heritage sites in Spain. |
<table0>[table_39751] { <col0>[Office]:[text] <col1>[Democratic]:[ticket] <col2>[text]:[Republican] <col3>[ticket]:[text] <col4>[Socialist]:[ticket] <col5>[text]:[Workers] <col6>[ticket]:[text] } | SELECT "Democratic ticket" FROM `<table0>` WHERE "Workers ticket" = 'franklin p. brill' | What is the name on the Democratic ticket when the Workers ticket is franklin p. brill?
|
<table0>[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] } <table1>[CloseReasonTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table2>[SuggestedEditVotes] { <col0>[number]:[SuggestedEditId] <col1>[number]:[UserId] <col2>[number]:[VoteTypeId] <col3>[number]:[CreationDate] <col4>[time]:[TargetUserId] <col5>[number]:[TargetRepChange] } <table3>[ReviewTaskResultTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table4>[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] } <table5>[ReviewTasks] { <col0>[number]:[ReviewTaskTypeId] <col1>[number]:[CreationDate] <col2>[time]:[DeletionDate] <col3>[time]:[ReviewTaskStateId] <col4>[number]:[PostId] <col5>[number]:[SuggestedEditId] <col6>[number]:[CompletedByReviewTaskId] } <table6>[Tags] { <col0>[number]:[TagName] <col1>[text]:[Count] <col2>[number]:[ExcerptPostId] <col3>[number]:[WikiPostId] } <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>[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] } <table9>[FlagTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table10>[ReviewRejectionReasons] { <col0>[number]:[text] <col1>[Description]:[text] <col2>[PostTypeId]:[number] } <table11>[Badges] { <col0>[number]:[UserId] <col1>[number]:[text] <col2>[Date]:[time] <col3>[Class]:[number] <col4>[TagBased]:[boolean] } <table12>[PostNoticeTypes] { <col0>[number]:[ClassId] <col1>[number]:[text] <col2>[Body]:[text] <col3>[IsHidden]:[boolean] <col4>[Predefined]:[boolean] <col5>[PostNoticeDurationId]:[number] } <table13>[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] } <table14>[ReviewTaskResults] { <col0>[number]:[ReviewTaskId] <col1>[number]:[ReviewTaskResultTypeId] <col2>[number]:[CreationDate] <col3>[time]:[RejectionReasonId] <col4>[number]:[Comment] } <table15>[PostFeedback] { <col0>[number]:[PostId] <col1>[number]:[IsAnonymous] <col2>[boolean]:[VoteTypeId] <col3>[number]:[CreationDate] } <table16>[PostTags] { <col0>[PostId]:[number] <col1>[TagId]:[number] } <table17>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[BelongsOnBaseHostAddress] } <table18>[Votes] { <col0>[number]:[PostId] <col1>[number]:[VoteTypeId] <col2>[number]:[UserId] <col3>[number]:[CreationDate] <col4>[time]:[BountyAmount] } <table19>[VoteTypes] { <col0>[number]:[text] } <table20>[PostTypes] { <col0>[number]:[text] } <table21>[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] } <table22>[ReviewTaskTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table23>[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] } <table24>[Comments] { <col0>[number]:[PostId] <col1>[number]:[Score] <col2>[number]:[Text] <col3>[text]:[CreationDate] <col4>[time]:[UserDisplayName] <col5>[text]:[UserId] <col6>[number]:[ContentLicense] } <table25>[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] } <table26>[PostLinks] { <col0>[number]:[CreationDate] <col1>[time]:[PostId] <col2>[number]:[RelatedPostId] <col3>[number]:[LinkTypeId] } <table27>[PostHistoryTypes] { <col0>[number]:[text] } <table28>[ReviewTaskStates] { <col0>[number]:[text] <col1>[Description]:[text] } | SELECT Id AS "post_link", 'owneruserid' AS "user_link" FROM `<table13>` WHERE OwnerUserId = '##UserId##' AND Body LIKE '%##text##%' COLLATE sql_latin1_general_cp1_ci_as AND PostTypeId = 2 | Resposta por usu rio e conte do. |
<table0>[d_labitems] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] } <table1>[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] } <table2>[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] } <table3>[d_icd_diagnoses] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[text] } <table4>[patients] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[gender]:[text] <col3>[dob]:[time] <col4>[dod]:[time] } <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>[diagnoses_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table7>[cost] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[event_type]:[text] <col4>[event_id]:[number] <col5>[chargetime]:[time] } <table8>[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] } <table9>[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] } <table10>[d_items] { <col0>[row_id]:[number] <col1>[itemid]:[number] <col2>[label]:[text] <col3>[linksto]:[text] } <table11>[d_icd_procedures] { <col0>[row_id]:[number] <col1>[icd9_code]:[text] <col2>[short_title]:[text] <col3>[long_title]:[text] } <table12>[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] } <table13>[procedures_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <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>[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] } <table16>[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] } | SELECT COUNT( DISTINCT `<table16>`.hadm_id ) FROM `<table16>` WHERE `<table16>`.subject_id = 12572 AND DATETIME( `<table16>`.admittime, 'start of year' ) = DATETIME( CURRENT_TIME( ), 'start of year', '-1 year' ) | how many times have patient 12572 been in the hospital a year before?
|
<table0>[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] } <table1>[VoteTypes] { <col0>[number]:[text] } <table2>[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] } <table3>[ReviewTaskResults] { <col0>[number]:[ReviewTaskId] <col1>[number]:[ReviewTaskResultTypeId] <col2>[number]:[CreationDate] <col3>[time]:[RejectionReasonId] <col4>[number]:[Comment] } <table4>[Badges] { <col0>[number]:[UserId] <col1>[number]:[text] <col2>[Date]:[time] <col3>[Class]:[number] <col4>[TagBased]:[boolean] } <table5>[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] } <table6>[PostTypes] { <col0>[number]:[text] } <table7>[ReviewTaskStates] { <col0>[number]:[text] <col1>[Description]:[text] } <table8>[Votes] { <col0>[number]:[PostId] <col1>[number]:[VoteTypeId] <col2>[number]:[UserId] <col3>[number]:[CreationDate] <col4>[time]:[BountyAmount] } <table9>[PostTags] { <col0>[PostId]:[number] <col1>[TagId]:[number] } <table10>[Comments] { <col0>[number]:[PostId] <col1>[number]:[Score] <col2>[number]:[Text] <col3>[text]:[CreationDate] <col4>[time]:[UserDisplayName] <col5>[text]:[UserId] <col6>[number]:[ContentLicense] } <table11>[PostNoticeTypes] { <col0>[number]:[ClassId] <col1>[number]:[text] <col2>[Body]:[text] <col3>[IsHidden]:[boolean] <col4>[Predefined]:[boolean] <col5>[PostNoticeDurationId]:[number] } <table12>[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] } <table13>[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] } <table14>[Tags] { <col0>[number]:[TagName] <col1>[text]:[Count] <col2>[number]:[ExcerptPostId] <col3>[number]:[WikiPostId] } <table15>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[BelongsOnBaseHostAddress] } <table16>[CloseReasonTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table17>[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] } <table18>[ReviewTaskResultTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table19>[ReviewTaskTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table20>[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] } <table21>[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] } <table22>[PostLinks] { <col0>[number]:[CreationDate] <col1>[time]:[PostId] <col2>[number]:[RelatedPostId] <col3>[number]:[LinkTypeId] } <table23>[FlagTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table24>[SuggestedEditVotes] { <col0>[number]:[SuggestedEditId] <col1>[number]:[UserId] <col2>[number]:[VoteTypeId] <col3>[number]:[CreationDate] <col4>[time]:[TargetUserId] <col5>[number]:[TargetRepChange] } <table25>[PostFeedback] { <col0>[number]:[PostId] <col1>[number]:[IsAnonymous] <col2>[boolean]:[VoteTypeId] <col3>[number]:[CreationDate] } <table26>[ReviewRejectionReasons] { <col0>[number]:[text] <col1>[Description]:[text] <col2>[PostTypeId]:[number] } <table27>[ReviewTasks] { <col0>[number]:[ReviewTaskTypeId] <col1>[number]:[CreationDate] <col2>[time]:[DeletionDate] <col3>[time]:[ReviewTaskStateId] <col4>[number]:[PostId] <col5>[number]:[SuggestedEditId] <col6>[number]:[CompletedByReviewTaskId] } <table28>[PostHistoryTypes] { <col0>[number]:[text] } | SELECT Score, COUNT( Score ) AS "count" FROM `<table13>` WHERE AnswerCount IS NULL GROUP BY Score ORDER BY Score DESC | Answer Score Frequency (whole site).
|
<table0>[table_51160] { <col0>[Actor]:[text] <col1>[Character]:[text] <col2>[Title]:[Rank] <col3>[text]:[Series] <col4>[text]:[Years] } | SELECT "Series" FROM `<table0>` WHERE "Title/Rank" = 'various' | What series had the title rank of various?
|
<table0>[country] { <col0>[integer]:[country_name] } <table1>[ranking_system] { <col0>[integer]:[system_name] } <table2>[ranking_criteria] { <col0>[integer]:[ranking_system_id] <col1>[integer]:[criteria_name] } <table3>[university] { <col0>[integer]:[country_id] <col1>[integer]:[university_name] } <table4>[university_ranking_year] { <col0>[university_id]:[integer] <col1>[ranking_criteria_id]:[integer] <col2>[year]:[integer] <col3>[score]:[integer] } <table5>[university_year] { <col0>[university_id]:[integer] <col1>[year]:[integer] <col2>[num_students]:[integer] <col3>[student_staff_ratio]:[real] <col4>[pct_international_students]:[integer] <col5>[pct_female_students]:[integer] } | SELECT SUM( T1.num_students ) - SUM( CAST( T1.num_students * T1.pct_international_students AS REAL ) / 100 ) FROM `<table5>` AS T1 INNER JOIN university AS T2 ON T1.university_id = T2.id WHERE T2.university_name = 'Harvard University' AND T1.year BETWEEN 2011 AND 2012 | What is the difference in overall student enrollment and international student enrollment at the Harvard university from 2011 to 2012? |
<table0>[CREATE] { <col0>[SCHEMA]:[exists] } <table1>[exists] { <col0>[funding_data]:[startups] <col1>[INT]:[PRIMARY] <col2>[KEY]:[name] <col3>[VARCHAR]:[255] <col4>[country]:[VARCHAR] <col5>[255]:[year] <col6>[INT]:[funding] <col7>[DECIMAL]:[INSERT] <col8>[funding_data]:[startups] <col9>[name]:[country] <col10>[year]:[funding] <col11>[VALUES]:[StartupA] <col12>[Brazil]:[2018] <col13>[500000]:[StartupB] <col14>[Canada]:[2020] <col15>[300000]:[StartupC] <col16>[India]:[2019] <col17>[700000]:[StartupD] <col18>[Nigeria]:[2021] } | SELECT name, funding, NTILE( 4 ) OVER ( ORDER BY funding DESC ) AS quartile FROM funding_data.startups; | What is the total funding per biotech startup and their corresponding quartile, ordered by total funding? |
<table0>[delivery] { <col0>[route]:[VARCHAR] <col1>[delivery_time]:[INT] } | SELECT route, MIN( `<table0>`_time ) FROM `<table0>` GROUP BY route; | What is the minimum delivery time for each route in the delivery database? |
<table0>[table_name_78] { <col0>[opponent]:[VARCHAR] <col1>[round]:[VARCHAR] <col2>[event]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` > 4 AND `<col2>` = "draka v" | Which Opponent has a Round larger than 4 and the Event, Draka V? |
<table0>[table_51852] { <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 team" FROM `<table0>` WHERE "Home `<col2>` score" = '12.10 ( 82 )' | Which away team has a home team score of 12.10 (82)? |
<table0>[event] { <col0>[Event_ID]:[int] <col1>[Date]:[text] <col2>[Venue]:[text] <col3>[text]:[Event_Attendance] } <table1>[journalist] { <col0>[journalist_ID]:[int] <col1>[text]:[Nationality] <col2>[text]:[Age] <col3>[text]:[Years_working] } <table2>[news_report] { <col0>[journalist_ID]:[int] <col1>[Event_ID]:[int] <col2>[Work_Type]:[text] } | SELECT Nationality, COUNT( * ) FROM `<table1>` GROUP BY Nationality ORDER BY Nationality | Show the different nationalities and the number of journalists of each nationality Visualize by bar chart, and I want to order x-axis from low to high order.
|
<table0>[address_status] { <col0>[status_id]:[integer] } <table1>[author] { <col0>[author_id]:[integer] <col1>[author_name]:[text] } <table2>[book_language] { <col0>[language_id]:[integer] <col1>[language_code]:[text] <col2>[language_name]:[text] } <table3>[country] { <col0>[country_id]:[integer] <col1>[country_name]:[text] } <table4>[address] { <col0>[address_id]:[integer] <col1>[street_number]:[text] <col2>[street_name]:[text] <col3>[city]:[text] <col4>[country_id]:[integer] } <table5>[customer] { <col0>[customer_id]:[integer] <col1>[first_name]:[text] <col2>[last_name]:[text] <col3>[email]:[text] } <table6>[customer_address] { <col0>[customer_id]:[integer] <col1>[address_id]:[integer] <col2>[status_id]:[integer] } <table7>[order_status] { <col0>[status_id]:[integer] <col1>[status_value]:[text] } <table8>[publisher] { <col0>[publisher_id]:[integer] <col1>[publisher_name]:[text] } <table9>[book] { <col0>[book_id]:[integer] <col1>[title]:[text] <col2>[isbn13]:[text] <col3>[language_id]:[integer] <col4>[num_pages]:[integer] <col5>[publication_date]:[date] <col6>[publisher_id]:[integer] } <table10>[book_author] { <col0>[book_id]:[integer] <col1>[author_id]:[integer] } <table11>[shipping_method] { <col0>[method_id]:[integer] <col1>[method_name]:[text] <col2>[cost]:[real] } <table12>[cust_order] { <col0>[order_id]:[integer] <col1>[order_date]:[datetime] <col2>[customer_id]:[integer] <col3>[shipping_method_id]:[integer] <col4>[dest_address_id]:[integer] } <table13>[order_history] { <col0>[history_id]:[integer] <col1>[order_id]:[integer] <col2>[status_id]:[integer] <col3>[status_date]:[datetime] } <table14>[order_line] { <col0>[line_id]:[integer] <col1>[order_id]:[integer] <col2>[book_id]:[integer] <col3>[price]:[real] } | SELECT COUNT( T2.country_id ) FROM `<table4>` AS T1 INNER JOIN country AS T2 ON T2.country_id = T1.country_id WHERE T2.country_name = 'Philippines' | How many addresses are from the Philippines? |
<table0>[table_45288] { <col0>[Rank]:[text] <col1>[Nation]:[text] <col2>[Gold]:[real] <col3>[Silver]:[real] <col4>[Bronze]:[real] <col5>[Total]:[real] } | SELECT COUNT( "Total" ) FROM `<table0>` WHERE "Bronze" > '13' AND "Rank" = '8' AND "Silver" < '11' | How many Total(s) are there, when the number of Bronze is greater than 13, when the Rank is 8, and when the number of Silver is less than 11?
|
<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>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[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>`.dod_year <= "2183.0" AND diagnoses.long_title = "Cerebral thrombosis with cerebral infarction" | provide the number of patients whose year of death is less than or equal to 2183 and diagnoses long title is cerebral thrombosis with cerebral infarction? |
<table0>[table_name_82] { <col0>[record]:[VARCHAR] <col1>[attendance]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "31,467" | What was the Indians' record during the game that had 31,467 in attendance?
|
<table0>[location] { <col0>[locationID]:[integer] <col1>[locationcity]:[text] <col2>[address]:[text] <col3>[state]:[text] <col4>[zipcode]:[integer] <col5>[officephone]:[text] } <table1>[position] { <col0>[positionID]:[integer] <col1>[positiontitle]:[text] <col2>[educationrequired]:[text] <col3>[minsalary]:[text] <col4>[maxsalary]:[text] } <table2>[employee] { <col0>[ssn]:[text] <col1>[lastname]:[text] <col2>[firstname]:[text] <col3>[hiredate]:[text] <col4>[salary]:[text] <col5>[gender]:[text] <col6>[performance]:[text] <col7>[positionID]:[integer] <col8>[locationID]:[integer] } | SELECT AVG( CAST( REPLACE( SUBSTR( T1.salary, 4 ), ',', '' ) AS REAL ) ) FROM `<table2>` AS T1 INNER JOIN position AS T2 ON T1.positionID = T2.positionID WHERE T1.performance = 'Poor' AND T2.positiontitle = 'Manager' | What is the average salary of the worst performing managers? |
<table0>[table_name_56] { <col0>[primary_conference]:[VARCHAR] <col1>[ihsaa_football_class]:[VARCHAR] <col2>[school]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "a" AND `<col2>` = "south decatur" | What is the primary conference with a IHSAA Football Class of A, at South Decatur school? |
<table0>[table_17625876_1] { <col0>[original_air_date]:[VARCHAR] <col1>[no_in_season]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = 1 | Name the original air date for number in season being 1 |
<table0>[table_79164] { <col0>[Year]:[real] <col1>[Date]:[text] <col2>[Home]:[Team] <col3>[text]:[Result] <col4>[text]:[Visiting] <col5>[Team]:[text] <col6>[Venue]:[text] <col7>[Attendance]:[real] } | SELECT "Home Team" FROM `<table0>` WHERE "Visiting Team" = 'san francisco 49ers' AND "Attendance" > '45,532' AND "Date" = 'september 30' | When the san francisco 49ers are visiting with an attendance of more than 45,532 on September 30, who was the home team? |
<table0>[table_203_562] { <col0>[number]:[state] <col1>[text]:[candidates] <col2>[number]:[elected] <col3>[number]:[total] <col4>[seats]:[assembly] <col5>[number]:[year] <col6>[election]:[number] } | SELECT "state" FROM `<table0>` WHERE "no. of elected" = 17 | who elected 17 ?
|
<table0>[table_name_62] { <col0>[tournament]:[VARCHAR] <col1>[score]:[VARCHAR] <col2>[date]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "w/o" AND `<col2>` = "november 5, 2007" | What is the tournament with a w/o score on November 5, 2007? |
<table0>[table_name_1] { <col0>[series]:[VARCHAR] <col1>[release_date]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "1946-01-05" | What is the Series of the Filmography with Release date of 1946-01-05?
|
<table0>[table_13498403_1] { <col0>[barrier]:[INTEGER] <col1>[trainer]:[VARCHAR] } | SELECT MAX( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "Daniel Morton" | How old is Daniel Morton |
<table0>[cargo_ships] { <col0>[INT]:[name] <col1>[VARCHAR]:[capacity] <col2>[INT]:[owner_id] <col3>[INT]:[INSERT] } | UPDATE cargo_ships SET capacity = 175000 WHERE name = 'Sea Titan'; | Update the capacity of the cargo ship named 'Sea Titan' to 175,000. |
<table0>[flight] { <col0>[flno]:[number] <col1>[origin]:[varchar2] <col2>[destination]:[varchar2] <col3>[distance]:[number] <col4>[departure_date]:[date] <col5>[arrival_date]:[date] <col6>[price]:[number] <col7>[aid]:[number] } <table1>[employee] { <col0>[eid]:[number] <col1>[name]:[varchar2] <col2>[salary]:[number] } <table2>[aircraft] { <col0>[aid]:[number] <col1>[name]:[varchar2] <col2>[distance]:[number] } <table3>[certificate] { <col0>[eid]:[number] <col1>[aid]:[number] } | SELECT name, COUNT( * ) FROM `<table0>` AS T1 JOIN aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid ORDER BY name | Display a bar chart for what is the name of each aircraft and how many flights does each one complete?, show in asc by the names. |
<table0>[table_20963074_1] { <col0>[year__ceremony]:[VARCHAR] <col1>[original_title]:[VARCHAR] } | SELECT year__ceremony_ FROM `<table0>` WHERE `<col1>` = "Reportaje a la muerte" | Name the year for reportaje a la muerte
|
<table0>[table_name_39] { <col0>[enrollment]:[VARCHAR] <col1>[ihsaa_class]:[VARCHAR] <col2>[mascot]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "a" AND `<col2>` = "vikings" | What is the enrollment at the school with IHSAA class A and where mascot is the Vikings?
|
<table0>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[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>[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>[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] } <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 `<table2>`.subject_id ) FROM `<table2>` INNER JOIN diagnoses ON `<table2>`.hadm_id = diagnoses.hadm_id INNER JOIN lab ON `<table2>`.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "87340" AND lab.flag = "delta" | what is the number of patients whose diagnoses icd9 code is 87340 and lab test abnormal status is delta?
|
<table0>[table_1571238_2] { <col0>[fourth_place]:[VARCHAR] <col1>[team]:[VARCHAR] } | SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = "Colgate" | When colgate is the team how many times did they place fourth? |
<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>[diagnoses] { <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>[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 INNER JOIN lab ON `<table3>`.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Anemia in chronic kidney disease" AND lab.flag = "delta" | count the number of patients whose diagnoses long title is anemia in chronic kidney disease and lab test abnormal status is delta?
|
<table0>[table_name_80] { <col0>[venue]:[VARCHAR] <col1>[competition]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "euro 2012 qualifier" | Which venue held the Euro 2012 Qualifier? |
<table0>[table_name_1] { <col0>[winning_team]:[VARCHAR] <col1>[round]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "3" | Who was the winning team for round 3? |
<table0>[arctic_reserves] { <col0>[reserve_name]:[VARCHAR] <col1>[255]:[reserve_area] <col2>[FLOAT]:[INSERT] } | SELECT SUM( reserve_area ) FROM arctic_reserves; | What is the total area of all marine reserves in the Arctic region? |
<table0>[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] } <table1>[procedures] { <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>[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 COUNT( DISTINCT `<table0>`.subject_id ) FROM `<table0>` WHERE `<table0>`.admission_location = "TRSF WITHIN THIS FACILITY" AND `<table0>`.diagnosis = "POSTERIOR COMMUNICATING ANEURYSM/SDA" | give me the number of patients whose admission location is trsf within this facility and primary disease is posterior communicating aneurysm/sda? |
<table0>[ReviewTaskStates] { <col0>[number]:[text] <col1>[Description]:[text] } <table1>[ReviewTaskResults] { <col0>[number]:[ReviewTaskId] <col1>[number]:[ReviewTaskResultTypeId] <col2>[number]:[CreationDate] <col3>[time]:[RejectionReasonId] <col4>[number]:[Comment] } <table2>[Comments] { <col0>[number]:[PostId] <col1>[number]:[Score] <col2>[number]:[Text] <col3>[text]:[CreationDate] <col4>[time]:[UserDisplayName] <col5>[text]:[UserId] <col6>[number]:[ContentLicense] } <table3>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[BelongsOnBaseHostAddress] } <table4>[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] } <table5>[ReviewRejectionReasons] { <col0>[number]:[text] <col1>[Description]:[text] <col2>[PostTypeId]:[number] } <table6>[Badges] { <col0>[number]:[UserId] <col1>[number]:[text] <col2>[Date]:[time] <col3>[Class]:[number] <col4>[TagBased]:[boolean] } <table7>[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] } <table8>[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] } <table9>[PostNoticeTypes] { <col0>[number]:[ClassId] <col1>[number]:[text] <col2>[Body]:[text] <col3>[IsHidden]:[boolean] <col4>[Predefined]:[boolean] <col5>[PostNoticeDurationId]:[number] } <table10>[Votes] { <col0>[number]:[PostId] <col1>[number]:[VoteTypeId] <col2>[number]:[UserId] <col3>[number]:[CreationDate] <col4>[time]:[BountyAmount] } <table11>[ReviewTaskTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table12>[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] } <table13>[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] } <table14>[ReviewTaskResultTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table15>[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] } <table16>[PostFeedback] { <col0>[number]:[PostId] <col1>[number]:[IsAnonymous] <col2>[boolean]:[VoteTypeId] <col3>[number]:[CreationDate] } <table17>[Tags] { <col0>[number]:[TagName] <col1>[text]:[Count] <col2>[number]:[ExcerptPostId] <col3>[number]:[WikiPostId] } <table18>[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] } <table19>[PostHistoryTypes] { <col0>[number]:[text] } <table20>[PostTypes] { <col0>[number]:[text] } <table21>[FlagTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table22>[PostTags] { <col0>[PostId]:[number] <col1>[TagId]:[number] } <table23>[VoteTypes] { <col0>[number]:[text] } <table24>[ReviewTasks] { <col0>[number]:[ReviewTaskTypeId] <col1>[number]:[CreationDate] <col2>[time]:[DeletionDate] <col3>[time]:[ReviewTaskStateId] <col4>[number]:[PostId] <col5>[number]:[SuggestedEditId] <col6>[number]:[CompletedByReviewTaskId] } <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>[CloseReasonTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table27>[PostLinks] { <col0>[number]:[CreationDate] <col1>[time]:[PostId] <col2>[number]:[RelatedPostId] <col3>[number]:[LinkTypeId] } <table28>[SuggestedEditVotes] { <col0>[number]:[SuggestedEditId] <col1>[number]:[UserId] <col2>[number]:[VoteTypeId] <col3>[number]:[CreationDate] <col4>[time]:[TargetUserId] <col5>[number]:[TargetRepChange] } | SELECT Questions.Id AS "post_link", Questions.Tags, Questions.AnswerCount, Questions.ViewCount, Questions.ClosedDate FROM `<table18>` AS Questions INNER JOIN PostTags ON PostTags.PostId = Questions.Id INNER JOIN Tags ON Tags.Id = PostTags.TagId WHERE Tags.TagName = @Tag AND Questions.AnswerCount = 0 ORDER BY ViewCount DESC LIMIT 10000 | Most viewed questions in tag with 0 answers.
|
<table0>[CommunityGardens] { <col0>[state]:[VARCHAR] <col1>[city]:[VARCHAR] <col2>[area_ha]:[INT] } | SELECT state, SUM( `<col2>` ) FROM `<table0>` GROUP BY state; | What is the total area (in hectares) of community gardens in the US, disaggregated by state? |
<table0>[table_203_1] { <col0>[number]:[entrant] <col1>[text]:[constructor] <col2>[text]:[chassis] <col3>[text]:[engine] <col4>[text]:[number] <col5>[driver]:[text] } | SELECT COUNT( "driver" ) FROM `<table0>` | what is the total number of drivers listed ?
|