question
stringlengths 14
216
| context
stringlengths 45
458
| answer
stringlengths 18
463
|
---|---|---|
What is the holmenkollen for the 1982 FIS Nordic World Ski Championships? | create table table_174491_2 (holmenkollen varchar, fis_nordic_world_ski_championships varchar, PRIMARY KEY (holmenkollen)) | select holmenkollen from table_174491_2 where fis_nordic_world_ski_championships = "1982" |
What writers are associated with a viewing figure of 7.01 million? | create table table_15026994_2 (writer varchar, viewing_figure varchar, PRIMARY KEY (writer)) | select writer from table_15026994_2 where viewing_figure = "7.01 million" |
What was the original air-date that had 4.77 million viewers? | create table table_27927185_1 (originalairdate varchar, viewers__millions_ varchar, PRIMARY KEY (originalairdate)) | select originalairdate from table_27927185_1 where viewers__millions_ = "4.77" |
How many viewers watched the episode written by shana goldberg-meehan & greg malins? | create table table_27403436_1 (us_viewers__million_ varchar, written_by varchar, PRIMARY KEY (us_viewers__million_)) | select us_viewers__million_ from table_27403436_1 where written_by = "shana goldberg-meehan & greg malins" |
What's the participle when the verbal noun is i-bil-tze? | create table table_12784134_1 (participle varchar, verbal_noun varchar, PRIMARY KEY (participle)) | select participle from table_12784134_1 where verbal_noun = "i-bil-tze" |
How many CFL teams are from York college? | create table table_10975034_4 (cfl_team varchar, college varchar, PRIMARY KEY (cfl_team)) | select count(cfl_team) from table_10975034_4 where college = "york" |
What is the number of directors for the film title Eldra? | create table table_26385848_1 (director varchar, film_title varchar, PRIMARY KEY (director)) | select count(director) from table_26385848_1 where film_title = "eldra" |
List each birth place along with the number of people from there. | create table people (birth_place varchar, PRIMARY KEY (birth_place)) | select birth_place, count(*) from people group by birth_place |
Who was the winner on the Symmons Plains Raceway? | create table table_14016079_1 (winner varchar, circuit varchar, PRIMARY KEY (winner)) | select winner from table_14016079_1 where circuit = "symmons plains raceway" |
Show ids for all students who have advisor 1121. | create table student (stuid varchar, advisor varchar, PRIMARY KEY (stuid)) | select stuid from student where advisor = 1121 |
How many high schools have storm mascots? | create table table_22058547_1 (high_school varchar, mascot varchar, PRIMARY KEY (high_school)) | select high_school from table_22058547_1 where mascot = "storm" |
List the names of all distinct products in alphabetical order. | create table products (product_name varchar, PRIMARY KEY (product_name)) | select distinct product_name from products order by product_name |
How many services has each resident requested? List the resident id, details, and the count in descending order of the count. | create table residents_services (resident_id varchar, PRIMARY KEY (resident_id)); create table residents (resident_id varchar, other_details varchar, PRIMARY KEY (resident_id)) | select t1.resident_id, t1.other_details, count(*) from residents as t1 join residents_services as t2 on t1.resident_id = t2.resident_id group by t1.resident_id order by count(*) desc |
display job title and average salary of employees. | create table jobs (job_title varchar, job_id varchar, PRIMARY KEY (job_title)); create table employees (job_id varchar, PRIMARY KEY (job_id)) | select job_title, avg(salary) from employees as t1 join jobs as t2 on t1.job_id = t2.job_id group by t2.job_title |
Name the original air date for bryan moore & chris peterson | create table table_27988408_1 (original_air_date varchar, written_by varchar, PRIMARY KEY (original_air_date)) | select original_air_date from table_27988408_1 where written_by = "bryan moore & chris peterson" |
How many trademarks list a molecular target of minor groove of dna and a clinical status value of phase i? | create table table_12715053_1 (trademark varchar, molecular_target varchar, clinical_status varchar, PRIMARY KEY (trademark)) | select count(trademark) from table_12715053_1 where molecular_target = "minor groove of dna" and clinical_status = "phase i" |
Which country is the player that went to Oregon? | create table table_11545282_12 (nationality varchar, school_club_team varchar, PRIMARY KEY (nationality)) | select nationality from table_11545282_12 where school_club_team = "oregon" |
Name the total number of segment c for pressure cookers | create table table_15187735_13 (segment_c varchar, segment_a varchar, PRIMARY KEY (segment_c)) | select count(segment_c) from table_15187735_13 where segment_a = "pressure cookers" |
What type of dock connection does the sounddock series III have? | create table table_24384861_1 (dock_connection varchar, version varchar, PRIMARY KEY (dock_connection)) | select dock_connection from table_24384861_1 where version = "sounddock series iii" |
What is the church name located in Høyanger? | create table table_178389_1 (church_name varchar, location_of_the_church varchar, PRIMARY KEY (church_name)) | select church_name from table_178389_1 where location_of_the_church = "høyanger" |
Who directed the title written by cherry chevapravatdumrong? | create table table_22269839_1 (directed_by varchar, written_by varchar, PRIMARY KEY (directed_by)) | select directed_by from table_22269839_1 where written_by = "cherry chevapravatdumrong" |
Name the segment c for pottery | create table table_15187735_3 (segment_c varchar, segment_b varchar, PRIMARY KEY (segment_c)) | select segment_c from table_15187735_3 where segment_b = "pottery" |
What school classifications have trappers as mascot? | create table table_22058547_1 (type varchar, mascot varchar, PRIMARY KEY (type)) | select type from table_22058547_1 where mascot = "trappers" |
What is the % of total capacity when the generators is 4048? | create table table_11456251_5 (_percentage_of_total_capacity varchar, number_of_generators varchar, PRIMARY KEY (_percentage_of_total_capacity)) | select _percentage_of_total_capacity from table_11456251_5 where number_of_generators = 4048 |
What team's overal record is 22-11? | create table table_23183195_2 (team varchar, overall_record varchar, PRIMARY KEY (team)) | select team from table_23183195_2 where overall_record = "22-11" |
what's the local title with seasons and winners being series 1, 2006: lucy benjamin | create table table_13779832_1 (local_title varchar, seasons_and_winners varchar, PRIMARY KEY (local_title)) | select local_title from table_13779832_1 where seasons_and_winners = "series 1, 2006: lucy benjamin" |
Name the percentage of votes for 3rd finished | create table table_26267849_11 (percentage_of_votes varchar, finished varchar, PRIMARY KEY (percentage_of_votes)) | select percentage_of_votes from table_26267849_11 where finished = "3rd" |
What was the delivery date when s2 (lst) type, s2 (frigate) type, c1-m type was delivered? | create table table_11552751_2 (ship_types_delivered varchar, PRIMARY KEY (ship_types_delivered)) | select 1 as st_ship_delivery_date from table_11552751_2 where ship_types_delivered = "s2 (lst) type, s2 (frigate) type, c1-m type" |
How many team songs does fremantle have? | create table table_28243323_1 (basis_for_team_song varchar, club_name varchar, PRIMARY KEY (basis_for_team_song)) | select count(basis_for_team_song) from table_28243323_1 where club_name = "fremantle" |
What is the shipping agent code of shipping agent UPS? | create table ref_shipping_agents (shipping_agent_code varchar, shipping_agent_name varchar, PRIMARY KEY (shipping_agent_code)) | select shipping_agent_code from ref_shipping_agents where shipping_agent_name = "ups" |
Please show the names of aircrafts associated with airport with name "London Gatwick". | create table airport (airport_id varchar, airport_name varchar, PRIMARY KEY (airport_id)); create table aircraft (aircraft varchar, aircraft_id varchar, PRIMARY KEY (aircraft)); create table airport_aircraft (aircraft_id varchar, airport_id varchar, PRIMARY KEY (aircraft_id)) | select t1.aircraft from aircraft as t1 join airport_aircraft as t2 on t1.aircraft_id = t2.aircraft_id join airport as t3 on t2.airport_id = t3.airport_id where t3.airport_name = "london gatwick" |
What party was Tony P. Hall affiliated with? | create table table_1341586_36 (party varchar, incumbent varchar, PRIMARY KEY (party)) | select party from table_1341586_36 where incumbent = "tony p. hall" |
What is the Sr. number of Banikhet Dalhouse Khajiar? | create table table_26036389_1 (sr_no integer, name_of_road varchar, PRIMARY KEY (sr_no)) | select max(sr_no) from table_26036389_1 where name_of_road = "banikhet dalhouse khajiar" |
Name the ezhavas and syrian christians being 26.2 | create table table_23214055_2 (ezhavas varchar, syrian_christians varchar, PRIMARY KEY (ezhavas)) | select ezhavas from table_23214055_2 where syrian_christians = "26.2" |
How many different shareholders have 2.39 % of capital? | create table table_206359_1 (shareholder_name varchar, _percentage_of_capital varchar, PRIMARY KEY (shareholder_name)) | select count(shareholder_name) from table_206359_1 where _percentage_of_capital = "2.39" |
How many males are in the group that has an amount of 139361 | create table table_28939145_2 (male varchar, female varchar, PRIMARY KEY (male)) | select male from table_28939145_2 where female = 139361 |
How many times was the time 19' 38.87 115.219mph on Fri Aug 27? | create table table_26986076_1 (mon_23_aug varchar, fri_27_aug varchar, PRIMARY KEY (mon_23_aug)) | select count(mon_23_aug) from table_26986076_1 where fri_27_aug = "19' 38.87 115.219mph" |
Name the city for kanjiža | create table table_2562572_5 (city___municipality varchar, urban_settlement varchar, PRIMARY KEY (city___municipality)) | select city___municipality from table_2562572_5 where urban_settlement = "kanjiža" |
What is the callsign of tuguegarao | create table table_12547903_2 (callsign varchar, location__transmitter_site_ varchar, PRIMARY KEY (callsign)) | select callsign from table_12547903_2 where location__transmitter_site_ = "tuguegarao" |
What is the engine displacement for the engine type b5254 t? | create table table_1147705_1 (engine_displacement varchar, engine_type varchar, PRIMARY KEY (engine_displacement)) | select engine_displacement from table_1147705_1 where engine_type = "b5254 t" |
What languages were spoken in the film "FireDancer"? | create table table_17155250_1 (language_s_ varchar, film_title_used_in_nomination varchar, PRIMARY KEY (language_s_)) | select language_s_ from table_17155250_1 where film_title_used_in_nomination = "firedancer" |
Find the number of followers for each user. | create table follows (f1 varchar, PRIMARY KEY (f1)) | select count(*) from follows group by f1 |
What is the title of the book when the publisher is black car publishing? | create table table_20193855_2 (book_title varchar, publisher varchar, PRIMARY KEY (book_title)) | select book_title from table_20193855_2 where publisher = "black car publishing" |
Who had the time of 22' 09.44 93.840mph on Tuesday August 24th? | create table table_26986076_7 (rider varchar, tues_24_aug varchar, PRIMARY KEY (rider)) | select rider from table_26986076_7 where tues_24_aug = "22' 09.44 93.840mph" |
In how many networks the local name of the franchise was "in sickness and in health"? | create table table_12438767_1 (network varchar, local_name varchar, PRIMARY KEY (network)) | select count(network) from table_12438767_1 where local_name = "in sickness and in health" |
Please list the name and id of all artists that have at least 3 albums in alphabetical order. | create table artist (name varchar, artistid varchar, PRIMARY KEY (name)); create table album (artistid varchar, PRIMARY KEY (artistid)) | select t2.name, t1.artistid from album as t1 join artist as t2 on t1.artistid = t2.artistid group by t1.artistid having count(*) >= 3 order by t2.name |
What is the third year course in science? | create table table_12148147_2 (third_year varchar, subjects varchar, PRIMARY KEY (third_year)) | select third_year from table_12148147_2 where subjects = "science" |
If the school is Central Colleges of the Philippines CCP Bobcats, what is the stunts number? | create table table_21995420_9 (stunts varchar, school varchar, PRIMARY KEY (stunts)) | select stunts from table_21995420_9 where school = "central colleges of the philippines ccp bobcats" |
When dxzb-tv is the call sign what is the power kw? | create table table_23394920_1 (power_kw varchar, callsign varchar, PRIMARY KEY (power_kw)) | select power_kw from table_23394920_1 where callsign = "dxzb-tv" |
When daniel lincoln ( usa ) is the saif saaeed shaheen ( qat ) What is the date for September 3rd, 2004? | create table table_23988726_2 (saif_saaeed_shaheen___qat__ varchar, PRIMARY KEY (saif_saaeed_shaheen___qat__)) | select 3 as _september_2004 from table_23988726_2 where saif_saaeed_shaheen___qat__ = "daniel lincoln ( usa )" |
Which allergy type has most number of allergies? | create table allergy_type (allergytype varchar, PRIMARY KEY (allergytype)) | select allergytype from allergy_type group by allergytype order by count(*) desc limit 1 |
what's the deadline for completion where description is iphone recall within the first 3 months of release | create table table_12078626_1 (deadline_for_completion varchar, description varchar, PRIMARY KEY (deadline_for_completion)) | select deadline_for_completion from table_12078626_1 where description = "iphone recall within the first 3 months of release" |
Show all product colors. | create table products (product_color varchar, PRIMARY KEY (product_color)) | select distinct product_color from products |
On what dates were episodes written by Robert Carlock aired? | create table table_14889988_1 (original_air_date varchar, written_by varchar, PRIMARY KEY (original_air_date)) | select original_air_date from table_14889988_1 where written_by = "robert carlock" |
What are the titles of episodes directed by whitney ransick? | create table table_2866514_1 (title varchar, directed_by varchar, PRIMARY KEY (title)) | select title from table_2866514_1 where directed_by = "whitney ransick" |
How many different combinations of team colors are there in all the schools in Maroa, Illinois? | create table table_29612224_1 (colors varchar, location varchar, PRIMARY KEY (colors)) | select count(colors) from table_29612224_1 where location = "maroa, illinois" |
What is the market income per capita of the county with the 9.4% poverty rate? | create table table_22815568_2 (market_income_per_capita varchar, poverty_rate varchar, PRIMARY KEY (market_income_per_capita)) | select market_income_per_capita from table_22815568_2 where poverty_rate = "9.4%" |
What parties have at least three representatives? | create table representative (party varchar, PRIMARY KEY (party)) | select party from representative group by party having count(*) >= 3 |
What is the candidates for fred e. busbey? | create table table_1342149_13 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates)) | select candidates from table_1342149_13 where incumbent = "fred e. busbey" |
How many years was the operating profit (s$m) 717.1? | create table table_161591_2 (profit_before_taxation__s varchar, operating_profit__s$m_ varchar, PRIMARY KEY (profit_before_taxation__s)) | select count(profit_before_taxation__s) as $m_ from table_161591_2 where operating_profit__s$m_ = "717.1" |
Name the % asian american for 23526 | create table table_18963843_1 (_percentage_asian_american varchar, indian_american_population__2010_ varchar, PRIMARY KEY (_percentage_asian_american)) | select _percentage_asian_american from table_18963843_1 where indian_american_population__2010_ = 23526 |
What is the namesake of the ship that was commissioned or completed(*) 16 april 1864? | create table table_12592074_1 (namesake varchar, commissioned_or_completed_ varchar, _ varchar, PRIMARY KEY (namesake)) | select namesake from table_12592074_1 where commissioned_or_completed_ * _ = "16 april 1864" |
How many different genres appear for the Jimi Hendrix Experience? | create table table_26488540_1 (genre varchar, artist varchar, PRIMARY KEY (genre)) | select count(genre) from table_26488540_1 where artist = "the jimi hendrix experience" |
What party did incumbent Stephen L. Neal belong to? | create table table_1341568_34 (party varchar, incumbent varchar, PRIMARY KEY (party)) | select party from table_1341568_34 where incumbent = "stephen l. neal" |
What province does the Ruhuna Royals team come from? | create table table_19905183_1 (province varchar, team varchar, PRIMARY KEY (province)) | select province from table_19905183_1 where team = "ruhuna royals" |
List the title of films that do not have any market estimation. | create table film_market_estimation (title varchar, film_id varchar, PRIMARY KEY (title)); create table film (title varchar, film_id varchar, PRIMARY KEY (title)) | select title from film where not film_id in (select film_id from film_market_estimation) |
How many distinct names are associated with all the photos? | create table photos (name varchar, PRIMARY KEY (name)) | select count(distinct name) from photos |
What is the road record for the team with an overall record of 22-11? | create table table_23183195_2 (road_record varchar, overall_record varchar, PRIMARY KEY (road_record)) | select road_record from table_23183195_2 where overall_record = "22-11" |
Which settlement has the cyrillic name сигет? | create table table_2562572_30 (settlement varchar, cyrillic_name_other_names varchar, PRIMARY KEY (settlement)) | select settlement from table_2562572_30 where cyrillic_name_other_names = "сигет" |
What is the hd designation for arrival date of February 2070? | create table table_1820752_1 (hd_designation varchar, arrival_date varchar, PRIMARY KEY (hd_designation)) | select count(hd_designation) from table_1820752_1 where arrival_date = "february 2070" |
what's the permanence of the body where purity is rudra | create table table_11609814_1 (permanence_of_the_body varchar, purity varchar, PRIMARY KEY (permanence_of_the_body)) | select permanence_of_the_body from table_11609814_1 where purity = "rudra" |
Name the truck for eric phillips | create table table_24535095_2 (truck_s_ varchar, crew_chief varchar, PRIMARY KEY (truck_s_)) | select truck_s_ from table_24535095_2 where crew_chief = "eric phillips" |
Who were the performance liaisons for the dramaturge Chrisena Ricci? | create table table_22410780_1 (performance_liaison varchar, dramaturge varchar, PRIMARY KEY (performance_liaison)) | select performance_liaison from table_22410780_1 where dramaturge = "chrisena ricci" |
What is the Original air date for the episode written by Peter Ocko? | create table table_13183076_3 (original_air_date varchar, written_by varchar, PRIMARY KEY (original_air_date)) | select original_air_date from table_13183076_3 where written_by = "peter ocko" |
Where is the college where Keith Hartwig plays? | create table table_10361625_1 (college varchar, player_name varchar, PRIMARY KEY (college)) | select college from table_10361625_1 where player_name = "keith hartwig" |
Where is the headquarter located for the Annapolis Valley Regional School Board? | create table table_21514460_1 (headquarters varchar, school_district varchar, PRIMARY KEY (headquarters)) | select headquarters from table_21514460_1 where school_district = "annapolis valley regional school board" |
Find the distinct last names of all the students who have president votes and whose advisor is not 2192. | create table student (lname varchar, president_vote varchar, advisor varchar, PRIMARY KEY (lname)); create table student (lname varchar, stuid varchar, PRIMARY KEY (lname)); create table voting_record (id varchar, PRIMARY KEY (id)) | select distinct t1.lname from student as t1 join voting_record as t2 on t1.stuid = president_vote except select distinct lname from student where advisor = "2192" |
Find the title of course whose prerequisite is course Differential Geometry. | create table prereq (course_id varchar, prereq_id varchar, PRIMARY KEY (course_id)); create table course (title varchar, course_id varchar, PRIMARY KEY (title)); create table course (course_id varchar, title varchar, PRIMARY KEY (course_id)) | select title from course where course_id in (select t1.course_id from prereq as t1 join course as t2 on t1.prereq_id = t2.course_id where t2.title = 'differential geometry') |
How many different courses offered by Physics department? | create table course (course_id varchar, dept_name varchar, PRIMARY KEY (course_id)) | select count(distinct course_id) from course where dept_name = 'physics' |
Please give me the title of Season 2, episode 1. | create table table_12451376_2 (title varchar, season_2_ep__number varchar, PRIMARY KEY (title)) | select title from table_12451376_2 where season_2_ep__number = 1 |
How many artists are from Bangladesh? | create table artist (country varchar, PRIMARY KEY (country)) | select count(*) from artist where country = "bangladesh" |
How many candidates were there when Henry Garland Dupré was the incumbent? | create table table_1342451_16 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates)) | select count(candidates) from table_1342451_16 where incumbent = "henry garland dupré" |
What is the name of the title winner in the ring light heavyweight (175) division? | create table table_12206918_2 (name varchar, titles varchar, PRIMARY KEY (name)) | select name from table_12206918_2 where titles = "the ring light heavyweight (175)" |
Which country mines 24.0% of the world demand of uranium? | create table table_15624586_2 (indigenous_mining_production_2006 varchar, _percentage_of_world_demand varchar, PRIMARY KEY (indigenous_mining_production_2006)) | select indigenous_mining_production_2006 from table_15624586_2 where _percentage_of_world_demand = "24.0%" |
What is the education when the economic incentive regime is 1.58? | create table table_23050383_1 (education varchar, economic_incentive_regime varchar, PRIMARY KEY (education)) | select education from table_23050383_1 where economic_incentive_regime = "1.58" |
what is the october 20, 2008 stat where mexico stat is romania | create table table_18498743_1 (october_20 varchar, _2008 varchar, mexico varchar, PRIMARY KEY (october_20)) | select october_20, _2008 from table_18498743_1 where mexico = "romania" |
Which episode was directed by Jean de Segonzac? | create table table_10935548_1 (title varchar, directed_by varchar, PRIMARY KEY (title)) | select title from table_10935548_1 where directed_by = "jean de segonzac" |
state the opponent on halliwell jones stadium in super league xiv | create table table_21256068_3 (opponent varchar, venue varchar, competition varchar, PRIMARY KEY (opponent)) | select opponent from table_21256068_3 where venue = "halliwell jones stadium" and competition = "super league xiv" |
Who is the competitor from France with 10 starts? | create table table_19487922_1 (name varchar, country varchar, race_entries__starts_ varchar, PRIMARY KEY (name)) | select name from table_19487922_1 where country = "france" and race_entries__starts_ = "10" |
What is every weekly schedule of TV network Viasat 4? | create table table_18821196_1 (weekly_schedule varchar, tv_network_s_ varchar, PRIMARY KEY (weekly_schedule)) | select weekly_schedule from table_18821196_1 where tv_network_s_ = "viasat 4" |
How many games were played against the Chicago Bears? | create table table_14966537_1 (record varchar, opponent varchar, PRIMARY KEY (record)) | select count(record) from table_14966537_1 where opponent = "chicago bears" |
Show all origins and the number of flights from each origin. | create table flight (origin varchar, PRIMARY KEY (origin)) | select origin, count(*) from flight group by origin |
What is Nader's percentage when Obama is 44.6%? | create table table_20573232_1 (nader_percentage varchar, obama_percentage varchar, PRIMARY KEY (nader_percentage)) | select nader_percentage from table_20573232_1 where obama_percentage = "44.6%" |
Please show the most common citizenship of singers. | create table singer (citizenship varchar, PRIMARY KEY (citizenship)) | select citizenship from singer group by citizenship order by count(*) desc limit 1 |
Name the number of families for uk30 | create table table_19897294_8 (family_families varchar, no_overall varchar, PRIMARY KEY (family_families)) | select count(family_families) from table_19897294_8 where no_overall = "uk30" |
When was the pre-season game record achieved? | create table table_21436373_10 (date_year varchar, type_of_record varchar, PRIMARY KEY (date_year)) | select date_year from table_21436373_10 where type_of_record = "pre-season game" |
Who was the young rider classification when Diego Ulissi won? | create table table_28538368_2 (young_rider_classification varchar, winner varchar, PRIMARY KEY (young_rider_classification)) | select count(young_rider_classification) from table_28538368_2 where winner = "diego ulissi" |
Name the number of womens singles for 1999 rio de janeiro | create table table_28138035_4 (womens_singles varchar, year_location varchar, PRIMARY KEY (womens_singles)) | select count(womens_singles) from table_28138035_4 where year_location = "1999 rio de janeiro" |
Which game type has least number of games? | create table video_games (gtype varchar, PRIMARY KEY (gtype)) | select gtype from video_games group by gtype order by count(*) limit 1 |
What is every part number with model number core i5-670? | create table table_23028629_2 (part_number_s_ varchar, model_number varchar, PRIMARY KEY (part_number_s_)) | select part_number_s_ from table_23028629_2 where model_number = "core i5-670" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.