question
stringlengths 14
216
| context
stringlengths 45
458
| answer
stringlengths 18
463
|
---|---|---|
Name the successor for elected january 26, 1837 | create table table_225200_3 (successor varchar, date_of_successors_formal_installation varchar, PRIMARY KEY (successor)) | select count(successor) from table_225200_3 where date_of_successors_formal_installation = "elected january 26, 1837" |
What is the pressure in ultra high vacuum? | create table table_170097_1 (pressure_in_hpa__mbar_ varchar, vacuum_range varchar, PRIMARY KEY (pressure_in_hpa__mbar_)) | select pressure_in_hpa__mbar_ from table_170097_1 where vacuum_range = "ultra high vacuum" |
which shop has happy hour most frequently? List its id and number of happy hours. | create table happy_hour (shop_id varchar, PRIMARY KEY (shop_id)) | select shop_id, count(*) from happy_hour group by shop_id order by count(*) desc limit 1 |
what is the song name for the film name ganga kare insaaf? | create table table_11827596_2 (song_name varchar, film_name varchar, PRIMARY KEY (song_name)) | select song_name from table_11827596_2 where film_name = "ganga kare insaaf" |
What is the prize (eur) for the 6th division? | create table table_20195922_3 (prize__eur_ varchar, divisions varchar, PRIMARY KEY (prize__eur_)) | select prize__eur_ from table_20195922_3 where divisions = "6th" |
Where is the headquarters of Alpha Nu Omega | create table table_10054296_1 (headquarters varchar, member varchar, PRIMARY KEY (headquarters)) | select headquarters from table_10054296_1 where member = "alpha nu omega" |
What is the leg for c. atkinson | create table table_13050822_2 (leg varchar, rally_leader varchar, PRIMARY KEY (leg)) | select leg from table_13050822_2 where rally_leader = "c. atkinson" |
When did Jacques Chirac stop being a G8 leader? | create table table_10026563_1 (ended_time_as_senior_g8_leader varchar, person varchar, PRIMARY KEY (ended_time_as_senior_g8_leader)) | select ended_time_as_senior_g8_leader from table_10026563_1 where person = "jacques chirac" |
Show the card type codes and the number of transactions. | create table financial_transactions (card_id varchar, PRIMARY KEY (card_id)); create table customers_cards (card_type_code varchar, card_id varchar, PRIMARY KEY (card_type_code)) | select t2.card_type_code, count(*) from financial_transactions as t1 join customers_cards as t2 on t1.card_id = t2.card_id group by t2.card_type_code |
When houdet ( fra ) w 6-2, 6-1 is the quarterfinals what is the final/bronze medal match? | create table table_18602462_21 (final__bronze_medal_match varchar, quarterfinals varchar, PRIMARY KEY (final__bronze_medal_match)) | select final__bronze_medal_match from table_18602462_21 where quarterfinals = "houdet ( fra ) w 6-2, 6-1" |
How many performances are there? | create table performance (id varchar, PRIMARY KEY (id)) | select count(*) from performance |
Which mix artists have shlomo as artist 1? | create table table_23649244_1 (mix_artist varchar, artist_1 varchar, PRIMARY KEY (mix_artist)) | select mix_artist from table_23649244_1 where artist_1 = "shlomo" |
On episodes where guest 1 is Jim White, who was guest 3? | create table table_20466963_9 (guest_3 varchar, guest_1 varchar, PRIMARY KEY (guest_3)) | select guest_3 from table_20466963_9 where guest_1 = "jim white" |
When the away team was Carlton, who was the home team? | create table table_16388545_1 (home_team varchar, away_team varchar, PRIMARY KEY (home_team)) | select home_team from table_16388545_1 where away_team = "carlton" |
What is the understanding of the one that has νοῦς nous reasoning? | create table table_19760_1 (understanding varchar, reason varchar, PRIMARY KEY (understanding)) | select understanding from table_19760_1 where reason = "νοῦς nous" |
Name the number of butters for 3 protein | create table table_2493389_1 (butter varchar, protein__g_ varchar, PRIMARY KEY (butter)) | select count(butter) from table_2493389_1 where protein__g_ = "3" |
What is the title of the episode directed by Romeo Tirone? | create table table_26961951_6 (title varchar, directed_by varchar, PRIMARY KEY (title)) | select title from table_26961951_6 where directed_by = "romeo tirone" |
what is the surface of the final which had score 6-2, 6-3 | create table table_1918850_2 (surface varchar, score_in_the_final varchar, PRIMARY KEY (surface)) | select surface from table_1918850_2 where score_in_the_final = "6-2, 6-3" |
Name the number of song for solydo | create table table_19763199_5 (song varchar, artist varchar, PRIMARY KEY (song)) | select count(song) from table_19763199_5 where artist = "solydo" |
how many country with currency name being republika srpska dinar | create table table_13681_2 (country varchar, currency_name varchar, PRIMARY KEY (country)) | select count(country) from table_13681_2 where currency_name = "republika srpska dinar" |
Name the record for charlotte | create table table_23281862_10 (record varchar, team varchar, PRIMARY KEY (record)) | select record from table_23281862_10 where team = "charlotte" |
How many for percentages are there when the against percentage is 35,782 (69)? | create table table_1289762_1 (for___percentage_ varchar, against___percentage_ varchar, PRIMARY KEY (for___percentage_)) | select for___percentage_ from table_1289762_1 where against___percentage_ = "35,782 (69)" |
What is the 3utr sequence when the genbank id is hq021437? | create table table_14332822_1 (genbank_id varchar, PRIMARY KEY (genbank_id)) | select 3 as ’utr_sequence from table_14332822_1 where genbank_id = "hq021437" |
Name the mixed doubles for zhu lin | create table table_14496232_2 (mixed_doubles varchar, womens_singles varchar, PRIMARY KEY (mixed_doubles)) | select mixed_doubles from table_14496232_2 where womens_singles = "zhu lin" |
Who won the tournament for the Atlantic Sun Conference? | create table table_24248450_3 (tournament_winner varchar, conference varchar, PRIMARY KEY (tournament_winner)) | select tournament_winner from table_24248450_3 where conference = "atlantic sun conference" |
What is the acceleration 0-100km/h that was produced in 2002-2006? | create table table_1857216_1 (acceleration_0_100km_h__0_62mph_ varchar, production varchar, PRIMARY KEY (acceleration_0_100km_h__0_62mph_)) | select acceleration_0_100km_h__0_62mph_ from table_1857216_1 where production = "2002-2006" |
Show the stadium name and the number of concerts in each stadium. | create table stadium (name varchar, stadium_id varchar, PRIMARY KEY (name)); create table concert (stadium_id varchar, PRIMARY KEY (stadium_id)) | select t2.name, count(*) from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id group by t1.stadium_id |
Who were the opponents when the record was 11-2? | create table table_22862203_2 (opponent varchar, record varchar, PRIMARY KEY (opponent)) | select opponent from table_22862203_2 where record = "11-2" |
What was the result of the election of doc hastings (r) 53.3% jay inslee (d) 46.7% | create table table_1341522_50 (status varchar, opponent varchar, PRIMARY KEY (status)) | select status from table_1341522_50 where opponent = "doc hastings (r) 53.3% jay inslee (d) 46.7%" |
Where was the game played when the team's record was 1-3? | create table table_11452830_2 (game_site varchar, record varchar, PRIMARY KEY (game_site)) | select game_site from table_11452830_2 where record = "1-3" |
Which district is associated with the incumbent Carl Vinson? | create table table_1342233_11 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates)) | select candidates from table_1342233_11 where incumbent = "carl vinson" |
Who is the designer of the Christmas: Winter Fun (USA) stamp? | create table table_11900773_6 (design varchar, theme varchar, PRIMARY KEY (design)) | select design from table_11900773_6 where theme = "christmas: winter fun (usa)" |
What is the record listed when the high assists is earl watson (6)? | create table table_28768469_7 (record varchar, high_assists varchar, PRIMARY KEY (record)) | select record from table_28768469_7 where high_assists = "earl watson (6)" |
HOw many no votes were there when there were 45.60% yes votes | create table table_256286_20 (no_votes integer, _percentage_yes varchar, PRIMARY KEY (no_votes)) | select min(no_votes) from table_256286_20 where _percentage_yes = "45.60%" |
List the names of phones that are not on any market. | create table phone (name varchar, phone_id varchar, phone_id varchar, PRIMARY KEY (name)); create table phone_market (name varchar, phone_id varchar, phone_id varchar, PRIMARY KEY (name)) | select name from phone where not phone_id in (select phone_id from phone_market) |
Please show the record formats of orchestras in ascending order of count. | create table orchestra (major_record_format varchar, PRIMARY KEY (major_record_format)) | select major_record_format from orchestra group by major_record_format order by count(*) |
What is other when registered voters is 50.7%? | create table table_27003186_3 (other varchar, registered_voters varchar, PRIMARY KEY (other)) | select other from table_27003186_3 where registered_voters = "50.7%" |
Name the pe̍h-ōe-jī for 前金區 | create table table_17015_2 (pe̍h_ōe_jī varchar, chinese varchar, PRIMARY KEY (pe̍h_ōe_jī)) | select pe̍h_ōe_jī from table_17015_2 where chinese = "前金區" |
What is the club when the chairman is roger lambrecht? | create table table_27374004_2 (club varchar, chairman varchar, PRIMARY KEY (club)) | select club from table_27374004_2 where chairman = "roger lambrecht" |
What is the at Manhattan record against TCU? | create table table_15740666_4 (at_manhattan varchar, kansas_state_vs varchar, PRIMARY KEY (at_manhattan)) | select at_manhattan from table_15740666_4 where kansas_state_vs = "tcu" |
What was the placing when the jockey was Damien Oliver? | create table table_24915874_1 (placing varchar, jockey varchar, PRIMARY KEY (placing)) | select placing from table_24915874_1 where jockey = "damien oliver" |
How many object dates have origin in Samoa? | create table table_29635868_1 (object_date varchar, origin varchar, PRIMARY KEY (object_date)) | select count(object_date) from table_29635868_1 where origin = "samoa" |
Who was the radio commentator when the final television commentator was John Dunn? | create table table_17766232_7 (radio_commentator varchar, final_television_commentator varchar, PRIMARY KEY (radio_commentator)) | select radio_commentator from table_17766232_7 where final_television_commentator = "john dunn" |
What was the Overs score of the career played from 1993-2007? | create table table_18914438_1 (overs varchar, career varchar, PRIMARY KEY (overs)) | select overs from table_18914438_1 where career = "1993-2007" |
What was spent per voter when total amount spent was 210,280,000? | create table table_22097588_9 (spent_per_voter___php__ varchar, amount_spent___php__ varchar, PRIMARY KEY (spent_per_voter___php__)) | select spent_per_voter___php__ from table_22097588_9 where amount_spent___php__ = "210,280,000" |
Which language does the film AIRPORT POLLOCK use? List the language name. | create table film (language_id varchar, title varchar, PRIMARY KEY (language_id)); create table language (name varchar, language_id varchar, PRIMARY KEY (name)) | select t2.name from film as t1 join language as t2 on t1.language_id = t2.language_id where t1.title = 'airport pollock' |
What is every bus type for the texture of fillrate? | create table table_25005714_3 (bus_type varchar, texture___gt__s_ varchar, PRIMARY KEY (bus_type)) | select bus_type from table_25005714_3 where texture___gt__s_ = "fillrate" |
Show first name for all students with major 600. | create table student (fname varchar, major varchar, PRIMARY KEY (fname)) | select fname from student where major = 600 |
List all webkit versions when the major version was Safari 3, and the minor version was 3.1.2. | create table table_24257833_4 (webkit_version varchar, major_version varchar, minor_version varchar, PRIMARY KEY (webkit_version)) | select webkit_version from table_24257833_4 where major_version = "safari 3" and minor_version = "3.1.2" |
who is the incumbent with candidates being bud shuster (r) unopposed | create table table_1341586_39 (incumbent varchar, candidates varchar, PRIMARY KEY (incumbent)) | select incumbent from table_1341586_39 where candidates = "bud shuster (r) unopposed" |
How many orders have detail "Second time"? | create table customer_orders (order_details varchar, PRIMARY KEY (order_details)) | select count(*) from customer_orders where order_details = "second time" |
What is the minimum 2007 USD in Kabardino-Balkaria? | create table table_24364690_1 (federal_subjects varchar, PRIMARY KEY (federal_subjects)) | select min(2007 as __usd_) from table_24364690_1 where federal_subjects = "kabardino-balkaria" |
What is the role of the employee named Koby? | create table roles (role_description varchar, role_code varchar, PRIMARY KEY (role_description)); create table employees (role_code varchar, employee_name varchar, PRIMARY KEY (role_code)) | select t1.role_description from roles as t1 join employees as t2 on t1.role_code = t2.role_code where t2.employee_name = "koby" |
How many episodes have a premier date of july 24, 2006 | create table table_2140071_7 (external_link varchar, premier_date varchar, PRIMARY KEY (external_link)) | select count(external_link) from table_2140071_7 where premier_date = "july 24, 2006" |
Find the name of instructors who didn't teach any courses? | create table teaches (name varchar, id varchar, PRIMARY KEY (name)); create table instructor (name varchar, id varchar, PRIMARY KEY (name)) | select name from instructor where not id in (select id from teaches) |
How much was solidv4 when pacbio is $300 usd? | create table table_127511_1 (solidv4 varchar, pacbio varchar, PRIMARY KEY (solidv4)) | select solidv4 from table_127511_1 where pacbio = "$300 usd" |
Name the explanation by rank is 10 | create table table_2026548_1 (explanation varchar, rank_by_time_in_office varchar, PRIMARY KEY (explanation)) | select explanation from table_2026548_1 where rank_by_time_in_office = 10 |
What was the B.P. of club Halifax? | create table table_19179465_1 (bp varchar, club varchar, PRIMARY KEY (bp)) | select bp from table_19179465_1 where club = "halifax" |
Name the air date for jay j. demopoulos | create table table_24466855_1 (original_air_date varchar, written_by varchar, PRIMARY KEY (original_air_date)) | select original_air_date from table_24466855_1 where written_by = "jay j. demopoulos" |
If the hometown is Windhoek, what is the represented? | create table table_23576576_2 (represented varchar, hometown varchar, PRIMARY KEY (represented)) | select represented from table_23576576_2 where hometown = "windhoek" |
Show the name of colleges that have at least two players in descending alphabetical order. | create table match_season (college varchar, PRIMARY KEY (college)) | select college from match_season group by college having count(*) >= 2 order by college desc |
What is the title that has 14.59 u.s. viewers (millions)? | create table table_22078691_2 (title varchar, us_viewers__millions_ varchar, PRIMARY KEY (title)) | select title from table_22078691_2 where us_viewers__millions_ = "14.59" |
whatis the gender wher ethe species is holland lop? | create table table_26615633_3 (gender varchar, species varchar, PRIMARY KEY (gender)) | select gender from table_26615633_3 where species = "holland lop" |
What is the weight of the bullet used in a Weatherby? | create table table_16010376_1 (bullet_weight varchar, source varchar, PRIMARY KEY (bullet_weight)) | select bullet_weight from table_16010376_1 where source = "weatherby" |
What is the software with version 1.2.2.0? | create table table_15038373_1 (software varchar, version varchar, PRIMARY KEY (software)) | select software from table_15038373_1 where version = "1.2.2.0" |
What is the description of the color used by least products? | create table ref_colors (color_description varchar, color_code varchar, PRIMARY KEY (color_description)); create table products (color_code varchar, PRIMARY KEY (color_code)) | select t2.color_description from products as t1 join ref_colors as t2 on t1.color_code = t2.color_code group by t2.color_description order by count(*) limit 1 |
what is the bristol & n. som where the somerset is ashcott and shapwick? | create table table_12043148_2 (bristol_ varchar, _n_som varchar, somerset varchar, PRIMARY KEY (bristol_)) | select bristol_ & _n_som from table_12043148_2 where somerset = "ashcott and shapwick" |
What is the gender of the junior high school is 24mm? | create table table_13555999_1 (gender varchar, junior_high_school__12_15_yrs_ varchar, PRIMARY KEY (gender)) | select gender from table_13555999_1 where junior_high_school__12_15_yrs_ = "24mm" |
What religious groups made up 0.72% of the Indian population in 2001? | create table table_10710364_1 (religious_group varchar, population__percentage_2001 varchar, PRIMARY KEY (religious_group)) | select religious_group from table_10710364_1 where population__percentage_2001 = "0.72%" |
Name the area for administrative county being flintshire | create table table_14925084_1 (area_1891__statute_acres_ varchar, administrative_county varchar, PRIMARY KEY (area_1891__statute_acres_)) | select area_1891__statute_acres_ from table_14925084_1 where administrative_county = "flintshire" |
Who were the pregame hosts when the sideline reporters were Steve Armitage and Brenda Irving? | create table table_17628022_2 (pregame_host varchar, sideline_reporters varchar, PRIMARY KEY (pregame_host)) | select pregame_host from table_17628022_2 where sideline_reporters = "steve armitage and brenda irving" |
For couple Todd and Susie, what was the vote percentage? | create table table_19744915_17 (vote_percentage varchar, couple varchar, PRIMARY KEY (vote_percentage)) | select vote_percentage from table_19744915_17 where couple = "todd and susie" |
Name the bulgarian for jullie hadden gehoord | create table table_1841901_1 (bulgarian varchar, dutch varchar, PRIMARY KEY (bulgarian)) | select bulgarian from table_1841901_1 where dutch = "jullie hadden gehoord" |
What is the id and trade name of the medicines can interact with at least 3 enzymes? | create table medicine (id varchar, trade_name varchar, PRIMARY KEY (id)); create table medicine_enzyme_interaction (medicine_id varchar, PRIMARY KEY (medicine_id)) | select t1.id, t1.trade_name from medicine as t1 join medicine_enzyme_interaction as t2 on t2.medicine_id = t1.id group by t1.id having count(*) >= 3 |
Give me the kickoff time of the game that was aired on CBS against the St. Louis Cardinals. | create table table_11449311_2 (kickoff_ varchar, a_ varchar, tv varchar, opponent varchar, PRIMARY KEY (kickoff_)) | select kickoff_[a_] from table_11449311_2 where tv = "cbs" and opponent = "st. louis cardinals" |
Who was the class AAAAA in 2008-09? | create table table_14603057_2 (class_aaaaa varchar, school_year varchar, PRIMARY KEY (class_aaaaa)) | select class_aaaaa from table_14603057_2 where school_year = "2008-09" |
When michigan technological university (ncaa) is the college, junior, or club team what is the nationality? | create table table_1965650_9 (nationality varchar, college_junior_club_team varchar, PRIMARY KEY (nationality)) | select nationality from table_1965650_9 where college_junior_club_team = "michigan technological university (ncaa)" |
Which manager was appointed on 08.06.2010? | create table table_27091128_2 (replaced_by varchar, date_of_appointment varchar, PRIMARY KEY (replaced_by)) | select replaced_by from table_27091128_2 where date_of_appointment = "08.06.2010" |
What is total number of show times per dat for each cinema? | create table schedule (show_times_per_day integer, cinema_id varchar, PRIMARY KEY (show_times_per_day)); create table cinema (name varchar, cinema_id varchar, PRIMARY KEY (name)) | select t2.name, sum(t1.show_times_per_day) from schedule as t1 join cinema as t2 on t1.cinema_id = t2.cinema_id group by t1.cinema_id |
How many titles were written by Don Shank and Genndy Tartakovsky? | create table table_2156758_4 (title varchar, written_by varchar, PRIMARY KEY (title)) | select count(title) from table_2156758_4 where written_by = "don shank and genndy tartakovsky" |
How many episodes were directed by Tim Matheson? | create table table_25740548_2 (original_air_date varchar, directed_by varchar, PRIMARY KEY (original_air_date)) | select count(original_air_date) from table_25740548_2 where directed_by = "tim matheson" |
What prefixes are priced at pence per minute, fixed at all times with a premium of 3p/min? | create table table_10408617_5 (prefixes varchar, scheme varchar, approx_premium varchar, PRIMARY KEY (prefixes)) | select prefixes from table_10408617_5 where scheme = "pence per minute, fixed at all times" and approx_premium = "3p/min" |
Show the names of trains and locations of railways they are in. | create table railway (location varchar, railway_id varchar, PRIMARY KEY (location)); create table train (name varchar, railway_id varchar, PRIMARY KEY (name)) | select t2.name, t1.location from railway as t1 join train as t2 on t1.railway_id = t2.railway_id |
Which episodes did Nelson McCormick direct? | create table table_17355820_1 (written_by varchar, directed_by varchar, PRIMARY KEY (written_by)) | select written_by from table_17355820_1 where directed_by = "nelson mccormick" |
What was the original air date of the episode written by michael glassberg? | create table table_26866299_1 (original_airdate varchar, writer varchar, PRIMARY KEY (original_airdate)) | select original_airdate from table_26866299_1 where writer = "michael glassberg" |
Name the pinyin for تىزناپ | create table table_2008069_2 (pinyin varchar, uyghur___k̢ona_yezik̢__ varchar, PRIMARY KEY (pinyin)) | select pinyin from table_2008069_2 where uyghur___k̢ona_yezik̢__ = "تىزناپ" |
How many high assists where there for the team of caja laboral? | create table table_27756474_2 (high_assists varchar, team varchar, PRIMARY KEY (high_assists)) | select count(high_assists) from table_27756474_2 where team = "caja laboral" |
What's the shank type of the buttonholer with red plastic box as storage case? | create table table_28652521_1 (for_shank_type varchar, storage_case varchar, PRIMARY KEY (for_shank_type)) | select for_shank_type from table_28652521_1 where storage_case = "red plastic box" |
Find the phone number of all the customers and staff. | create table staff (phone_number varchar, PRIMARY KEY (phone_number)); create table customers (phone_number varchar, PRIMARY KEY (phone_number)) | select phone_number from customers union select phone_number from staff |
Name the tongyong for chinese of 湖內區 | create table table_17015_2 (tongyong varchar, chinese varchar, PRIMARY KEY (tongyong)) | select tongyong from table_17015_2 where chinese = "湖內區" |
Name the country when dar is 16:9 for italian english for disney xd +2 | create table table_15887683_9 (country varchar, television_service varchar, dar varchar, language varchar, PRIMARY KEY (country)) | select country from table_15887683_9 where dar = "16:9" and language = "italian english" and television_service = "disney xd +2" |
How many records have black knights points as 17? | create table table_21091162_1 (record varchar, black_knights_points varchar, PRIMARY KEY (record)) | select count(record) from table_21091162_1 where black_knights_points = 17 |
What is the maturity that has a coupon of exactly 0.726? | create table table_21692771_1 (maturity varchar, coupon varchar, PRIMARY KEY (maturity)) | select maturity from table_21692771_1 where coupon = "0.726" |
Which location has 103.534 million passengers in 2011-12? | create table table_18118221_1 (location varchar, total_passengers__millions__2011_12 varchar, PRIMARY KEY (location)) | select location from table_18118221_1 where total_passengers__millions__2011_12 = "103.534" |
How many countries has more than 2 car makers ? | create table car_makers (country varchar, PRIMARY KEY (country)); create table countries (countryid varchar, PRIMARY KEY (countryid)) | select count(*) from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 2 |
Name the total number of viewers for audience share in timeslot for 10.2% | create table table_19834691_4 (viewers__millions_ varchar, audience_share_in_timeslot varchar, PRIMARY KEY (viewers__millions_)) | select count(viewers__millions_) from table_19834691_4 where audience_share_in_timeslot = "10.2%" |
What political party for burton e. sweet? | create table table_1342451_13 (party varchar, incumbent varchar, PRIMARY KEY (party)) | select party from table_1342451_13 where incumbent = "burton e. sweet" |
Show all locations with only 1 station. | create table station (location varchar, PRIMARY KEY (location)) | select location from station group by location having count(*) = 1 |
What type of cartridge is used by a Weatherby? | create table table_16010376_1 (cartridge varchar, source varchar, PRIMARY KEY (cartridge)) | select cartridge from table_16010376_1 where source = "weatherby" |
Name the tigrinya for χams- | create table table_26919_6 (tigrinya varchar, arabic varchar, PRIMARY KEY (tigrinya)) | select count(tigrinya) from table_26919_6 where arabic = "χams-" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.