question
stringlengths 14
216
| context
stringlengths 45
458
| answer
stringlengths 18
463
|
---|---|---|
What are names of patients who made an appointment? | create table appointment (patient varchar, PRIMARY KEY (patient)); create table patient (ssn varchar, PRIMARY KEY (ssn)) | select name from appointment as t1 join patient as t2 on t1.patient = t2.ssn |
Who constructed the Syracuse circuit? | create table table_1140111_5 (constructor varchar, circuit varchar, PRIMARY KEY (constructor)) | select constructor from table_1140111_5 where circuit = "syracuse" |
When winter pines is the fcsl team how many mlb teams are there? | create table table_18373863_2 (mlb_team varchar, fcsl_team varchar, PRIMARY KEY (mlb_team)) | select count(mlb_team) from table_18373863_2 where fcsl_team = "winter pines" |
Who was the team when the category is field goal percentage? | create table table_28628309_6 (team varchar, category varchar, PRIMARY KEY (team)) | select team from table_28628309_6 where category = "field goal percentage" |
What's the language of the school founded in 1949? | create table table_1930857_1 (language varchar, year_founded varchar, PRIMARY KEY (language)) | select language from table_1930857_1 where year_founded = "1949" |
Name the total number 1980 mil for soviet union | create table table_22071705_6 (country varchar, PRIMARY KEY (country)) | select count(1980 as __mil_) from table_22071705_6 where country = "soviet union" |
What is the name of the college/junior/club team of the Buffalo Sabres? | create table table_2679061_10 (college_junior_club_team varchar, nhl_team varchar, PRIMARY KEY (college_junior_club_team)) | select college_junior_club_team from table_2679061_10 where nhl_team = "buffalo sabres" |
When conjunction junction is the episode title and the music is by bob dorough who is the performer? | create table table_191105_2 (performed_by varchar, music_by varchar, episode_title varchar, PRIMARY KEY (performed_by)) | select performed_by from table_191105_2 where music_by = "bob dorough" and episode_title = "conjunction junction" |
Where is the Eastern Nazarene College located? | create table table_1973729_1 (location varchar, institution varchar, PRIMARY KEY (location)) | select location from table_1973729_1 where institution = "eastern nazarene college" |
What is the document type code for document type "Paper"? | create table ref_document_types (document_type_code varchar, document_type_name varchar, PRIMARY KEY (document_type_code)) | select document_type_code from ref_document_types where document_type_name = "paper" |
Show the themes of parties and the names of the party hosts. | create table host (name varchar, host_id varchar, PRIMARY KEY (name)); create table party_host (host_id varchar, party_id varchar, PRIMARY KEY (host_id)); create table party (party_theme varchar, party_id varchar, PRIMARY KEY (party_theme)) | select t3.party_theme, t2.name from party_host as t1 join host as t2 on t1.host_id = t2.host_id join party as t3 on t1.party_id = t3.party_id |
what is the name of the branding where the virtual is 13.1 | create table table_1979203_1 (branding varchar, _virtual_ varchar, PRIMARY KEY (branding)) | select branding from table_1979203_1 where _virtual_ = "13.1" |
What is average lesson price taught by staff with first name as Janessa and last name as Sawayn? | create table lessons (staff_id varchar, PRIMARY KEY (staff_id)); create table staff (staff_id varchar, first_name varchar, last_name varchar, PRIMARY KEY (staff_id)) | select avg(price) from lessons as t1 join staff as t2 on t1.staff_id = t2.staff_id where t2.first_name = "janessa" and t2.last_name = "sawayn" |
Name the total number of nba drafts that went to east side high school | create table table_11677760_31 (nba_draft varchar, school varchar, PRIMARY KEY (nba_draft)) | select count(nba_draft) from table_11677760_31 where school = "east side high school" |
Who was the constructor in the location Monza? | create table table_1140076_2 (constructor varchar, location varchar, PRIMARY KEY (constructor)) | select constructor from table_1140076_2 where location = "monza" |
What party did Beau Boulter represent? | create table table_1341577_44 (party varchar, incumbent varchar, PRIMARY KEY (party)) | select party from table_1341577_44 where incumbent = "beau boulter" |
In Pakistan, what was the total freshwater withdrawal (km 3 /yr) where the agricultural use (m 3 /p/yr)(in %) was 1029(96%)? | create table table_15909409_2 (total_freshwater_withdrawal__km_3__yr_ varchar, agricultural_use__m_3__p_yr__in__percentage_ varchar, PRIMARY KEY (total_freshwater_withdrawal__km_3__yr_)) | select total_freshwater_withdrawal__km_3__yr_ from table_15909409_2 where agricultural_use__m_3__p_yr__in__percentage_ = "1029(96%)" |
What is the economy of the player with BBI of 3/33? | create table table_28846752_13 (economy varchar, bbi varchar, PRIMARY KEY (economy)) | select economy from table_28846752_13 where bbi = "3/33" |
How many courses are there in total? | create table courses (id varchar, PRIMARY KEY (id)) | select count(*) from courses |
which institutions can be categorized as private/united church of christ? | create table table_261895_1 (institution varchar, type varchar, PRIMARY KEY (institution)) | select institution from table_261895_1 where type = "private/united church of christ" |
Who scored the most points in the game where the Raptors became 13-49? | create table table_13619053_8 (high_points varchar, record varchar, PRIMARY KEY (high_points)) | select high_points from table_13619053_8 where record = "13-49" |
What is the INE code of the municipality whose official name is Berantevilla? | create table table_300283_1 (ine_code integer, official_name varchar, PRIMARY KEY (ine_code)) | select max(ine_code) from table_300283_1 where official_name = "berantevilla" |
What school is in Jeromesville? | create table table_24935743_2 (location varchar, school varchar, PRIMARY KEY (location)) | select location from table_24935743_2 where school = "jeromesville" |
What kind of report is for the Pau circuit? | create table table_1140111_5 (report varchar, circuit varchar, PRIMARY KEY (report)) | select report from table_1140111_5 where circuit = "pau" |
How many days were the station of Soyuz 35 in flight down were in orbit? | create table table_245800_2 (duration__days_ varchar, flight_down varchar, PRIMARY KEY (duration__days_)) | select duration__days_ from table_245800_2 where flight_down = "soyuz 35" |
Who was the director when the writer(s) was John W. Bloch? | create table table_21146729_6 (director varchar, writer_s_ varchar, PRIMARY KEY (director)) | select director from table_21146729_6 where writer_s_ = "john w. bloch" |
Name the high points for mo williams , lebron james , j.j. hickson (6) | create table table_22654073_7 (high_points varchar, high_rebounds varchar, PRIMARY KEY (high_points)) | select count(high_points) from table_22654073_7 where high_rebounds = "mo williams , lebron james , j.j. hickson (6)" |
How many films have the word 'Dummy' in their titles? | create table film (title varchar, PRIMARY KEY (title)) | select count(*) from film where title like "%dummy%" |
How many different amounts of winnings were there for the year when the team had an average finish of 17.4? | create table table_2182562_2 (winnings varchar, avg_finish varchar, PRIMARY KEY (winnings)) | select count(winnings) from table_2182562_2 where avg_finish = "17.4" |
Find the number of airports whose name contain the word 'International'. | create table airports (name varchar, PRIMARY KEY (name)) | select count(*) from airports where name like '%international%' |
List all the places that the Apocalypstix occupied when the Denim Demons were 2nd. | create table table_29619494_2 (apocalypstix varchar, denim_demons varchar, PRIMARY KEY (apocalypstix)) | select apocalypstix from table_29619494_2 where denim_demons = "2nd" |
List the names of all distinct wines that are made of red color grape. | create table grapes (grape varchar, color varchar, PRIMARY KEY (grape)); create table wine (name varchar, grape varchar, PRIMARY KEY (name)) | select distinct t2.name from grapes as t1 join wine as t2 on t1.grape = t2.grape where t1.color = "red" |
what's the thursday iuppiter (jupiter) with friday venus (venus) being vendredi | create table table_1277350_1 (thursday_iuppiter__jupiter_ varchar, friday_venus__venus_ varchar, PRIMARY KEY (thursday_iuppiter__jupiter_)) | select thursday_iuppiter__jupiter_ from table_1277350_1 where friday_venus__venus_ = "vendredi" |
Name the english name for 福鼎市 | create table table_2013618_1 (english_name varchar, traditional varchar, PRIMARY KEY (english_name)) | select english_name from table_2013618_1 where traditional = "福鼎市" |
Name the trine dehli cleve for english waltz | create table table_28677723_14 (trine_dehli_cleve integer, style varchar, PRIMARY KEY (trine_dehli_cleve)) | select min(trine_dehli_cleve) from table_28677723_14 where style = "english waltz" |
Who were the candidates in the election where the incumbent is George M. Grant? | create table table_1341973_3 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates)) | select candidates from table_1341973_3 where incumbent = "george m. grant" |
List all location codes and location names. | create table ref_locations (location_code varchar, location_name varchar, PRIMARY KEY (location_code)) | select location_code, location_name from ref_locations |
How many titles have U.S. viewers 1.66 million. | create table table_26736040_1 (title varchar, us_viewers__millions_ varchar, PRIMARY KEY (title)) | select count(title) from table_26736040_1 where us_viewers__millions_ = "1.66" |
In what city or town is Stratford (limited service)? | create table table_2572788_1 (town_city varchar, station varchar, PRIMARY KEY (town_city)) | select town_city from table_2572788_1 where station = "stratford (limited service)" |
Name the order in office for spiro agnew | create table table_2026548_1 (order_in_office varchar, vice_president varchar, PRIMARY KEY (order_in_office)) | select order_in_office from table_2026548_1 where vice_president = "spiro agnew" |
When restoring capital punishment is the description how many types are there? | create table table_256286_13 (type varchar, description varchar, PRIMARY KEY (type)) | select count(type) from table_256286_13 where description = "restoring capital punishment" |
Who did the high rebounds in the game where Larry Hughes (21) did the high ponts? | create table table_23248869_6 (high_rebounds varchar, high_points varchar, PRIMARY KEY (high_rebounds)) | select high_rebounds from table_23248869_6 where high_points = "larry hughes (21)" |
Show the studios that have produced films with director "Nicholas Meyer" and "Walter Hill". | create table film (studio varchar, director varchar, PRIMARY KEY (studio)) | select studio from film where director = "nicholas meyer" intersect select studio from film where director = "walter hill" |
Who wrote the episode that was directed by Milan Cheylov? | create table table_29219286_1 (written_by varchar, directed_by varchar, PRIMARY KEY (written_by)) | select written_by from table_29219286_1 where directed_by = "milan cheylov" |
Find the distinct details of invoices which are created before 1989-09-03 or after 2007-12-25. | create table invoices (invoice_details varchar, invoice_date varchar, PRIMARY KEY (invoice_details)) | select distinct invoice_details from invoices where invoice_date < "1989-09-03" or invoice_date > "2007-12-25" |
what is the total number of constancy where purity is falling | create table table_11609814_1 (constancy varchar, purity varchar, PRIMARY KEY (constancy)) | select count(constancy) from table_11609814_1 where purity = "falling" |
Who is Gene Felton's TO Winning Team? | create table table_13657749_2 (to_winning_team varchar, gto_winning_team varchar, PRIMARY KEY (to_winning_team)) | select to_winning_team from table_13657749_2 where gto_winning_team = "gene felton" |
What is the name of the only route that runs to bhavnagar? | create table table_26745820_5 (vivek_express__15905_15906 varchar, kanyakumari varchar, PRIMARY KEY (vivek_express__15905_15906)) | select vivek_express__15905_15906 from table_26745820_5 where kanyakumari = "bhavnagar" |
Name who directed when the viewers is 5.86 | create table table_27401228_1 (directed_by varchar, us_viewers__million_ varchar, PRIMARY KEY (directed_by)) | select directed_by from table_27401228_1 where us_viewers__million_ = "5.86" |
Show project ids and the number of documents in each project. | create table documents (project_id varchar, PRIMARY KEY (project_id)) | select project_id, count(*) from documents group by project_id |
How many pac-12 sports are shown for california polytechnic state university? | create table table_27816698_2 (pac_12_sports varchar, institution varchar, PRIMARY KEY (pac_12_sports)) | select count(pac_12_sports) from table_27816698_2 where institution = "california polytechnic state university" |
When pronoun is the subject what is the episode title? | create table table_191105_2 (episode_title varchar, subject varchar, PRIMARY KEY (episode_title)) | select episode_title from table_191105_2 where subject = "pronoun" |
Who was the away team playing at Carlton? | create table table_16387653_1 (away_team varchar, home_team varchar, PRIMARY KEY (away_team)) | select away_team from table_16387653_1 where home_team = "carlton" |
Name the number of candidates for samuel d. ingham | create table table_2668347_17 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates)) | select count(candidates) from table_2668347_17 where incumbent = "samuel d. ingham" |
Who is the monarch with the heir thado minsaw? | create table table_26460435_8 (monarch varchar, heir varchar, PRIMARY KEY (monarch)) | select monarch from table_26460435_8 where heir = "thado minsaw" |
What's the title of the episode seen by 12.85 millions of people in the US? | create table table_28212888_2 (title varchar, us_viewers__millions_ varchar, PRIMARY KEY (title)) | select title from table_28212888_2 where us_viewers__millions_ = "12.85" |
what is robin's stat when jason was 2.5 | create table table_19744915_3 (robin varchar, jason varchar, PRIMARY KEY (robin)) | select robin from table_19744915_3 where jason = "2.5" |
How many episodes were directed by Sarah Pia Anderson? | create table table_23287683_1 (title varchar, directed_by varchar, PRIMARY KEY (title)) | select count(title) from table_23287683_1 where directed_by = "sarah pia anderson" |
What was the state with the total electricity generated is 38380 gw-h? | create table table_25244412_2 (state varchar, total_electricity__gw·h_ varchar, PRIMARY KEY (state)) | select state from table_25244412_2 where total_electricity__gw·h_ = 38380 |
Name the number of leaders for % of popular vote being 11.05% | create table table_19283982_4 (leader varchar, _percentage_of_popular_vote varchar, PRIMARY KEY (leader)) | select count(leader) from table_19283982_4 where _percentage_of_popular_vote = "11.05%" |
What are the dates of death of those politicians whose date of birth 1938-08-30 30 august 1938? | create table table_25345002_1 (date_of_death varchar, date_of_birth varchar, PRIMARY KEY (date_of_death)) | select count(date_of_death) from table_25345002_1 where date_of_birth = "1938-08-30 30 august 1938" |
What is the total of roles that George Olmi plays in Savoy & Casino Theatre 1888? | create table table_148386_2 (savoy_theatre_1888 varchar, casino_theatre_1888 varchar, PRIMARY KEY (savoy_theatre_1888)) | select count(savoy_theatre_1888) from table_148386_2 where casino_theatre_1888 = "george olmi" |
What is the destination of the route kulitthurai,neyyattinkara? | create table table_29770377_1 (destination varchar, route_via varchar, PRIMARY KEY (destination)) | select destination from table_29770377_1 where route_via = "kulitthurai,neyyattinkara" |
What was the percentage in Manitoba in 2011? | create table table_1717824_1 (_percentage_2011 varchar, province varchar, PRIMARY KEY (_percentage_2011)) | select _percentage_2011 from table_1717824_1 where province = "manitoba" |
What was the damage (usd) from the cyclones that measured 1003hPa (29.62inHg) pressure? | create table table_10602294_1 (damage__usd_ varchar, pressure varchar, PRIMARY KEY (damage__usd_)) | select damage__usd_ from table_10602294_1 where pressure = "1003hpa (29.62inhg)" |
what is the original air date for the episoe written by vanessa reisen? | create table table_13336122_5 (original_air_date varchar, written_by varchar, PRIMARY KEY (original_air_date)) | select original_air_date from table_13336122_5 where written_by = "vanessa reisen" |
What is the original air date of the episode written by Karen Felix and Don Woodard? | create table table_11630008_8 (original_air_date varchar, written_by varchar, PRIMARY KEY (original_air_date)) | select original_air_date from table_11630008_8 where written_by = "karen felix and don woodard" |
Which locations had their first year in 2001? | create table table_29788320_2 (location varchar, first_year varchar, PRIMARY KEY (location)) | select location from table_29788320_2 where first_year = 2001 |
If the coordinate velocity v dx/dt in units of c is (e 2 − 1)/(e 2 + 1) ≅ 0.761, what is the velocity angle η in i-radians? | create table table_15314901_1 (velocity_angle_η_in_i_radians varchar, coordinate_velocity_v_dx_dt_in_units_of_c varchar, PRIMARY KEY (velocity_angle_η_in_i_radians)) | select velocity_angle_η_in_i_radians from table_15314901_1 where coordinate_velocity_v_dx_dt_in_units_of_c = "(e 2 − 1)/(e 2 + 1) ≅ 0.761" |
How many round of 32 results are followed by Polidori ( Ita ) w 6-1, 3-6, 6-3 in the round of 16? | create table table_18602462_22 (round_of_32 varchar, round_of_16 varchar, PRIMARY KEY (round_of_32)) | select count(round_of_32) from table_18602462_22 where round_of_16 = "polidori ( ita ) w 6-1, 3-6, 6-3" |
How many peak positions were there on the weekly charts? | create table table_23180638_1 (peak_position varchar, oricon_albums_chart varchar, PRIMARY KEY (peak_position)) | select count(peak_position) from table_23180638_1 where oricon_albums_chart = "weekly charts" |
What is the percentage of "no party preference" where the democratic percentage is 24.8%? | create table table_27003223_4 (no_party_preference varchar, democratic varchar, PRIMARY KEY (no_party_preference)) | select no_party_preference from table_27003223_4 where democratic = "24.8%" |
What is the dominant religion for нови сад in 2002? | create table table_2562572_9 (dominant_religion__2002_ varchar, cyrillic_name_other_names varchar, PRIMARY KEY (dominant_religion__2002_)) | select dominant_religion__2002_ from table_2562572_9 where cyrillic_name_other_names = "нови сад" |
Where is Westpac Stadium located? | create table table_1301373_1 (location varchar, stadium varchar, PRIMARY KEY (location)) | select location from table_1301373_1 where stadium = "westpac stadium" |
Which countries has the most number of airlines whose active status is 'Y'? | create table airlines (country varchar, active varchar, PRIMARY KEY (country)) | select country from airlines where active = 'y' group by country order by count(*) desc limit 1 |
what is the maximum number of hull nunbers where ship name is kri yos sudarso? | create table table_12232526_2 (hull_numbers integer, ship_name varchar, PRIMARY KEY (hull_numbers)) | select max(hull_numbers) from table_12232526_2 where ship_name = "kri yos sudarso" |
who were the winners in west virginia | create table table_1133844_4 (candidates_winning_candidate_in_bold varchar, state__linked_to_summaries_below_ varchar, PRIMARY KEY (candidates_winning_candidate_in_bold)) | select candidates_winning_candidate_in_bold from table_1133844_4 where state__linked_to_summaries_below_ = "west virginia" |
Which nhl team has a college/junior/club team named university of notre dame (ncaa) | create table table_1213511_7 (nhl_team varchar, college_junior_club_team varchar, PRIMARY KEY (nhl_team)) | select nhl_team from table_1213511_7 where college_junior_club_team = "university of notre dame (ncaa)" |
Show the number of customers for each gender. | create table customers (gender varchar, PRIMARY KEY (gender)) | select gender, count(*) from customers group by gender |
What is the province amount if the % 2011 is 0.0% | create table table_1939367_1 (province varchar, _percentage_2011 varchar, PRIMARY KEY (province)) | select count(province) from table_1939367_1 where _percentage_2011 = "0.0%" |
How many transaction does account with name 337 have? | create table accounts (account_id varchar, account_name varchar, PRIMARY KEY (account_id)); create table financial_transactions (account_id varchar, PRIMARY KEY (account_id)) | select count(*) from financial_transactions as t1 join accounts as t2 on t1.account_id = t2.account_id where t2.account_name = "337" |
List the state in the US with the most invoices. | create table invoices (billing_state varchar, billing_country varchar, PRIMARY KEY (billing_state)) | select billing_state, count(*) from invoices where billing_country = "usa" group by billing_state order by count(*) desc limit 1 |
Find each target user's name and average trust score. | create table trust (target_u_id varchar, PRIMARY KEY (target_u_id)); create table useracct (name varchar, u_id varchar, PRIMARY KEY (name)) | select t1.name, avg(trust) from useracct as t1 join trust as t2 on t1.u_id = t2.target_u_id group by t2.target_u_id |
What is California State University, Hayward's new conference for Western Collegiate Lacrosse? | create table table_14976504_2 (new_conference varchar, institution varchar, PRIMARY KEY (new_conference)) | select new_conference from table_14976504_2 where institution = "california state university, hayward" |
When tim brasil brokers are the minor sponsors who is the kit manufacturer? | create table table_187239_1 (kit_manufacturer varchar, minor_sponsors varchar, PRIMARY KEY (kit_manufacturer)) | select kit_manufacturer from table_187239_1 where minor_sponsors = "tim brasil brokers" |
When dayton is the team what is the record? | create table table_29556461_8 (record varchar, team varchar, PRIMARY KEY (record)) | select record from table_29556461_8 where team = "dayton" |
Where is the headquarters of the airline which has the ICAO code of AAU? | create table table_15637071_1 (headquarters varchar, icao varchar, PRIMARY KEY (headquarters)) | select headquarters from table_15637071_1 where icao = "aau" |
Name the film titled for marcel camus category:articles with hcards | create table table_18987377_1 (film_title_used_in_nomination varchar, director varchar, PRIMARY KEY (film_title_used_in_nomination)) | select film_title_used_in_nomination from table_18987377_1 where director = "marcel camus category:articles with hcards" |
What was the launch date the satellite with cospar ID is 2008-033A? | create table table_18161217_2 (launch_date varchar, cospar_id varchar, PRIMARY KEY (launch_date)) | select launch_date from table_18161217_2 where cospar_id = "2008-033a" |
What size is a 30 frames per minute | create table table_1251878_3 (frame_size varchar, maximum_fps varchar, PRIMARY KEY (frame_size)) | select frame_size from table_1251878_3 where maximum_fps = 30 |
Who is the pärnu manager? | create table table_27409644_1 (manager varchar, club varchar, PRIMARY KEY (manager)) | select manager from table_27409644_1 where club = "pärnu" |
List the names of all scientists sorted in alphabetical order. | create table scientists (name varchar, PRIMARY KEY (name)) | select name from scientists order by name |
Name the most padilla municipality for quechua | create table table_2509350_3 (padilla_municipality integer, language varchar, PRIMARY KEY (padilla_municipality)) | select max(padilla_municipality) from table_2509350_3 where language = "quechua" |
Name the background colour for the Australian Capital Territory | create table table_1000181_1 (text_background_colour varchar, state_territory varchar, PRIMARY KEY (text_background_colour)) | select text_background_colour from table_1000181_1 where state_territory = "australian capital territory" |
What was the winning party when the incumbent was richard s. whaley? | create table table_1346137_4 (party varchar, incumbent varchar, PRIMARY KEY (party)) | select party from table_1346137_4 where incumbent = "richard s. whaley" |
Find the id of the pet owned by student whose last name is ‘Smith’. | create table has_pet (petid varchar, stuid varchar, PRIMARY KEY (petid)); create table student (stuid varchar, lname varchar, PRIMARY KEY (stuid)) | select t2.petid from student as t1 join has_pet as t2 on t1.stuid = t2.stuid where t1.lname = 'smith' |
what is the sanskrit of western star name arcturus | create table table_201400_2 (sanskrit varchar, western_star_name varchar, PRIMARY KEY (sanskrit)) | select sanskrit from table_201400_2 where western_star_name = "arcturus" |
which examples are pronounced et in australian | create table table_17798093_20 (examples varchar, australian varchar, PRIMARY KEY (examples)) | select examples from table_17798093_20 where australian = "et" |
Find the location of the club "Pen and Paper Gaming". | create table club (clublocation varchar, clubname varchar, PRIMARY KEY (clublocation)) | select clublocation from club where clubname = "pen and paper gaming" |
How many times did the Denver Broncos face the Dallas Texans this season? | create table table_17778417_1 (record varchar, opponent varchar, PRIMARY KEY (record)) | select count(record) from table_17778417_1 where opponent = "dallas texans" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.