question
stringlengths 14
216
| context
stringlengths 45
458
| answer
stringlengths 18
463
|
---|---|---|
What was the title of the episode written by Bob Rosenfarb and directed by Richard Correll?
|
create table table_2468961_3 (title varchar, written_by varchar, directed_by varchar, PRIMARY KEY (title))
|
select title from table_2468961_3 where written_by = "bob rosenfarb" and directed_by = "richard correll"
|
What is the percentage of others when the number of others is 2286?
|
create table table_1733513_1 (others_percentage varchar, others_number varchar, PRIMARY KEY (others_percentage))
|
select others_percentage from table_1733513_1 where others_number = 2286
|
When pointers are the nickname what is the type?
|
create table table_262495_1 (type varchar, nickname varchar, PRIMARY KEY (type))
|
select type from table_262495_1 where nickname = "pointers"
|
What is their withdrawal rate for the school district with headquarters located in Truro?
|
create table table_21514460_1 (withdrawal_rate__2010_11_ varchar, headquarters varchar, PRIMARY KEY (withdrawal_rate__2010_11_))
|
select withdrawal_rate__2010_11_ from table_21514460_1 where headquarters = "truro"
|
If the end (UTC) is January 31, 2007 23:09, what is the name of the spacewalkers?
|
create table table_22385461_8 (spacewalkers varchar, end__utc_ varchar, PRIMARY KEY (spacewalkers))
|
select spacewalkers from table_22385461_8 where end__utc_ = "january 31, 2007 23:09"
|
What is the Input/output operations per second for the emlc flash?
|
create table table_27615520_1 (speed___iops__ varchar, storage_medium varchar, PRIMARY KEY (speed___iops__))
|
select speed___iops__ from table_27615520_1 where storage_medium = "emlc flash"
|
Who is the host on the series aired on 18 January 2012?
|
create table table_27487310_5 (host_s_ varchar, air_dates varchar, PRIMARY KEY (host_s_))
|
select host_s_ from table_27487310_5 where air_dates = "18 january 2012"
|
Show all publishers and the number of books for each publisher.
|
create table book_club (publisher varchar, PRIMARY KEY (publisher))
|
select publisher, count(*) from book_club group by publisher
|
What is the theme of the song by Soul Brothers Six
|
create table table_21501518_1 (theme varchar, original_artist varchar, PRIMARY KEY (theme))
|
select theme from table_21501518_1 where original_artist = "soul brothers six"
|
When segment b is dining room tables what is segment d?
|
create table table_15187735_5 (segment_d varchar, segment_b varchar, PRIMARY KEY (segment_d))
|
select segment_d from table_15187735_5 where segment_b = "dining room tables"
|
what is the total 07-08 gp/jgp 2nd with the name mao asada
|
create table table_23938357_5 (name varchar, PRIMARY KEY (name))
|
select 07 as _08_gp_jgp_2nd from table_23938357_5 where name = "mao asada"
|
How many missions countries have notability with president of burundi?
|
create table table_18299148_1 (missions varchar, notability varchar, PRIMARY KEY (missions))
|
select count(missions) as country from table_18299148_1 where notability = "president of burundi"
|
Find the details for all chip models.
|
create table chip_model (id varchar, PRIMARY KEY (id))
|
select * from chip_model
|
How many descriptions are there when the attribute is "ondragstart"?
|
create table table_1507852_1 (description varchar, attribute varchar, PRIMARY KEY (description))
|
select count(description) from table_1507852_1 where attribute = "ondragstart"
|
Name the segment a for 8-08
|
create table table_15187735_8 (segment_a varchar, series_ep varchar, PRIMARY KEY (segment_a))
|
select segment_a from table_15187735_8 where series_ep = "8-08"
|
What is the first and last name of the oldest employee?
|
create table employee (emp_fname varchar, emp_lname varchar, emp_dob varchar, PRIMARY KEY (emp_fname))
|
select emp_fname, emp_lname from employee order by emp_dob limit 1
|
Name the total number of domestic mail for 7853 for total frieght and mail
|
create table table_1754531_4 (domestic_mail varchar, total_freight_and_mail varchar, PRIMARY KEY (domestic_mail))
|
select count(domestic_mail) from table_1754531_4 where total_freight_and_mail = 7853
|
What is the f bolt for 11.35 p1 diameter (mm)?
|
create table table_26967904_2 (f_bolt varchar, p1_diameter__mm_ varchar, PRIMARY KEY (f_bolt))
|
select f_bolt from table_26967904_2 where p1_diameter__mm_ = "11.35"
|
What is the last name of the musician that have produced the most number of songs?
|
create table songs (songid varchar, PRIMARY KEY (songid)); create table band (lastname varchar, id varchar, PRIMARY KEY (lastname)); create table performance (bandmate varchar, songid varchar, PRIMARY KEY (bandmate))
|
select t2.lastname from performance as t1 join band as t2 on t1.bandmate = t2.id join songs as t3 on t3.songid = t1.songid group by lastname order by count(*) desc limit 1
|
What document type codes do we have?
|
create table ref_document_types (document_type_code varchar, PRIMARY KEY (document_type_code))
|
select document_type_code from ref_document_types
|
List the document type code for the document with the id 2.
|
create table documents (document_type_code varchar, document_id varchar, PRIMARY KEY (document_type_code))
|
select document_type_code from documents where document_id = 2
|
With original artist of Tina Turner, what is the week number?
|
create table table_21501565_1 (week__number varchar, original_artist varchar, PRIMARY KEY (week__number))
|
select week__number from table_21501565_1 where original_artist = "tina turner"
|
List the first name of all employees with job code PROF ordered by their date of birth.
|
create table employee (emp_fname varchar, emp_jobcode varchar, emp_dob varchar, PRIMARY KEY (emp_fname))
|
select emp_fname from employee where emp_jobcode = 'prof' order by emp_dob
|
What are the names and parties of representatives?
|
create table representative (name varchar, party varchar, PRIMARY KEY (name))
|
select name, party from representative
|
Name the mosst finals apps
|
create table table_21220720_1 (finals_apps integer, PRIMARY KEY (finals_apps))
|
select max(finals_apps) from table_21220720_1
|
Name the number of constr with the first win at the 1978 brazilian grand prix
|
create table table_12707313_2 (constr varchar, first_win varchar, PRIMARY KEY (constr))
|
select count(constr) from table_12707313_2 where first_win = "1978 brazilian grand prix"
|
what is the total number of percent (2000) where percent (1980) is 3.4%
|
create table table_1182314_5 (percent__2000_ varchar, percent__1980_ varchar, PRIMARY KEY (percent__2000_))
|
select count(percent__2000_) from table_1182314_5 where percent__1980_ = "3.4%"
|
What is the archive of the show that aired on 18april1970?
|
create table table_2102898_1 (archive varchar, broadcast_date varchar, PRIMARY KEY (archive))
|
select archive from table_2102898_1 where broadcast_date = "18april1970"
|
What is the production number of 3-04?
|
create table table_25046766_3 (prod_no integer, episode_no varchar, PRIMARY KEY (prod_no))
|
select max(prod_no) from table_25046766_3 where episode_no = "3-04"
|
Find the last name of the latest contact individual of the organization "Labour Party".
|
create table organizations (organization_id varchar, organization_name varchar, PRIMARY KEY (organization_id)); create table individuals (individual_last_name varchar, individual_id varchar, PRIMARY KEY (individual_last_name)); create table organization_contact_individuals (organization_id varchar, individual_id varchar, date_contact_to varchar, PRIMARY KEY (organization_id))
|
select t3.individual_last_name from organizations as t1 join organization_contact_individuals as t2 on t1.organization_id = t2.organization_id join individuals as t3 on t2.individual_id = t3.individual_id where t1.organization_name = "labour party" order by t2.date_contact_to desc limit 1
|
Which song has picturization by only vijay?
|
create table table_10848177_1 (song varchar, picturization varchar, PRIMARY KEY (song))
|
select song from table_10848177_1 where picturization = "vijay"
|
when chiji is revised hepburn what are all the english
|
create table table_26263954_1 (english varchar, revised_hepburn varchar, PRIMARY KEY (english))
|
select english from table_26263954_1 where revised_hepburn = "chiji"
|
Where where the bbc three weekly ranking for episode no. 5?
|
create table table_24399615_3 (bbc_three_weekly_ranking varchar, episode_no varchar, PRIMARY KEY (bbc_three_weekly_ranking))
|
select bbc_three_weekly_ranking from table_24399615_3 where episode_no = 5
|
Where was the Ivy League conference tournament?
|
create table table_21091982_3 (tournament_venue__city_ varchar, conference varchar, PRIMARY KEY (tournament_venue__city_))
|
select tournament_venue__city_ from table_21091982_3 where conference = "ivy league"
|
What is the pennant for 4 may 1943?
|
create table table_1220125_4 (pennant varchar, laid_down varchar, PRIMARY KEY (pennant))
|
select pennant from table_1220125_4 where laid_down = "4 may 1943"
|
Name the fourth district for beverly bodem
|
create table table_15442974_1 (fourth_district varchar, first_district varchar, PRIMARY KEY (fourth_district))
|
select fourth_district from table_15442974_1 where first_district = "beverly bodem"
|
In what country is mont sokbaro a highest point
|
create table table_24285393_1 (country_or_region varchar, highest_point varchar, PRIMARY KEY (country_or_region))
|
select country_or_region from table_24285393_1 where highest_point = "mont sokbaro"
|
When was Kamba active?
|
create table table_10602294_1 (dates_active varchar, name varchar, PRIMARY KEY (dates_active))
|
select dates_active from table_10602294_1 where name = "kamba"
|
What was the original title of the Bruno Barreto film in 1989
|
create table table_15277629_1 (original_title varchar, director varchar, year__ceremony_ varchar, PRIMARY KEY (original_title))
|
select original_title from table_15277629_1 where director = "bruno barreto" and year__ceremony_ = 1989
|
What are the coupon amount of the coupons owned by both good and bad customers?
|
create table discount_coupons (coupon_amount varchar, coupon_id varchar, PRIMARY KEY (coupon_amount)); create table customers (coupon_id varchar, good_or_bad_customer varchar, PRIMARY KEY (coupon_id))
|
select t1.coupon_amount from discount_coupons as t1 join customers as t2 on t1.coupon_id = t2.coupon_id where t2.good_or_bad_customer = 'good' intersect select t1.coupon_amount from discount_coupons as t1 join customers as t2 on t1.coupon_id = t2.coupon_id where t2.good_or_bad_customer = 'bad'
|
Show titles of songs and names of singers.
|
create table singer (name varchar, singer_id varchar, PRIMARY KEY (name)); create table song (title varchar, singer_id varchar, PRIMARY KEY (title))
|
select t2.title, t1.name from singer as t1 join song as t2 on t1.singer_id = t2.singer_id
|
What is the original air date when there were 12.81 million u.s viewers?
|
create table table_11404452_1 (original_air_date varchar, us_viewers__millions_ varchar, PRIMARY KEY (original_air_date))
|
select original_air_date from table_11404452_1 where us_viewers__millions_ = "12.81"
|
If in english it is heart, what is it in hebrew?
|
create table table_26919_7 (hebrew varchar, english varchar, PRIMARY KEY (hebrew))
|
select hebrew from table_26919_7 where english = "heart"
|
Who are the UK co-presenters that have Joe Swash as a co-presenter and Russell Kane as a comedian?
|
create table table_14345690_15 (uk_co_presenter varchar, co_presenter varchar, comedian varchar, PRIMARY KEY (uk_co_presenter))
|
select count(uk_co_presenter) from table_14345690_15 where co_presenter = "joe swash" and comedian = "russell kane"
|
Find the id and local authority of the station whose maximum precipitation is higher than 50.
|
create table weekly_weather (station_id varchar, precipitation integer, PRIMARY KEY (station_id)); create table station (id varchar, local_authority varchar, PRIMARY KEY (id))
|
select t2.id, t2.local_authority from weekly_weather as t1 join station as t2 on t1.station_id = t2.id group by t1.station_id having max(t1.precipitation) > 50
|
What network airs on virtual channel 23.1?
|
create table table_2857352_3 (network varchar, virtual_channel varchar, PRIMARY KEY (network))
|
select network from table_2857352_3 where virtual_channel = "23.1"
|
How many total dismissals did the player for Guyana have?
|
create table table_27771406_1 (total_dismissals integer, club varchar, PRIMARY KEY (total_dismissals))
|
select max(total_dismissals) from table_27771406_1 where club = "guyana"
|
What were the scores by the individual judges for Karanvir Bohra on August 13?
|
create table table_18278508_6 (scores_by_each_individual_judge varchar, main_contestant varchar, date_performed varchar, PRIMARY KEY (scores_by_each_individual_judge))
|
select scores_by_each_individual_judge from table_18278508_6 where main_contestant = "karanvir bohra" and date_performed = "august 13"
|
Name the total number of barony for kilmore
|
create table table_30120559_1 (barony varchar, townland varchar, PRIMARY KEY (barony))
|
select count(barony) from table_30120559_1 where townland = "kilmore"
|
What is the school of the player from Lake Charles, LA?
|
create table table_11677100_18 (school varchar, hometown varchar, PRIMARY KEY (school))
|
select school from table_11677100_18 where hometown = "lake charles, la"
|
What are the results in the county with Peter Deutsch as a candidate?
|
create table table_1341453_11 (results varchar, incumbent varchar, PRIMARY KEY (results))
|
select results from table_1341453_11 where incumbent = "peter deutsch"
|
On July 17, 2008, what was the total number of lead maragin?
|
create table table_16751596_13 (lead_maragin varchar, dates_administered varchar, PRIMARY KEY (lead_maragin))
|
select count(lead_maragin) from table_16751596_13 where dates_administered = "july 17, 2008"
|
Where delegate is feldman, brian j. brian j. feldman, 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 = "feldman, brian j. brian j. feldman"
|
Find the number of male (sex is 'M') students who have some food type allery.
|
create table has_allergy (allergy varchar, PRIMARY KEY (allergy)); create table allergy_type (allergy varchar, allergytype varchar, PRIMARY KEY (allergy)); create table student (sex varchar, stuid varchar, PRIMARY KEY (sex))
|
select count(*) from student where sex = "m" and stuid in (select stuid from has_allergy as t1 join allergy_type as t2 on t1.allergy = t2.allergy where t2.allergytype = "food")
|
Name the type for 1245 enrollment
|
create table table_2076533_1 (type varchar, enrollment__2005_ varchar, PRIMARY KEY (type))
|
select type from table_2076533_1 where enrollment__2005_ = 1245
|
how many times is the date (to) 1919?
|
create table table_12562214_1 (notes varchar, date__to_ varchar, PRIMARY KEY (notes))
|
select count(notes) from table_12562214_1 where date__to_ = "1919"
|
Who had the high assists when the opponent was Indiana?
|
create table table_27882867_9 (high_assists varchar, team varchar, PRIMARY KEY (high_assists))
|
select high_assists from table_27882867_9 where team = "indiana"
|
Find the number of projects which each scientist is working on and scientist's name.
|
create table scientists (name varchar, ssn varchar, PRIMARY KEY (name)); create table assignedto (scientist varchar, PRIMARY KEY (scientist))
|
select count(*), t1.name from scientists as t1 join assignedto as t2 on t1.ssn = t2.scientist group by t1.name
|
How many number of lakes are there in the Valdez-Cordova (CA) area?
|
create table table_17978052_2 (_number_s_lake_and_gnis_query_link integer, borough_or_census_area varchar, PRIMARY KEY (_number_s_lake_and_gnis_query_link))
|
select min(_number_s_lake_and_gnis_query_link) from table_17978052_2 where borough_or_census_area = "valdez-cordova (ca)"
|
List the names of people that are not perpetrators.
|
create table people (name varchar, people_id varchar, PRIMARY KEY (name)); create table perpetrator (name varchar, people_id varchar, PRIMARY KEY (name))
|
select name from people where not people_id in (select people_id from perpetrator)
|
What is the vote percentage for the couple gary and maria?
|
create table table_26375386_20 (vote_percentage varchar, couple varchar, PRIMARY KEY (vote_percentage))
|
select vote_percentage from table_26375386_20 where couple = "gary and maria"
|
Which party does Tom Luken belong to?
|
create table table_1341577_36 (party varchar, incumbent varchar, PRIMARY KEY (party))
|
select party from table_1341577_36 where incumbent = "tom luken"
|
Name the part one for to give
|
create table table_1745843_9 (part_1 varchar, verb_meaning varchar, PRIMARY KEY (part_1))
|
select part_1 from table_1745843_9 where verb_meaning = "to give"
|
How many distinct locations of perpetrators are there?
|
create table perpetrator (location varchar, PRIMARY KEY (location))
|
select count(distinct location) from perpetrator
|
How much was the in-county tuition per credit hour at the Mercer College by the fall of 2009?
|
create table table_22308881_2 (in_county_tuition_per_credit_hour__fall_2009_ varchar, college varchar, PRIMARY KEY (in_county_tuition_per_credit_hour__fall_2009_))
|
select in_county_tuition_per_credit_hour__fall_2009_ from table_22308881_2 where college = "mercer"
|
Show aircraft names and number of flights for each aircraft.
|
create table aircraft (name varchar, aid varchar, PRIMARY KEY (name)); create table flight (aid varchar, PRIMARY KEY (aid))
|
select t2.name, count(*) from flight as t1 join aircraft as t2 on t1.aid = t2.aid group by t1.aid
|
What are the mixed doubles where the mens singles is kim brodersen?
|
create table table_12186309_1 (mixed_doubles varchar, mens_singles varchar, PRIMARY KEY (mixed_doubles))
|
select mixed_doubles from table_12186309_1 where mens_singles = "kim brodersen"
|
Name the school where conference record is 12-6
|
create table table_16295365_2 (school varchar, conf_record varchar, PRIMARY KEY (school))
|
select school from table_16295365_2 where conf_record = "12-6"
|
What is the title of the episode/s written by Michael Gans & Richard Register?
|
create table table_23399481_4 (title varchar, written_by varchar, PRIMARY KEY (title))
|
select title from table_23399481_4 where written_by = "michael gans & richard register"
|
What was the title of the episode written by Keith Temple?
|
create table table_21025437_5 (title varchar, written_by varchar, PRIMARY KEY (title))
|
select title from table_21025437_5 where written_by = "keith temple"
|
What is the time/retired if the driver is Marco Andretti?
|
create table table_17693171_1 (time_retired varchar, driver varchar, PRIMARY KEY (time_retired))
|
select time_retired from table_17693171_1 where driver = "marco andretti"
|
When was Season Three premiered in region 2?
|
create table table_2113721_7 (region_2 varchar, dvd_name varchar, PRIMARY KEY (region_2))
|
select region_2 from table_2113721_7 where dvd_name = "season three"
|
List the names of all the distinct product names in alphabetical order?
|
create table product (product_name varchar, PRIMARY KEY (product_name))
|
select distinct product_name from product order by product_name
|
What is the smallest third place finish?
|
create table table_2146364_2 (third_place integer, PRIMARY KEY (third_place))
|
select min(third_place) from table_2146364_2
|
What was the comment on the Denali area?
|
create table table_17978052_2 (comment varchar, borough_or_census_area varchar, PRIMARY KEY (comment))
|
select comment from table_17978052_2 where borough_or_census_area = "denali"
|
Name the order number for 1960s
|
create table table_19508635_1 (order__number varchar, theme varchar, PRIMARY KEY (order__number))
|
select order__number from table_19508635_1 where theme = "1960s"
|
Name the number of reason for change on may 11, 1939
|
create table table_2160008_4 (reason_for_change varchar, date_successor_seated varchar, PRIMARY KEY (reason_for_change))
|
select count(reason_for_change) from table_2160008_4 where date_successor_seated = "may 11, 1939"
|
How many entries for conference tournament are listed when Texas Western is the regular season winner?
|
create table table_28365816_2 (conference varchar, regular_season_winner varchar, PRIMARY KEY (conference))
|
select count(conference) as tournament from table_28365816_2 where regular_season_winner = "texas western"
|
Name the subdivides in equivalence for varas 1/5
|
create table table_26538461_2 (subdivides_in varchar, equivalence_in_varas varchar, PRIMARY KEY (subdivides_in))
|
select subdivides_in from table_26538461_2 where equivalence_in_varas = "1/5"
|
What were Gentleman's odds of winner?
|
create table table_21676617_1 (odds_of_winner varchar, horse varchar, PRIMARY KEY (odds_of_winner))
|
select odds_of_winner from table_21676617_1 where horse = "gentleman"
|
Show the name and theme for all concerts and the number of singers in each concert.
|
create table singer_in_concert (concert_id varchar, PRIMARY KEY (concert_id)); create table concert (concert_name varchar, theme varchar, concert_id varchar, PRIMARY KEY (concert_name))
|
select t2.concert_name, t2.theme, count(*) from singer_in_concert as t1 join concert as t2 on t1.concert_id = t2.concert_id group by t2.concert_id
|
What are all the profits elegance (2007) in which mayor is ma. Ester a. Hamor
|
create table table_255812_1 (income_class__2007_ varchar, mayor varchar, PRIMARY KEY (income_class__2007_))
|
select income_class__2007_ from table_255812_1 where mayor = "ma. ester a. hamor"
|
What is the title of the episode Alex Reid directed?
|
create table table_28760804_1 (title varchar, directed_by varchar, PRIMARY KEY (title))
|
select title from table_28760804_1 where directed_by = "alex reid"
|
How many teachers does the student named MADLOCK RAY have?
|
create table teachers (classroom varchar, PRIMARY KEY (classroom)); create table list (classroom varchar, firstname varchar, lastname varchar, PRIMARY KEY (classroom))
|
select count(*) from list as t1 join teachers as t2 on t1.classroom = t2.classroom where t1.firstname = "madlock" and t1.lastname = "ray"
|
Who is team 1 when team 2 is koper?
|
create table table_19294812_2 (team_1 varchar, team_2 varchar, PRIMARY KEY (team_1))
|
select team_1 from table_19294812_2 where team_2 = "koper"
|
Which owner owns the most dogs? List the owner id, first name and last name.
|
create table owners (first_name varchar, last_name varchar, owner_id varchar, PRIMARY KEY (first_name)); create table dogs (owner_id varchar, PRIMARY KEY (owner_id))
|
select t1.owner_id, t2.first_name, t2.last_name from dogs as t1 join owners as t2 on t1.owner_id = t2.owner_id group by t1.owner_id order by count(*) desc limit 1
|
Who were all the writers whose episodes had 0.97 million viewers?
|
create table table_23918997_1 (written_by varchar, us_viewers__million_ varchar, PRIMARY KEY (written_by))
|
select written_by from table_23918997_1 where us_viewers__million_ = "0.97"
|
how many na -350- with title and source being bokumo sekai wo sukuitai: battle tournament
|
create table table_13663434_1 (na__350_ varchar, title_and_source varchar, PRIMARY KEY (na__350_))
|
select count(na__350_) from table_13663434_1 where title_and_source = "bokumo sekai wo sukuitai: battle tournament"
|
What was the highest vote for others?
|
create table table_1756284_1 (others_number integer, PRIMARY KEY (others_number))
|
select max(others_number) from table_1756284_1
|
Who is the replaced by when the date of vacancy is 27 december 2010?
|
create table table_26998135_2 (replaced_by varchar, date_of_vacancy varchar, PRIMARY KEY (replaced_by))
|
select replaced_by from table_26998135_2 where date_of_vacancy = "27 december 2010"
|
What was the reason for change when the successor was William Milnes, Jr. (C)?
|
create table table_2417345_4 (reason_for_change varchar, successor varchar, PRIMARY KEY (reason_for_change))
|
select reason_for_change from table_2417345_4 where successor = "william milnes, jr. (c)"
|
List the names of buildings that have no company office.
|
create table buildings (name varchar, id varchar, building_id varchar, PRIMARY KEY (name)); create table office_locations (name varchar, id varchar, building_id varchar, PRIMARY KEY (name))
|
select name from buildings where not id in (select building_id from office_locations)
|
Show all document type codes, document type names, document type descriptions.
|
create table ref_document_types (document_type_code varchar, document_type_name varchar, document_type_description varchar, PRIMARY KEY (document_type_code))
|
select document_type_code, document_type_name, document_type_description from ref_document_types
|
What were the official itv ratings in millions for the episode with a total of 8.53 million itv viewers
|
create table table_27319183_7 (official_itv_rating__millions_ varchar, total_itv_viewers__millions_ varchar, PRIMARY KEY (official_itv_rating__millions_))
|
select official_itv_rating__millions_ from table_27319183_7 where total_itv_viewers__millions_ = "8.53"
|
What is the name of member in charge of greatest number of events?
|
create table party_events (member_in_charge_id varchar, PRIMARY KEY (member_in_charge_id)); create table member (member_name varchar, member_id varchar, PRIMARY KEY (member_name))
|
select t1.member_name from member as t1 join party_events as t2 on t1.member_id = t2.member_in_charge_id group by t2.member_in_charge_id order by count(*) desc limit 1
|
How many drivers does India have/
|
create table table_19487922_2 (total_drivers varchar, country varchar, PRIMARY KEY (total_drivers))
|
select count(total_drivers) from table_19487922_2 where country = "india"
|
How many ballot measures had a percentage yes of 52.11%?
|
create table table_256286_39 (passed varchar, _percentage_yes varchar, PRIMARY KEY (passed))
|
select count(passed) from table_256286_39 where _percentage_yes = "52.11%"
|
What municipality had 754 votes for coakley?
|
create table table_24115349_6 (municipality varchar, coakley_votes varchar, PRIMARY KEY (municipality))
|
select municipality from table_24115349_6 where coakley_votes = 754
|
List all the characteristic names and data types of product "cumin".
|
create table characteristics (characteristic_name varchar, characteristic_data_type varchar, characteristic_id varchar, PRIMARY KEY (characteristic_name)); create table products (product_id varchar, product_name varchar, PRIMARY KEY (product_id)); create table product_characteristics (product_id varchar, characteristic_id varchar, PRIMARY KEY (product_id))
|
select t3.characteristic_name, t3.characteristic_data_type 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 where t1.product_name = "cumin"
|
What is the French word for the Italian word nazione?
|
create table table_15040_8 (french varchar, italian varchar, PRIMARY KEY (french))
|
select french from table_15040_8 where italian = "nazione"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.