schema stringlengths 20 14.6k | query stringlengths 17 2.58k | question stringlengths 8 1.06k |
|---|---|---|
<table0>[compartment_class] { <col0>[compartment]:[varchar] <col1>[class_type]:[varchar] } <table1>[time_interval] { <col0>[period]:[text] <col1>[begin_time]:[int] <col2>[end_time]:[int] } <table2>[class_of_service] { <col0>[booking_class]:[varchar] <col1>[rank]:[int] <col2>[class_description]:[text] } <table3>[city... | SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'WASHINGTON' AND ground_service.city_code = city.city_code AND ground_service.transport_type = 'RENTAL CAR' | RENTAL CAR in WASHINGTON |
<table0>[imports] { <col0>[INT]:[product] <col1>[TEXT]:[quantity] <col2>[INT]:[country] <col3>[TEXT]:[INSERT] } | SELECT SUM( quantity ) FROM `<table0>` WHERE product LIKE '%fish%' AND country LIKE 'Asia%'; | What is the total weight of fish imported from Asia? |
<table0>[grapes] { <col0>[INTEGER]:[Grape] <col1>[TEXT]:[Color] } <table1>[wine] { <col0>[INTEGER]:[Grape] <col1>[TEXT]:[Winery] <col2>[TEXT]:[Appelation] <col3>[TEXT]:[State] <col4>[TEXT]:[TEXT] <col5>[Year]:[INTEGER] <col6>[Price]:[INTEGER] <col7>[Score]:[INTEGER] <col8>[Cases]:[INTEGER] <col9>[Drink]:[TEXT] } <tab... | SELECT Year, MAX( `<col6>` ) FROM `<table1>` GROUP BY `<col5>` ORDER BY `<col5>` | What is the maximum price of wines in each year?, sort by the X-axis from low to high. |
<table0>[table_name_25] { <col0>[date]:[VARCHAR] <col1>[loss]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "politte ( 0-2 )" | What was the date of the game that had a loss of Politte (0-2)? |
<table0>[Customer_Contact_Channels] { <col0>[customer_id]:[INTEGER] <col1>[channel_code]:[VARCHAR] <col2>[active_from_date]:[DATETIME] <col3>[active_to_date]:[DATETIME] <col4>[contact_number]:[VARCHAR] } <table1>[Addresses] { <col0>[address_id]:[INTEGER] <col1>[address_content]:[VARCHAR] <col2>[city]:[VARCHAR] <col3>[... | SELECT date_became_customer, COUNT( `<col3>` ) FROM `<table6>` WHERE `<col0>` BETWEEN 10 AND 20 ORDER BY COUNT( `<col3>` ) DESC | A bar chart for what are the number of the dates when customers with ids between 10 and 20 became customers?, list the number of date became customer in descending order. |
<table0>[animal_species] { <col0>[INT]:[name] <col1>[VARCHAR]:[habitat_id] <col2>[INT]:[INSERT] } <table1>[habitats] { <col0>[INT]:[type] <col1>[VARCHAR]:[INSERT] } | SELECT h.type, COUNT( DISTINCT a.name ) as unique_species FROM `<table0>` a JOIN habitats h ON a.habitat_id = h.id GROUP BY h.type; | Show the number of distinct animal species per habitat |
<table0>[Candidates] { <col0>[candidate_id]:[INTEGER] <col1>[candidate_details]:[VARCHAR] } <table1>[Student_Course_Attendance] { <col0>[student_id]:[INTEGER] <col1>[course_id]:[INTEGER] <col2>[date_of_attendance]:[DATETIME] } <table2>[People] { <col0>[person_id]:[INTEGER] <col1>[first_name]:[VARCHAR] <col2>[255]:[mi... | SELECT T1.student_id, COUNT( * ) FROM `<table6>` AS T1 JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id | List the id of students who registered some courses and the number of their registered courses. Show the correlation.
|
<table0>[student] { <col0>[student_id]:[int] <col1>[lastname]:[varchar] <col2>[firstname]:[varchar] <col3>[program_id]:[int] <col4>[declare_major]:[varchar] <col5>[total_credit]:[int] <col6>[total_gpa]:[float] <col7>[entered_as]:[varchar] <col8>[admit_term]:[int] <col9>[predicted_graduation_semester]:[int] <col10>[degr... | SELECT COUNT( * ) > 0 FROM `<table6>` AS COURSE_0, `<table6>` AS COURSE_1, `<table6>`_prerequisite WHERE COURSE_0.`<table6>`_id = `<table6>`_prerequisite.pre_`<table6>`_id AND COURSE_0.department = 'SCAND' AND COURSE_0.number = 349 AND COURSE_1.`<table6>`_id = `<table6>`_prerequisite.`<table6>`_id AND COURSE_1.departme... | Do I need to take SCAND 349 before taking SCAND 103 ? |
<table0>[table_name_73] { <col0>[nationality]:[VARCHAR] <col1>[college_junior_club_team__league]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE college_junior_club_team__league_ = "guelph storm ( ohl )" | What is Nationality, when College/Junior/Club Team (League) is 'Guelph Storm ( OHL )'? |
<table0>[Engineer_Skills] { <col0>[engineer_id]:[INTEGER] <col1>[skill_id]:[INTEGER] } <table1>[Engineer_Visits] { <col0>[engineer_visit_id]:[INTEGER] <col1>[contact_staff_id]:[INTEGER] <col2>[engineer_id]:[INTEGER] <col3>[fault_log_entry_id]:[INTEGER] <col4>[fault_status]:[VARCHAR] <col5>[visit_start_datetime]:[DATET... | SELECT asset_make, COUNT( asset_make ) FROM `<table5>` GROUP BY asset_make ORDER BY asset_make | Show the number of assets and group by asset make in a bar chart, and could you display in ascending by the X-axis? |
<table0>[customer_usage] { <col0>[customer_id]:[INT] <col1>[service]:[VARCHAR] <col2>[data_usage]:[FLOAT] <col3>[usage_duration]:[INT] } | CREATE TABLE customer_usage ( customer_id INT, service VARCHAR( 10 ), data_usage FLOAT, usage_duration INT ); | Create a table named 'customer_usage' to store data on broadband and mobile customers' usage patterns |
<table0>[Treatments] { <col0>[professional_id]:[VARCHAR] } <table1>[Professionals] { <col0>[professional_id]:[VARCHAR] <col1>[last_name]:[VARCHAR] <col2>[cell_number]:[VARCHAR] } <table2>[Professionals] { <col0>[professional_id]:[VARCHAR] <col1>[last_name]:[VARCHAR] <col2>[cell_number]:[VARCHAR] <col3>[state]:[VARCHA... | SELECT professional_id, last_name, `<col2>` FROM `<table1>` WHERE `<col6>` = 'Indiana' UNION SELECT T1.professional_id, T1.last_name, T1.cell_number FROM `<table1>` AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT( * ) > 2 | Which professionals live in the state of Indiana or have done treatment on more than 2 treatments? List his or her id, last name and cell phone. |
<table0>[table_27279050_3] { <col0>[country]:[VARCHAR] <col1>[last_current_driver_s__3_november_2013]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "Daniel Abt ( 2012 )" | What is the country when last/current driver(s) 3 november 2013 is daniel abt ( 2012 )? |
<table0>[area] { <col0>[course_id]:[int] } <table1>[instructor] { <col0>[instructor_id]:[int] <col1>[name]:[varchar] <col2>[uniqname]:[varchar] } <table2>[jobs] { <col0>[job_id]:[int] <col1>[job_title]:[varchar] <col2>[description]:[varchar] <col3>[requirement]:[varchar] <col4>[city]:[varchar] <col5>[state]:[varchar]... | SELECT DISTINCT program.name FROM `<table9>` INNER JOIN program_`<table9>` ON program_`<table9>`.`<table9>`_id = `<table9>`.`<table9>`_id INNER JOIN program ON program.program_id = program_`<table9>`.program_id WHERE `<table9>`.department = 'BIOLCHEM' AND `<table9>`.number = 416 | BIOLCHEM 416 is compulsory in which programs ?
|
<table0>[wildlife] { <col0>[INT]:[forest_id] <col1>[INT]:[species] } | SELECT COUNT( DISTINCT species ) FROM wildlife; | How many animal species inhabit the forests in the 'wildlife' table? |
<table0>[Products] { <col0>[Code]:[INTEGER] <col1>[VARCHAR]:[255] <col2>[Price]:[DECIMAL] <col3>[Manufacturer]:[INTEGER] } <table1>[Manufacturers] { <col0>[Code]:[INTEGER] <col1>[VARCHAR]:[255] <col2>[Headquarter]:[VARCHAR] <col3>[255]:[Founder] <col4>[VARCHAR]:[255] <col5>[Revenue]:[REAL] } | SELECT T1.Name, T1.Price FROM `<table0>` AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name | For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and the average of price , and group by attribute name. |
<table0>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } <table1>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[... | SELECT `<table3>`.admission_type, `<table3>`.days_stay FROM `<table3>` WHERE `<table3>`.subject_id = "7273" | what is admission type and days of hospital stay of subject id 7273?
|
<table0>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } <table1>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type... | SELECT COUNT( DISTINCT `<table3>`.subject_id ) FROM `<table3>` INNER JOIN lab ON `<table3>`.hadm_id = lab.hadm_id WHERE `<table3>`.admission_type = "URGENT" AND lab.label = "Macrophage" | count the number of patients whose admission type is urgent and lab test name is macrophage? |
<table0>[table_name_83] { <col0>[round]:[VARCHAR] <col1>[college_junior_club_team__league]:[VARCHAR] } | SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE college_junior_club_team__league_ = "kelowna rockets ( whl )" | What is the total number of Round, when College/Junior/Club Team (League) is "Kelowna Rockets ( WHL )"? |
<table0>[journal_committee] { <col0>[Editor_ID]:[int] <col1>[Journal_ID]:[int] <col2>[Work_Type]:[text] } <table1>[editor] { <col0>[Editor_ID]:[int] <col1>[text]:[Age] } <table2>[journal] { <col0>[Journal_ID]:[int] <col1>[Date]:[text] <col2>[Theme]:[text] <col3>[Sales]:[int] } | SELECT Name, Age FROM `<table1>` ORDER BY Name | Compare each editors' ages using a bar chart, sort by the x axis in ascending.
|
<table0>[table_name_76] { <col0>[team__number1]:[VARCHAR] <col1>[time___cest]:[INTEGER] } | SELECT `<col0>` FROM `<table0>` WHERE time___cest__ < 18 | What id the team with a smaller Time than 18? |
<table0>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug_cd]:[text] <col6>[route]:[text] <col7>[drug_dose]:[text] } <table1>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3... | SELECT COUNT( DISTINCT `<table2>`.subject_id ) FROM `<table2>` INNER JOIN procedures ON `<table2>`.hadm_id = procedures.hadm_id WHERE `<table2>`.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND procedures.long_title = "Spinal tap" | provide the number of patients whose admission location is transfer from hosp/extram and procedure long title is spinal tap? |
<table0>[CloseReasonTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table1>[Posts] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8... | SELECT DATEADD( week, DATEDIFF( week, 0, CreationDate ), 0 ), SUM( CASE WHEN ReviewTaskTypeId = 4 THEN 1 ELSE 0 END ) AS "FP", SUM( CASE WHEN ReviewTaskTypeId = 5 THEN 1 ELSE 0 END ) AS "LA" FROM `<table3>` WHERE ReviewTaskTypeId IN ( 4, 5 ) AND CreationDate >= '2018-01-01' GROUP BY DATEADD( week, DATEDIFF( week, 0, Cr... | Number of First Posts and Late Answers per week.
|
<table0>[course] { <col0>[course_id]:[integer] <col1>[courseLevel]:[text] } <table1>[person] { <col0>[p_id]:[integer] <col1>[professor]:[integer] <col2>[student]:[integer] <col3>[hasPosition]:[text] <col4>[inPhase]:[text] <col5>[yearsInProgram]:[text] } <table2>[advisedBy] { <col0>[p_id]:[integer] <col1>[p_id_dummy]:... | SELECT COUNT( * ) FROM `<table2>` WHERE `<col1>` = 415 | How many students are under advisor 415? |
<table0>[table_13758945_3] { <col0>[points]:[VARCHAR] <col1>[tries_for]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "64" | what's the points with tries for being 64 |
<table0>[table_62300] { <col0>[Tournament]:[text] <col1>[Wins]:[real] <col2>[Top]:[real] <col3>[Top]:[real] <col4>[Top]:[real] <col5>[Events]:[real] <col6>[Cuts]:[real] } | SELECT AVG( "Cuts made" ) FROM `<table0>` WHERE "Top-5" > '1' | How many cuts made when the top-5 is greater than 1?
|
<table0>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } <table1>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[... | SELECT COUNT( DISTINCT `<table4>`.subject_id ) FROM `<table4>` INNER JOIN diagnoses ON `<table4>`.hadm_id = diagnoses.hadm_id WHERE `<table4>`.dob_year < "2035" AND diagnoses.short_title = "Preterm NEC 1750-1999g" | what is the number of patients born before 2035 who were diagnosed with preterm nec,1750-1999g?
|
<table0>[table_201_13] { <col0>[number]:[city] <col1>[text]:[county] <col2>[ies]:[text] <col3>[population]:[2000] <col4>[census]:[number] <col5>[population]:[2010] <col6>[census]:[number] <col7>[class]:[text] <col8>[incorporation]:[ndate] } | SELECT "city" FROM `<table0>` ORDER BY "population\n( 2010 `<col4>` )" DESC LIMIT 1 | which city in wisconsin is the most populous , based on the 2010 census ? |
<table0>[lab] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[itemid]:[text] <col3>[charttime]:[text] <col4>[flag]:[text] <col5>[value_unit]:[text] <col6>[label]:[text] <col7>[fluid]:[text] } <table1>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[... | SELECT lab.label, lab.fluid FROM `<table1>` INNER JOIN lab ON `<table1>`.hadm_id = lab.hadm_id WHERE `<table1>`.name = "Shawn Green" | Find the lab test and lab test fluid of Shawn Green. |
<table0>[table_2562572_44] { <col0>[population__2011]:[VARCHAR] <col1>[settlement]:[VARCHAR] } | SELECT population__2011_ FROM `<table0>` WHERE `<col1>` = "Banatski Karlovac" | What was the population in 2011 of banatski karlovac?
|
<table0>[lab] { <col0>[labid]:[number] <col1>[patientunitstayid]:[number] <col2>[labname]:[text] <col3>[labresult]:[number] <col4>[labresulttime]:[time] } <table1>[cost] { <col0>[costid]:[number] <col1>[uniquepid]:[text] <col2>[patienthealthsystemstayid]:[number] <col3>[eventtype]:[text] <col4>[eventid]:[number] <col5... | SELECT COUNT( DISTINCT `<table3>`.uniquepid ) FROM `<table3>` WHERE NOT `<table3>`.hospitaldischargetime IS NULL AND STRFTIME( '%y', `<table3>`.hospitaldischargetime ) = '2101' | count the number of patients who have been discharged from a hospital in 2101.
|
<table0>[Workers] { <col0>[INT]:[industry] <col1>[VARCHAR]:[employment_status] <col2>[VARCHAR]:[INSERT] } | SELECT COUNT( * ) FROM `<table0>` WHERE industry = 'Manufacturing' AND employment_status = 'Part-time'; | How many workers in the 'Manufacturing' industry have a 'Part-time' status? |
<table0>[marine_species] { <col0>[INT]:[name] <col1>[VARCHAR]:[255] <col2>[conservation_status]:[VARCHAR] <col3>[255]:[INSERT] } <table1>[oceanography] { <col0>[INT]:[species_name] <col1>[VARCHAR]:[255] <col2>[location]:[VARCHAR] <col3>[255]:[INSERT] } | SELECT name FROM `<table0>` WHERE name NOT IN ( SELECT species_name FROM `<table1>` ); | List all marine species that are not found in the oceanography table. |
<table0>[table_name_88] { <col0>[away_team]:[VARCHAR] <col1>[home_team]:[VARCHAR] } | SELECT `<col0>` AS score FROM `<table0>` WHERE `<col1>` = "fitzroy" | What is the score of the away team with the home team Fitzroy? |
<table0>[submission] { <col0>[submission_id]:[number] <col1>[scores]:[number] <col2>[author]:[text] <col3>[college]:[text] } <table1>[workshop] { <col0>[workshop_id]:[number] <col1>[date]:[text] <col2>[venue]:[text] <col3>[name]:[text] } <table2>[acceptance] { <col0>[submission_id]:[number] <col1>[workshop_id]:[numbe... | SELECT author, `<col3>` FROM `<table0>` | For each submission, show the author and their affiliated college. |
<table0>[Regions] { <col0>[Region]:[VARCHAR] <col1>[Population]:[INT] <col2>[Vaccinated]:[INT] } | SELECT Region, ( SUM( `<col2>` ) / SUM( `<col1>` ) ) * 100 AS VaccinationPercentage FROM `<table0>` GROUP BY Region; | What is the percentage of the population that is fully vaccinated against COVID-19 in each region? |
<table0>[customer_addresses] { <col0>[customer_id]:[number] <col1>[address_id]:[number] <col2>[date_address_from]:[time] <col3>[address_type]:[text] <col4>[date_address_to]:[time] } <table1>[customers] { <col0>[customer_id]:[number] <col1>[payment_method]:[text] <col2>[customer_name]:[text] <col3>[date_became_customer... | SELECT COUNT( * ) FROM `<table1>` AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.city = "Lake Geovannyton" | How many customers are living in city 'Lake Geovannyton'? |
<table0>[status] { <col0>[station_id]:[INTEGER] <col1>[bikes_available]:[INTEGER] <col2>[docks_available]:[INTEGER] <col3>[time]:[TEXT] } <table1>[station] { <col0>[INTEGER]:[name] <col1>[TEXT]:[lat] <col2>[NUMERIC]:[long] <col3>[NUMERIC]:[dock_count] <col4>[INTEGER]:[city] <col5>[TEXT]:[installation_date] } <table2>... | SELECT end_station_name, COUNT( end_station_name ) FROM `<table2>` GROUP BY end_station_name ORDER BY id LIMIT 3 | Please give me a pie chart to show the proportion of end stations for the trips with the three smallest ids?
|
<table0>[program] { <col0>[program_id]:[int] <col1>[name]:[varchar] <col2>[college]:[varchar] <col3>[introduction]:[varchar] } <table1>[program_requirement] { <col0>[program_id]:[int] <col1>[category]:[varchar] <col2>[min_credit]:[int] <col3>[additional_req]:[varchar] } <table2>[area] { <col0>[course_id]:[int] } <ta... | SELECT DISTINCT `<table4>`_offering.start_time FROM `<table4>` INNER JOIN program_`<table4>` ON program_`<table4>`.`<table4>`_id = `<table4>`.`<table4>`_id INNER JOIN `<table4>`_offering ON `<table4>`.`<table4>`_id = `<table4>`_offering.`<table4>`_id INNER JOIN semester ON semester.semester_id = `<table4>`_offering.sem... | What time do NATIVEAM 311 lectures start next semester ?
|
<table0>[table_name_5] { <col0>[written_by]:[VARCHAR] <col1>[prod_code]:[VARCHAR] <col2>[directed_by]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` > 1.4 AND `<col2>` = "rick wallace" | Who wrote the episode with a production code greater than 1.4 direcyed by rick wallace? |
<table0>[table_200_14] { <col0>[number]:[act] <col1>[text]:[year] <col2>[signed]:[number] <col3>[albums]:[released] <col4>[bad]:[boy] } | SELECT "year signed" FROM `<table0>` WHERE "act" = 'the notorious b.i.g' | when was the notorious b.i.g signed to bad boy ?
|
<table0>[table_77776] { <col0>[Home]:[team] <col1>[text]:[Home] <col2>[team]:[score] <col3>[text]:[Away] <col4>[team]:[text] <col5>[Away]:[team] <col6>[score]:[text] <col7>[Venue]:[text] <col8>[Crowd]:[real] <col9>[Date]:[text] } | SELECT "Venue" FROM `<table0>` WHERE "Away `<col2>` score" = '7.11 ( 53 )' | When the away team scored 7.11 (53) what venue did they play at?
|
<table0>[Posts] { <col0>[number]:[PostTypeId] <col1>[number]:[AcceptedAnswerId] <col2>[number]:[ParentId] <col3>[number]:[CreationDate] <col4>[time]:[DeletionDate] <col5>[time]:[Score] <col6>[number]:[ViewCount] <col7>[number]:[Body] <col8>[text]:[OwnerUserId] <col9>[number]:[OwnerDisplayName] <col10>[text]:[LastEditor... | SELECT Reputation, Id AS "user_link", Location, age FROM `<table24>` WHERE Location LIKE '%##country##%' ORDER BY Reputation DESC | Are you one of the top SO-users in your country or state?. As in the title. Depends on what people type into the country description.
|
<table0>[esports_tournaments] { <col0>[INT]:[PRIMARY] <col1>[KEY]:[name] <col2>[VARCHAR]:[game_name] <col3>[VARCHAR]:[location] <col4>[VARCHAR]:[start_date] <col5>[DATE]:[end_date] <col6>[DATE]:[INSERT] } | UPDATE esports_tournaments SET start_date = DATEADD( day, -7, start_date ); | Update the eSports tournament start dates to be one week earlier |
<table0>[people] { <col0>[People_ID]:[int] <col1>[District]:[text] <col2>[text]:[Party] <col3>[text]:[Age] } <table1>[debate] { <col0>[Debate_ID]:[int] <col1>[Date]:[text] <col2>[Venue]:[text] <col3>[Num_of_Audience]:[int] } <table2>[debate_people] { <col0>[Debate_ID]:[int] <col1>[Affirmative]:[int] <col2>[Negative]:... | SELECT Name, COUNT( Name ) FROM `<table2>` AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Affirmative = T3.People_ID GROUP BY Name | Show the number of debates for each person on the affirmative side in a pie chart. |
<table0>[table_204_108] { <col0>[number]:[typ] <col1>[text]:[construction] <col2>[time]:[text] <col3>[cylinders]:[text] <col4>[capacity]:[text] <col5>[power]:[text] <col6>[speed]:[text] } | SELECT "typ" FROM `<table0>` WHERE "typ" IN ( '4/8 ps', 'k 5/13 ps' ) ORDER BY "construction time" LIMIT 1 | which was built first ? the 4/8 ps or the k 5/13 ps ? |
<table0>[chartevents] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[itemid]:[number] <col5>[charttime]:[time] <col6>[valuenum]:[number] <col7>[valueuom]:[text] } <table1>[prescriptions] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm... | SELECT COUNT( * ) FROM `<table1>` WHERE `<table1>`.drug = 'heparin flush picc ( 100 units/ml )' AND STRFTIME( '%y', `<table1>`.startdate ) <= '2104' | what's the number of times heparin flush picc (100 units/ml) was prescribed until 2104?
|
<table0>[student_accommodations] { <col0>[student_id]:[INT] <col1>[disability_type]:[VARCHAR] <col2>[255]:[country] <col3>[VARCHAR]:[255] <col4>[date]:[DATE] <col5>[cost]:[INT] } | SELECT SUM( `<col5>` ) as total_cost FROM `<table0>` WHERE `<col1>` = 'Mobility Impairment' AND `<col4>` BETWEEN DATE_SUB( NOW( ), INTERVAL 3 MONTH ) AND NOW( ); | What is the total cost of accommodations for students with mobility impairments in the last 3 months? |
<table0>[PendingFlags] { <col0>[number]:[FlagTypeId] <col1>[number]:[PostId] <col2>[number]:[CreationDate] <col3>[time]:[CloseReasonTypeId] <col4>[number]:[CloseAsOffTopicReasonTypeId] <col5>[number]:[DuplicateOfQuestionId] <col6>[number]:[BelongsOnBaseHostAddress] } <table1>[PostsWithDeleted] { <col0>[number]:[PostTy... | SELECT t.TagName, COUNT( a.Id ) AS NumAnswers, SUM( a.Score ) AS TotalScore, AVG( a.Score + 0.0 ) AS AvgScore FROM `<table5>` AS a JOIN `<table5>` AS q ON a.ParentId = q.Id JOIN PostTags AS pt ON pt.PostId = q.Id JOIN Tags AS t ON t.Id = pt.TagId WHERE a.PostTypeId = 2 AND t.TagName IN ( 'java', 'c#', 'c', 'c++', 'pyth... | Tags with highest average answer scores (among tags with at least 1000 answers).
|
<table0>[table_57742] { <col0>[Game]:[real] <col1>[Date]:[text] <col2>[Team]:[text] <col3>[Score]:[text] <col4>[High]:[points] <col5>[text]:[High] <col6>[assists]:[text] <col7>[Location]:[Attendance] <col8>[text]:[Record] } | SELECT "Location Attendance" FROM `<table0>` WHERE "Team" = 'golden state' | What is the location attendance when the team is Golden State?
|
<table0>[table_name_18] { <col0>[location]:[VARCHAR] <col1>[event]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "ufc 154" | Where was the UFC 154 match held?
|
<table0>[table_25008327_8] { <col0>[VARCHAR]:[polish] } | SELECT словјански FROM `<table0>` WHERE polish = "książka" | What is every value for if polish is ksi ka?
|
<table0>[table_name_81] { <col0>[location]:[VARCHAR] <col1>[tournament]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "b.c. open" | What is the location of the b.c. open? |
<table0>[buildings] { <col0>[int]:[name] <col1>[text]:[City] <col2>[text]:[Height] <col3>[int]:[Stories] <col4>[int]:[Status] } <table1>[Office_locations] { <col0>[building_id]:[int] <col1>[company_id]:[int] <col2>[move_in_year]:[int] } <table2>[Companies] { <col0>[int]:[name] <col1>[text]:[Headquarters] <col2>[text]... | SELECT name, Assets_billion FROM `<table2>` ORDER BY name | Return a bar chart on what are the name and assets of each company, sorted in ascending order of company name? |
<table0>[Comments] { <col0>[number]:[PostId] <col1>[number]:[Score] <col2>[number]:[Text] <col3>[text]:[CreationDate] <col4>[time]:[UserDisplayName] <col5>[text]:[UserId] <col6>[number]:[ContentLicense] } <table1>[CloseAsOffTopicReasonTypes] { <col0>[number]:[IsUniversal] <col1>[boolean]:[InputTitle] <col2>[text]:[Mar... | SELECT ROW_NUMBER( ) OVER ( ORDER BY Reputation DESC ) AS "#", Id AS "user_link", DisplayName, Reputation FROM `<table9>` WHERE LOWER( Location ) LIKE LOWER( '%##CountryName##%' ) ORDER BY Reputation DESC LIMIT 50 | Top 50 Users by Country Name. |
<table0>[storm] { <col0>[Storm_ID]:[int] <col1>[text]:[Dates_active] <col2>[text]:[Max_speed] <col3>[int]:[Damage_millions_USD] <col4>[real]:[Number_Deaths] } <table1>[affected_region] { <col0>[Region_id]:[int] <col1>[Storm_ID]:[int] <col2>[Number_city_affected]:[real] } <table2>[region] { <col0>[Region_id]:[int] <co... | SELECT Dates_active, Number_Deaths FROM `<table0>` WHERE Number_Deaths >= 1 | For all storms with at least 1 death, compare the total number of deaths by dates_active attribute.
|
<table0>[ReviewTaskTypes] { <col0>[number]:[text] <col1>[Description]:[text] } <table1>[PostFeedback] { <col0>[number]:[PostId] <col1>[number]:[IsAnonymous] <col2>[boolean]:[VoteTypeId] <col3>[number]:[CreationDate] } <table2>[TagSynonyms] { <col0>[number]:[SourceTagName] <col1>[text]:[TargetTagName] <col2>[text]:[Cr... | SELECT P.Title, P.Tags, P.ViewCount, P.Score, P.AnswerCount, P.CreationDate FROM `<table9>` AS P WHERE ( P.Tags LIKE '%android-testing%' ) OR ( P.Tags LIKE '%robotium%' ) OR ( P.Tags LIKE '%androidviewclient%' ) OR ( P.Tags LIKE '%monkeyrunner%' ) OR ( P.Tags LIKE '%android-espresso%' ) OR ( P.Tags LIKE '%android-emula... | All info Mobile Android Testing without EMulator.
|
<table0>[products] { <col0>[product_id]:[VARCHAR] <col1>[product_name]:[VARCHAR] } <table1>[order_items] { <col0>[product_id]:[VARCHAR] <col1>[order_item_status]:[VARCHAR] <col2>[order_id]:[VARCHAR] } <table2>[orders] { <col0>[customer_id]:[VARCHAR] <col1>[order_id]:[VARCHAR] } <table3>[customers] { <col0>[customer_... | SELECT T1.customer_name FROM `<table3>` AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T3.order_item_status = "Cancel" AND T4.product_name = "food" GROUP BY T1.customer_id HAVING COUNT( * ) >= 1 | List the names of customers who have once canceled the purchase of the product 'food' (the item status is 'Cancel'). |
<table0>[table_203_191] { <col0>[number]:[year] <col1>[number]:[group] <col2>[text]:[award] <col3>[text]:[result] <col4>[text]:[notes] } | SELECT "group" FROM `<table0>` WHERE "result" = 'nominated' ORDER BY "year" LIMIT 1 | which was erbedija 's first festival/event where he was nominated but did n't win an award ?
|
<table0>[table_203_548] { <col0>[number]:[rank] <col1>[number]:[nation] <col2>[text]:[gold] <col3>[number]:[silver] <col4>[number]:[bronze] <col5>[number]:[total] } | SELECT ( SELECT "gold" FROM `<table0>` WHERE "nation" = 'spain' ) + ( SELECT "gold" FROM `<table0>` WHERE "nation" = 'egypt' ) | what was the total number of gold awards won between spain and egypt ? |
<table0>[table_19625976_1] { <col0>[film_title_used_in_nomination]:[VARCHAR] <col1>[persian_title]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "گبه" | For the Persian title , What was the film title used for the nomination? |
<table0>[Sales] { <col0>[SaleID]:[INT] <col1>[MenuItemID]:[INT] <col2>[Quantity]:[INT] <col3>[SaleDate]:[DATETIME] } | SELECT MenuItems.MenuItemName, SUM( MenuItems.Price * Sales.Quantity ) as Revenue FROM MenuItems JOIN Sales ON MenuItems.MenuItemID = Sales.MenuItemID WHERE MenuItems.Category = 'Vegetarian' GROUP BY MenuItems.MenuItemName ORDER BY Revenue DESC | Which vegetarian menu items generate the most revenue? |
<table0>[charging_stations] { <col0>[INT]:[system_type] <col1>[VARCHAR]:[city] <col2>[VARCHAR]:[num_stations] <col3>[INT]:[INSERT] } | SELECT num_stations FROM `<table0>` WHERE system_type = 'Public Transportation' AND city = 'Tokyo'; | how many charging stations are there in the public transportation system in Tokyo? |
<table0>[flight_leg] { <col0>[flight_id]:[int] <col1>[leg_number]:[int] <col2>[leg_flight]:[int] } <table1>[compartment_class] { <col0>[compartment]:[varchar] <col1>[class_type]:[varchar] } <table2>[class_of_service] { <col0>[booking_class]:[varchar] <col1>[rank]:[int] <col2>[class_description]:[text] } <table3>[far... | SELECT DISTINCT fare.fare_id FROM `<table16>` AS AIRPORT_SERVICE_0, `<table16>` AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day AS DATE_DAY_0, date_day AS DATE_DAY_1, days AS DAYS_0, days AS DAYS_1, fare, fare_basis, flight, flight_fare WHERE ( CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.ci... | show me fares for flights from MINNEAPOLIS to SEATTLE on 7 1 1991 |
<table0>[table_name_81] { <col0>[venue]:[VARCHAR] <col1>[date]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "27 may 2000" | What venue was on 27 May 2000?
|
<table0>[essays] { <col0>[projectid]:[text] <col1>[teacher_acctid]:[text] <col2>[title]:[text] <col3>[short_description]:[text] <col4>[need_statement]:[text] <col5>[essay]:[text] } <table1>[projects] { <col0>[projectid]:[text] <col1>[teacher_acctid]:[text] <col2>[schoolid]:[text] <col3>[school_ncesid]:[text] <col4>[sc... | SELECT COUNT( `<col0>` ) FROM `<table1>` WHERE `<col10>` = 'Boston Public School District' AND `<col27>` = 'Grades 3-5' | What is the total number of projects that was created by the teachers that teach 3-5 grades in Boston Public School District? |
<table0>[prescriptions] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icustay_id]:[text] <col3>[drug_type]:[text] <col4>[drug]:[text] <col5>[formulary_drug_cd]:[text] <col6>[route]:[text] <col7>[drug_dose]:[text] } <table1>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[te... | SELECT COUNT( DISTINCT `<table3>`.subject_id ) FROM `<table3>` INNER JOIN diagnoses ON `<table3>`.hadm_id = diagnoses.hadm_id WHERE `<table3>`.expire_flag = "0" AND diagnoses.short_title = "Angioneurotic edema" | count the number of patients whose death status is 0 and diagnoses short title is angioneurotic edema? |
<table0>[table_name_40] { <col0>[date]:[VARCHAR] <col1>[game_site]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "lincoln financial field" | On what date was the game at Lincoln Financial Field? |
<table0>[procedures_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table1>[diagnoses_icd] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icd9_code]:[text] <col4>[charttime]:[time] } <table2... | SELECT COUNT( * ) FROM `<table15>` WHERE `<table15>`.itemid IN ( SELECT `<table16>`.itemid FROM `<table16>` WHERE `<table16>`.label = 'bicarbonate' ) AND `<table15>`.hadm_id IN ( SELECT `<table11>`.hadm_id FROM `<table11>` WHERE `<table11>`.subject_id = 28253 ) AND STRFTIME( '%y', `<table15>`.charttime ) = '2102' | what was the number of times patient 28253 had a bicarbonate test in 2102? |
<table0>[icustays] { <col0>[row_id]:[number] <col1>[subject_id]:[number] <col2>[hadm_id]:[number] <col3>[icustay_id]:[number] <col4>[first_careunit]:[text] <col5>[last_careunit]:[text] <col6>[first_wardid]:[number] <col7>[last_wardid]:[number] <col8>[intime]:[time] <col9>[outtime]:[time] } <table1>[d_icd_procedures] {... | SELECT COUNT( DISTINCT t1.subject_id ) FROM ( SELECT admissions.subject_id, `<table8>`.charttime FROM `<table8>` JOIN admissions ON `<table8>`.hadm_id = admissions.hadm_id WHERE `<table8>`.icd9_code = ( SELECT `<table1>`.icd9_code FROM `<table1>` WHERE `<table1>`.short_title = 'nephroureterectomy' ) AND DATETIME( `<tab... | how many patients have undergone cont inv mec ven 96+ hrs within the same month after the previous nephroureterectomy in this year? |
<table0>[table_name_54] { <col0>[record]:[VARCHAR] <col1>[loss]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "kendrick ( 11–8 )" | Loss of kendrick (11 8) had what record? |
<table0>[STUDENT] { <col0>[STU_NUM]:[int] <col1>[STU_LNAME]:[varchar] <col2>[STU_FNAME]:[varchar] <col3>[STU_INIT]:[varchar] <col4>[STU_DOB]:[datetime] <col5>[STU_HRS]:[int] <col6>[STU_CLASS]:[varchar] <col7>[STU_GPA]:[float] <col8>[STU_TRANSFER]:[numeric] <col9>[DEPT_CODE]:[varchar] <col10>[STU_PHONE]:[varchar] <col11... | SELECT DEPT_CODE, SUM( `<col5>` ) FROM `<table0>` GROUP BY `<col9>` ORDER BY SUM( `<col5>` ) | Return a bar chart on how many hours do the students spend studying in each department?, and I want to sort by the y axis in ascending.
|
<table0>[ContractNegotiations] { <col0>[INT]:[country1] <col1>[VARCHAR]:[country2] <col2>[VARCHAR]:[date] } <table1>[RiskAssessments] { <col0>[INT]:[country] <col1>[VARCHAR]:[risk_score] } | SELECT `<table0>`.country1, `<table0>`.country2, `<table0>`.date, RiskAssessments.risk_score FROM `<table0>` INNER JOIN RiskAssessments ON ( `<table0>`.country1 = RiskAssessments.country OR `<table0>`.country2 = RiskAssessments.country ) WHERE ( `<table0>`.country1 = 'US' AND `<table0>`.country2 = 'Russia' ) OR ( `<tab... | List the defense contract negotiations involving the US and Russia, along with the associated geopolitical risk assessment scores. |
<table0>[table_name_9] { <col0>[country_region]:[VARCHAR] <col1>[label]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "beat records" | What is the country/region for the releases from Beat Records? |
<table0>[table_70641] { <col0>[Season]:[text] <col1>[Games]:[real] <col2>[Lost]:[real] <col3>[Points]:[real] <col4>[Goalsfor]:[real] <col5>[Goalsagainst]:[real] } | SELECT AVG( "Points" ) FROM `<table0>` WHERE "Goalsagainst" = '285' AND "Season" = '2006–07' AND "Games" < '70' | Goalsagainst of 285, and a Season of 2006 07, and a Games smaller than 70 has what average points? |
<table0>[project] { <col0>[INT]:[name] <col1>[TEXT]:[country] <col2>[TEXT]:[type] <col3>[TEXT]:[capacity] <col4>[INT]:[INSERT] } | SELECT SUM( capacity ) FROM `<table0>` WHERE ( type = 'Geothermal' OR type = 'Wind' ); | Find the combined capacity (in MW) of geothermal and wind projects in the world |
<table0>[biosensor_patents] { <col0>[INT]:[country] <col1>[VARCHAR]:[num_patents] <col2>[INT]:[INSERT] } | SELECT country, SUM( num_patents ) FROM `<table0>` GROUP BY country ORDER BY SUM( num_patents ) DESC LIMIT 3; | List the top 3 countries with the most biosensor technology patents. |
<table0>[dataset] { <col0>[datasetid]:[int] <col1>[datasetname]:[varchar] } <table1>[keyphrase] { <col0>[keyphraseid]:[int] <col1>[keyphrasename]:[varchar] } <table2>[author] { <col0>[authorid]:[int] <col1>[authorname]:[varchar] } <table3>[paperdataset] { <col0>[paperid]:[int] <col1>[datasetid]:[int] } <table4>[cit... | SELECT DISTINCT COUNT( DISTINCT writes.paperid ) FROM author, writes WHERE author.authorname = 'ameet soni' AND writes.authorid = author.authorid | how many papers has ameet soni published ?
|
<table0>[table_name_34] { <col0>[drivers]:[VARCHAR] <col1>[races]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "15-20" | What driver had a 15-20 record? |
<table0>[users] { <col0>[INT]:[name] <col1>[VARCHAR]:[email] <col2>[VARCHAR]:[last_login] } | DELETE FROM `<table0>` WHERE last_login < DATE_SUB( CURDATE( ), INTERVAL 3 MONTH ); | Delete records of users who have not logged in for the last three months from the users table |
<table0>[date_day] { <col0>[month_number]:[int] <col1>[day_number]:[int] <col2>[year]:[int] <col3>[day_name]:[varchar] } <table1>[code_description] { <col0>[code]:[varchar] <col1>[description]:[text] } <table2>[equipment_sequence] { <col0>[aircraft_code_sequence]:[varchar] <col1>[aircraft_code]:[varchar] } <table3>[... | SELECT DISTINCT flight.flight_id FROM `<table10>` AS AIRPORT_SERVICE_0, `<table10>` AS AIRPORT_SERVICE_1, `<table10>` AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, flight, flight_stop WHERE ( CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'WASHINGTON' AND CITY_2.city_code ... | what flights go from SAN FRANCISCO to WASHINGTON via INDIANAPOLIS
|
<table0>[table_6880] { <col0>[Date]:[text] <col1>[Score]:[text] <col2>[Set]:[text] <col3>[Set]:[text] <col4>[Set]:[text] <col5>[Set]:[text] <col6>[Set]:[text] <col7>[Total]:[text] } | SELECT "Set 4" FROM `<table0>` WHERE "Set 1" = '19-25' AND "Set 2" = '23-25' | What is Set 4, when Set 1 is 19-25, and when Set 2 is 23-25?
|
<table0>[climate_communication_projects] { <col0>[project_id]:[INT] <col1>[project_name]:[VARCHAR] <col2>[255]:[start_year] <col3>[INT]:[INSERT] } | SELECT COUNT( * ) FROM `<table0>` WHERE start_year < 2018; | How many climate communication projects were initiated before 2018? |
<table0>[procedures] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table1>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table2>[prescr... | SELECT COUNT( DISTINCT `<table3>`.subject_id ) FROM `<table3>` INNER JOIN prescriptions ON `<table3>`.hadm_id = prescriptions.hadm_id INNER JOIN lab ON `<table3>`.hadm_id = lab.hadm_id WHERE prescriptions.formulary_drug_cd = "ALTE1I" AND lab.fluid = "Ascites" | how many patients used the drug code alte1i and tested with ascites in lab?
|
<table0>[table_58663] { <col0>[Position]:[real] <col1>[Team]:[text] <col2>[Played]:[real] <col3>[Drawn]:[real] <col4>[Lost]:[real] <col5>[Goals]:[real] <col6>[Goals]:[real] <col7>[Goal]:[Difference] <col8>[text]:[Points] } | SELECT MAX( "Goals For" ) FROM `<table0>` WHERE "Team" = 'cheadle town' AND "Drawn" > '7' | What is the highest Goals For, when Team is 'Cheadle Town', and when Drawn is greater than 7? |
<table0>[diagnoses] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[icd9_code]:[text] <col3>[short_title]:[text] <col4>[long_title]:[text] } <table1>[demographic] { <col0>[subject_id]:[text] <col1>[hadm_id]:[text] <col2>[name]:[text] <col3>[marital_status]:[text] <col4>[age]:[text] <col5>[dob]:[text] <col6>[... | SELECT COUNT( DISTINCT `<table1>`.subject_id ) FROM `<table1>` INNER JOIN diagnoses ON `<table1>`.hadm_id = diagnoses.hadm_id WHERE `<table1>`.admission_location = "TRSF WITHIN THIS FACILITY" AND diagnoses.short_title = "Protein-cal malnutr NOS" | how many of the patients with protein-cal malnutr nos were discharged to trsf within this facility?
|
<table0>[ReviewTaskResults] { <col0>[number]:[ReviewTaskId] <col1>[number]:[ReviewTaskResultTypeId] <col2>[number]:[CreationDate] <col3>[time]:[RejectionReasonId] <col4>[number]:[Comment] } <table1>[PostTypes] { <col0>[number]:[text] } <table2>[ReviewTaskResultTypes] { <col0>[number]:[text] <col1>[Description]:[text]... | WITH cte AS ( SELECT Id, NTILE( 100 ) OVER ( ORDER BY LENGTH( Body ) ) AS percentile FROM `<table20>` WHERE PostTypeId = 1 ) SELECT cte.percentile, MIN( LENGTH( p.Body ) ) AS LengthStart, MAX( LENGTH( p.Body ) ) AS LengthStop, AVG( p.Score ) AS avgScore, AVG( p.AnswerCount ) AS AvgAnswerCount, AVG( p.ViewCount ) AS Avg... | Question Body length percentile and statistics.
|
<table0>[teams] { <col0>[INT]:[name] <col1>[VARCHAR]:[255] } | DELETE FROM players WHERE team_id IN ( SELECT id FROM `<table0>` WHERE name = 'Boston Celtics' ); | Delete all players from the 'Boston Celtics' |
<table0>[table_name_85] { <col0>[record]:[VARCHAR] <col1>[score]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "11-10" | What was the record when the score was 11-10? |
<table0>[table_name_96] { <col0>[place]:[VARCHAR] <col1>[points]:[VARCHAR] } | SELECT COUNT( `<col0>` ) FROM `<table0>` WHERE `<col1>` = 33 | How many places have more than 33 points?
|
<table0>[table_name_42] { <col0>[surface]:[VARCHAR] <col1>[outcome]:[VARCHAR] <col2>[score]:[VARCHAR] } | SELECT `<col0>` FROM `<table0>` WHERE `<col1>` = "runner-up" AND `<col2>` = "julia görges polona hercog" | What is the surface of the match when the outcome was runner-up, and a Score of julia görges polona hercog? |
<table0>[Ref_Detention_Type] { <col0>[detention_type_code]:[VARCHAR] <col1>[detention_type_description]:[VARCHAR] } <table1>[Teachers] { <col0>[teacher_id]:[INTEGER] <col1>[address_id]:[INTEGER] <col2>[first_name]:[VARCHAR] <col3>[middle_name]:[VARCHAR] <col4>[last_name]:[VARCHAR] <col5>[gender]:[VARCHAR] <col6>[cell_... | SELECT date_address_from, SUM( `<col4>` ) FROM `<table4>` ORDER BY `<col4>` DESC | Find date_address_from and the sum of monthly_rental bin date_address_from by weekday, and visualize them by a bar chart. |
<table0>[table_40651] { <col0>[Date]:[text] <col1>[Visitor]:[text] <col2>[Score]:[text] <col3>[Home]:[text] <col4>[Leading]:[scorer] <col5>[text]:[Record] } | SELECT "Date" FROM `<table0>` WHERE "Home" = 'hornets' | Which date had the Hornets as the home team?
|
<table0>[CountryRegion] { <col0>[CountryRegionCode]:[text] <col1>[text]:[ModifiedDate] } <table1>[Culture] { <col0>[CultureID]:[text] <col1>[text]:[ModifiedDate] } <table2>[Currency] { <col0>[CurrencyCode]:[text] <col1>[text]:[ModifiedDate] } <table3>[CountryRegionCurrency] { <col0>[CountryRegionCode]:[text] <col1>[... | SELECT T1.Rating FROM `<table35>` AS T1 INNER JOIN Product AS T2 ON T1.ProductID = T2.ProductID WHERE T1.ReviewerName = 'Jill' AND T2.Name = 'HL Mountain Pedal' | What rating did Jill give for HL Mountain Pedal? |
<table0>[table_67870] { <col0>[Member]:[countries] <col1>[text]:[Population] <col2>[real]:[Area] <col3>[u00b2]:[real] <col4>[GDP]:[billion] <col5>[real]:[GDP] <col6>[capita]:[text] } | SELECT SUM( "Population" ) FROM `<table0>` WHERE "Area ( km\u00b2 )" = '30,528' AND "GDP ( billion US$ )" > '58.316' | What is the population of the place that has an area (km ) of 30,528, and a GDP (billion US$) larger than 58.316?
|
<table0>[circular_economy] { <col0>[city]:[VARCHAR] <col1>[255]:[year] <col2>[INT]:[initiative] <col3>[VARCHAR]:[255] } | INSERT INTO circular_economy ( city, year, initiative ) VALUES ( 'Berlin', 2022, 'Plastic waste reduction campaign' ); | Insert a new record for circular economy initiative in Berlin in 2022. |
<table0>[table_51601] { <col0>[Home]:[team] <col1>[text]:[Home] <col2>[team]:[score] <col3>[text]:[Away] <col4>[team]:[text] <col5>[Away]:[team] <col6>[score]:[text] <col7>[Venue]:[text] <col8>[Crowd]:[real] <col9>[Date]:[text] } | SELECT "Away `<col2>` score" FROM `<table0>` WHERE "Venue" = 'vfl park' | I want to know the away team score for vfl park venue
|
<table0>[table_2873] { <col0>[Year]:[real] <col1>[Title]:[Drama] <col2>[text]:[Role] <col3>[text]:[Nature] <col4>[Role]:[text] <col5>[Artists]:[text] <col6>[Location]:[text] } | SELECT COUNT( "Location" ) FROM `<table0>` WHERE "Name of Role" = 'Xiao Gui 小鬼' | How many locations for name of role as Xiao Gui ?
|
<table0>[table_49061] { <col0>[Driver]:[text] <col1>[Team]:[text] <col2>[Laps]:[real] <col3>[Time]:[Retired] <col4>[text]:[Grid] <col5>[real]:[Points] } | SELECT MAX( "Points" ) FROM `<table0>` WHERE "Time/Retired" = '+32.256 secs' AND "Grid" > '12' | What are the greatest points for a time/retired of +32.256 secs, and a a grid larger than 12?
|
<table0>[exists] { <col0>[eai_techniques]:[technique_id] <col1>[INT]:[PRIMARY] <col2>[KEY]:[name] <col3>[TEXT]:[INSERT] <col4>[eai_techniques]:[technique_id] <col5>[name]:[VALUES] <col6>[Feature]:[Attribution] <col7>[Model]:[Simplification] <col8>[Rule]:[Extraction] } <table1>[exists] { <col0>[ai_applications]:[app_id... | SELECT COUNT( DISTINCT technique_id ) FROM ai_applications WHERE country = 'UK'; | How many explainable AI techniques are used in AI applications developed in the UK? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.