question
stringlengths 14
216
| context
stringlengths 45
458
| answer
stringlengths 18
463
|
---|---|---|
What are the id and name of the museum visited most times? | create table museum (name varchar, museum_id varchar, PRIMARY KEY (name)); create table visit (museum_id varchar, PRIMARY KEY (museum_id)) | select t2.museum_id, t1.name from museum as t1 join visit as t2 on t1.museum_id = t2.museum_id group by t2.museum_id order by count(*) desc limit 1 |
Find the first name and gender of student who have more than one pet. | create table student (fname varchar, sex varchar, stuid varchar, PRIMARY KEY (fname)); create table has_pet (stuid varchar, PRIMARY KEY (stuid)) | select t1.fname, t1.sex from student as t1 join has_pet as t2 on t1.stuid = t2.stuid group by t1.stuid having count(*) > 1 |
Find the id of users who are followed by Mary and Susan. | create table follows (f1 varchar, f2 varchar, PRIMARY KEY (f1)); create table user_profiles (uid varchar, name varchar, PRIMARY KEY (uid)) | select t2.f1 from user_profiles as t1 join follows as t2 on t1.uid = t2.f2 where t1.name = "mary" intersect select t2.f1 from user_profiles as t1 join follows as t2 on t1.uid = t2.f2 where t1.name = "susan" |
Which document type is described with the prefix 'Initial'? | create table document_types (document_type_code varchar, document_description varchar, PRIMARY KEY (document_type_code)) | select document_type_code from document_types where document_description like 'initial%' |
Find the names of stadiums which have never had any event. | create table stadium (name_ varchar, id varchar, stadium_id varchar, PRIMARY KEY (name_)); create table events_ (name_ varchar, id varchar, stadium_id varchar, PRIMARY KEY (name_)) | select name_ from stadium where not id in (select stadium_id from events_) |
Name the explanation for alben w. barkley | create table table_2026548_1 (explanation varchar, vice_president varchar, PRIMARY KEY (explanation)) | select explanation from table_2026548_1 where vice_president = "alben w. barkley" |
If the parallel bars is 16.150, who is the gymnast? | create table table_18662026_10 (gymnast varchar, parallel_bars varchar, PRIMARY KEY (gymnast)) | select gymnast from table_18662026_10 where parallel_bars = "16.150" |
how many times is the cyrillic name сибач? | create table table_2562572_52 (dominant_religion__2002_ varchar, cyrillic_name varchar, PRIMARY KEY (dominant_religion__2002_)) | select count(dominant_religion__2002_) from table_2562572_52 where cyrillic_name = "сибач" |
What was the local investment (in $) in the projects of the department with $912,185 BID/PRONAR investment? | create table table_17118006_2 (local_investment__us$_ varchar, bid_pronar_investment__us$_ varchar, PRIMARY KEY (local_investment__us$_)) | select local_investment__us$_ from table_17118006_2 where bid_pronar_investment__us$_ = "912,185" |
What was the elapsed time for the championship that had $9,377.42 in prize money? | create table table_22050544_4 (elapsed_time varchar, prize varchar, PRIMARY KEY (elapsed_time)) | select elapsed_time from table_22050544_4 where prize = "$9,377.42" |
What is the incident type description for the incident type with code "VIOLENCE"? | create table ref_incident_type (incident_type_description varchar, incident_type_code varchar, PRIMARY KEY (incident_type_description)) | select incident_type_description from ref_incident_type where incident_type_code = "violence" |
How many inches is the barrel length when the rear sight is weaver and the barrel profile is A2? | create table table_12834315_8 (barrel_length varchar, rear_sight varchar, barrel_profile varchar, PRIMARY KEY (barrel_length)) | select barrel_length from table_12834315_8 where rear_sight = "weaver" and barrel_profile = "a2" |
How many towns exist on the government area with a surface of 110 square kilometers? | create table table_23685890_2 (towns integer, land_area__km²_ varchar, PRIMARY KEY (towns)) | select min(towns) from table_23685890_2 where land_area__km²_ = "110" |
When Ryan Anderson won the mountains classification, and Michael Rogers won the general classification, who won the sprint classification? | create table table_25055040_22 (sprint_classification varchar, mountains_classification varchar, general_classification varchar, PRIMARY KEY (sprint_classification)) | select sprint_classification from table_25055040_22 where mountains_classification = "ryan anderson" and general_classification = "michael rogers" |
Name the total number of qualifiying for race 3 being 3 | create table table_15530244_5 (qualifying varchar, race_3 varchar, PRIMARY KEY (qualifying)) | select count(qualifying) from table_15530244_5 where race_3 = "3" |
Name the b winning car for #88 team mitsubishi 88 mitsubishi starion | create table table_27965906_2 (b_winning_car varchar, a_winning_car varchar, PRIMARY KEY (b_winning_car)) | select b_winning_car from table_27965906_2 where a_winning_car = "#88 team mitsubishi 88 mitsubishi starion" |
How many births per year are there for the period with 998 000 deaths per year? | create table table_18950570_2 (live_births_per_year varchar, deaths_per_year varchar, PRIMARY KEY (live_births_per_year)) | select live_births_per_year from table_18950570_2 where deaths_per_year = "998 000" |
What are the dates of the assessment notes? | create table assessment_notes (date_of_notes varchar, PRIMARY KEY (date_of_notes)) | select date_of_notes from assessment_notes |
Find the ids of orders whose status is 'Success'. | create table actual_orders (actual_order_id varchar, order_status_code varchar, PRIMARY KEY (actual_order_id)) | select actual_order_id from actual_orders where order_status_code = 'success' |
When 2 is the ka-band how many properties are there? | create table table_186468_1 (property varchar, ka_band varchar, PRIMARY KEY (property)) | select count(property) from table_186468_1 where ka_band = "2" |
Name the name of the state | create table table_15463188_7 (name varchar, school_club_team varchar, PRIMARY KEY (name)) | select name from table_15463188_7 where school_club_team = "state" |
How many different kinds of lens brands are there? | create table camera_lens (brand varchar, PRIMARY KEY (brand)) | select count(distinct brand) from camera_lens |
What is the flange width (mm) for cross section area (cm 2) 16.4? | create table table_2071644_1 (flange_width__mm_ varchar, cross_section_area__cm_2__ varchar, PRIMARY KEY (flange_width__mm_)) | select count(flange_width__mm_) from table_2071644_1 where cross_section_area__cm_2__ = "16.4" |
What party did the incumbent Joseph Pearson belong to? | create table table_2668367_14 (party varchar, incumbent varchar, PRIMARY KEY (party)) | select party from table_2668367_14 where incumbent = "joseph pearson" |
If the team is Rubio ñú, what is the 08 points? | create table table_22011138_7 (team varchar, PRIMARY KEY (team)) | select 08 as _pts from table_22011138_7 where team = "rubio ñú" |
What is the name of the road race held in Omsk, Russia? | create table table_26166836_3 (road_race varchar, location varchar, PRIMARY KEY (road_race)) | select road_race from table_26166836_3 where location = "omsk" |
What is the brand name for the antibody Brentuximab Vedotin? | create table table_1661124_1 (brand_name varchar, antibody varchar, PRIMARY KEY (brand_name)) | select brand_name from table_1661124_1 where antibody = "brentuximab vedotin" |
How many digital terrestrial channels are there for channel 4? | create table table_182410_10 (digital_terrestrial_channel varchar, channel varchar, PRIMARY KEY (digital_terrestrial_channel)) | select count(digital_terrestrial_channel) from table_182410_10 where channel = "channel 4" |
How many written by have wendey stanzler as the director? | create table table_22570439_1 (written_by varchar, directed_by varchar, PRIMARY KEY (written_by)) | select count(written_by) from table_22570439_1 where directed_by = "wendey stanzler" |
What was the percentage of others when the number for Bush was 3196? | create table table_1733513_1 (others_percentage varchar, bush_number varchar, PRIMARY KEY (others_percentage)) | select others_percentage from table_1733513_1 where bush_number = 3196 |
Name the number of naming for anomic aphasia | create table table_2088_1 (naming varchar, type_of_aphasia varchar, PRIMARY KEY (naming)) | select count(naming) from table_2088_1 where type_of_aphasia = "anomic aphasia" |
How many values of free float for the BSE code of 4EH? | create table table_20667854_1 (free_float varchar, bse_code varchar, PRIMARY KEY (free_float)) | select count(free_float) from table_20667854_1 where bse_code = "4eh" |
What is the date of the tournament at Hokkaidō with prize of ¥150000000? | create table table_26144632_1 (dates varchar, location varchar, prize_fund___¥__ varchar, PRIMARY KEY (dates)) | select dates from table_26144632_1 where location = "hokkaidō" and prize_fund___¥__ = 150000000 |
Find the names of swimmers who has a result of "win". | create table record (swimmer_id varchar, PRIMARY KEY (swimmer_id)); create table swimmer (name varchar, id varchar, PRIMARY KEY (name)) | select t1.name from swimmer as t1 join record as t2 on t1.id = t2.swimmer_id where result = 'win' |
How many people had the high points when a. webb (7) had the high assists? | create table table_27882867_9 (high_points varchar, high_assists varchar, PRIMARY KEY (high_points)) | select count(high_points) from table_27882867_9 where high_assists = "a. webb (7)" |
What is the economy when the strike rate is 54.0? | create table table_19662262_6 (economy_rate varchar, strike_rate varchar, PRIMARY KEY (economy_rate)) | select economy_rate from table_19662262_6 where strike_rate = "54.0" |
Which conference has the nickname Lions? | create table table_1973729_2 (current_conference varchar, nickname varchar, PRIMARY KEY (current_conference)) | select current_conference from table_1973729_2 where nickname = "lions" |
Who wrote the episode that was directed by Dennie Gordon | create table table_15938543_1 (written_by varchar, directed_by varchar, PRIMARY KEY (written_by)) | select written_by from table_15938543_1 where directed_by = "dennie gordon" |
When 169.182 is the average speed miles per hour what is the chassis? | create table table_1771753_3 (chassis varchar, average_speed__mph_ varchar, PRIMARY KEY (chassis)) | select chassis from table_1771753_3 where average_speed__mph_ = "169.182" |
Who was the winner of the race at Belmont? | create table table_1358608_4 (winner_2nd varchar, venue varchar, PRIMARY KEY (winner_2nd)) | select winner_2nd from table_1358608_4 where venue = "belmont" |
Name the story number for paul cornell | create table table_18012738_1 (story_no varchar, written_by varchar, PRIMARY KEY (story_no)) | select story_no from table_18012738_1 where written_by = "paul cornell" |
What is the human development index for the year 2000 where the ingei code is 10? | create table table_1480455_1 (human_development_index__2000_ varchar, inegi_code varchar, PRIMARY KEY (human_development_index__2000_)) | select human_development_index__2000_ from table_1480455_1 where inegi_code = 10 |
How many times was lakpa tashi sherpa ( bhu ) w pts 12-5 in round of 32? | create table table_26335424_86 (round_of_16 varchar, round_of_32 varchar, PRIMARY KEY (round_of_16)) | select count(round_of_16) from table_26335424_86 where round_of_32 = "lakpa tashi sherpa ( bhu ) w pts 12-5" |
What was the first day cover cancellation for the University of Saskatchewan themed stamp? | create table table_11900773_5 (first_day_cover_cancellation varchar, theme varchar, PRIMARY KEY (first_day_cover_cancellation)) | select first_day_cover_cancellation from table_11900773_5 where theme = "university of saskatchewan" |
how many times was the candidates phil crane (r) 58.0% edward a. warman (d) 42.0%? | create table table_1341718_14 (incumbent varchar, candidates varchar, PRIMARY KEY (incumbent)) | select count(incumbent) from table_1341718_14 where candidates = "phil crane (r) 58.0% edward a. warman (d) 42.0%" |
At what venue did Alex Mettam/Mark Williams be named Man of the Match? | create table table_17120964_6 (venue varchar, man_of_the_match varchar, PRIMARY KEY (venue)) | select venue from table_17120964_6 where man_of_the_match = "alex mettam/mark williams" |
Find the name of students who took some course offered by Statistics department. | create table student (name varchar, id varchar, PRIMARY KEY (name)); create table takes (course_id varchar, id varchar, PRIMARY KEY (course_id)); create table course (course_id varchar, dept_name varchar, PRIMARY KEY (course_id)) | select t3.name from course as t1 join takes as t2 on t1.course_id = t2.course_id join student as t3 on t2.id = t3.id where t1.dept_name = 'statistics' |
Where did Audette Racing win? | create table table_25773116_2 (location varchar, winning_team varchar, PRIMARY KEY (location)) | select location from table_25773116_2 where winning_team = "audette racing" |
Name the last title for 2012 | create table table_2454589_1 (last_title varchar, first_season_in_current_spell varchar, PRIMARY KEY (last_title)) | select last_title from table_2454589_1 where first_season_in_current_spell = 2012 |
Who was eliminated when the vote was 8-1? | create table table_25016824_2 (eliminated varchar, vote varchar, PRIMARY KEY (eliminated)) | select eliminated from table_25016824_2 where vote = "8-1" |
What party did incumbent Howard Coble belong to? | create table table_1341568_34 (party varchar, incumbent varchar, PRIMARY KEY (party)) | select party from table_1341568_34 where incumbent = "howard coble" |
How many zodiac signs does the month by the Thai name of กันยายน belong to? | create table table_180802_2 (zodiac_sign varchar, thai_name varchar, PRIMARY KEY (zodiac_sign)) | select count(zodiac_sign) from table_180802_2 where thai_name = "กันยายน" |
Who was the host country when Bar was the host city? | create table table_26669939_1 (host_country varchar, host_city varchar, PRIMARY KEY (host_country)) | select host_country from table_26669939_1 where host_city = "bar" |
Who was the republican candidate in the race with incumbent thelma drake? | create table table_17503169_1 (republican varchar, incumbent varchar, PRIMARY KEY (republican)) | select republican from table_17503169_1 where incumbent = "thelma drake" |
What is the config core 1 of the model with a processing power GFLOPs of 432? | create table table_26860595_2 (config_core_1 varchar, processing_power_gflops varchar, PRIMARY KEY (config_core_1)) | select config_core_1 from table_26860595_2 where processing_power_gflops = "432" |
What was the percentage increase in spending on international tourism from 2011 to 2012 of the country that spent $85.9 billion in 2011? | create table table_29789_3 (_percentage_change varchar, international_tourism_expenditure_2011 varchar, PRIMARY KEY (_percentage_change)) | select _percentage_change from table_29789_3 where international_tourism_expenditure_2011 = "$85.9 billion" |
On which episode did actress Sela Ward make her last appearance? | create table table_11240028_1 (last_appearance varchar, portrayed_by varchar, PRIMARY KEY (last_appearance)) | select last_appearance from table_11240028_1 where portrayed_by = "sela ward" |
Show all paragraph ids and texts for the document with name 'Welcome to NY'. | create table documents (document_id varchar, document_name varchar, PRIMARY KEY (document_id)); create table paragraphs (paragraph_id varchar, paragraph_text varchar, document_id varchar, PRIMARY KEY (paragraph_id)) | select t1.paragraph_id, t1.paragraph_text from paragraphs as t1 join documents as t2 on t1.document_id = t2.document_id where t2.document_name = 'welcome to ny' |
How many transactions do we have? | create table financial_transactions (id varchar, PRIMARY KEY (id)) | select count(*) from financial_transactions |
What is the number of external links with a coach named Katie Kansas? | create table table_2140071_13 (external_link varchar, coach varchar, PRIMARY KEY (external_link)) | select count(external_link) from table_2140071_13 where coach = "katie kansas" |
List the first names of people in alphabetical order? | create table people (first_name varchar, PRIMARY KEY (first_name)) | select first_name from people order by first_name |
When did the program air on Vier? | create table table_178242_1 (premiere___aired varchar, channel varchar, PRIMARY KEY (premiere___aired)) | select premiere___aired from table_178242_1 where channel = "vier" |
List directors and producers when the celebrities involved were Bill Turnbull and Louise Minchin. | create table table_24725951_1 (directed_and_produced_by varchar, celebrities varchar, PRIMARY KEY (directed_and_produced_by)) | select directed_and_produced_by from table_24725951_1 where celebrities = "bill turnbull and louise minchin" |
What are the investors of entrepreneurs and the corresponding number of entrepreneurs invested by each investor? | create table entrepreneur (investor varchar, PRIMARY KEY (investor)) | select investor, count(*) from entrepreneur group by investor |
What is the percentage of others when the number for Bush is 1329? | create table table_1733513_1 (others_percentage varchar, bush_number varchar, PRIMARY KEY (others_percentage)) | select others_percentage from table_1733513_1 where bush_number = 1329 |
How many earnings values are associated with players who had a best finish of T38? | create table table_28540609_2 (earnings__ varchar, best_finish varchar, PRIMARY KEY (earnings__)) | select count(earnings__) as €_ from table_28540609_2 where best_finish = "t38" |
What is the nt identity when the species is drosophilia melanogaster? | create table table_26708105_5 (nt_identity varchar, species varchar, PRIMARY KEY (nt_identity)) | select nt_identity from table_26708105_5 where species = "drosophilia melanogaster" |
When was the show first aired that was viewed by 3.57 million U.S. viewers? | create table table_11694832_1 (original_air_date varchar, us_viewers__millions_ varchar, PRIMARY KEY (original_air_date)) | select original_air_date from table_11694832_1 where us_viewers__millions_ = "3.57" |
On what circuit was the City of Ipswich 400 race held? | create table table_14016079_1 (circuit varchar, race_title varchar, PRIMARY KEY (circuit)) | select circuit from table_14016079_1 where race_title = "city of ipswich 400" |
How many wrestlers were born in nara, and have a completed 'career and other notes' section? | create table table_1557974_1 (career_and_other_notes varchar, birthplace varchar, PRIMARY KEY (career_and_other_notes)) | select count(career_and_other_notes) from table_1557974_1 where birthplace = "nara" |
How many data are there under NO vote with a description of $1500 tax exemption amendment? | create table table_256286_8 (no_votes varchar, description varchar, PRIMARY KEY (no_votes)) | select count(no_votes) from table_256286_8 where description = "$1500 tax exemption amendment" |
When interjection is the subject how many performers are there? | create table table_191105_2 (performed_by varchar, subject varchar, PRIMARY KEY (performed_by)) | select count(performed_by) from table_191105_2 where subject = "interjection" |
Who was the winner when Mateus Rocha finished in 3rd place? | create table table_25214321_1 (winner varchar, third_place varchar, PRIMARY KEY (winner)) | select winner from table_25214321_1 where third_place = "mateus rocha" |
Name the manner of departure for luis enrique | create table table_27666856_3 (manner_of_departure varchar, outgoing_manager varchar, PRIMARY KEY (manner_of_departure)) | select manner_of_departure from table_27666856_3 where outgoing_manager = "luis enrique" |
The theme Auditioner's Choice has what song choice? | create table table_26250199_1 (song_choice varchar, theme varchar, PRIMARY KEY (song_choice)) | select song_choice from table_26250199_1 where theme = "auditioner's choice" |
What episode did tomoyuki furumaya | create table table_29039942_1 (title varchar, director varchar, PRIMARY KEY (title)) | select title from table_29039942_1 where director = "tomoyuki furumaya" |
What are the names and location of the shops in ascending alphabetical order of name. | create table shop (shop_name varchar, location varchar, PRIMARY KEY (shop_name)) | select shop_name, location from shop order by shop_name |
When bbc two is the original channel what is the date of original removal? | create table table_19114172_11 (date_s__of_original_removal varchar, original_channel varchar, PRIMARY KEY (date_s__of_original_removal)) | select date_s__of_original_removal from table_19114172_11 where original_channel = "bbc two" |
What is the nationality of th player who's school is Clemson? | create table table_15621965_16 (nationality varchar, school_club_team varchar, PRIMARY KEY (nationality)) | select nationality from table_15621965_16 where school_club_team = "clemson" |
what is b - bishop where ab - angry boar is vw - vertical wolf? | create table table_2603017_2 (b___bishop varchar, ab___angry_boar varchar, PRIMARY KEY (b___bishop)) | select b___bishop from table_2603017_2 where ab___angry_boar = "vw - vertical wolf" |
What is the meaning of a gentle personality? | create table table_1912713_2 (意義_meaning varchar, 性情_personality varchar, PRIMARY KEY (意義_meaning)) | select 意義_meaning from table_1912713_2 where 性情_personality = "gentle" |
Why did Robert L. Bacon (r) vacate? | create table table_2159547_3 (reason_for_change varchar, vacator varchar, PRIMARY KEY (reason_for_change)) | select reason_for_change from table_2159547_3 where vacator = "robert l. bacon (r)" |
What party represents the district with incumbent matthew clay? | create table table_2668378_18 (party varchar, incumbent varchar, PRIMARY KEY (party)) | select party from table_2668378_18 where incumbent = "matthew clay" |
Where did Kisnorbo move from? | create table table_22810095_8 (moving_from varchar, name varchar, PRIMARY KEY (moving_from)) | select moving_from from table_22810095_8 where name = "kisnorbo" |
Who played River Plate? | create table table_17282875_3 (team__number2 varchar, team__number1 varchar, PRIMARY KEY (team__number2)) | select team__number2 from table_17282875_3 where team__number1 = "river plate" |
what's the title where original air date is january18,2009 | create table table_11589522_3 (title varchar, original_air_date varchar, PRIMARY KEY (title)) | select title from table_11589522_3 where original_air_date = "january18,2009" |
What is the largest ethnic group in 2002 for the cyrillic name, other name of бешка? | create table table_2562572_54 (largest_ethnic_group__2002_ varchar, cyrillic_name_other_names varchar, PRIMARY KEY (largest_ethnic_group__2002_)) | select largest_ethnic_group__2002_ from table_2562572_54 where cyrillic_name_other_names = "бешка" |
Name the english translation of 219 | create table table_13003460_1 (english_translation varchar, word_number varchar, PRIMARY KEY (english_translation)) | select english_translation from table_13003460_1 where word_number = "219" |
What conference is Tennessee? | create table table_26423157_2 (conference varchar, school varchar, PRIMARY KEY (conference)) | select conference from table_26423157_2 where school = "tennessee" |
List the names and the locations that the enzymes can make an effect. | create table enzyme (name varchar, location varchar, PRIMARY KEY (name)) | select name, location from enzyme |
When portsmouth is the city of license who is the licensee? | create table table_1949746_1 (licensee varchar, city_of_license varchar, PRIMARY KEY (licensee)) | select licensee from table_1949746_1 where city_of_license = "portsmouth" |
How many viewers in millions watched the episode 23:55 minutes long? | create table table_1849243_1 (viewers__in_millions_ varchar, run_time varchar, PRIMARY KEY (viewers__in_millions_)) | select viewers__in_millions_ from table_1849243_1 where run_time = "23:55" |
What are the names of perpetrators? | create table perpetrator (people_id 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 |
What is the theme for Audition week? | create table table_26250176_1 (theme varchar, week__number varchar, PRIMARY KEY (theme)) | select theme from table_26250176_1 where week__number = "audition" |
What are all the states (class) when the successor was Joseph Anderson ( DR )? | create table table_224839_3 (state__class_ varchar, successor varchar, PRIMARY KEY (state__class_)) | select state__class_ from table_224839_3 where successor = "joseph anderson ( dr )" |
What is the record when the high points is listed as Stephen Curry (32)? | create table table_27755784_8 (record varchar, high_points varchar, PRIMARY KEY (record)) | select record from table_27755784_8 where high_points = "stephen curry (32)" |
Who had the most high points and rebounds than charles oakley (9)? | create table table_13812785_8 (high_points varchar, high_rebounds varchar, PRIMARY KEY (high_points)) | select high_points from table_13812785_8 where high_rebounds = "charles oakley (9)" |
What is the 2fm for rnag 94.4? | create table table_18475946_2 (rnag__mhz_ varchar, PRIMARY KEY (rnag__mhz_)) | select 2 as fm__mhz_ from table_18475946_2 where rnag__mhz_ = "94.4" |
Name the total number of hdtv for eurotic tv | create table table_15887683_17 (hdtv varchar, television_service varchar, PRIMARY KEY (hdtv)) | select count(hdtv) from table_15887683_17 where television_service = "eurotic tv" |
What background does the person from New york, New york, have? | create table table_1289860_2 (background varchar, hometown varchar, PRIMARY KEY (background)) | select background from table_1289860_2 where hometown = "new york, new york" |
Subsets and Splits