question
stringlengths
14
216
context
stringlengths
45
458
answer
stringlengths
18
463
If the salary range is 4,000-9,000, what is the Indians %?
create table table_27257896_2 (indians varchar, salary_range varchar, PRIMARY KEY (indians))
select indians from table_27257896_2 where salary_range = "4,000-9,000"
What are the names of the cameras that have taken picture of the most mountains?
create table camera_lens (name varchar, id varchar, PRIMARY KEY (name)); create table photos (camera_lens_id varchar, PRIMARY KEY (camera_lens_id))
select t2.name from photos as t1 join camera_lens as t2 on t1.camera_lens_id = t2.id group by t2.id order by count(*) desc limit 1
what parliament's name is lina loh woon lee?
create table table_1889233_2 (parliament varchar, name varchar, PRIMARY KEY (parliament))
select parliament from table_1889233_2 where name = "lina loh woon lee"
How many users are there?
create table user_profiles (id varchar, PRIMARY KEY (id))
select count(*) from user_profiles
how many kana spelling when english is mount fuji
create table table_26263954_1 (kana_spelling varchar, english varchar, PRIMARY KEY (kana_spelling))
select kana_spelling from table_26263954_1 where english = "mount fuji"
Name the 2 car sets for 622
create table table_19255192_2 (total_vehicles varchar, PRIMARY KEY (total_vehicles))
select 2 as _car_sets from table_19255192_2 where total_vehicles = 622
What shareholders have 0 A shares?
create table table_206359_1 (shareholder_name varchar, a_shares varchar, PRIMARY KEY (shareholder_name))
select shareholder_name from table_206359_1 where a_shares = 0
What were the starting odds for the opening odds of 2-1?
create table table_22517564_3 (starting_odds varchar, opening_odds varchar, PRIMARY KEY (starting_odds))
select starting_odds from table_22517564_3 where opening_odds = "2-1"
What municipality has a 130.6 pupulation density?
create table table_255829_1 (municipality varchar, pop_density__per_km_2__ varchar, PRIMARY KEY (municipality))
select municipality from table_255829_1 where pop_density__per_km_2__ = "130.6"
On what network was the Kentucky game broadcast?
create table table_26842217_16 (broadcast varchar, home_team varchar, PRIMARY KEY (broadcast))
select broadcast from table_26842217_16 where home_team = "kentucky"
What the is the state that the boat is from with LOA of 19.50?
create table table_25595209_1 (state_country varchar, loa__metres_ varchar, PRIMARY KEY (state_country))
select state_country from table_25595209_1 where loa__metres_ = "19.50"
How many first tournaments are associated with bowling?
create table table_2849652_2 (sport varchar, PRIMARY KEY (sport))
select count(1 as st_tournament) from table_2849652_2 where sport = "bowling"
What type is σαεπ?
create table table_2538117_5 (type varchar, letters varchar, PRIMARY KEY (type))
select type from table_2538117_5 where letters = "σαεπ"
Name the english name for 崖城镇
create table table_1638437_2 (english_name varchar, simplified varchar, PRIMARY KEY (english_name))
select english_name from table_1638437_2 where simplified = "崖城镇"
Who constructed the I Italian Republic Grand Prix?
create table table_1140088_6 (constructor varchar, race_name varchar, PRIMARY KEY (constructor))
select constructor from table_1140088_6 where race_name = "i italian republic grand prix"
When McCain% was 64.8%, what is the Others#?
create table table_20750731_1 (others_number varchar, mccain_percentage varchar, PRIMARY KEY (others_number))
select others_number from table_20750731_1 where mccain_percentage = "64.8%"
Who are the foreign players representing Ekaterinburg?
create table table_14015965_1 (foreign_players__max_2_ varchar, town varchar, PRIMARY KEY (foreign_players__max_2_))
select foreign_players__max_2_ from table_14015965_1 where town = "ekaterinburg"
What comparable country has a national share of 1.08?
create table table_171666_1 (comparable_country varchar, national_share___percentage_ varchar, PRIMARY KEY (comparable_country))
select comparable_country from table_171666_1 where national_share___percentage_ = "1.08"
What is the percent for when against prohibition is 2978?
create table table_120778_1 (percent_for varchar, against_prohibition varchar, PRIMARY KEY (percent_for))
select percent_for from table_120778_1 where against_prohibition = 2978
Who directed the film Nuits d'arabie?
create table table_18994724_1 (director_s_ varchar, film_title_used_in_nomination varchar, PRIMARY KEY (director_s_))
select director_s_ from table_18994724_1 where film_title_used_in_nomination = "nuits d'arabie"
How many times were the winnings $3,816,362?
create table table_1507423_4 (avg_finish varchar, winnings varchar, PRIMARY KEY (avg_finish))
select count(avg_finish) from table_1507423_4 where winnings = "$3,816,362"
what is the place where the location is 2-1
create table table_26173058_2 (amman varchar, qadisiya varchar, PRIMARY KEY (amman))
select amman from table_26173058_2 where qadisiya = "2-1"
What are the arriving date and the departing date of all the dogs?
create table dogs (date_arrived varchar, date_departed varchar, PRIMARY KEY (date_arrived))
select date_arrived, date_departed from dogs
Show the document name and the document date for all documents on project with details 'Graph Database project'.
create table documents (project_id varchar, PRIMARY KEY (project_id)); create table projects (project_id varchar, project_details varchar, PRIMARY KEY (project_id))
select document_name, document_date from documents as t1 join projects as t2 on t1.project_id = t2.project_id where t2.project_details = 'graph database project'
For the name romanised name is lo yik-kee, victor what is the total number foreign nationality that is listed?
create table table_17964087_2 (foreign_nationality varchar, romanised_name varchar, PRIMARY KEY (foreign_nationality))
select count(foreign_nationality) from table_17964087_2 where romanised_name = "lo yik-kee, victor"
Name the gdp world rank for asian rank being 20
create table table_2249029_1 (gdp_world_rank varchar, asian_rank varchar, PRIMARY KEY (gdp_world_rank))
select gdp_world_rank from table_2249029_1 where asian_rank = 20
When 21' 18.87 106.209mph is Tuesday August 24th what is Monday August 23rd?
create table table_26986076_5 (mon_23_aug varchar, tues_24_aug varchar, PRIMARY KEY (mon_23_aug))
select mon_23_aug from table_26986076_5 where tues_24_aug = "21' 18.87 106.209mph"
what is the telugu name తెలుగు of kannada name ಕನ್ನಡ utthara ಉತ್ತರ
create table table_201400_2 (telugu_name_తెలుగు varchar, kannada_name_ಕನ್ನಡ varchar, PRIMARY KEY (telugu_name_తెలుగు))
select telugu_name_తెలుగు from table_201400_2 where kannada_name_ಕನ್ನಡ = "utthara ಉತ್ತರ"
Which place in the order is the Pinyin transcription She Jiang?
create table table_1805919_1 (standard_order integer, transcription__based_on_pinyin_ varchar, PRIMARY KEY (standard_order))
select min(standard_order) from table_1805919_1 where transcription__based_on_pinyin_ = "she jiang"
If the Indians are 8.2%, what is the salary range?
create table table_27257896_2 (salary_range varchar, indians varchar, PRIMARY KEY (salary_range))
select salary_range from table_27257896_2 where indians = "8.2%"
What was the name of the race in Bordeaux?
create table table_1140113_5 (race_name varchar, circuit varchar, PRIMARY KEY (race_name))
select race_name from table_1140113_5 where circuit = "bordeaux"
Show the ids of the employees who don't authorize destruction for any document.
create table documents_to_be_destroyed (employee_id varchar, destruction_authorised_by_employee_id varchar, PRIMARY KEY (employee_id)); create table employees (employee_id varchar, destruction_authorised_by_employee_id varchar, PRIMARY KEY (employee_id))
select employee_id from employees except select destruction_authorised_by_employee_id from documents_to_be_destroyed
What are Unit 2's dates of commissioning?
create table table_28672269_1 (date_of_commissioning varchar, unit_number varchar, PRIMARY KEY (date_of_commissioning))
select count(date_of_commissioning) from table_28672269_1 where unit_number = 2
What female fenced with a saber on the team that had an average fencer rank of 3.5?
create table table_28372291_1 (female_saber varchar, average_fencers_rank varchar, PRIMARY KEY (female_saber))
select female_saber from table_28372291_1 where average_fencers_rank = "3.5"
When there are 12.70 million u.s. viewers who is the director?
create table table_17467147_1 (directed_by varchar, us_viewers__million_ varchar, PRIMARY KEY (directed_by))
select directed_by from table_17467147_1 where us_viewers__million_ = "12.70"
what will the population of Asia be when Latin America/Caribbean is 783 (7.5%)?
create table table_19017269_5 (asia varchar, latin_america_caribbean varchar, PRIMARY KEY (asia))
select asia from table_19017269_5 where latin_america_caribbean = "783 (7.5%)"
How many addresses have zip code 197?
create table addresses (zip_postcode varchar, PRIMARY KEY (zip_postcode))
select count(*) from addresses where zip_postcode = "197"
what is the division north when division south was kožuf and division southwest was ilinden velmej
create table table_17881033_1 (division_north varchar, division_south varchar, division_southwest varchar, PRIMARY KEY (division_north))
select division_north from table_17881033_1 where division_south = "kožuf" and division_southwest = "ilinden velmej"
What is the name of the activity that has the most faculty members involved in?
create table faculty_participates_in (actid varchar, PRIMARY KEY (actid)); create table activity (activity_name varchar, actid varchar, PRIMARY KEY (activity_name))
select t1.activity_name from activity as t1 join faculty_participates_in as t2 on t1.actid = t2.actid group by t1.actid order by count(*) desc limit 1
Name the number of seats to be won being % of popular vote at 6.88%
create table table_19283982_4 (_number_of_seats_to_be_won varchar, _percentage_of_popular_vote varchar, PRIMARY KEY (_number_of_seats_to_be_won))
select _number_of_seats_to_be_won from table_19283982_4 where _percentage_of_popular_vote = "6.88%"
What is the lowest 09-10 i/o best?
create table table_24990183_5 (id varchar, PRIMARY KEY (id))
select min(09 as _10_i_o_best) from table_24990183_5
Find the number of vocal types used in song "Le Pop"
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 = "le pop"
How many years did he have an average start of 20.7?
create table table_2169966_2 (avg_finish varchar, avg_start varchar, PRIMARY KEY (avg_finish))
select count(avg_finish) from table_2169966_2 where avg_start = "20.7"
What is the percent change from 08/09 for belfast international?
create table table_13836704_6 (_percentage_change_2008_2009 varchar, airport varchar, PRIMARY KEY (_percentage_change_2008_2009))
select _percentage_change_2008_2009 from table_13836704_6 where airport = "belfast international"
Name the record for cotton bowl classic
create table table_2517159_1 (record varchar, name_of_bowl varchar, PRIMARY KEY (record))
select record from table_2517159_1 where name_of_bowl = "cotton bowl classic"
Where were the auditions held in the episode that aired on january 27, 2011?
create table table_27455867_1 (audition_city varchar, episode_air_date varchar, PRIMARY KEY (audition_city))
select audition_city from table_27455867_1 where episode_air_date = "january 27, 2011"
How many types of work is хромая судьба?
create table table_207795_1 (type_of_work varchar, russian_title varchar, PRIMARY KEY (type_of_work))
select count(type_of_work) from table_207795_1 where russian_title = "хромая судьба"
What town is Brighton High School in?
create table table_11677100_4 (hometown varchar, school varchar, PRIMARY KEY (hometown))
select hometown from table_11677100_4 where school = "brighton high school"
Name the total number of population 2000 census for mesquita
create table table_14986292_1 (population_2000_census varchar, administrative_division varchar, PRIMARY KEY (population_2000_census))
select count(population_2000_census) from table_14986292_1 where administrative_division = "mesquita"
Who directed # (season #) is 1 ( 2 )?
create table table_28210383_1 (directed_by varchar, _number__season__number_ varchar, PRIMARY KEY (directed_by))
select directed_by from table_28210383_1 where _number__season__number_ = "1 ( 2 )"
What are the titles of segment b when segment c is standby generators (part 1)?
create table table_15187735_21 (segment_b varchar, segment_c varchar, PRIMARY KEY (segment_b))
select segment_b from table_15187735_21 where segment_c = "standby generators (part 1)"
Who did the Raptors play when their record was 45-36?
create table table_13619135_8 (team varchar, record varchar, PRIMARY KEY (team))
select team from table_13619135_8 where record = "45-36"
How many nominees had a net voice of 15.17%
create table table_15162479_8 (nominee varchar, net_vote varchar, PRIMARY KEY (nominee))
select count(nominee) from table_15162479_8 where net_vote = "15.17%"
What is the greatest number of bills sponsored in any year?
create table table_18852984_2 (all_bills_sponsored integer, PRIMARY KEY (all_bills_sponsored))
select max(all_bills_sponsored) from table_18852984_2
Who directed the episode that had 0.54 million U.S. viewers?
create table table_26914076_4 (directed_by varchar, us_viewers__millions_ varchar, PRIMARY KEY (directed_by))
select directed_by from table_26914076_4 where us_viewers__millions_ = "0.54"
What is the average, minimum, maximum, and total transaction amount?
create table financial_transactions (transaction_amount integer, PRIMARY KEY (transaction_amount))
select avg(transaction_amount), min(transaction_amount), max(transaction_amount), sum(transaction_amount) from financial_transactions
What's the zodiac sing for the month whose transcription is Karakadakhom?
create table table_20354_5 (zodiac_sign varchar, transcription varchar, PRIMARY KEY (zodiac_sign))
select zodiac_sign from table_20354_5 where transcription = "karakadakhom"
what is the name of the race where newman/haas racing is the winning team and rick mears is at the pole position?
create table table_10707142_2 (race_name varchar, winning_team varchar, pole_position varchar, PRIMARY KEY (race_name))
select race_name from table_10707142_2 where winning_team = "newman/haas racing" and pole_position = "rick mears"
What is the number reference for LIE?
create table table_222771_1 (numeric_code varchar, alpha_3_code varchar, PRIMARY KEY (numeric_code))
select numeric_code from table_222771_1 where alpha_3_code = "lie"
Name the publisher for resident evil 4
create table table_14325653_2 (publisher_s_ varchar, video_game varchar, PRIMARY KEY (publisher_s_))
select publisher_s_ from table_14325653_2 where video_game = "resident evil 4"
What is the estimated end date for the 2001-037a international designated satellite?
create table table_18161217_2 (estimated_end_date varchar, _clarification_needed_ varchar, cospar_id varchar, PRIMARY KEY (estimated_end_date))
select estimated_end_date[_clarification_needed_] from table_18161217_2 where cospar_id = "2001-037a"
Who was the winning team on the circuit Zolder?
create table table_18095719_2 (winning_team varchar, circuit varchar, PRIMARY KEY (winning_team))
select winning_team from table_18095719_2 where circuit = "zolder"
How low was the income where services is 72.5?
create table table_13618358_1 (income_poverty_f varchar, services_ varchar, _cons_truction_b varchar, PRIMARY KEY (income_poverty_f))
select income_poverty_f from table_13618358_1 where services_ & _cons_truction_b = "72.5"
List the branding name for channel tv-62.
create table table_2523809_1 (branding varchar, channel varchar, PRIMARY KEY (branding))
select branding from table_2523809_1 where channel = "tv-62"
What is the institution that was located is circleville, ohio?
create table table_24195232_1 (institution varchar, location varchar, PRIMARY KEY (institution))
select institution from table_24195232_1 where location = "circleville, ohio"
For races with an average speed of 113.835 mph, what are the winning race times?
create table table_17801022_1 (race_time varchar, average_speed__mph_ varchar, PRIMARY KEY (race_time))
select race_time from table_17801022_1 where average_speed__mph_ = "113.835"
Margot Kidder had what director?
create table table_11642945_1 (director varchar, celebrity varchar, PRIMARY KEY (director))
select director from table_11642945_1 where celebrity = "margot kidder"
How many season 3 appearances by Morgan the Dog?
create table table_26240046_1 (season_3 integer, played_by varchar, PRIMARY KEY (season_3))
select max(season_3) from table_26240046_1 where played_by = "morgan the dog"
List all statement ids and statement details.
create table statements (statement_id varchar, statement_details varchar, PRIMARY KEY (statement_id))
select statement_id, statement_details from statements
What was the away team's score at the venue football park?
create table table_16387953_1 (away_team varchar, ground varchar, PRIMARY KEY (away_team))
select away_team as score from table_16387953_1 where ground = "football park"
Find the names of the clubs that have at least a member from the city with city code "HOU".
create table member_of_club (clubid varchar, stuid varchar, PRIMARY KEY (clubid)); create table club (clubname varchar, clubid varchar, PRIMARY KEY (clubname)); create table student (stuid varchar, city_code varchar, PRIMARY KEY (stuid))
select distinct t1.clubname from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t3.city_code = "hou"
Who was the director for episodes that were written be Matthew Lau?
create table table_25740548_2 (directed_by varchar, written_by varchar, PRIMARY KEY (directed_by))
select directed_by from table_25740548_2 where written_by = "matthew lau"
who is the the womens doubles with mens doubles being leopold bauer alfred kohlhauser
create table table_15002265_1 (womens_doubles varchar, mens_doubles varchar, PRIMARY KEY (womens_doubles))
select womens_doubles from table_15002265_1 where mens_doubles = "leopold bauer alfred kohlhauser"
What is the category and typical buying price of the product with name "cumin"?
create table products (product_category_code varchar, typical_buying_price varchar, product_name varchar, PRIMARY KEY (product_category_code))
select product_category_code, typical_buying_price from products where product_name = "cumin"
Show the role description and the id of the project staff involved in most number of project outcomes?
create table project_outcomes (project_id varchar, PRIMARY KEY (project_id)); create table project_staff (staff_id varchar, role_code varchar, project_id varchar, PRIMARY KEY (staff_id)); create table staff_roles (role_description varchar, role_code varchar, PRIMARY KEY (role_description))
select t1.role_description, t2.staff_id from staff_roles as t1 join project_staff as t2 on t1.role_code = t2.role_code join project_outcomes as t3 on t2.project_id = t3.project_id group by t2.staff_id order by count(*) desc limit 1
What are the first names and last names of the students that minor in the department with DNO 140.
create table student (fname varchar, lname varchar, stuid varchar, PRIMARY KEY (fname)); create table minor_in (stuid varchar, dno varchar, PRIMARY KEY (stuid))
select t2.fname, t2.lname from minor_in as t1 join student as t2 on t1.stuid = t2.stuid where t1.dno = 140
What is the record where aaron brooks (6) is high assists?
create table table_23281862_9 (record varchar, high_assists varchar, PRIMARY KEY (record))
select record from table_23281862_9 where high_assists = "aaron brooks (6)"
What is the specification where senior high school is 25mm?
create table table_13555999_1 (specification varchar, senior_high_school__15_18_yrs_ varchar, PRIMARY KEY (specification))
select specification from table_13555999_1 where senior_high_school__15_18_yrs_ = "25mm"
What Home city has the home ground Klepp stadion?
create table table_2522473_1 (home_city varchar, home_ground varchar, PRIMARY KEY (home_city))
select home_city from table_2522473_1 where home_ground = "klepp stadion"
what's the party with opponent being mike oxley (r) unopposed
create table table_1341522_38 (party varchar, opponent varchar, PRIMARY KEY (party))
select party from table_1341522_38 where opponent = "mike oxley (r) unopposed"
When rudolph kleberg (d) is the successor what is the date of successors taking office?
create table table_2417445_4 (date_of_successors_taking_office varchar, successor varchar, PRIMARY KEY (date_of_successors_taking_office))
select date_of_successors_taking_office from table_2417445_4 where successor = "rudolph kleberg (d)"
What was the record after the game against Washington?
create table table_28768469_9 (record varchar, team varchar, PRIMARY KEY (record))
select record from table_28768469_9 where team = "washington"
How many managers for club in Turku where kitmaker is Puma?
create table table_25129482_1 (manager varchar, kitmaker varchar, location varchar, PRIMARY KEY (manager))
select count(manager) from table_25129482_1 where kitmaker = "puma" and location = "turku"
Name the listed owners for brevak racing
create table table_2187178_1 (listed_owner_s_ varchar, team varchar, PRIMARY KEY (listed_owner_s_))
select listed_owner_s_ from table_2187178_1 where team = "brevak racing"
What is every BSE code for a free float of 0.2726?
create table table_20667854_1 (bse_code varchar, free_float varchar, PRIMARY KEY (bse_code))
select bse_code from table_20667854_1 where free_float = "0.2726"
what is the location where the record is 1-0
create table table_26173058_2 (ahli varchar, ramtha varchar, PRIMARY KEY (ahli))
select ahli from table_26173058_2 where ramtha = "1-0"
Show the carriers of devices in stock at more than one shop.
create table stock (device_id varchar, PRIMARY KEY (device_id)); create table device (carrier varchar, device_id varchar, PRIMARY KEY (carrier))
select t2.carrier from stock as t1 join device as t2 on t1.device_id = t2.device_id group by t1.device_id having count(*) > 1
Find all students taught by MARROTTE KIRK. Output first and last names of students.
create table list (firstname varchar, lastname varchar, classroom varchar, PRIMARY KEY (firstname)); create table teachers (classroom varchar, firstname varchar, lastname varchar, PRIMARY KEY (classroom))
select t1.firstname, t1.lastname from list as t1 join teachers as t2 on t1.classroom = t2.classroom where t2.firstname = "marrotte" and t2.lastname = "kirk"
Name the race 2 for james winslow
create table table_15530244_5 (race_2 varchar, driver varchar, PRIMARY KEY (race_2))
select race_2 from table_15530244_5 where driver = "james winslow"
what is the camera used when the wavelength is 814nm (i-band)?
create table table_2583036_1 (camera varchar, wavelength varchar, PRIMARY KEY (camera))
select camera from table_2583036_1 where wavelength = "814nm (i-band)"
How many counties have a place name of Macedonia?
create table table_249512_2 (a_ varchar, county_ies__ varchar, place_name varchar, PRIMARY KEY (a_))
select count(county_ies__)[a_] from table_249512_2 where place_name = "macedonia"
In the episode where segment a is microphones, what is segment d?
create table table_15187735_11 (segment_d varchar, segment_a varchar, PRIMARY KEY (segment_d))
select segment_d from table_15187735_11 where segment_a = "microphones"
What's the shut down state of the unit that's been in commercial operation since 01.02.1984?
create table table_12983929_1 (shut_down varchar, commercial_operation varchar, PRIMARY KEY (shut_down))
select shut_down from table_12983929_1 where commercial_operation = "01.02.1984"
How many countries have content of arte?
create table table_15887683_16 (country varchar, content varchar, PRIMARY KEY (country))
select count(country) from table_15887683_16 where content = "arte"
What is the upstream speed of the network that costs 39 tl?
create table table_17304621_14 (upstream varchar, price_tl varchar, PRIMARY KEY (upstream))
select upstream from table_17304621_14 where price_tl = "39 tl"
What is the strongs # for the hebrew word יִרְמְיָה?
create table table_1242447_2 (strongs__number varchar, hebrew_word varchar, PRIMARY KEY (strongs__number))
select strongs__number from table_1242447_2 where hebrew_word = "יִרְמְיָה"
When zachary sanders is the performer how many people is the music by?
create table table_191105_2 (music_by varchar, performed_by varchar, PRIMARY KEY (music_by))
select count(music_by) from table_191105_2 where performed_by = "zachary sanders"
How many episode numbers had US viewership of 4.26 million?
create table table_27905664_1 (count varchar, us_viewers__million_ varchar, PRIMARY KEY (count))
select count as № from table_27905664_1 where us_viewers__million_ = "4.26"
Who was the challenge winner in the episode that originally aired on January 28, 2009?
create table table_24798489_1 (challenge_winner varchar, original_airdate varchar, PRIMARY KEY (challenge_winner))
select challenge_winner from table_24798489_1 where original_airdate = "january 28, 2009"
What is the bullet weight when the max pressure is 12,000 cup?
create table table_173103_1 (bullet_weight varchar, max_pressure varchar, PRIMARY KEY (bullet_weight))
select bullet_weight from table_173103_1 where max_pressure = "12,000 cup"