question
stringlengths
14
216
context
stringlengths
45
458
answer
stringlengths
18
463
What is the colors for the nickname engineers?
create table table_261927_1 (colors varchar, nickname varchar, PRIMARY KEY (colors))
select colors from table_261927_1 where nickname = "engineers"
Name the population density people where population % eu for 1.7%
create table table_1606824_1 (pop_density_people_km_2 varchar, population__percentage_of_eu varchar, PRIMARY KEY (pop_density_people_km_2))
select count(pop_density_people_km_2) from table_1606824_1 where population__percentage_of_eu = "1.7%"
When bbc two is the new channel what is the date of return?
create table table_19114172_11 (date_of_return varchar, new_channel_s_ varchar, PRIMARY KEY (date_of_return))
select date_of_return from table_19114172_11 where new_channel_s_ = "bbc two"
When did the episode directed by David Duchovny originally air?
create table table_13336122_3 (original_air_date varchar, directed_by varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_13336122_3 where directed_by = "david duchovny"
Who is the player for south carolina college?
create table table_20871703_1 (player_name varchar, college varchar, PRIMARY KEY (player_name))
select player_name from table_20871703_1 where college = "south carolina"
What is the arrangement for bets3ab 3alia nafsy?
create table table_28005100_1 (arrangement varchar, title varchar, PRIMARY KEY (arrangement))
select arrangement from table_28005100_1 where title = "bets3ab 3alia nafsy"
Find the the name of the customers who have a loan with amount more than 3000.
create table customer (cust_name varchar, cust_id varchar, PRIMARY KEY (cust_name)); create table loan (cust_id varchar, PRIMARY KEY (cust_id))
select t1.cust_name from customer as t1 join loan as t2 on t1.cust_id = t2.cust_id where amount > 3000
what is the last performance of leon varkas category:articles with hcards
create table table_19189856_1 (last_performance varchar, performer varchar, PRIMARY KEY (last_performance))
select last_performance from table_19189856_1 where performer = "leon varkas category:articles with hcards"
What is the fewest number of 2005 subscribers for Vodafone?
create table table_29395291_2 (subscribers__2005___thousands_ integer, provider varchar, PRIMARY KEY (subscribers__2005___thousands_))
select min(subscribers__2005___thousands_) from table_29395291_2 where provider = "vodafone"
Kaluvanchikudy is the main town in what DS division?
create table table_12485020_1 (ds_division varchar, main_town varchar, PRIMARY KEY (ds_division))
select ds_division from table_12485020_1 where main_town = "kaluvanchikudy"
What edition of congress for member-elect richard p. giles?
create table table_14158567_1 (congress varchar, member_elect varchar, PRIMARY KEY (congress))
select congress from table_14158567_1 where member_elect = "richard p. giles"
Name the total number for material collected for 978-1401221935
create table table_19534677_1 (material_collected varchar, isbn varchar, PRIMARY KEY (material_collected))
select count(material_collected) from table_19534677_1 where isbn = "978-1401221935"
which countries were commentated on by gordana bonetti
create table table_184803_4 (country varchar, commentator varchar, PRIMARY KEY (country))
select country from table_184803_4 where commentator = "gordana bonetti"
Name the location for chattahoochee technical college
create table table_16734640_1 (location varchar, institution varchar, PRIMARY KEY (location))
select location from table_16734640_1 where institution = "chattahoochee technical college"
Show the people that have been governor the most times.
create table party (governor varchar, PRIMARY KEY (governor))
select governor from party group by governor order by count(*) desc limit 1
In what number kōhaku was the red team host Peggy Hayama?
create table table_1315616_1 (kōhaku__number varchar, red_team_host varchar, PRIMARY KEY (kōhaku__number))
select kōhaku__number from table_1315616_1 where red_team_host = "peggy hayama"
Name the number of teams for college/junior club for philadelphia flyers
create table table_1473672_4 (college_junior_club_team varchar, nhl_team varchar, PRIMARY KEY (college_junior_club_team))
select count(college_junior_club_team) from table_1473672_4 where nhl_team = "philadelphia flyers"
Find the emails of the user named "Mary".
create table user_profiles (email varchar, name varchar, PRIMARY KEY (email))
select email from user_profiles where name = 'mary'
Who won the womens doubles when wu jianqui won the womens singles?
create table table_12027364_1 (womens_doubles varchar, womens_singles varchar, PRIMARY KEY (womens_doubles))
select womens_doubles from table_12027364_1 where womens_singles = "wu jianqui"
Name the number of barangay for 205.4 density
create table table_269888_1 (no_of_s_barangay varchar, pop_density__per_km²_ varchar, PRIMARY KEY (no_of_s_barangay))
select no_of_s_barangay from table_269888_1 where pop_density__per_km²_ = "205.4"
Which professionals have done at least two types of treatments? List the professional id and cell phone.
create table professionals (professional_id varchar, cell_number varchar, PRIMARY KEY (professional_id)); create table treatments (professional_id varchar, PRIMARY KEY (professional_id))
select t1.professional_id, t1.cell_number from professionals as t1 join treatments as t2 on t1.professional_id = t2.professional_id group by t1.professional_id having count(*) >= 2
When was Jenny Gleason the champion of the Northeast Delta Dental International?
create table table_15315276_1 (dates varchar, champion varchar, PRIMARY KEY (dates))
select dates from table_15315276_1 where champion = "jenny gleason"
When +20.3 is the ± yes side 2008 (%) what is the for percentage?
create table table_20683381_3 (for___percentage_ varchar, ±_yes_side_2008___percentage_ varchar, PRIMARY KEY (for___percentage_))
select for___percentage_ from table_20683381_3 where ±_yes_side_2008___percentage_ = "+20.3"
What is the name of the episode that William M. Finkelstein wrote?
create table table_25604014_8 (title varchar, written_by varchar, PRIMARY KEY (title))
select title from table_25604014_8 where written_by = "william m. finkelstein"
Show the names of high school students and their corresponding number of friends.
create table highschooler (name varchar, id varchar, PRIMARY KEY (name)); create table friend (student_id varchar, PRIMARY KEY (student_id))
select t2.name, count(*) from friend as t1 join highschooler as t2 on t1.student_id = t2.id group by t1.student_id
What country uses the title Marele Câștigător The Big Winner?
create table table_20780285_1 (country_region varchar, title varchar, PRIMARY KEY (country_region))
select country_region from table_20780285_1 where title = "marele câștigător the big winner"
Name the least 4 car sets
create table table_19255192_2 (id varchar, total_vehicles varchar, PRIMARY KEY (id))
select id from table_19255192_2 order by id 4 limit 4
List name of all tracks in Balls to the Wall.
create table tracks (name varchar, genre_id varchar, PRIMARY KEY (name)); create table albums (id varchar, title varchar, PRIMARY KEY (id))
select t2.name from albums as t1 join tracks as t2 on t1.id = t2.genre_id where t1.title = "balls to the wall"
In what race did Buddy Rice hav fastest lap?
create table table_2454550_1 (race_name varchar, fastest_lap varchar, PRIMARY KEY (race_name))
select race_name from table_2454550_1 where fastest_lap = "buddy rice"
who were the candidates when the incumbent was ed derwinski?
create table table_1341718_14 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
select candidates from table_1341718_14 where incumbent = "ed derwinski"
Which episode was watched by 11.75 million U.S. viewers?
create table table_13301516_1 (title varchar, us_viewers__millions_ varchar, PRIMARY KEY (title))
select title from table_13301516_1 where us_viewers__millions_ = "11.75"
During which years did number 13 play for the Rockets?
create table table_11734041_3 (years_for_rockets varchar, no_s_ varchar, PRIMARY KEY (years_for_rockets))
select years_for_rockets from table_11734041_3 where no_s_ = "13"
If the original air date January 19, 1992, who was the episode directed by?
create table table_2226817_7 (directed_by varchar, original_air_date varchar, PRIMARY KEY (directed_by))
select directed_by from table_2226817_7 where original_air_date = "january 19, 1992"
Name the round of 32 in conference usa
create table table_10722506_6 (round_of_32 varchar, conference varchar, PRIMARY KEY (round_of_32))
select round_of_32 from table_10722506_6 where conference = "conference usa"
Who is the builder of the locomotives with wheel arrangement of 2-4-2 T?
create table table_1157867_2 (builder varchar, wheel_arrangement varchar, PRIMARY KEY (builder))
select builder from table_1157867_2 where wheel_arrangement = "2-4-2 t"
Find the name, address, number of students in the departments that have the top 3 highest number of students.
create table student (dept_code varchar, PRIMARY KEY (dept_code)); create table department (dept_name varchar, dept_address varchar, dept_code varchar, PRIMARY KEY (dept_name))
select t2.dept_name, t2.dept_address, count(*) from student as t1 join department as t2 on t1.dept_code = t2.dept_code group by t1.dept_code order by count(*) desc limit 3
Name the children together for 9 years of marriage
create table table_24143253_1 (children_together varchar, length_of_marriage varchar, PRIMARY KEY (children_together))
select children_together from table_24143253_1 where length_of_marriage = "9 years"
What is the rural population percentage in 1979?
create table table_16645_1 (__percentage varchar, rural integer, year__january_ varchar, PRIMARY KEY (__percentage))
select min(rural), __percentage from table_16645_1 where year__january_ = 1979
Who is everyone on the men's doubles when men's singles is Ma Wenge?
create table table_28211988_1 (mens_doubles varchar, mens_singles varchar, PRIMARY KEY (mens_doubles))
select mens_doubles from table_28211988_1 where mens_singles = "ma wenge"
What is the branding for the station located in san jose del monte?
create table table_27588823_2 (branding varchar, location varchar, PRIMARY KEY (branding))
select branding from table_27588823_2 where location = "san jose del monte"
What is the rate change % when the rate limit is 82.86?
create table table_25316812_1 (rate_change___percentage_ varchar, rate_limit__p_ varchar, PRIMARY KEY (rate_change___percentage_))
select rate_change___percentage_ from table_25316812_1 where rate_limit__p_ = "82.86"
Which original air date had 0.871 U.S. viewers (millions)?
create table table_26808178_3 (original_air_date varchar, us_viewers__millions_ varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_26808178_3 where us_viewers__millions_ = "0.871"
What are the air dates of the show in ABS-CBN?
create table table_27487310_5 (air_dates varchar, network varchar, PRIMARY KEY (air_dates))
select air_dates from table_27487310_5 where network = "abs-cbn"
Find the number of distinct projects.
create table projects (name varchar, PRIMARY KEY (name))
select count(distinct name) from projects
How many distinct students are enrolled in courses?
create table student_course_enrolment (student_id varchar, PRIMARY KEY (student_id))
select count(distinct student_id) from student_course_enrolment
Show names of teachers and the courses they are arranged to teach.
create table course_arrange (course_id varchar, teacher_id varchar, PRIMARY KEY (course_id)); create table teacher (name varchar, teacher_id varchar, PRIMARY KEY (name)); create table course (course varchar, course_id varchar, PRIMARY KEY (course))
select t3.name, t2.course from course_arrange as t1 join course as t2 on t1.course_id = t2.course_id join teacher as t3 on t1.teacher_id = t3.teacher_id
What is the record at the neutral site for when the overall record is ui, 27-16?
create table table_16201038_4 (at_neutral_site varchar, overall_record varchar, PRIMARY KEY (at_neutral_site))
select at_neutral_site from table_16201038_4 where overall_record = "ui, 27-16"
What is the g (μs/km)when the frequency (hz) is 100k?
create table table_261642_3 (g__μs_km_ varchar, frequency__hz_ varchar, PRIMARY KEY (g__μs_km_))
select g__μs_km_ from table_261642_3 where frequency__hz_ = "100k"
In Tangier Zone, what is the PCT route availibility?
create table table_2279413_1 (pct_route_available varchar, country varchar, PRIMARY KEY (pct_route_available))
select pct_route_available from table_2279413_1 where country = "tangier zone"
How many bullet tips colors had other features of a blue band on case base?
create table table_1036189_1 (bullet_tip_color varchar, other_features varchar, PRIMARY KEY (bullet_tip_color))
select count(bullet_tip_color) from table_1036189_1 where other_features = "blue band on case base"
Who is the director when there is 11.21 million viewers?
create table table_24910733_1 (directed_by varchar, us_viewers__millions_ varchar, PRIMARY KEY (directed_by))
select directed_by from table_24910733_1 where us_viewers__millions_ = "11.21"
how many new managers replaced manager(s) who resigned?
create table table_28164986_4 (incoming_manager varchar, manner_of_departure varchar, PRIMARY KEY (incoming_manager))
select count(incoming_manager) from table_28164986_4 where manner_of_departure = "resigned"
What is ramtha when jeel is 1-0 and hussein is 1-0?
create table table_26173063_2 (ramtha varchar, jeel varchar, hussein varchar, PRIMARY KEY (ramtha))
select ramtha from table_26173063_2 where jeel = "1-0" and hussein = "1-0"
When we played Houston who had the most points?
create table table_22879323_6 (high_points varchar, team varchar, PRIMARY KEY (high_points))
select high_points from table_22879323_6 where team = "houston"
How many products are there?
create table products (id varchar, PRIMARY KEY (id))
select count(*) from products
june 10-11 when january 15-16 is january 15, 1991?
create table table_25355501_2 (june_10_11 varchar, january_15_16 varchar, PRIMARY KEY (june_10_11))
select june_10_11 from table_25355501_2 where january_15_16 = "january 15, 1991"
Nam ethe enlisted for troop carrier group
create table table_23508196_5 (enlisted varchar, type_of_unit varchar, PRIMARY KEY (enlisted))
select enlisted from table_23508196_5 where type_of_unit = "troop carrier group"
Name the team for 5 september 2008 for date of vacancy for 30 august 2008
create table table_18522916_5 (team varchar, date_of_appointment varchar, date_of_vacancy varchar, PRIMARY KEY (team))
select team from table_18522916_5 where date_of_appointment = "5 september 2008" and date_of_vacancy = "30 august 2008"
Name the gdp per capita for haiti
create table table_26313243_1 (gdp__ppp__per_capita___intl_$___2011 varchar, country varchar, PRIMARY KEY (gdp__ppp__per_capita___intl_$___2011))
select gdp__ppp__per_capita___intl_$___2011 from table_26313243_1 where country = "haiti"
Show all headquarters with both a company in banking industry and a company in Oil and gas.
create table company (headquarters varchar, main_industry varchar, PRIMARY KEY (headquarters))
select headquarters from company where main_industry = 'banking' intersect select headquarters from company where main_industry = 'oil and gas'
Find the most popular room in the hotel. The most popular room is the room that had seen the largest number of reservations.
create table reservations (room varchar, PRIMARY KEY (room)); create table rooms (roomname varchar, roomid varchar, PRIMARY KEY (roomname))
select t2.roomname from reservations as t1 join rooms as t2 on t1.room = t2.roomid group by t1.room order by count(*) desc limit 1
Name the power provided for transfer speed mb/s is 1250
create table table_174151_5 (power_provided varchar, transfer_speed__mb_s_ varchar, PRIMARY KEY (power_provided))
select power_provided from table_174151_5 where transfer_speed__mb_s_ = "1250"
when was the premiere of the episode where the amount of North American spectators was 1.76 millions?
create table table_21979779_1 (original_air_date varchar, us_viewers__million_ varchar, PRIMARY KEY (original_air_date))
select original_air_date from table_21979779_1 where us_viewers__million_ = "1.76"
When 129 is on March 27th to 29th what is June 10th to 11th?
create table table_25286976_2 (june_10_11 varchar, march_27_29 varchar, PRIMARY KEY (june_10_11))
select june_10_11 from table_25286976_2 where march_27_29 = "129"
What team was Bodine in when he had an average finish of 8.3?
create table table_2387790_2 (team_s_ varchar, avg_finish varchar, PRIMARY KEY (team_s_))
select team_s_ from table_2387790_2 where avg_finish = "8.3"
What number parliament held it's election in 1997?
create table table_1889233_2 (parliament varchar, general_election_contested varchar, PRIMARY KEY (parliament))
select parliament from table_1889233_2 where general_election_contested = 1997
Name the dar for cinese
create table table_15887683_8 (dar varchar, language varchar, PRIMARY KEY (dar))
select dar from table_15887683_8 where language = "cinese"
Find the names of the artists who are from UK and have produced English songs.
create table artist (artist_name varchar, country varchar, languages varchar, PRIMARY KEY (artist_name)); create table song (artist_name varchar, country varchar, languages varchar, PRIMARY KEY (artist_name))
select artist_name from artist where country = "uk" intersect select artist_name from song where languages = "english"
Who won the mens doubles the year Alison Humby won the womens singles?
create table table_12163387_1 (mens_doubles varchar, womens_singles varchar, PRIMARY KEY (mens_doubles))
select mens_doubles from table_12163387_1 where womens_singles = "alison humby"
What is the report for the race i sunday mirror trophy?
create table table_1140099_6 (report varchar, race_name varchar, PRIMARY KEY (report))
select report from table_1140099_6 where race_name = "i sunday mirror trophy"
Find the ids of orders which are shipped after 2000-01-01.
create table shipments (order_id varchar, shipment_date integer, PRIMARY KEY (order_id))
select order_id from shipments where shipment_date > "2000-01-01"
what amount of stations have station code is awy?
create table table_14688744_2 (station varchar, station_code varchar, PRIMARY KEY (station))
select count(station) from table_14688744_2 where station_code = "awy"
What was the category of the project name Mighty No. 9?
create table table_27155990_1 (category varchar, project_name varchar, PRIMARY KEY (category))
select category from table_27155990_1 where project_name = "mighty no. 9"
What is the HT value of threw Athlon x2 5200b model?
create table table_13869651_3 (ht varchar, model_number varchar, PRIMARY KEY (ht))
select ht from table_13869651_3 where model_number = "athlon x2 5200b"
display the country ID and number of cities for each country.
create table locations (country_id varchar, PRIMARY KEY (country_id))
select country_id, count(*) from locations group by country_id
Find the list of attribute data types possessed by more than 3 attribute definitions.
create table attribute_definitions (attribute_data_type varchar, PRIMARY KEY (attribute_data_type))
select attribute_data_type from attribute_definitions group by attribute_data_type having count(*) > 3
In the country United Arab Emirates, what is the number of imports?
create table table_26160007_1 (imports varchar, country varchar, PRIMARY KEY (imports))
select imports from table_26160007_1 where country = "united arab emirates"
How many times was Sanger 3730xl $2400 usd?
create table table_127511_1 (ion_torrent_pgm varchar, sanger_3730xl varchar, PRIMARY KEY (ion_torrent_pgm))
select count(ion_torrent_pgm) from table_127511_1 where sanger_3730xl = "$2400 usd"
What was the rating for Brisbane the week that Adelaide had 94000?
create table table_24291077_8 (brisbane integer, adelaide varchar, PRIMARY KEY (brisbane))
select min(brisbane) from table_24291077_8 where adelaide = 94000
Please show different types of artworks with the corresponding number of artworks of each type.
create table artwork (type varchar, PRIMARY KEY (type))
select type, count(*) from artwork group by type
what is the united fc where pifa colaba is sporting options?
create table table_28759261_5 (united_fc varchar, pifa_colaba_fc_u_17 varchar, PRIMARY KEY (united_fc))
select united_fc from table_28759261_5 where pifa_colaba_fc_u_17 = "sporting options"
What was the depravitiy of earnings where international sales was 2470?
create table table_13618358_1 (income_poverty_f varchar, exports__usd_mn__2011 varchar, PRIMARY KEY (income_poverty_f))
select income_poverty_f from table_13618358_1 where exports__usd_mn__2011 = 2470
Who directed the episodes that aired December 15, 1956?
create table table_25800134_1 (director varchar, airdate varchar, PRIMARY KEY (director))
select director from table_25800134_1 where airdate = "december 15, 1956"
How many districts are respresented by Alex McMillan?
create table table_1341522_36 (status varchar, incumbent varchar, PRIMARY KEY (status))
select count(status) from table_1341522_36 where incumbent = "alex mcmillan"
Show ids for all documents with budget types described as 'Government'.
create table documents_with_expenses (document_id varchar, budget_type_code varchar, PRIMARY KEY (document_id)); create table ref_budget_codes (budget_type_code varchar, budget_type_description varchar, PRIMARY KEY (budget_type_code))
select t1.document_id from documents_with_expenses as t1 join ref_budget_codes as t2 on t1.budget_type_code = t2.budget_type_code where t2.budget_type_description = "government"
What party did Don Fuqua belong to?
create table table_1341865_11 (party varchar, incumbent varchar, PRIMARY KEY (party))
select party from table_1341865_11 where incumbent = "don fuqua"
Name the most ceiling temperature for very extra high
create table table_1538516_1 (maximum_ceiling_temperature varchar, temperature_classification varchar, PRIMARY KEY (maximum_ceiling_temperature))
select maximum_ceiling_temperature from table_1538516_1 where temperature_classification = "very extra high"
how many revised hepburn when english is roman characters
create table table_26263954_1 (revised_hepburn varchar, english varchar, PRIMARY KEY (revised_hepburn))
select revised_hepburn from table_26263954_1 where english = "roman characters"
What is the highest number of fai space flights when max mach is 5.65?
create table table_221315_3 (fai_space_flights integer, max_mach varchar, PRIMARY KEY (fai_space_flights))
select max(fai_space_flights) from table_221315_3 where max_mach = "5.65"
For delegate is gaines, tawanna p. tawanna gaines, please specify all the party.
create table table_27050336_7 (party varchar, delegate varchar, PRIMARY KEY (party))
select party from table_27050336_7 where delegate = "gaines, tawanna p. tawanna gaines"
What days are vacant that were replaced by john brown?
create table table_11207040_6 (date_of_vacancy varchar, replaced_by varchar, PRIMARY KEY (date_of_vacancy))
select date_of_vacancy from table_11207040_6 where replaced_by = "john brown"
What award did team 679 win?
create table table_15584199_2 (award_name varchar, team_number varchar, PRIMARY KEY (award_name))
select award_name from table_15584199_2 where team_number = 679
Name the total number of last 5 meetings for texas tech
create table table_16201038_3 (last_5_meetings varchar, missouri_vs varchar, PRIMARY KEY (last_5_meetings))
select count(last_5_meetings) from table_16201038_3 where missouri_vs = "texas tech"
Find the name of the products that have the color description "red" and have the characteristic name "fast".
create table characteristics (characteristic_id varchar, characteristic_name varchar, PRIMARY KEY (characteristic_id)); create table ref_colors (color_code varchar, color_description varchar, PRIMARY KEY (color_code)); create table products (product_id varchar, color_code varchar, PRIMARY KEY (product_id)); create table product_characteristics (product_id varchar, characteristic_id varchar, PRIMARY KEY (product_id))
select product_name from products as t1 join product_characteristics as t2 on t1.product_id = t2.product_id join characteristics as t3 on t2.characteristic_id = t3.characteristic_id join ref_colors as t4 on t1.color_code = t4.color_code where t4.color_description = "red" and t3.characteristic_name = "fast"
What was the mens 45 when mens 40 was Sunwest Razorbacks def Sydney Mets?
create table table_16724844_1 (mens_45 varchar, mens_40 varchar, PRIMARY KEY (mens_45))
select mens_45 from table_16724844_1 where mens_40 = "sunwest razorbacks def sydney mets"
Name the author for 6y/ae
create table table_1620397_2 (author varchar, series_sorted varchar, PRIMARY KEY (author))
select author from table_1620397_2 where series_sorted = "6y/ae"
What party did robert p. letcher represent?
create table table_2668264_8 (party varchar, incumbent varchar, PRIMARY KEY (party))
select party from table_2668264_8 where incumbent = "robert p. letcher"
What is the WIAA classification of Oakland Alternative High School?
create table table_1414702_3 (wiaa_classification varchar, high_school varchar, PRIMARY KEY (wiaa_classification))
select wiaa_classification from table_1414702_3 where high_school = "oakland alternative"
How many players were from high point, nc?
create table table_11677100_15 (mlb_draft varchar, hometown varchar, PRIMARY KEY (mlb_draft))
select count(mlb_draft) from table_11677100_15 where hometown = "high point, nc"
Who directed the episode that had 5.92 million viewers?
create table table_25341765_1 (directed_by varchar, us_viewers__million_ varchar, PRIMARY KEY (directed_by))
select directed_by from table_25341765_1 where us_viewers__million_ = "5.92"