question
stringlengths 14
216
| context
stringlengths 45
458
| answer
stringlengths 18
463
|
---|---|---|
What is the median income for the region where 24.4% pf people make below 60% of the median income? | create table table_25042332_16 (median_income___intl integer, below_60_percentage_of_median_income varchar, PRIMARY KEY (median_income___intl)) | select min(median_income___intl) as $__ from table_25042332_16 where below_60_percentage_of_median_income = "24.4%" |
How many events are there? | create table event (id varchar, PRIMARY KEY (id)) | select count(*) from event |
How many polling percentages were there in October 2008 when is was 30.8% in Aug 2008? | create table table_23680576_2 (oct_2008 varchar, aug_2008 varchar, PRIMARY KEY (oct_2008)) | select count(oct_2008) from table_23680576_2 where aug_2008 = "30.8%" |
What was the result of the election in the district whose incumbent is Tom Foley? | create table table_1341568_48 (status varchar, incumbent varchar, PRIMARY KEY (status)) | select status from table_1341568_48 where incumbent = "tom foley" |
who is the the womens doubles with mens doubles being reinhold pum karl buchart and mixed doubles being hermann fröhlich lore voit | create table table_15002265_1 (womens_doubles varchar, mens_doubles varchar, mixed_doubles varchar, PRIMARY KEY (womens_doubles)) | select womens_doubles from table_15002265_1 where mens_doubles = "reinhold pum karl buchart" and mixed_doubles = "hermann fröhlich lore voit" |
How many documents can one grant have at most? List the grant id and number. | create table documents (grant_id varchar, PRIMARY KEY (grant_id)) | select grant_id, count(*) from documents group by grant_id order by count(*) desc limit 1 |
What locations are considered centre? | create table table_26387382_1 (power__mw·hr_yr_ varchar, location__county_ varchar, PRIMARY KEY (power__mw·hr_yr_)) | select power__mw·hr_yr_ from table_26387382_1 where location__county_ = "centre" |
when did the club Citizen achieve its last top division title? | create table table_1908877_2 (last_top_division_title varchar, club varchar, PRIMARY KEY (last_top_division_title)) | select last_top_division_title from table_1908877_2 where club = "citizen" |
Name the total number of director for vesničko má středisková | create table table_23141790_1 (director varchar, original_title varchar, PRIMARY KEY (director)) | select count(director) from table_23141790_1 where original_title = "vesničko má středisková" |
What is the premiere on the mega channel? | create table table_11323532_2 (premiere varchar, channel varchar, PRIMARY KEY (premiere)) | select premiere from table_11323532_2 where channel = "mega channel" |
Incumbent Bill Harsha was the winner in an election in which the candidates were who? | create table table_1341718_36 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates)) | select candidates from table_1341718_36 where incumbent = "bill harsha" |
Who is the outgoing manager when the team is simurq pfc? | create table table_27057070_3 (outgoing_manager varchar, team varchar, PRIMARY KEY (outgoing_manager)) | select outgoing_manager from table_27057070_3 where team = "simurq pfc" |
who is the dudley tuckey medal where leading goalkicker is scott simister (46) | create table table_1165048_1 (dudley_tuckey_medal varchar, leading_goalkicker varchar, PRIMARY KEY (dudley_tuckey_medal)) | select dudley_tuckey_medal from table_1165048_1 where leading_goalkicker = "scott simister (46)" |
Show names of musicals which have at least three actors. | create table actor (musical_id varchar, PRIMARY KEY (musical_id)); create table musical (name varchar, musical_id varchar, PRIMARY KEY (name)) | select t2.name from actor as t1 join musical as t2 on t1.musical_id = t2.musical_id group by t1.musical_id having count(*) >= 3 |
What is the Spanish title of the film whose title used in nomination was Ogu and Mampato in Rapa Nui? | create table table_20404716_1 (spanish_title varchar, film_title_used_in_nomination varchar, PRIMARY KEY (spanish_title)) | select spanish_title from table_20404716_1 where film_title_used_in_nomination = "ogu and mampato in rapa nui" |
How many trains leave from puri? | create table table_12095519_1 (train_name varchar, origin varchar, PRIMARY KEY (train_name)) | select count(train_name) from table_12095519_1 where origin = "puri" |
Name the party for john randolph redistricted from the 15th district | create table table_2668367_21 (party varchar, incumbent varchar, PRIMARY KEY (party)) | select party from table_2668367_21 where incumbent = "john randolph redistricted from the 15th district" |
Find all airlines that have flights from airport 'CVO' but not from 'APG'. | create table airlines (airline varchar, uid varchar, PRIMARY KEY (airline)); create table flights (airline varchar, sourceairport varchar, PRIMARY KEY (airline)) | select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.sourceairport = "cvo" except select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.sourceairport = "apg" |
What is the document type name and the document type description and creation date for all the documents? | create table ref_document_types (document_type_name varchar, document_type_description varchar, document_type_code varchar, PRIMARY KEY (document_type_name)); create table documents (document_date varchar, document_type_code varchar, PRIMARY KEY (document_date)) | select t1.document_type_name, t1.document_type_description, t2.document_date from ref_document_types as t1 join documents as t2 on t1.document_type_code = t2.document_type_code |
Who won the womens singles when Marc Zwiebler won the men's singles? | create table table_12121208_1 (womens_singles varchar, mens_singles varchar, PRIMARY KEY (womens_singles)) | select womens_singles from table_12121208_1 where mens_singles = "marc zwiebler" |
what is the amount of profits in billions for companies with a market value of 204.9 billion? | create table table_1682026_6 (profits__billion_$_ varchar, market_value__billion_$_ varchar, PRIMARY KEY (profits__billion_$_)) | select profits__billion_$_ from table_1682026_6 where market_value__billion_$_ = "204.9" |
Which artists have order number 6? | create table table_29756040_1 (original_artist varchar, order__number varchar, PRIMARY KEY (original_artist)) | select original_artist from table_29756040_1 where order__number = "6" |
What are the torque characteristics of the model with 346 applications? | create table table_20007413_6 (torque varchar, applications varchar, PRIMARY KEY (torque)) | select torque from table_20007413_6 where applications = 346 |
What are the code and description of the most frequent behavior incident type? | create table ref_incident_type (incident_type_description varchar, incident_type_code varchar, PRIMARY KEY (incident_type_description)); create table behavior_incident (incident_type_code varchar, PRIMARY KEY (incident_type_code)) | select t1.incident_type_code, t2.incident_type_description from behavior_incident as t1 join ref_incident_type as t2 on t1.incident_type_code = t2.incident_type_code group by t1.incident_type_code order by count(*) desc limit 1 |
What is every denomination for the school Seymour college? | create table table_22043925_1 (denomination varchar, school varchar, PRIMARY KEY (denomination)) | select denomination from table_22043925_1 where school = "seymour college" |
When the network mask is 255.255.255.128 what is the lowest available subnet? | create table table_149426_4 (available_subnets integer, network_mask varchar, PRIMARY KEY (available_subnets)) | select min(available_subnets) from table_149426_4 where network_mask = "255.255.255.128" |
With which kind of payment method were the least number of payments processed? | create table payments (payment_method_code varchar, PRIMARY KEY (payment_method_code)) | select payment_method_code from payments group by payment_method_code order by count(*) limit 1 |
When march is 129 what is the August number? | create table table_25235489_2 (august_21_22 varchar, march_27_29 varchar, PRIMARY KEY (august_21_22)) | select august_21_22 from table_25235489_2 where march_27_29 = "129" |
Which company name has headquarters in nagaokakyo, kyoto? | create table table_237199_1 (company_name varchar, world_headquarters varchar, PRIMARY KEY (company_name)) | select company_name from table_237199_1 where world_headquarters = "nagaokakyo, kyoto" |
What digital channel corresponds to virtual channel 23.2? | create table table_2857352_3 (digital_channel varchar, virtual_channel varchar, PRIMARY KEY (digital_channel)) | select digital_channel from table_2857352_3 where virtual_channel = "23.2" |
Name the opponent for astrodome | create table table_14418812_1 (opponent varchar, game_site varchar, PRIMARY KEY (opponent)) | select opponent from table_14418812_1 where game_site = "astrodome" |
What is the date of appointment when the date of vacancy is 15 march 2011? | create table table_26998135_2 (date_of_appointment varchar, date_of_vacancy varchar, PRIMARY KEY (date_of_appointment)) | select date_of_appointment from table_26998135_2 where date_of_vacancy = "15 march 2011" |
When the ability is 32, what is the leadership ability? | create table table_1855342_5 (leadership_ability integer, overall_ability varchar, PRIMARY KEY (leadership_ability)) | select max(leadership_ability) from table_1855342_5 where overall_ability = 32 |
Name the original air date for harry hannigan directed by adam weissman | create table table_23937219_2 (original_air_date varchar, written_by varchar, directed_by varchar, PRIMARY KEY (original_air_date)) | select original_air_date from table_23937219_2 where written_by = "harry hannigan" and directed_by = "adam weissman" |
Name the home team score for brisbane lions | create table table_16388439_3 (home_team varchar, PRIMARY KEY (home_team)) | select home_team as score from table_16388439_3 where home_team = "brisbane lions" |
Which headquarters are associated with the school board Renfrew County Catholic District School Board? | create table table_1506619_1 (headquarters varchar, school_board varchar, PRIMARY KEY (headquarters)) | select headquarters from table_1506619_1 where school_board = "renfrew county catholic district school_board" |
Name the comptroller for republican | create table table_22607062_1 (comptroller varchar, ticket___office varchar, PRIMARY KEY (comptroller)) | select comptroller from table_22607062_1 where ticket___office = "republican" |
Who is man of the match for match number 5? | create table table_17103566_1 (man_of_the_match varchar, match_number varchar, PRIMARY KEY (man_of_the_match)) | select man_of_the_match from table_17103566_1 where match_number = 5 |
List the 1st air date for the show where the writers are russel friend & garrett lerner. | create table table_22904780_1 (original_air_date varchar, written_by varchar, PRIMARY KEY (original_air_date)) | select original_air_date from table_22904780_1 where written_by = "russel friend & garrett lerner" |
What is the mountain classification name if the winner is Bernhard Eisel? | create table table_22941863_19 (mountains_classification varchar, winner varchar, PRIMARY KEY (mountains_classification)) | select mountains_classification from table_22941863_19 where winner = "bernhard eisel" |
what is the minimum number is lariciresinol where matairesinol number is 440? | create table table_1831262_2 (lariciresinol integer, matairesinol varchar, PRIMARY KEY (lariciresinol)) | select min(lariciresinol) from table_1831262_2 where matairesinol = 440 |
What's the percentage of undecided according to the poll source with sampling error of 2.7%? | create table table_20032301_3 (undecided varchar, sampling_error varchar, PRIMARY KEY (undecided)) | select undecided from table_20032301_3 where sampling_error = "2.7%" |
How was the Temple of Artemis at Ephesus destroyed? | create table table_19342760_1 (cause_of_destruction varchar, name varchar, PRIMARY KEY (cause_of_destruction)) | select cause_of_destruction from table_19342760_1 where name = "temple of artemis at ephesus" |
How many characters does Maurice Dean Wint play in the movie Cube? | create table table_2933761_1 (status varchar, played_by varchar, PRIMARY KEY (status)) | select count(status) from table_2933761_1 where played_by = "maurice dean wint" |
Who is the chairman when teh captain is fawzi bashir? | create table table_27631756_2 (chairman varchar, captain varchar, PRIMARY KEY (chairman)) | select chairman from table_27631756_2 where captain = "fawzi bashir" |
What is the total number of N for the element with nuclide of 141 pr? | create table table_15366768_1 (n___n__ varchar, nuclide varchar, PRIMARY KEY (n___n__)) | select count(n___n__) from table_15366768_1 where nuclide = "141 pr" |
For each election cycle, report the number of voting records. | create table voting_record (election_cycle varchar, PRIMARY KEY (election_cycle)) | select election_cycle, count(*) from voting_record group by election_cycle |
What was the Sat 21 Aug time for the rider whose Tues 24 Aug time was 20' 38.40 109.680mph? | create table table_26986076_6 (sat_21_aug varchar, tues_24_aug varchar, PRIMARY KEY (sat_21_aug)) | select sat_21_aug from table_26986076_6 where tues_24_aug = "20' 38.40 109.680mph" |
Show the number of documents. | create table documents (id varchar, PRIMARY KEY (id)) | select count(*) from documents |
For each product which has problems, what are the number of problems and the product id? | create table problems (product_id varchar, PRIMARY KEY (product_id)); create table product (product_id varchar, PRIMARY KEY (product_id)) | select count(*), t2.product_id from problems as t1 join product as t2 on t1.product_id = t2.product_id group by t2.product_id |
What is the name of department where has the smallest number of professors? | create table professor (dept_code varchar, PRIMARY KEY (dept_code)); create table department (dept_name varchar, dept_code varchar, PRIMARY KEY (dept_name)) | select t2.dept_name from professor as t1 join department as t2 on t1.dept_code = t2.dept_code group by t1.dept_code order by count(*) limit 1 |
What is every value for average on previous season if the competition is league two? | create table table_2970978_1 (___ave_on_prev_season varchar, competition varchar, PRIMARY KEY (___ave_on_prev_season)) | select ___ave_on_prev_season from table_2970978_1 where competition = "league two" |
List all candidates in elections where the incumbent politician is Goodloe Byron. | create table table_1341690_20 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates)) | select candidates from table_1341690_20 where incumbent = "goodloe byron" |
Show all template type codes with less than three templates. | create table templates (template_type_code varchar, PRIMARY KEY (template_type_code)) | select template_type_code from templates group by template_type_code having count(*) < 3 |
what's the permanence of the body where penance is the undifferenced | create table table_11609814_1 (permanence_of_the_body varchar, penance varchar, PRIMARY KEY (permanence_of_the_body)) | select permanence_of_the_body from table_11609814_1 where penance = "the undifferenced" |
What are the career and other notes for wrestlers whose stable is oguruma? | create table table_1557974_1 (career_and_other_notes varchar, stable varchar, PRIMARY KEY (career_and_other_notes)) | select career_and_other_notes from table_1557974_1 where stable = "oguruma" |
What is the enrollment ratio in preschool in the region where the enrollment ratio in primary is 93.10? | create table table_25042332_22 (preschool__0_5_years_ varchar, primary__6_13_years_ varchar, PRIMARY KEY (preschool__0_5_years_)) | select preschool__0_5_years_ from table_25042332_22 where primary__6_13_years_ = "93.10" |
Who was the leading actor in the film with a supporting actor named Cecil Kellaway? | create table table_24225238_1 (leading_actor varchar, supporting_actor varchar, PRIMARY KEY (leading_actor)) | select leading_actor from table_24225238_1 where supporting_actor = "cecil kellaway" |
List the maximum, minimum and average number of used kb in screen mode. | create table screen_mode (used_kb integer, PRIMARY KEY (used_kb)) | select max(used_kb), min(used_kb), avg(used_kb) from screen_mode |
What is the nba draft for the player from the hometown of virginia beach, va? | create table table_11677760_1 (nba_draft varchar, hometown varchar, PRIMARY KEY (nba_draft)) | select nba_draft from table_11677760_1 where hometown = "virginia beach, va" |
How many customers are there in the customer type with the most customers? | create table customers (customer_type_code varchar, PRIMARY KEY (customer_type_code)) | select count(*) from customers group by customer_type_code order by count(*) desc limit 1 |
What is every original air date with U.S. viewers of 0.23 million? | create table table_29803475_2 (original_air_date varchar, us_viewers__million_ varchar, PRIMARY KEY (original_air_date)) | select original_air_date from table_29803475_2 where us_viewers__million_ = "0.23" |
What was the lowest attendance figure at Football Park? | create table table_1161065_28 (lowest varchar, venue varchar, PRIMARY KEY (lowest)) | select lowest from table_1161065_28 where venue = "football park" |
Name the state class for resigned november 3, 1964 | create table table_2159506_3 (state__class_ varchar, reason_for_change varchar, PRIMARY KEY (state__class_)) | select state__class_ from table_2159506_3 where reason_for_change = "resigned november 3, 1964" |
What was the score in the final where one of the opponents in the final was fitzgerald vilas? | create table table_22597626_17 (score_in_the_final varchar, opponents_in_the_final varchar, PRIMARY KEY (score_in_the_final)) | select score_in_the_final from table_22597626_17 where opponents_in_the_final = "fitzgerald vilas" |
What was the score for the game that kicked off at 6:00 p.m.? | create table table_24918268_2 (final_score varchar, kickoff varchar, PRIMARY KEY (final_score)) | select final_score from table_24918268_2 where kickoff = "6:00 p.m." |
What is the varsity name of the university of mcgill university? | create table table_27369069_4 (varsity_name varchar, university varchar, PRIMARY KEY (varsity_name)) | select varsity_name from table_27369069_4 where university = "mcgill university" |
Name the degree for otorhinolaryngology | create table table_19304764_2 (degree_diploma varchar, discipline varchar, PRIMARY KEY (degree_diploma)) | select degree_diploma from table_19304764_2 where discipline = "otorhinolaryngology" |
When aspect computing is the yacht what is the sail number? | create table table_1858574_2 (sail_number varchar, yacht varchar, PRIMARY KEY (sail_number)) | select sail_number from table_1858574_2 where yacht = "aspect computing" |
Name the location for 2-1 record | create table table_23192661_3 (location varchar, record varchar, PRIMARY KEY (location)) | select location from table_23192661_3 where record = "2-1" |
Name the number of total pts for gbr challenge | create table table_21457754_2 (total_pts varchar, team_name varchar, PRIMARY KEY (total_pts)) | select count(total_pts) from table_21457754_2 where team_name = "gbr challenge" |
Who are the friends of Bob? | create table personfriend (friend varchar, name varchar, PRIMARY KEY (friend)); create table person (name varchar, PRIMARY KEY (name)) | select t2.friend from person as t1 join personfriend as t2 on t1.name = t2.name where t1.name = 'bob' |
Who directed the episode watched by 2.01 million US viewers? | create table table_28466323_2 (directed_by varchar, us_viewers__million_ varchar, PRIMARY KEY (directed_by)) | select directed_by from table_28466323_2 where us_viewers__million_ = "2.01" |
What number is shown for january 15-16 when november 3 is 133? | create table table_25252080_3 (january_15_16 varchar, november_3 varchar, PRIMARY KEY (january_15_16)) | select january_15_16 from table_25252080_3 where november_3 = "133" |
What city has channel tv (dt) 25 (31)? | create table table_1353096_1 (city_of_license__market varchar, channel_tv___dt__ varchar, PRIMARY KEY (city_of_license__market)) | select city_of_license__market from table_1353096_1 where channel_tv___dt__ = "25 (31)" |
Who is the play-by-play when nbc is the network and darren pang is the ice level reporters? | create table table_22485543_1 (play_by_play varchar, network varchar, ice_level_reporters varchar, PRIMARY KEY (play_by_play)) | select play_by_play from table_22485543_1 where network = "nbc" and ice_level_reporters = "darren pang" |
What document status codes do we have? | create table ref_document_status (document_status_code varchar, PRIMARY KEY (document_status_code)) | select document_status_code from ref_document_status |
what is the location where there are over 200 cattle businesses | create table table_29012710_1 (province varchar, number_of_dairy_farms varchar, PRIMARY KEY (province)) | select province from table_29012710_1 where number_of_dairy_farms = 200 |
Show the id, name of each editor and the number of journal committees they are on. | create table editor (editor_id varchar, name varchar, editor_id varchar, PRIMARY KEY (editor_id)); create table journal_committee (editor_id varchar, PRIMARY KEY (editor_id)) | select t1.editor_id, t1.name, count(*) from editor as t1 join journal_committee as t2 on t1.editor_id = t2.editor_id group by t1.editor_id |
Name the least 2 credits for flush | create table table_148535_2 (hand varchar, PRIMARY KEY (hand)) | select min(2 as _credits) from table_148535_2 where hand = "flush" |
Who is the outgoing head coach when the incoming head coach is abdollah veysi? | create table table_27383390_4 (outgoing_head_coach varchar, incoming_head_coach varchar, PRIMARY KEY (outgoing_head_coach)) | select outgoing_head_coach from table_27383390_4 where incoming_head_coach = "abdollah veysi" |
What is the 3rd ratio for tag number 1386-000-017 and input splines of 26? | create table table_1310499_1 (input_splines varchar, tag_id varchar, PRIMARY KEY (input_splines)) | select 3 as rd from table_1310499_1 where input_splines = 26 and tag_id = "1386-000-017" |
Who was in the original berkley cast while stark sands was in the original broadway cast? | create table table_24353141_1 (original_berkeley_cast varchar, original_broadway_cast varchar, PRIMARY KEY (original_berkeley_cast)) | select original_berkeley_cast from table_24353141_1 where original_broadway_cast = "stark sands" |
What's the Chinese (simplified/traditional) name of Susong County? | create table table_1976898_1 (chinese_name__simplified___traditional_ varchar, english_name varchar, PRIMARY KEY (chinese_name__simplified___traditional_)) | select chinese_name__simplified___traditional_ from table_1976898_1 where english_name = "susong county" |
Show the types of schools that have two schools. | create table school (type varchar, PRIMARY KEY (type)) | select type from school group by type having count(*) = 2 |
What is the thai name of the transcription wan chan? | create table table_180802_3 (thai_name varchar, transcription varchar, PRIMARY KEY (thai_name)) | select thai_name from table_180802_3 where transcription = "wan chan" |
Name the title that was directed by john terlesky | create table table_24222929_2 (title varchar, directed_by varchar, PRIMARY KEY (title)) | select title from table_24222929_2 where directed_by = "john terlesky" |
Which chromosomes have an unknown property? | create table table_29871617_1 (name varchar, property varchar, PRIMARY KEY (name)) | select name from table_29871617_1 where property = "unknown" |
What is the arabs when the annual population growth rate is 1.7%? | create table table_25947046_1 (arabs varchar, annual_population_growth_rate varchar, PRIMARY KEY (arabs)) | select arabs from table_25947046_1 where annual_population_growth_rate = "1.7%" |
Which enzyme names have the substring "ALA"? | create table enzyme (name varchar, PRIMARY KEY (name)) | select name from enzyme where name like "%ala%" |
What was the average speed (mph) for the racer who finished in 1:45:00? | create table table_17802778_1 (average_speed__mph_ varchar, race_time varchar, PRIMARY KEY (average_speed__mph_)) | select average_speed__mph_ from table_17802778_1 where race_time = "1:45:00" |
How many times did Australasia received a program if the Americas received 115 program? | create table table_27184837_1 (australasia varchar, americas varchar, PRIMARY KEY (australasia)) | select count(australasia) from table_27184837_1 where americas = 115 |
Who were the MLB draft with the hometown Opa-locka, Fl? | create table table_11677100_12 (mlb_draft varchar, hometown varchar, PRIMARY KEY (mlb_draft)) | select mlb_draft from table_11677100_12 where hometown = "opa-locka, fl" |
Name the builder for serial number being 377 | create table table_20236726_2 (builder varchar, serial_no varchar, PRIMARY KEY (builder)) | select builder from table_20236726_2 where serial_no = 377 |
Where is lincoln high school located? | create table table_11677691_6 (hometown varchar, school varchar, PRIMARY KEY (hometown)) | select hometown from table_11677691_6 where school = "lincoln high school" |
who scored highest points on the game with record 27–5 | create table table_17190012_7 (high_points varchar, record varchar, PRIMARY KEY (high_points)) | select high_points from table_17190012_7 where record = "27–5" |
Who was the RF when the SP was vicente padilla? | create table table_12142298_2 (rightfielder varchar, starting_pitcher varchar, PRIMARY KEY (rightfielder)) | select rightfielder from table_12142298_2 where starting_pitcher = "vicente padilla" |
How many teams have a head coach named mahdi ali? | create table table_27631756_2 (team varchar, head_coach varchar, PRIMARY KEY (team)) | select count(team) from table_27631756_2 where head_coach = "mahdi ali" |
Which event had 25,883 entries? | create table table_22050544_3 (event varchar, entries varchar, PRIMARY KEY (event)) | select event from table_22050544_3 where entries = "25,883" |
Name the total number of model for amd opteron dual-core 2.6ghz | create table table_27765443_2 (model___computer_name varchar, cpu_type varchar, PRIMARY KEY (model___computer_name)) | select count(model___computer_name) from table_27765443_2 where cpu_type = "amd opteron dual-core 2.6ghz" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.