question
stringlengths 14
216
| context
stringlengths 45
458
| answer
stringlengths 18
463
|
---|---|---|
What was the South Asian population in Nova Scotia in 2001? | create table table_1717824_1 (south_asians_2001 varchar, province varchar, PRIMARY KEY (south_asians_2001)) | select south_asians_2001 from table_1717824_1 where province = "nova scotia" |
Which regular season contains playoffs in division finals? | create table table_1241987_1 (regular_season varchar, playoffs varchar, PRIMARY KEY (regular_season)) | select regular_season from table_1241987_1 where playoffs = "division finals" |
Which organizations are not a parent organization of others? List the organization id. | create table organizations (organization_id varchar, parent_organization_id varchar, PRIMARY KEY (organization_id)) | select organization_id from organizations except select parent_organization_id from organizations |
What is the second year course in the program where physics is taken in the fourth year? | create table table_12148147_2 (second_year varchar, fourth_year varchar, PRIMARY KEY (second_year)) | select second_year from table_12148147_2 where fourth_year = "physics" |
what's the dbeingtribution with grsecurity being optional and compile time buffer checks being yes | create table table_1357052_6 (distribution varchar, grsecurity varchar, compile_time_buffer_checks varchar, PRIMARY KEY (distribution)) | select distribution from table_1357052_6 where grsecurity = "optional" and compile_time_buffer_checks = "yes" |
Name the rank on channel mooning and crooning | create table table_24222929_4 (rank_on_channel varchar, title varchar, PRIMARY KEY (rank_on_channel)) | select rank_on_channel from table_24222929_4 where title = "mooning and crooning" |
What was the number of weeks that had a Billboard Hot 100 Hits theme, an order number of 3, and an original artist of Sixpence None the Richer? | create table table_26250155_1 (week__number varchar, original_artist varchar, theme varchar, order__number varchar, PRIMARY KEY (week__number)) | select count(week__number) from table_26250155_1 where theme = "billboard hot 100 hits" and order__number = "3" and original_artist = "sixpence none the richer" |
What was the turnover when the profit before tax was 29.47? | create table table_2856898_1 (turnover__£m_ varchar, profit_before_tax__£m_ varchar, PRIMARY KEY (turnover__£m_)) | select turnover__£m_ from table_2856898_1 where profit_before_tax__£m_ = "29.47" |
What is the largest population in regions where the average family size is 2.8 people? | create table table_16048129_5 (number_of_people integer, average_family_size varchar, PRIMARY KEY (number_of_people)) | select max(number_of_people) from table_16048129_5 where average_family_size = "2.8" |
In what year and location did Liu Guozheng win the Mens Singles? | create table table_28138035_35 (year_location varchar, mens_singles varchar, PRIMARY KEY (year_location)) | select year_location from table_28138035_35 where mens_singles = "liu guozheng" |
What's the title of the audio book with story number 91? | create table table_20174050_1 (title varchar, story__number varchar, PRIMARY KEY (title)) | select title from table_20174050_1 where story__number = 91 |
Name the number of nationality is tom hilde | create table table_14407512_23 (nationality varchar, name varchar, PRIMARY KEY (nationality)) | select count(nationality) from table_14407512_23 where name = "tom hilde" |
Who is listed under the general classifcation where Ben Swift won and Cameron Meyer was listed under the young rider? | create table table_29332810_14 (general_classification varchar, winner varchar, young_rider_classification varchar, PRIMARY KEY (general_classification)) | select general_classification from table_29332810_14 where winner = "ben swift" and young_rider_classification = "cameron meyer" |
Find the number of dog pets that are raised by female students (with sex F). | create table has_pet (stuid varchar, petid varchar, PRIMARY KEY (stuid)); create table pets (petid varchar, pettype varchar, PRIMARY KEY (petid)); create table student (stuid varchar, sex varchar, PRIMARY KEY (stuid)) | select count(*) from student as t1 join has_pet as t2 on t1.stuid = t2.stuid join pets as t3 on t2.petid = t3.petid where t1.sex = 'f' and t3.pettype = 'dog' |
Name the tourism receipts 2003 for colombia | create table table_18524_6 (tourism_receipts__2003___as__percentage_of_gdp_ varchar, country varchar, PRIMARY KEY (tourism_receipts__2003___as__percentage_of_gdp_)) | select tourism_receipts__2003___as__percentage_of_gdp_ from table_18524_6 where country = "colombia" |
How many children did Dennis Hawley have at his time of death? | create table table_24143253_2 (children_together varchar, deceased_spouse varchar, PRIMARY KEY (children_together)) | select children_together from table_24143253_2 where deceased_spouse = "dennis hawley" |
Show order ids and the number of products in each order. | create table order_items (order_id varchar, product_id varchar, PRIMARY KEY (order_id)) | select order_id, count(distinct product_id) from order_items group by order_id |
Find the name of physicians who are affiliated with Surgery or Psychiatry department. | create table affiliated_with (physician varchar, department varchar, PRIMARY KEY (physician)); create table department (departmentid varchar, name varchar, PRIMARY KEY (departmentid)); create table physician (name varchar, employeeid varchar, PRIMARY KEY (name)) | select t1.name from physician as t1 join affiliated_with as t2 on t1.employeeid = t2.physician join department as t3 on t2.department = t3.departmentid where t3.name = 'surgery' or t3.name = 'psychiatry' |
What are the original air date(s) for episodes written by aron eli coleite? | create table table_28215780_4 (original_air_date varchar, written_by varchar, PRIMARY KEY (original_air_date)) | select original_air_date from table_28215780_4 where written_by = "aron eli coleite" |
Name the segment b for graphite s fly rod | create table table_15187735_8 (segment_b varchar, segment_c varchar, PRIMARY KEY (segment_b)) | select segment_b from table_15187735_8 where segment_c = "graphite s fly rod" |
What is the Alpha 2 code for Papua New Guinea? | create table table_222771_1 (alpha_2_code varchar, english_short_name__upper_lower_case_ varchar, PRIMARY KEY (alpha_2_code)) | select alpha_2_code from table_222771_1 where english_short_name__upper_lower_case_ = "papua new guinea" |
What is the title of the episode that had 9.76 million U.S. viewers? | create table table_22181917_2 (title varchar, us_viewers__millions_ varchar, PRIMARY KEY (title)) | select title from table_22181917_2 where us_viewers__millions_ = "9.76" |
What is the title of the episode written by Vanessa Bates? | create table table_19517621_4 (title varchar, written_by varchar, PRIMARY KEY (title)) | select title from table_19517621_4 where written_by = "vanessa bates" |
HOW MANY TEMPERATURE INTERVALS ARE POSSIBLE TO USE WITH ACRYL? | create table table_10262329_1 (temp__ varchar, adhesive_type varchar, PRIMARY KEY (temp__)) | select count(temp__) as °c_ from table_10262329_1 where adhesive_type = "acryl" |
Find the names of all instructors who have taught some course and the course_id. | create table instructor (id varchar, PRIMARY KEY (id)); create table teaches (id varchar, PRIMARY KEY (id)) | select name, course_id from instructor as t1 join teaches as t2 on t1.id = t2.id |
What is the smallest number of safeties? | create table table_25642873_2 (safeties integer, PRIMARY KEY (safeties)) | select min(safeties) from table_25642873_2 |
What's the format of the audio book titled The Mind Robber? | create table table_20174050_1 (format varchar, title varchar, PRIMARY KEY (format)) | select format from table_20174050_1 where title = "the mind robber" |
What countries have had eruptions of growth episodes in 1986? | create table table_1081235_1 (country varchar, last_eruption_or_growth_episode varchar, PRIMARY KEY (country)) | select country from table_1081235_1 where last_eruption_or_growth_episode = "1986" |
When the quiabaya municipality is 2 what is the combaya municipality? | create table table_2509202_2 (combaya_municipality varchar, quiabaya_municipality varchar, PRIMARY KEY (combaya_municipality)) | select combaya_municipality from table_2509202_2 where quiabaya_municipality = "2" |
Name all the team clasification where the combination classification is mederic clain | create table table_15088557_1 (team_classification varchar, combination_classification varchar, PRIMARY KEY (team_classification)) | select team_classification from table_15088557_1 where combination_classification = "mederic clain" |
What category was the movie Working Girl nominated? | create table table_18638067_1 (category varchar, film_title_used_in_nomination varchar, PRIMARY KEY (category)) | select category from table_18638067_1 where film_title_used_in_nomination = "working girl" |
When Princeton was the regular season winner, who was the tournament winner? | create table table_22733636_1 (tournament_winner varchar, regular_season_winner varchar, PRIMARY KEY (tournament_winner)) | select tournament_winner from table_22733636_1 where regular_season_winner = "princeton" |
What's the record achieved in the gamed played at BC Place Stadium? | create table table_21796261_4 (record varchar, location varchar, PRIMARY KEY (record)) | select record from table_21796261_4 where location = "bc place stadium" |
Find the name of customers who do not have a loan with a type of Mortgages. | create table loan (cust_id varchar, loan_type varchar, PRIMARY KEY (cust_id)); create table customer (cust_name varchar, PRIMARY KEY (cust_name)); create table customer (cust_name varchar, cust_id varchar, PRIMARY KEY (cust_name)) | select cust_name from customer except select t1.cust_name from customer as t1 join loan as t2 on t1.cust_id = t2.cust_id where t2.loan_type = 'mortgages' |
How many states-first place are there for the office of Governor? | create table table_20246201_9 (states___first_place varchar, office varchar, PRIMARY KEY (states___first_place)) | select count(states___first_place) from table_20246201_9 where office = "governor" |
What poll source had an administered date on July 10, 2008? | create table table_16751596_6 (poll_source varchar, dates_administered varchar, PRIMARY KEY (poll_source)) | select poll_source from table_16751596_6 where dates_administered = "july 10, 2008" |
Name the class a for carthage | create table table_14630796_1 (class_a varchar, class_aaaa varchar, carthage varchar, PRIMARY KEY (class_a)) | select class_a from table_14630796_1 where class_aaaa = carthage |
What is the largest number of holding companies? | create table table_1756264_2 (holding_companies integer, PRIMARY KEY (holding_companies)) | select max(holding_companies) from table_1756264_2 |
What is the document status description of the document with id 1? | create table documents (id varchar, PRIMARY KEY (id)); create table ref_document_status (id varchar, PRIMARY KEY (id)) | select ref_document_status.document_status_description from ref_document_status join documents on documents.document_status_code = ref_document_status.document_status_code where documents.document_id = 1 |
How many stamps have a face value of 37¢ and were printed in the banknote corporation of america? | create table table_15635768_1 (no_stamps_in_sheet varchar, face_value varchar, printer varchar, PRIMARY KEY (no_stamps_in_sheet)) | select count(no_stamps_in_sheet) from table_15635768_1 where face_value = "37¢" and printer = "banknote corporation of america" |
Which opponent has a record of 6-2? | create table table_21091127_1 (opponent varchar, record varchar, PRIMARY KEY (opponent)) | select opponent from table_21091127_1 where record = "6-2" |
What is the FY2008 $mil value associated with a FY2007 $mil value of exactly $120? | create table table_25438110_5 (fy08_$millions varchar, fy07_$millions varchar, PRIMARY KEY (fy08_$millions)) | select fy08_$millions from table_25438110_5 where fy07_$millions = "$120" |
Name the summary for the success rate for 68.75% | create table table_15829930_5 (summary varchar, success_rate varchar, PRIMARY KEY (summary)) | select summary from table_15829930_5 where success_rate = "68.75%" |
What time slot had an adult rating of 0.6? | create table table_19188562_2 (timeslot varchar, rating__adults_18_49_ varchar, PRIMARY KEY (timeslot)) | select timeslot from table_19188562_2 where rating__adults_18_49_ = "0.6" |
What is the color code and description of the product named "chervil"? | create table products (color_code varchar, product_name varchar, PRIMARY KEY (color_code)); create table ref_colors (color_description varchar, color_code varchar, PRIMARY KEY (color_description)) | select t1.color_code, t2.color_description from products as t1 join ref_colors as t2 on t1.color_code = t2.color_code where t1.product_name = "chervil" |
How many teams had an outgoing manager of antonio gómez | create table table_27495117_3 (manner_of_departure varchar, outgoing_manager varchar, PRIMARY KEY (manner_of_departure)) | select count(manner_of_departure) from table_27495117_3 where outgoing_manager = "antonio gómez" |
find the total percentage share of all channels owned by CCTV. | create table channel (share_in_percent integer, owner varchar, PRIMARY KEY (share_in_percent)) | select sum(share_in_percent) from channel where owner = 'cctv' |
Which athlete competed in the flyweight division? | create table table_1745820_5 (athlete varchar, event varchar, PRIMARY KEY (athlete)) | select athlete from table_1745820_5 where event = "flyweight" |
what is the operator of trains arriving at 13.39 | create table table_18333678_2 (operator varchar, arrival varchar, PRIMARY KEY (operator)) | select operator from table_18333678_2 where arrival = "13.39" |
Name the chassis for b. bira | create table table_28190534_1 (chassis varchar, driver varchar, PRIMARY KEY (chassis)) | select chassis from table_28190534_1 where driver = "b. bira" |
Name the ezhavas for muslims being 5.4 | create table table_23214055_2 (ezhavas varchar, muslims varchar, PRIMARY KEY (ezhavas)) | select ezhavas from table_23214055_2 where muslims = "5.4" |
Who drove the fastest lap at the Tenneco Automotive Grand Prix of Detroit? | create table table_11056278_3 (fastest_lap varchar, race_name varchar, PRIMARY KEY (fastest_lap)) | select fastest_lap from table_11056278_3 where race_name = "tenneco automotive grand prix of detroit" |
What DS division has S. L. M. Haneefa as the divisional secretary? | create table table_12485020_1 (ds_division varchar, divisional_secretary varchar, PRIMARY KEY (ds_division)) | select ds_division from table_12485020_1 where divisional_secretary = "s. l. m. haneefa" |
Who was the original artist of the chosen song when the theme was The Rolling Stones? | create table table_26250189_1 (original_artist varchar, theme varchar, PRIMARY KEY (original_artist)) | select original_artist from table_26250189_1 where theme = "the rolling stones" |
Name the total number of high asists for 34-27 | create table table_27902171_8 (high_assists varchar, record varchar, PRIMARY KEY (high_assists)) | select count(high_assists) from table_27902171_8 where record = "34-27" |
What are the names of the spacewalkers for end (UTC) October 30, 2007 15:53? | create table table_22385461_8 (spacewalkers varchar, end__utc_ varchar, PRIMARY KEY (spacewalkers)) | select spacewalkers from table_22385461_8 where end__utc_ = "october 30, 2007 15:53" |
What college did the T who was pick after 13 go to? | create table t (id varchar, PRIMARY KEY (id)) | select college from "t" as able_name_20 where pick__number > 13 and position = "t" |
Name the landesliga mitte for fc gundelfingen and vfl frohnlach | create table table_20181270_3 (landesliga_mitte varchar, landesliga_süd varchar, landesliga_nord varchar, PRIMARY KEY (landesliga_mitte)) | select landesliga_mitte from table_20181270_3 where landesliga_süd = "fc gundelfingen" and landesliga_nord = "vfl frohnlach" |
What is the number of titles written by Charleen Easton? | create table table_2623498_5 (title varchar, written_by varchar, PRIMARY KEY (title)) | select count(title) from table_2623498_5 where written_by = "charleen easton" |
what's the new south wales with crop (kilotonnes) being canola | create table table_1057262_2 (new_south_wales varchar, crop__kilotonnes_ varchar, PRIMARY KEY (new_south_wales)) | select new_south_wales from table_1057262_2 where crop__kilotonnes_ = "canola" |
Name the record for new orleans | create table table_17355408_4 (record varchar, team varchar, PRIMARY KEY (record)) | select record from table_17355408_4 where team = "new orleans" |
What are the years of participation for pickerington north? | create table table_17429402_7 (years_of_participation varchar, school varchar, PRIMARY KEY (years_of_participation)) | select years_of_participation from table_17429402_7 where school = "pickerington north" |
List the name of all products along with the number of complaints that they have received. | create table products (product_name varchar, product_id varchar, PRIMARY KEY (product_name)); create table complaints (product_id varchar, PRIMARY KEY (product_id)) | select t1.product_name, count(*) from products as t1 join complaints as t2 on t1.product_id = t2.product_id group by t1.product_name |
How many names have a country of civ? | create table table_22810095_8 (count varchar, country varchar, PRIMARY KEY (count)) | select count as name from table_22810095_8 where country = "civ" |
Name the tongyong for qiaotou | create table table_17015_2 (tongyong varchar, hanyu varchar, PRIMARY KEY (tongyong)) | select count(tongyong) from table_17015_2 where hanyu = "qiaotou" |
How many televotes are there where there is 4 jury votes? | create table table_19763199_4 (televotes varchar, jury_votes varchar, PRIMARY KEY (televotes)) | select televotes from table_19763199_4 where jury_votes = 4 |
How many cartoons were written by "Joseph Kuhr"? | create table cartoon (written_by varchar, PRIMARY KEY (written_by)) | select count(*) from cartoon where written_by = "joseph kuhr" |
Who is the director when Chris Hawkshaw is the writer? | create table table_16175064_3 (director_s_ varchar, writer_s_ varchar, PRIMARY KEY (director_s_)) | select director_s_ from table_16175064_3 where writer_s_ = "chris hawkshaw" |
when changsha 長沙 is the commandery what is the commandery capital? | create table table_278229_1 (commandery varchar, PRIMARY KEY (commandery)) | select commandery as capital from table_278229_1 where commandery = "changsha 長沙" |
What was the name of the episode that had 14.52 viewers? | create table table_22904707_1 (title varchar, us_viewers__million_ varchar, PRIMARY KEY (title)) | select title from table_22904707_1 where us_viewers__million_ = "14.52" |
What vfl club(s) did players who played 23 cfl games play for? | create table table_16527640_2 (vfl_club_s_ varchar, vfl_games varchar, PRIMARY KEY (vfl_club_s_)) | select vfl_club_s_ from table_16527640_2 where vfl_games = 23 |
Who won the $109 no limit hold'em w/rebuys [turbo]? | create table table_22050544_3 (winner varchar, event varchar, PRIMARY KEY (winner)) | select winner from table_22050544_3 where event = "$109 no limit hold'em w/rebuys [turbo]" |
When toronto blue jays are the mlb team who are the fscl team? | create table table_18373863_2 (fcsl_team varchar, mlb_team varchar, PRIMARY KEY (fcsl_team)) | select fcsl_team from table_18373863_2 where mlb_team = "toronto blue jays" |
Name the driver for race 2 2 | create table table_15530244_5 (driver varchar, race_2 varchar, PRIMARY KEY (driver)) | select driver from table_15530244_5 where race_2 = "2" |
What school did the 7-4 player attend? | create table table_11734041_17 (school_club_team_country varchar, height_in_ft varchar, PRIMARY KEY (school_club_team_country)) | select school_club_team_country from table_11734041_17 where height_in_ft = "7-4" |
What type of settlement is Jazak? | create table table_2562572_50 (type varchar, settlement varchar, PRIMARY KEY (type)) | select type from table_2562572_50 where settlement = "jazak" |
How many players named sanath jayasuriya? | create table table_15700367_6 (runs_conceded varchar, name varchar, PRIMARY KEY (runs_conceded)) | select count(runs_conceded) from table_15700367_6 where name = "sanath jayasuriya" |
What are all the different descriptions for the buttonholer with cardboard box for storage and a low shank type? | create table table_28652521_1 (description varchar, storage_case varchar, for_shank_type varchar, PRIMARY KEY (description)) | select description from table_28652521_1 where storage_case = "cardboard box" and for_shank_type = "low" |
What is the number of vacators when the successor was William H. Wells ( F )? | create table table_224839_3 (vacator varchar, successor varchar, PRIMARY KEY (vacator)) | select count(vacator) from table_224839_3 where successor = "william h. wells ( f )" |
What is the total number of opponents for the game recorded as 1-3? | create table table_16710971_2 (opponent varchar, record varchar, PRIMARY KEY (opponent)) | select count(opponent) from table_16710971_2 where record = "1-3" |
Which catalog publisher has published the most catalogs? | create table catalogs (catalog_publisher varchar, PRIMARY KEY (catalog_publisher)) | select catalog_publisher from catalogs group by catalog_publisher order by count(*) desc limit 1 |
What is the title of episode 2? | create table table_2430014_8 (title varchar, episode_no varchar, PRIMARY KEY (title)) | select title from table_2430014_8 where episode_no = 2 |
Which aperture were built or used between 1987-2001? | create table table_23851574_2 (aper_in varchar, built_used varchar, PRIMARY KEY (aper_in)) | select aper_in from table_23851574_2 where built_used = "1987-2001" |
Was the missile intercepted by patriot when the parking lot was damaged? | create table table_23014685_1 (intercepted_by_patriot varchar, area_damaged varchar, PRIMARY KEY (intercepted_by_patriot)) | select intercepted_by_patriot from table_23014685_1 where area_damaged = "parking lot" |
If the letters is φαν, what is the founding date? | create table table_2538117_7 (founding_date varchar, letters varchar, PRIMARY KEY (founding_date)) | select founding_date from table_2538117_7 where letters = "φαν" |
What candidates ran in the election when the incumbent was william j. driver? | create table table_1342292_4 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates)) | select candidates from table_1342292_4 where incumbent = "william j. driver" |
how many times did estudiantes de la plata participate in 2008 suruga bank championship | create table table_18027411_1 (team___competition varchar, PRIMARY KEY (team___competition)) | select count(2008 as _suruga_bank_championship) from table_18027411_1 where team___competition = "estudiantes de la plata" |
How many next in lines had heirs of Archduke Karl? | create table table_28241890_2 (next_in_line varchar, heir varchar, PRIMARY KEY (next_in_line)) | select count(next_in_line) from table_28241890_2 where heir = "archduke karl" |
Name the successor for not filled this congress | create table table_225200_4 (successor varchar, date_successor_seated varchar, PRIMARY KEY (successor)) | select successor from table_225200_4 where date_successor_seated = "not filled this congress" |
What are the names of perpetrators whose country is not "China"? | create table perpetrator (people_id varchar, country varchar, PRIMARY KEY (people_id)); create table people (name varchar, people_id varchar, PRIMARY KEY (name)) | select t1.name from people as t1 join perpetrator as t2 on t1.people_id = t2.people_id where t2.country <> "china" |
what's the model name with engine code being b5204 t5 | create table table_1147701_4 (model_name varchar, engine_code varchar, PRIMARY KEY (model_name)) | select model_name from table_1147701_4 where engine_code = "b5204 t5" |
If the record was 22-21-5, who was the opponent? | create table table_27537870_6 (opponent varchar, record varchar, PRIMARY KEY (opponent)) | select opponent from table_27537870_6 where record = "22-21-5" |
Which area did estrella tv 62 provide coverage for? | create table table_2523809_1 (coverage varchar, branding varchar, PRIMARY KEY (coverage)) | select coverage from table_2523809_1 where branding = "estrella tv 62" |
What is the nationality of Louis floch | create table table_24565004_7 (nationality² varchar, name varchar, PRIMARY KEY (nationality²)) | select nationality² from table_24565004_7 where name = "louis floch" |
How many bookings do we have? | create table bookings (id varchar, PRIMARY KEY (id)) | select count(*) from bookings |
How many date of appointments are there when the date of vacancy was 2 october 2010? | create table table_26976615_3 (date_of_appointment varchar, date_of_vacancy varchar, PRIMARY KEY (date_of_appointment)) | select count(date_of_appointment) from table_26976615_3 where date_of_vacancy = "2 october 2010" |
what's the dbeingtribution with grsecurity being no | create table table_1357052_6 (distribution varchar, grsecurity varchar, PRIMARY KEY (distribution)) | select distribution from table_1357052_6 where grsecurity = "no" |
what is the division east when division north was milano | create table table_17881033_1 (division_east varchar, division_north varchar, PRIMARY KEY (division_east)) | select division_east from table_17881033_1 where division_north = "milano" |
How many villages have a density persons/ha of 5.5? | create table table_21302_1 (no_of_villages varchar, density_persons___ha varchar, PRIMARY KEY (no_of_villages)) | select count(no_of_villages) from table_21302_1 where density_persons___ha = "5.5" |
Find the number of vocal types used in song "Demon Kitty Rag"? | create table vocals (songid varchar, PRIMARY KEY (songid)); create table songs (songid varchar, PRIMARY KEY (songid)) | select count(*) from vocals as t1 join songs as t2 on t1.songid = t2.songid where title = "demon kitty rag" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.