question
stringlengths 14
216
| context
stringlengths 45
458
| answer
stringlengths 18
463
|
---|---|---|
What was team Toshiba's round 4 score?
|
create table table_16815824_1 (round4 integer, team varchar, PRIMARY KEY (round4))
|
select min(round4) from table_16815824_1 where team = "team toshiba"
|
What are the id of students who registered course 301?
|
create table student_course_attendance (student_id varchar, course_id varchar, PRIMARY KEY (student_id))
|
select student_id from student_course_attendance where course_id = 301
|
List all club names in ascending order of start year.
|
create table club (name varchar, start_year varchar, PRIMARY KEY (name))
|
select name from club order by start_year
|
When the earning per share is listed as 22.0 what is the year to april?
|
create table table_18077713_1 (year_to_april varchar, earnings_per_share__¢_ varchar, PRIMARY KEY (year_to_april))
|
select count(year_to_april) from table_18077713_1 where earnings_per_share__¢_ = "22.0"
|
What is the name of the candidate where the incumbent is named James P. Buchanan?
|
create table table_1342331_43 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
|
select candidates from table_1342331_43 where incumbent = "james p. buchanan"
|
What is the name of the war where the Ottoman sultan was Selim I?
|
create table table_24706337_1 (name_of_the_war varchar, ottoman_sultan varchar, PRIMARY KEY (name_of_the_war))
|
select name_of_the_war from table_24706337_1 where ottoman_sultan = "selim i"
|
How many were the show's average weekly ranking when it reached No. 2 in average nightly ranking?
|
create table table_15358729_6 (average_weekly_rank varchar, average_nightly_rank varchar, PRIMARY KEY (average_weekly_rank))
|
select count(average_weekly_rank) from table_15358729_6 where average_nightly_rank = "no. 2"
|
How many assessment notes are there in total?
|
create table assessment_notes (id varchar, PRIMARY KEY (id))
|
select count(*) from assessment_notes
|
What is the name of the actress that was nominated for best actress in a leading role in the film Chopin: Desire for love?
|
create table table_10236830_6 (actors_name varchar, film_name varchar, nomination varchar, PRIMARY KEY (actors_name))
|
select actors_name from table_10236830_6 where film_name = "chopin: desire for love" and nomination = "best actress in a leading role"
|
meadowlands sports complex is the circuit at which city/location?
|
create table table_10707142_2 (city_location varchar, circuit varchar, PRIMARY KEY (city_location))
|
select city_location from table_10707142_2 where circuit = "meadowlands sports complex"
|
What are the networks whose version of the show includes the judges batuhan zeynioğlu piatti murat bozok erol kaynar?
|
create table table_28190363_1 (network varchar, judges varchar, PRIMARY KEY (network))
|
select network from table_28190363_1 where judges = "batuhan zeynioğlu piatti murat bozok erol kaynar"
|
How many dominant religions are in đala?
|
create table table_2562572_30 (dominant_religion__2002_ varchar, settlement varchar, PRIMARY KEY (dominant_religion__2002_))
|
select count(dominant_religion__2002_) from table_2562572_30 where settlement = "đala"
|
Name the payout for espn for music city bowl
|
create table table_24427210_1 (payout___us$__ varchar, tv varchar, bowl_game varchar, PRIMARY KEY (payout___us$__))
|
select payout___us$__ from table_24427210_1 where tv = "espn" and bowl_game = "music city bowl"
|
What was the air date of the episod that had 456.58 thousand viewers?
|
create table table_23114705_7 (original_air_date varchar, nz_viewers__thousand_ varchar, PRIMARY KEY (original_air_date))
|
select original_air_date from table_23114705_7 where nz_viewers__thousand_ = "456.58"
|
When fc oberau is the oberbayern a what is the oberpfalz?
|
create table table_23224961_1 (oberpfalz varchar, oberbayern_a varchar, PRIMARY KEY (oberpfalz))
|
select oberpfalz from table_23224961_1 where oberbayern_a = "fc oberau"
|
Where is Tamunosiki Atorudibo from
|
create table table_1231316_4 (country varchar, athlete varchar, PRIMARY KEY (country))
|
select country from table_1231316_4 where athlete = "tamunosiki atorudibo"
|
Which Allied Force targetted Woensdrecht?
|
create table table_1160161_12 (allied_forces varchar, target varchar, PRIMARY KEY (allied_forces))
|
select allied_forces from table_1160161_12 where target = "woensdrecht"
|
Show ids for all documents in type CV without expense budgets.
|
create table documents_with_expenses (document_id varchar, document_type_code varchar, PRIMARY KEY (document_id)); create table documents (document_id varchar, document_type_code varchar, PRIMARY KEY (document_id))
|
select document_id from documents where document_type_code = "cv" except select document_id from documents_with_expenses
|
Name the centerfold model when interview subject is steve jobs
|
create table table_1566848_6 (centerfold_model varchar, interview_subject varchar, PRIMARY KEY (centerfold_model))
|
select centerfold_model from table_1566848_6 where interview_subject = "steve jobs"
|
What is the number eliminated when kelly and brendan are safe?
|
create table table_12305325_4 (eliminated varchar, safe varchar, PRIMARY KEY (eliminated))
|
select count(eliminated) from table_12305325_4 where safe = "kelly and brendan"
|
Name the mixed doubles when tour is hong kong super series
|
create table table_14496232_2 (mixed_doubles varchar, tour varchar, PRIMARY KEY (mixed_doubles))
|
select mixed_doubles from table_14496232_2 where tour = "hong kong super series"
|
Name the most of 2500-3000ft
|
create table table_1456056_1 (id varchar, PRIMARY KEY (id))
|
select max(2500 as _3000ft) from table_1456056_1
|
which team#2 played against poseidon neoi porroi
|
create table table_21434618_1 (team__number2 varchar, team__number1 varchar, PRIMARY KEY (team__number2))
|
select team__number2 from table_21434618_1 where team__number1 = "poseidon neoi porroi"
|
What is the ISIN associated with the maturity date of 3/11/2011?
|
create table table_21692771_1 (isin varchar, maturity varchar, PRIMARY KEY (isin))
|
select isin from table_21692771_1 where maturity = "3/11/2011"
|
What is the gpa per capita (nominal) for the country with gdp (nominal) is $52.0 billion?
|
create table table_11780179_1 (gdp_per_capita__nominal_ varchar, gdp__nominal_ varchar, PRIMARY KEY (gdp_per_capita__nominal_))
|
select gdp_per_capita__nominal_ from table_11780179_1 where gdp__nominal_ = "$52.0 billion"
|
Name the host for john rotz and howard cosell
|
create table table_22514845_5 (s_host varchar, s_analyst varchar, PRIMARY KEY (s_host))
|
select s_host from table_22514845_5 where s_analyst = "john rotz and howard cosell"
|
Name the total number of party for willis alston
|
create table table_2668243_18 (party varchar, incumbent varchar, PRIMARY KEY (party))
|
select count(party) from table_2668243_18 where incumbent = "willis alston"
|
Which organisation hired the most number of research staff? List the organisation id, type and detail.
|
create table organisations (organisation_id varchar, organisation_type varchar, organisation_details varchar, PRIMARY KEY (organisation_id)); create table research_staff (employer_organisation_id varchar, PRIMARY KEY (employer_organisation_id))
|
select t1.organisation_id, t1.organisation_type, t1.organisation_details from organisations as t1 join research_staff as t2 on t1.organisation_id = t2.employer_organisation_id group by t1.organisation_id order by count(*) desc limit 1
|
How many paper types did Ian Drolet design stamps on?
|
create table table_11900773_6 (paper_type varchar, design varchar, PRIMARY KEY (paper_type))
|
select count(paper_type) from table_11900773_6 where design = "ian drolet"
|
What barony is Ballycunningham in?
|
create table table_30120566_1 (barony varchar, townland varchar, PRIMARY KEY (barony))
|
select barony from table_30120566_1 where townland = "ballycunningham"
|
how many video out connections does the sounddock portable have?
|
create table table_24384861_1 (video_out varchar, version varchar, PRIMARY KEY (video_out))
|
select count(video_out) from table_24384861_1 where version = "sounddock portable"
|
What is the composition at Valles lava dome?
|
create table table_1081235_1 (composition varchar, name_of_lava_dome varchar, PRIMARY KEY (composition))
|
select composition from table_1081235_1 where name_of_lava_dome = "valles lava dome"
|
Who had the highest points against new york?
|
create table table_23211041_5 (high_points varchar, team varchar, PRIMARY KEY (high_points))
|
select high_points from table_23211041_5 where team = "new york"
|
How many submission of the night occurred when the fighter was matt wiman?
|
create table table_21114902_1 (submissions_of_the_night integer, fighter varchar, PRIMARY KEY (submissions_of_the_night))
|
select max(submissions_of_the_night) from table_21114902_1 where fighter = "matt wiman"
|
What was Great Britain's Round 1 score?
|
create table table_16815824_1 (round1 varchar, team varchar, PRIMARY KEY (round1))
|
select round1 from table_16815824_1 where team = "great britain"
|
where is Fisk University located?
|
create table table_262481_2 (location varchar, institution varchar, PRIMARY KEY (location))
|
select location from table_262481_2 where institution = "fisk university"
|
What are the mm dimensions of the Plustek Mobileoffice D28 Corporate?
|
create table table_16409745_1 (dimensions__mm_ varchar, product varchar, PRIMARY KEY (dimensions__mm_))
|
select dimensions__mm_ from table_16409745_1 where product = "plustek mobileoffice d28 corporate"
|
How many times has the points total for the afc cup competion been 289?
|
create table table_14460937_1 (afc_cup varchar, points__total_500_ varchar, PRIMARY KEY (afc_cup))
|
select count(afc_cup) from table_14460937_1 where points__total_500_ = 289
|
What is the famous for where the finished is 5th?
|
create table table_14345690_5 (famous_for varchar, finished varchar, PRIMARY KEY (famous_for))
|
select famous_for from table_14345690_5 where finished = "5th"
|
How many people in the sorata municipality when the quiabaya municipality has 33?
|
create table table_2509202_2 (sorata_municipality varchar, quiabaya_municipality varchar, PRIMARY KEY (sorata_municipality))
|
select sorata_municipality from table_2509202_2 where quiabaya_municipality = "33"
|
What year was a movie with the original title La Leggenda del Santo Bevitore submitted?
|
create table table_10321805_1 (year__ceremony_ varchar, original_title varchar, PRIMARY KEY (year__ceremony_))
|
select year__ceremony_ from table_10321805_1 where original_title = "la leggenda del santo bevitore"
|
which countries' tv channels are not playing any cartoon written by Todd Casey?
|
create table tv_channel (country varchar, id varchar, PRIMARY KEY (country)); create table tv_channel (country varchar, PRIMARY KEY (country)); create table cartoon (channel varchar, written_by varchar, PRIMARY KEY (channel))
|
select country from tv_channel except select t1.country from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t2.written_by = 'todd casey'
|
How many railways are there?
|
create table railway (id varchar, PRIMARY KEY (id))
|
select count(*) from railway
|
Which province is grey and bell electorate in
|
create table table_1024710_2 (province varchar, electorate varchar, PRIMARY KEY (province))
|
select province from table_1024710_2 where electorate = "grey and bell"
|
Name the total number of status for eldon
|
create table table_171361_2 (status varchar, official_name varchar, PRIMARY KEY (status))
|
select count(status) from table_171361_2 where official_name = "eldon"
|
How many were wounded when the complement was 173 off 2059 men?
|
create table table_11793221_2 (wounded varchar, complement varchar, PRIMARY KEY (wounded))
|
select wounded from table_11793221_2 where complement = "173 off 2059 men"
|
What is the height in inches of contestants who are from the province of La Rioja?
|
create table table_23476629_2 (height__in_ varchar, province varchar, PRIMARY KEY (height__in_))
|
select height__in_ from table_23476629_2 where province = "la rioja"
|
Who directed the episode that had 3.55 million viewers?
|
create table table_29897962_1 (directed_by varchar, us_viewers__million_ varchar, PRIMARY KEY (directed_by))
|
select directed_by from table_29897962_1 where us_viewers__million_ = "3.55"
|
What type of school is Cordoba University?
|
create table table_2076608_3 (type varchar, school varchar, PRIMARY KEY (type))
|
select type from table_2076608_3 where school = "cordoba university"
|
What's the percentage of votes for other candidates in the county where Bush got 51.6% of the votes?
|
create table table_1304443_2 (others_percentage varchar, bush_percentage varchar, PRIMARY KEY (others_percentage))
|
select others_percentage from table_1304443_2 where bush_percentage = "51.6%"
|
Name the conventional for defter
|
create table table_2008069_2 (conventional varchar, uyghur___yenɡi_yezik̢__ varchar, PRIMARY KEY (conventional))
|
select conventional from table_2008069_2 where uyghur___yenɡi_yezik̢__ = "defter"
|
List the lowest super league for a 0 champion league.
|
create table table_28068645_8 (super_league integer, champions_league varchar, PRIMARY KEY (super_league))
|
select min(super_league) from table_28068645_8 where champions_league = 0
|
How many total itv viewers were there for the episode with official itv ratings of 10.24 million?
|
create table table_27319183_7 (total_itv_viewers__millions_ varchar, official_itv_rating__millions_ varchar, PRIMARY KEY (total_itv_viewers__millions_))
|
select total_itv_viewers__millions_ from table_27319183_7 where official_itv_rating__millions_ = "10.24"
|
Who scored the most points against Washington?
|
create table table_15780049_5 (high_points varchar, team varchar, PRIMARY KEY (high_points))
|
select high_points from table_15780049_5 where team = "washington"
|
How many odd of winning have 6th as the division?
|
create table table_20195922_3 (odds_of_winning__1in_ varchar, divisions varchar, PRIMARY KEY (odds_of_winning__1in_))
|
select odds_of_winning__1in_ from table_20195922_3 where divisions = "6th"
|
What is the minimum possible for the NJCAA championships?
|
create table table_22319599_1 (njcaa_championships integer, PRIMARY KEY (njcaa_championships))
|
select min(njcaa_championships) from table_22319599_1
|
What range does type FJ/PB/SCP work at?
|
create table table_21538523_1 (range__m_ varchar, type varchar, PRIMARY KEY (range__m_))
|
select range__m_ from table_21538523_1 where type = "fj/pb/scp"
|
What is the title written by David Mamet?
|
create table table_10908676_7 (title varchar, written_by varchar, PRIMARY KEY (title))
|
select title from table_10908676_7 where written_by = "david mamet"
|
Find the last names of students with major 50.
|
create table student (lname varchar, major varchar, PRIMARY KEY (lname))
|
select lname from student where major = 50
|
Show all distinct building descriptions.
|
create table apartment_buildings (building_description varchar, PRIMARY KEY (building_description))
|
select distinct building_description from apartment_buildings
|
What is the 3'utr sequence with a variant id of ad'6a 4?
|
create table table_14332822_1 (variant_id varchar, PRIMARY KEY (variant_id))
|
select 3 as ’utr_sequence from table_14332822_1 where variant_id = "ad'6a 4"
|
Who is the person that has no friend?
|
create table personfriend (name varchar, PRIMARY KEY (name)); create table person (name varchar, PRIMARY KEY (name))
|
select name from person except select name from personfriend
|
What is the dominant religion in Gornji Tavankut?
|
create table table_2562572_26 (dominant_religion__2002_ varchar, settlement varchar, PRIMARY KEY (dominant_religion__2002_))
|
select dominant_religion__2002_ from table_2562572_26 where settlement = "gornji tavankut"
|
what are all the date withdrawn for service entered on 21 november 1945
|
create table table_11662133_3 (date_withdrawn varchar, date_entered_service varchar, PRIMARY KEY (date_withdrawn))
|
select date_withdrawn from table_11662133_3 where date_entered_service = "21 november 1945"
|
What are the document ids for the budget type code 'SF'?
|
create table documents_with_expenses (document_id varchar, budget_type_code varchar, PRIMARY KEY (document_id))
|
select document_id from documents_with_expenses where budget_type_code = 'sf'
|
How man students were from Maryland in Fall 05?
|
create table table_15055594_6 (fall_05 varchar, states varchar, PRIMARY KEY (fall_05))
|
select fall_05 from table_15055594_6 where states = "maryland"
|
How many original artists were there for the Group Performance?
|
create table table_26250176_1 (original_artist varchar, theme varchar, PRIMARY KEY (original_artist))
|
select count(original_artist) from table_26250176_1 where theme = "group performance"
|
Who was the mediator in kōhaku number 53?
|
create table table_1315616_1 (mediator varchar, kōhaku__number varchar, PRIMARY KEY (mediator))
|
select mediator from table_1315616_1 where kōhaku__number = 53
|
Find the name of all customers.
|
create table customers (customer_name varchar, PRIMARY KEY (customer_name))
|
select customer_name from customers
|
How many reviewers listed?
|
create table reviewer (id varchar, PRIMARY KEY (id))
|
select count(*) from reviewer
|
Which province has a density of 971.4?
|
create table table_1067441_1 (province varchar, density varchar, PRIMARY KEY (province))
|
select province from table_1067441_1 where density = "971.4"
|
What is the lowest number associated with Tonkolili?
|
create table table_18103265_1 (tonkolili integer, PRIMARY KEY (tonkolili))
|
select min(tonkolili) from table_18103265_1
|
Who was replaced as manager on June 20?
|
create table table_29414946_3 (outgoing_manager varchar, date_of_appointment varchar, PRIMARY KEY (outgoing_manager))
|
select outgoing_manager from table_29414946_3 where date_of_appointment = "june 20"
|
Name the home team for manuka oval
|
create table table_14312471_3 (home_team varchar, ground varchar, PRIMARY KEY (home_team))
|
select home_team from table_14312471_3 where ground = "manuka oval"
|
Name the running with for elizabeth falco
|
create table table_1855841_1 (running_with__in_team_ varchar, candidate varchar, PRIMARY KEY (running_with__in_team_))
|
select running_with__in_team_ from table_1855841_1 where candidate = "elizabeth falco"
|
What was the result of the open cup when they finished 4th in the regular season?
|
create table table_12002388_1 (open_cup varchar, reg_season varchar, PRIMARY KEY (open_cup))
|
select open_cup from table_12002388_1 where reg_season = "4th"
|
find the number of distinct country codes of all players.
|
create table players (country_code varchar, PRIMARY KEY (country_code))
|
select count(distinct country_code) from players
|
How many 4wi were recorded by the player with an economy of 4.17?
|
create table table_27922491_20 (economy varchar, PRIMARY KEY (economy))
|
select 4 as wi from table_27922491_20 where economy = "4.17"
|
Name the date of appointment for sacked and 14th position replaced by marco kostmann
|
create table table_17327264_3 (date_of_appointment varchar, replaced_by varchar, manner_of_departure varchar, position_in_table varchar, PRIMARY KEY (date_of_appointment))
|
select date_of_appointment from table_17327264_3 where manner_of_departure = "sacked" and position_in_table = "14th" and replaced_by = "marco kostmann"
|
How many air dates where directed by jim donovan?
|
create table table_18424435_5 (us_air_date varchar, directed_by varchar, PRIMARY KEY (us_air_date))
|
select count(us_air_date) from table_18424435_5 where directed_by = "jim donovan"
|
List each owner's first name, last name, and the size of his for her dog.
|
create table owners (first_name varchar, last_name varchar, owner_id varchar, PRIMARY KEY (first_name)); create table dogs (size_code varchar, owner_id varchar, PRIMARY KEY (size_code))
|
select t1.first_name, t1.last_name, t2.size_code from owners as t1 join dogs as t2 on t1.owner_id = t2.owner_id
|
what is the amount where the area is new brunswick
|
create table table_29012710_1 (production__hectolitres_ varchar, province varchar, PRIMARY KEY (production__hectolitres_))
|
select production__hectolitres_ from table_29012710_1 where province = "new brunswick"
|
Name the ebit for eps being 1.78
|
create table table_20614109_1 (earnings_before_interest_and_taxes__€m_ varchar, earnings_per_share__€_ varchar, PRIMARY KEY (earnings_before_interest_and_taxes__€m_))
|
select earnings_before_interest_and_taxes__€m_ from table_20614109_1 where earnings_per_share__€_ = "1.78"
|
Name the miles for jeff gordon
|
create table table_2144863_1 (miles__km_ varchar, driver varchar, PRIMARY KEY (miles__km_))
|
select miles__km_ from table_2144863_1 where driver = "jeff gordon"
|
What is the nickname of staff with first name as Janessa and last name as Sawayn?
|
create table staff (nickname varchar, first_name varchar, last_name varchar, PRIMARY KEY (nickname))
|
select nickname from staff where first_name = "janessa" and last_name = "sawayn"
|
What was the winning time in the year when the odds of the winner were 2.94?
|
create table table_21676617_1 (winning_time__km_rate_ varchar, odds_of_winner varchar, PRIMARY KEY (winning_time__km_rate_))
|
select winning_time__km_rate_ from table_21676617_1 where odds_of_winner = "2.94"
|
Name the television service when primafila hot club
|
create table table_15887683_6 (television_service varchar, content varchar, PRIMARY KEY (television_service))
|
select television_service from table_15887683_6 where content = "primafila hot club"
|
When 22' 37.06 100.090mph is the time for Monday August 24th how many times are there for Friday August 28th?
|
create table table_23465864_3 (fri_28_aug varchar, mon_24_aug varchar, PRIMARY KEY (fri_28_aug))
|
select count(fri_28_aug) from table_23465864_3 where mon_24_aug = "22' 37.06 100.090mph"
|
Show all book categories and the number of books in each category.
|
create table book_club (category varchar, PRIMARY KEY (category))
|
select category, count(*) from book_club group by category
|
List the phone numbers of all employees.
|
create table employee (phone varchar, PRIMARY KEY (phone))
|
select phone from employee
|
Show all donor names.
|
create table endowment (donator_name varchar, PRIMARY KEY (donator_name))
|
select distinct donator_name from endowment
|
What was the opearint profit (s$m) associated with an expenditure (s$m) of 12,127.8?
|
create table table_161591_2 (operating_profit__s$m_ varchar, expenditure__s$m_ varchar, PRIMARY KEY (operating_profit__s$m_))
|
select operating_profit__s$m_ from table_161591_2 where expenditure__s$m_ = "12,127.8"
|
What premieres had a finale on May 25, 2004?
|
create table table_175980_2 (premiere varchar, finale varchar, PRIMARY KEY (premiere))
|
select premiere from table_175980_2 where finale = "may 25, 2004"
|
Find the names of the items that did not receive any review.
|
create table item (title varchar, i_id varchar, PRIMARY KEY (title)); create table review (title varchar, i_id varchar, PRIMARY KEY (title))
|
select title from item where not i_id in (select i_id from review)
|
who is the writer of the episode with prod.code 30-17
|
create table table_13403120_1 (writer_s_ varchar, prodcode varchar, PRIMARY KEY (writer_s_))
|
select writer_s_ from table_13403120_1 where prodcode = "30-17"
|
Who wrote the episode that 2.93 million viewers?
|
create table table_28019988_2 (written_by varchar, us_viewers__million_ varchar, PRIMARY KEY (written_by))
|
select written_by from table_28019988_2 where us_viewers__million_ = "2.93"
|
If the district name is the Academy of Flint, what is the authorizing agency?
|
create table table_22665117_1 (authorizing_agency varchar, district_name varchar, PRIMARY KEY (authorizing_agency))
|
select authorizing_agency from table_22665117_1 where district_name = "academy of flint"
|
Find the unit of measurement and product category code of product named "chervil".
|
create table ref_product_categories (unit_of_measure varchar, product_category_code varchar, PRIMARY KEY (unit_of_measure)); create table products (product_category_code varchar, product_name varchar, PRIMARY KEY (product_category_code))
|
select t2.unit_of_measure, t2.product_category_code from products as t1 join ref_product_categories as t2 on t1.product_category_code = t2.product_category_code where t1.product_name = "chervil"
|
Name the class 1-200 for university of hertfordshire for university of warwick
|
create table table_1936678_1 (class_1 varchar, best_uk_team varchar, class_1a varchar, PRIMARY KEY (class_1))
|
select class_1 - 200 from table_1936678_1 where best_uk_team = "university of hertfordshire" and class_1a = "university of warwick"
|
If there are 11 lifts, what is the base elevation?
|
create table table_25762852_1 (base_elevation__feet_ integer, lifts varchar, PRIMARY KEY (base_elevation__feet_))
|
select max(base_elevation__feet_) from table_25762852_1 where lifts = 11
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.