question
stringlengths 14
216
| context
stringlengths 45
458
| answer
stringlengths 18
463
|
---|---|---|
What is the name when tfl-yds is 2-2? | create table table_26176081_29 (name varchar, tfl_yds varchar, PRIMARY KEY (name)) | select name from table_26176081_29 where tfl_yds = "2-2" |
For part 2 *raid, what is listed for part 3? | create table table_1745843_2 (part_3 varchar, part_2 varchar, PRIMARY KEY (part_3)) | select part_3 from table_1745843_2 where part_2 = "*raid" |
What nasl club won several titles with leeds united? | create table table_237757_9 (nasl_club_s_ varchar, accolades__pre_nasl_ varchar, PRIMARY KEY (nasl_club_s_)) | select nasl_club_s_ from table_237757_9 where accolades__pre_nasl_ = "won several titles with leeds united" |
What are the names of entrepreneurs whose investor is not "Rachel Elnaugh"? | create table entrepreneur (people_id varchar, investor varchar, PRIMARY KEY (people_id)); create table people (name varchar, people_id varchar, PRIMARY KEY (name)) | select t2.name from entrepreneur as t1 join people as t2 on t1.people_id = t2.people_id where t1.investor <> "rachel elnaugh" |
What time was achieved on Saturday 29th August by the rider who recorded 22' 54.20 98.842mph on Tuesday 25th August? | create table table_23465864_4 (sat_29_aug varchar, tues_25_aug varchar, PRIMARY KEY (sat_29_aug)) | select sat_29_aug from table_23465864_4 where tues_25_aug = "22' 54.20 98.842mph" |
What are the staff ids and genders of all staffs whose job title is Department Manager? | create table staff_department_assignments (staff_id varchar, job_title_code varchar, PRIMARY KEY (staff_id)); create table staff (staff_id varchar, staff_gender varchar, PRIMARY KEY (staff_id)) | select t1.staff_id, t1.staff_gender from staff as t1 join staff_department_assignments as t2 on t1.staff_id = t2.staff_id where t2.job_title_code = "department manager" |
What is the Netflix where Segment D is pressure gauges ? | create table table_15187735_12 (netflix varchar, segment_d varchar, PRIMARY KEY (netflix)) | select netflix from table_15187735_12 where segment_d = "pressure gauges" |
Who is the manufacturer whose intro date is 2006 and their throughput is 4 mbit/s? | create table table_29778616_1 (manufacturer varchar, intro_date varchar, throughput varchar, PRIMARY KEY (manufacturer)) | select manufacturer from table_29778616_1 where intro_date = "2006" and throughput = "4 mbit/s" |
List the writers of the books in ascending alphabetical order. | create table book (writer varchar, PRIMARY KEY (writer)) | select writer from book order by writer |
If the prime minister is Palmer, Geoffrey Geoffrey Palmer, what is the end date of (final) term? | create table table_25182437_1 (end_date_of__final__term varchar, prime_minister varchar, PRIMARY KEY (end_date_of__final__term)) | select end_date_of__final__term from table_25182437_1 where prime_minister = "palmer, geoffrey geoffrey palmer" |
what would be final four mvp maximum when first team is 1 | create table table_26130295_3 (final_four_mvp integer, first_team varchar, PRIMARY KEY (final_four_mvp)) | select max(final_four_mvp) from table_26130295_3 where first_team = 1 |
Show all card type codes. | create table customers_cards (card_type_code varchar, PRIMARY KEY (card_type_code)) | select distinct card_type_code from customers_cards |
How many entries are there for first driver for Canada? | create table table_13416000_3 (first_driver_s_ varchar, country varchar, PRIMARY KEY (first_driver_s_)) | select count(first_driver_s_) from table_13416000_3 where country = "canada" |
What are the fa.brill when w.h. archer is known as r. newman? | create table table_1320857_1 (fa_brill varchar, wh_archer varchar, PRIMARY KEY (fa_brill)) | select fa_brill from table_1320857_1 where wh_archer = "r. newman" |
How many home games are listed when the average attendance is 79475? | create table table_28884858_1 (home_games varchar, average_attendance varchar, PRIMARY KEY (home_games)) | select count(home_games) from table_28884858_1 where average_attendance = 79475 |
Who is the youngest employee in the company? List employee's first and last name. | create table employees (first_name varchar, last_name varchar, birth_date varchar, PRIMARY KEY (first_name)) | select first_name, last_name from employees order by birth_date desc limit 1 |
What is the template type code of the template used by document with the name "Data base"? | create table templates (template_type_code varchar, template_id varchar, PRIMARY KEY (template_type_code)); create table documents (template_id varchar, document_name varchar, PRIMARY KEY (template_id)) | select t1.template_type_code from templates as t1 join documents as t2 on t1.template_id = t2.template_id where t2.document_name = "data base" |
Name the years in orlando that the player from concord hs was in | create table table_15621965_10 (years_in_orlando varchar, school_club_team varchar, PRIMARY KEY (years_in_orlando)) | select years_in_orlando from table_15621965_10 where school_club_team = "concord hs" |
What is every entry for Latin when Catalan is Mar? | create table table_25401_15 (latin varchar, catalan varchar, PRIMARY KEY (latin)) | select latin from table_25401_15 where catalan = "mar" |
Which club was originally named hapoel katamon jerusalem f.c.? | create table table_26218124_1 (original_club varchar, name varchar, PRIMARY KEY (original_club)) | select original_club from table_26218124_1 where name = "hapoel katamon jerusalem f.c." |
What is Segment A where Segment B is Kevlar S Canoe? | create table table_15187735_12 (segment_a varchar, segment_b varchar, PRIMARY KEY (segment_a)) | select segment_a from table_15187735_12 where segment_b = "kevlar s canoe" |
Who proceeded to the quarter finals with a points margin of 21? | create table table_27986200_3 (proceed_to_quarter_final varchar, points_margin varchar, PRIMARY KEY (proceed_to_quarter_final)) | select proceed_to_quarter_final from table_27986200_3 where points_margin = 21 |
when co2 is 192g/km, what is the power? | create table table_24729_2 (power varchar, co2 varchar, PRIMARY KEY (power)) | select power from table_24729_2 where co2 = "192g/km" |
What are the undisclosed when Adam Hinshelwood is Ricky Newman? | create table table_23835213_2 (undisclosed varchar, adam_hinshelwood varchar, PRIMARY KEY (undisclosed)) | select undisclosed from table_23835213_2 where adam_hinshelwood = "ricky newman" |
What is the year (ceremony) for the film title Eldra? | create table table_26385848_1 (year__ceremony_ varchar, film_title varchar, PRIMARY KEY (year__ceremony_)) | select year__ceremony_ from table_26385848_1 where film_title = "eldra" |
How many architects are female? | create table architect (gender varchar, PRIMARY KEY (gender)) | select count(*) from architect where gender = 'female' |
What are the first names of all the students? | create table student (fname varchar, PRIMARY KEY (fname)) | select distinct fname from student |
Who was asked 20 questions in the issue where the centerfold is Marliece Andrada? | create table table_1566850_9 (centerfold_model varchar, PRIMARY KEY (centerfold_model)) | select 20 as _questions from table_1566850_9 where centerfold_model = "marliece andrada" |
Name the eps for net profit being 39.2 | create table table_18304259_1 (earnings_per_share__p_ varchar, net_profit__£m_ varchar, PRIMARY KEY (earnings_per_share__p_)) | select earnings_per_share__p_ from table_18304259_1 where net_profit__£m_ = "39.2" |
How many kids stay in the rooms reserved by ROY SWEAZY? | create table reservations (kids varchar, firstname varchar, lastname varchar, PRIMARY KEY (kids)) | select kids from reservations where firstname = "roy" and lastname = "sweazy" |
What are the 2fm's for erp 16? | create table table_18475946_2 (erp__kw_ varchar, PRIMARY KEY (erp__kw_)) | select 2 as fm__mhz_ from table_18475946_2 where erp__kw_ = "16" |
What are the names of photos taken with the lens brand 'Sigma' or 'Olympus'? | create table photos (camera_lens_id varchar, PRIMARY KEY (camera_lens_id)); create table camera_lens (name varchar, id varchar, brand varchar, PRIMARY KEY (name)) | select t1.name from camera_lens as t1 join photos as t2 on t2.camera_lens_id = t1.id where t1.brand = 'sigma' or t1.brand = 'olympus' |
Which of the radio stations has the organization of ente público radio televisión madrid (eprtvm)? | create table table_23143607_1 (radio_stations varchar, organization varchar, PRIMARY KEY (radio_stations)) | select radio_stations from table_23143607_1 where organization = "ente público radio televisión madrid (eprtvm)" |
What is the Netflix Episode when the Segment B is s Highlighter? | create table table_15187735_6 (netflix varchar, segment_b varchar, PRIMARY KEY (netflix)) | select netflix from table_15187735_6 where segment_b = "s highlighter" |
Who won the mens doubles when wu yang won the womens singles? | create table table_28138035_26 (mens_doubles varchar, womens_singles varchar, PRIMARY KEY (mens_doubles)) | select mens_doubles from table_28138035_26 where womens_singles = "wu yang" |
Name the number of proto austronesian for *natu | create table table_15568886_14 (proto_austronesian varchar, proto_oceanic varchar, PRIMARY KEY (proto_austronesian)) | select count(proto_austronesian) from table_15568886_14 where proto_oceanic = "*natu" |
Who did the high rebounds in the game in which Rodney Stuckey (16) did the high points? | create table table_27755603_2 (high_rebounds varchar, high_points varchar, PRIMARY KEY (high_rebounds)) | select high_rebounds from table_27755603_2 where high_points = "rodney stuckey (16)" |
Who are all the candidates when Sam Rayburn was incumbent? | create table table_1342292_42 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates)) | select candidates from table_1342292_42 where incumbent = "sam rayburn" |
What are all the languages for tsotsi? | create table table_13700749_1 (language_s_ varchar, film_title varchar, PRIMARY KEY (language_s_)) | select language_s_ from table_13700749_1 where film_title = "tsotsi" |
When john w. leftwich (uu) is the successor what is the date the successor was seated? | create table table_2147588_4 (date_successor_seated varchar, successor varchar, PRIMARY KEY (date_successor_seated)) | select date_successor_seated from table_2147588_4 where successor = "john w. leftwich (uu)" |
what is the language when the name of award is best editing? | create table table_25926120_7 (language varchar, name_of_award varchar, PRIMARY KEY (language)) | select language from table_25926120_7 where name_of_award = "best editing" |
How many lines have the segment description of red line mos-2 west? | create table table_1817879_2 (line_s_ varchar, segment_description varchar, PRIMARY KEY (line_s_)) | select line_s_ from table_1817879_2 where segment_description = "red line mos-2 west" |
What is the nominal GDP per capita when the population is 63.056 million? | create table table_1610496_3 (gdp_per_capita_nominal__ integer, population__millions_ varchar, PRIMARY KEY (gdp_per_capita_nominal__)) | select min(gdp_per_capita_nominal__) as $_ from table_1610496_3 where population__millions_ = "63.056" |
what's the primary payload(s) with launch date being july 8, 1994 | create table table_14118521_1 (primary_payload_s_ varchar, launch_date varchar, PRIMARY KEY (primary_payload_s_)) | select primary_payload_s_ from table_14118521_1 where launch_date = "july 8, 1994" |
What is the maximum and minimum market value of companies? | create table company (market_value_in_billion integer, PRIMARY KEY (market_value_in_billion)) | select max(market_value_in_billion), min(market_value_in_billion) from company |
Name the office running for for anthony mussara | create table table_1855841_1 (office_running_for varchar, candidate varchar, PRIMARY KEY (office_running_for)) | select office_running_for from table_1855841_1 where candidate = "anthony mussara" |
Which party does Del Latta belong to? | create table table_1341577_36 (party varchar, incumbent varchar, PRIMARY KEY (party)) | select party from table_1341577_36 where incumbent = "del latta" |
What party does jim ramstad represent? | create table table_1341423_23 (party varchar, incumbent varchar, PRIMARY KEY (party)) | select party from table_1341423_23 where incumbent = "jim ramstad" |
Name the barrel length for rear sight a2 for factory compensator | create table table_12834315_4 (barrel_length varchar, rear_sight varchar, muzzle_device varchar, PRIMARY KEY (barrel_length)) | select barrel_length from table_12834315_4 where rear_sight = "a2" and muzzle_device = "factory compensator" |
How many different colleges do attend the tryout test? | create table tryout (cname varchar, PRIMARY KEY (cname)) | select count(distinct cname) from tryout |
Find the names and number of works of the three artists who have produced the most songs. | create table song (artist_name varchar, PRIMARY KEY (artist_name)); create table artist (artist_name varchar, PRIMARY KEY (artist_name)) | select t1.artist_name, count(*) from artist as t1 join song as t2 on t1.artist_name = t2.artist_name group by t2.artist_name order by count(*) desc limit 3 |
How many millions of U.S. viewers watched the episode that first aired on March 31, 2013? | create table table_11111116_8 (us_viewers__million_ varchar, original_air_date varchar, PRIMARY KEY (us_viewers__million_)) | select us_viewers__million_ from table_11111116_8 where original_air_date = "march 31, 2013" |
Name the james e. holmes for erselle young | create table table_25330991_3 (james_e_holmes varchar, reidsville varchar, PRIMARY KEY (james_e_holmes)) | select james_e_holmes from table_25330991_3 where reidsville = "erselle young" |
When theora is 2.3, how much is the h.264? | create table table_26099252_1 (h264 varchar, theora varchar, PRIMARY KEY (h264)) | select h264 from table_26099252_1 where theora = "2.3" |
Who were the authors of the episode first broadcast on August 10, 2012? | create table table_28081876_6 (written_by varchar, original_air_date varchar, PRIMARY KEY (written_by)) | select written_by from table_28081876_6 where original_air_date = "august 10, 2012" |
Show the names of phones with carrier either "Sprint" or "TMobile". | create table phone (name varchar, carrier varchar, PRIMARY KEY (name)) | select name from phone where carrier = "sprint" or carrier = "tmobile" |
Was it a win or loss for Wanganui in round 3? | create table table_26847237_1 (win_loss varchar, round__number varchar, PRIMARY KEY (win_loss)) | select win_loss from table_26847237_1 where round__number = "round 3" |
How many TV Channel using language English? | create table tv_channel (language varchar, PRIMARY KEY (language)) | select count(*) from tv_channel where language = "english" |
What is the abbreviation for the college pronounced "kōkū daigakkō"? | create table table_11390711_4 (abbreviation varchar, pronouciation varchar, PRIMARY KEY (abbreviation)) | select abbreviation from table_11390711_4 where pronouciation = "kōkū daigakkō" |
How many titles have an original air date of November 17, 1998? | create table table_234886_2 (title varchar, original_air_date varchar, PRIMARY KEY (title)) | select count(title) from table_234886_2 where original_air_date = "november 17, 1998" |
Whose name in Polish holds the Lublin seat? | create table table_11614581_3 (name_in_polish varchar, seat varchar, PRIMARY KEY (name_in_polish)) | select name_in_polish from table_11614581_3 where seat = "lublin" |
When the under-11 was Aly Abou El Einen, who was the under-13? | create table table_26368963_1 (under_13 varchar, under_11 varchar, PRIMARY KEY (under_13)) | select under_13 from table_26368963_1 where under_11 = "aly abou el einen" |
How many teams did inge – 6 have the high assists with? | create table table_30054758_3 (team varchar, high_assists varchar, PRIMARY KEY (team)) | select count(team) from table_30054758_3 where high_assists = "inge – 6" |
How many debut albums did mike mohede have? | create table table_1646960_3 (debut_album varchar, winner varchar, PRIMARY KEY (debut_album)) | select count(debut_album) from table_1646960_3 where winner = "mike mohede" |
Name the number of director for huelepega: ley de la calle | create table table_18123274_1 (director varchar, original_title varchar, PRIMARY KEY (director)) | select count(director) from table_18123274_1 where original_title = "huelepega: ley de la calle" |
How many winning constructor catagories are there when Mark Webber had the fastest lap? | create table table_26258348_4 (winning_constructor varchar, fastest_lap varchar, PRIMARY KEY (winning_constructor)) | select count(winning_constructor) from table_26258348_4 where fastest_lap = "mark webber" |
What are all role codes? | create table roles (role_code varchar, PRIMARY KEY (role_code)) | select role_code from roles |
What is the operating mode of the Coda? | create table table_23840623_4 (operating_mode varchar, vehicle varchar, PRIMARY KEY (operating_mode)) | select operating_mode from table_23840623_4 where vehicle = "coda" |
List the names of companies in descending order of market value. | create table companies (name varchar, market_value_billion varchar, PRIMARY KEY (name)) | select name from companies order by market_value_billion desc |
how many times is the fuel propulsion is cng? | create table table_10007452_3 (fleet_series__quantity_ varchar, fuel_propulsion varchar, PRIMARY KEY (fleet_series__quantity_)) | select count(fleet_series__quantity_) from table_10007452_3 where fuel_propulsion = "cng" |
What was the percentage in 2006 whose natives is Polish? | create table table_2328113_1 (percentage__2006_ varchar, mother_tongue varchar, PRIMARY KEY (percentage__2006_)) | select percentage__2006_ from table_2328113_1 where mother_tongue = "polish" |
How many titles are there with the original air date of august3,2010? | create table table_30030477_1 (title varchar, original_air_date varchar, PRIMARY KEY (title)) | select count(title) from table_30030477_1 where original_air_date = "august3,2010" |
What is the prize for the tournament at Ibaraki? | create table table_26144632_1 (prize_fund___¥__ varchar, location varchar, PRIMARY KEY (prize_fund___¥__)) | select prize_fund___¥__ from table_26144632_1 where location = "ibaraki" |
What is the date of appointment for outgoing manager Campbell Money | create table table_11206916_2 (date_of_appointment varchar, outgoing_manager varchar, PRIMARY KEY (date_of_appointment)) | select date_of_appointment from table_11206916_2 where outgoing_manager = "campbell money" |
What is the enrollment of STM which has been in competition since 1990? | create table table_11318462_29 (enrolment varchar, in_competition_since varchar, abbreviation varchar, PRIMARY KEY (enrolment)) | select count(enrolment) from table_11318462_29 where in_competition_since = 1990 and abbreviation = "stm" |
what's the naturalisation by marriage with numer of jamaicans granted british citizenship being 3165 | create table table_11214212_1 (naturalisation_by_marriage varchar, numer_of_jamaicans_granted_british_citizenship varchar, PRIMARY KEY (naturalisation_by_marriage)) | select naturalisation_by_marriage from table_11214212_1 where numer_of_jamaicans_granted_british_citizenship = 3165 |
How many companies have Postermobile Limited as a parent company? | create table table_1756264_2 (company_name varchar, parent__holding__company varchar, PRIMARY KEY (company_name)) | select count(company_name) from table_1756264_2 where parent__holding__company = "postermobile limited" |
How many singers do we have? | create table singer (id varchar, PRIMARY KEY (id)) | select count(*) from singer |
Find the number of female students (with F sex) living in Smith Hall | create table lives_in (stuid varchar, dormid varchar, PRIMARY KEY (stuid)); create table student (stuid varchar, sex varchar, PRIMARY KEY (stuid)); create table dorm (dormid varchar, dorm_name varchar, PRIMARY KEY (dormid)) | select count(*) from student as t1 join lives_in as t2 on t1.stuid = t2.stuid join dorm as t3 on t3.dormid = t2.dormid where t3.dorm_name = 'smith hall' and t1.sex = 'f' |
Show all cities and corresponding number of students. | create table student (city_code varchar, PRIMARY KEY (city_code)) | select city_code, count(*) from student group by city_code |
Name the manufacturer for 2011 | create table table_24193494_3 (manufacturer varchar, order_year varchar, PRIMARY KEY (manufacturer)) | select manufacturer from table_24193494_3 where order_year = 2011 |
For the Republican party what are the names of the incumbents? | create table table_1342149_42 (incumbent varchar, party varchar, PRIMARY KEY (incumbent)) | select incumbent from table_1342149_42 where party = "republican" |
Who directed El Nido? | create table table_10798928_1 (director varchar, original_title varchar, PRIMARY KEY (director)) | select director from table_10798928_1 where original_title = "el nido" |
What is the record against Boston? | create table table_17323529_8 (record varchar, team varchar, PRIMARY KEY (record)) | select record from table_17323529_8 where team = "boston" |
How many Connecticut home games were broadcast? | create table table_28298589_4 (broadcast varchar, home_team varchar, PRIMARY KEY (broadcast)) | select count(broadcast) from table_28298589_4 where home_team = "connecticut" |
Name the opponent in the final for 3–6, 1–6 | create table table_23284597_3 (opponent_in_the_final varchar, score_in_the_final varchar, PRIMARY KEY (opponent_in_the_final)) | select opponent_in_the_final from table_23284597_3 where score_in_the_final = "3–6, 1–6" |
What are the distinct address type codes for all customer addresses? | create table customer_addresses (address_type_code varchar, PRIMARY KEY (address_type_code)) | select distinct address_type_code from customer_addresses |
What was the fastest lap at the Mexican Grand Prix? | create table table_1137718_2 (fastest_lap varchar, grand_prix varchar, PRIMARY KEY (fastest_lap)) | select fastest_lap from table_1137718_2 where grand_prix = "mexican grand_prix" |
find the number of different programs that are broadcast during night time. | create table broadcast (program_id varchar, time_of_day varchar, PRIMARY KEY (program_id)) | select count(distinct program_id) from broadcast where time_of_day = 'night' |
Name the package/option for giappone | create table table_15887683_8 (package_option varchar, country varchar, PRIMARY KEY (package_option)) | select package_option from table_15887683_8 where country = "giappone" |
What is the percentage of all females that are literate people have a percentage of 68.74? | create table table_14598_9 (females___percentage_ varchar, literate_persons___percentage_ varchar, PRIMARY KEY (females___percentage_)) | select females___percentage_ from table_14598_9 where literate_persons___percentage_ = "68.74" |
How many no votes were there in the partial public funding of election campaigns legislation? | create table table_256286_63 (no_votes varchar, description varchar, PRIMARY KEY (no_votes)) | select no_votes from table_256286_63 where description = "partial public funding of election campaigns" |
Where is every location with specialization of textile engineering? | create table table_2112260_1 (location varchar, specialization varchar, PRIMARY KEY (location)) | select location from table_2112260_1 where specialization = "textile engineering" |
Name all the date of designations for kurume | create table table_1585609_2 (date_of_designation varchar, name varchar, PRIMARY KEY (date_of_designation)) | select date_of_designation from table_1585609_2 where name = "kurume" |
How many points did the opposing team get in the game with 6-2 record? | create table table_23184448_3 (opp_points integer, record varchar, PRIMARY KEY (opp_points)) | select min(opp_points) from table_23184448_3 where record = "6-2" |
period between 1985 - 1990 have minimum infant mortality rate of what. | create table table_21258_1 (infant_mortality_rate integer, period varchar, PRIMARY KEY (infant_mortality_rate)) | select min(infant_mortality_rate) from table_21258_1 where period = "1985 - 1990" |
Which crime rate per 1,000 people is associated with a cost per capita of $152? | create table table_12340907_1 (crime_rate_per_1 integer, cost_per_capita varchar, PRIMARY KEY (crime_rate_per_1)) | select max(crime_rate_per_1), 000 as _people from table_12340907_1 where cost_per_capita = "$152" |
What is the premiere date of the american disney xd tron uprising site? | create table table_29487895_2 (series_premiere varchar, source_s_ varchar, PRIMARY KEY (series_premiere)) | select series_premiere from table_29487895_2 where source_s_ = "american disney xd tron uprising site" |
Show all directors. | create table film (directed_by varchar, PRIMARY KEY (directed_by)) | select distinct directed_by from film |
What is the total brup for the team? | create table table_18064020_21 (brup varchar, name varchar, PRIMARY KEY (brup)) | select brup from table_18064020_21 where name = "total" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.