question
stringlengths 14
216
| context
stringlengths 45
458
| answer
stringlengths 18
463
|
---|---|---|
Which civil parish is for the townland clooncugger? | create table table_30121096_1 (civil_parish varchar, townland varchar, PRIMARY KEY (civil_parish)) | select civil_parish from table_30121096_1 where townland = "clooncugger" |
What is the decor of room Recluse and defiance? | create table rooms (decor varchar, roomname varchar, PRIMARY KEY (decor)) | select decor from rooms where roomname = "recluse and defiance" |
When did the episode featuring a master using Brazilian jiu-jitsu air? | create table table_14937957_1 (original_airdate varchar, martial_art_style varchar, PRIMARY KEY (original_airdate)) | select original_airdate from table_14937957_1 where martial_art_style = "brazilian jiu-jitsu" |
Name the country for hannes arch | create table table_20036882_2 (country varchar, winning_pilot varchar, PRIMARY KEY (country)) | select country from table_20036882_2 where winning_pilot = "hannes arch" |
Who was the wenning witcher when ezequiel astacio was the losing pitcher? | create table table_13710464_1 (winning_pitcher varchar, losing_pitcher varchar, PRIMARY KEY (winning_pitcher)) | select winning_pitcher from table_13710464_1 where losing_pitcher = "ezequiel astacio" |
What was the doctor when the author was Gary Hopkins category:articles with hcards? | create table table_1620397_5 (doctor varchar, author varchar, PRIMARY KEY (doctor)) | select doctor from table_1620397_5 where author = "gary hopkins category:articles with hcards" |
Who is the together we can do more when democratic coalition is rené alinco ( ppd )? | create table table_2651755_1 (together_we_can_do_more varchar, democratic_coalition varchar, PRIMARY KEY (together_we_can_do_more)) | select together_we_can_do_more from table_2651755_1 where democratic_coalition = "rené alinco ( ppd )" |
Who had the high assist in the game where the record is 13-11? | create table table_18813011_6 (high_assists varchar, record varchar, PRIMARY KEY (high_assists)) | select high_assists from table_18813011_6 where record = "13-11" |
Who directed the film with the title three summer days? | create table table_22265716_1 (director varchar, film_title_used_in_nomination varchar, PRIMARY KEY (director)) | select director from table_22265716_1 where film_title_used_in_nomination = "three summer days" |
What is the location of the Moorabbin Oval stadium? | create table table_28885977_1 (location varchar, stadium varchar, PRIMARY KEY (location)) | select location from table_28885977_1 where stadium = "moorabbin oval" |
what is th copa libertadores 1997 is qf? | create table table_14310205_1 (copa_libertadores_1997 varchar, supercopa_1996 varchar, PRIMARY KEY (copa_libertadores_1997)) | select copa_libertadores_1997 from table_14310205_1 where supercopa_1996 = "qf" |
what is the fuel propulsion where the fleet series (quantity) is 310-329 (20)? | create table table_10007452_3 (fuel_propulsion varchar, fleet_series__quantity_ varchar, PRIMARY KEY (fuel_propulsion)) | select fuel_propulsion from table_10007452_3 where fleet_series__quantity_ = "310-329 (20)" |
What is the marketing region code that has the most drama workshop groups? | create table drama_workshop_groups (marketing_region_code varchar, PRIMARY KEY (marketing_region_code)) | select marketing_region_code from drama_workshop_groups group by marketing_region_code order by count(*) desc limit 1 |
How many distinct locations have the things with service detail 'Unsatisfied' been located in? | create table timed_locations_of_things (location_code varchar, thing_id varchar, PRIMARY KEY (location_code)); create table things (thing_id varchar, service_details varchar, PRIMARY KEY (thing_id)) | select count(distinct t2.location_code) from things as t1 join timed_locations_of_things as t2 on t1.thing_id = t2.thing_id where t1.service_details = 'unsatisfied' |
For each phone, show its names and total number of stocks. | create table phone_market (num_of_stock integer, phone_id varchar, PRIMARY KEY (num_of_stock)); create table phone (name varchar, phone_id varchar, PRIMARY KEY (name)) | select t2.name, sum(t1.num_of_stock) from phone_market as t1 join phone as t2 on t1.phone_id = t2.phone_id group by t2.name |
Find the subject ID, name of subject and the corresponding number of courses for each subject, and sort by the course count in ascending order. | create table courses (subject_id varchar, PRIMARY KEY (subject_id)); create table subjects (subject_name varchar, subject_id varchar, PRIMARY KEY (subject_name)) | select t1.subject_id, t2.subject_name, count(*) from courses as t1 join subjects as t2 on t1.subject_id = t2.subject_id group by t1.subject_id order by count(*) |
When ратково is cyrillic name other names and village is the type and orthodox Christianity is the dominant religion of 2002 what is the settlement? | create table table_2562572_25 (settlement varchar, cyrillic_name_other_names varchar, dominant_religion__2002_ varchar, type varchar, PRIMARY KEY (settlement)) | select settlement from table_2562572_25 where dominant_religion__2002_ = "orthodox christianity" and type = "village" and cyrillic_name_other_names = "ратково" |
What are all of the order # where authentic artist is maroon 5 | create table table_26250227_1 (order__number varchar, original_artist varchar, PRIMARY KEY (order__number)) | select order__number from table_26250227_1 where original_artist = "maroon 5" |
How many problems are there for product voluptatem? | create table problems (product_id varchar, PRIMARY KEY (product_id)); create table product (product_id varchar, product_name varchar, PRIMARY KEY (product_id)) | select count(*) from product as t1 join problems as t2 on t1.product_id = t2.product_id where t1.product_name = "voluptatem" |
Who was the Best Male Lyricist if Neshia Nee won the Best Male Record? | create table table_22546460_4 (best_male_lyricist varchar, best_male_record varchar, PRIMARY KEY (best_male_lyricist)) | select best_male_lyricist from table_22546460_4 where best_male_record = "neshia nee" |
What is listed in built for when the original number is 24d? | create table table_29071587_1 (built_for varchar, original_no varchar, PRIMARY KEY (built_for)) | select built_for from table_29071587_1 where original_no = "24d" |
What is the maximum elevation in netherlands? | create table table_24285393_1 (maximum_elevation varchar, country_or_region varchar, PRIMARY KEY (maximum_elevation)) | select maximum_elevation from table_24285393_1 where country_or_region = "netherlands" |
What is the nationality of the player from Vancouver Canucks? | create table table_1013129_3 (nationality varchar, nhl_team varchar, PRIMARY KEY (nationality)) | select nationality from table_1013129_3 where nhl_team = "vancouver canucks" |
When did the term begin that ended January 3, 1995? | create table table_224672_2 (term_began varchar, term_ended varchar, PRIMARY KEY (term_began)) | select term_began from table_224672_2 where term_ended = "january 3, 1995" |
Return the minister who left office at the latest time. | create table party (minister varchar, left_office varchar, PRIMARY KEY (minister)) | select minister from party order by left_office desc limit 1 |
List the names of products that are not in any event. | create table products (product_name varchar, product_id varchar, PRIMARY KEY (product_name)); create table products_in_events (product_name varchar, product_id varchar, PRIMARY KEY (product_name)) | select product_name from products where not product_id in (select product_id from products_in_events) |
What is the total number of second place finishes when the city & nation was Chicago, USA? | create table table_2146364_2 (second_place varchar, city_ varchar, _nation varchar, PRIMARY KEY (second_place)) | select count(second_place) from table_2146364_2 where city_ & _nation = "chicago, usa" |
Name the ppv for sky famiglia and dar 16:9 for mtv dance | create table table_15887683_10 (ppv varchar, television_service varchar, package_option varchar, dar varchar, PRIMARY KEY (ppv)) | select ppv from table_15887683_10 where package_option = "sky famiglia" and dar = "16:9" and television_service = "mtv dance" |
List all public schools and their locations. | create table university (school varchar, location varchar, affiliation varchar, PRIMARY KEY (school)) | select school, location from university where affiliation = 'public' |
What is the original air date when the u.s. viewers in millions was 5.39? | create table table_27720737_1 (original_air_date varchar, us_viewers__million_ varchar, PRIMARY KEY (original_air_date)) | select original_air_date from table_27720737_1 where us_viewers__million_ = "5.39" |
Name the writers for swedish sailor | create table table_19852975_3 (writer_s_ varchar, arties_disguises varchar, PRIMARY KEY (writer_s_)) | select writer_s_ from table_19852975_3 where arties_disguises = "swedish sailor" |
Who has the fastest lap where Benoît Tréluyer got the pole position? | create table table_22379931_2 (fastest_lap varchar, pole_position varchar, PRIMARY KEY (fastest_lap)) | select fastest_lap from table_22379931_2 where pole_position = "benoît tréluyer" |
Name the english gloss for haŋȟ’áŋna | create table table_1499774_5 (english_gloss varchar, santee_sisseton varchar, PRIMARY KEY (english_gloss)) | select english_gloss from table_1499774_5 where santee_sisseton = "haŋȟ’áŋna" |
How many times did the team achieve an overrall record of mu, 21-19? | create table table_16201038_4 (last_5_meetings varchar, overall_record varchar, PRIMARY KEY (last_5_meetings)) | select count(last_5_meetings) from table_16201038_4 where overall_record = "mu, 21-19" |
What is them two (the two) when you and i is ngœbalngu? | create table table_1015914_24 (them_two__the_two_ varchar, you_and_i varchar, PRIMARY KEY (them_two__the_two_)) | select them_two__the_two_ from table_1015914_24 where you_and_i = "ngœbalngu" |
When the change (2010 to 2011) is +1.0% what is the change (2011 to 2012)? | create table table_14752049_6 (change__2011_to_2012_ varchar, change__2010_to_2011_ varchar, PRIMARY KEY (change__2011_to_2012_)) | select change__2011_to_2012_ from table_14752049_6 where change__2010_to_2011_ = "+1.0%" |
What is the most popular full name of the actors? | create table actor (first_name varchar, last_name varchar, PRIMARY KEY (first_name)) | select first_name, last_name from actor group by first_name, last_name order by count(*) desc limit 1 |
What is the Sipe Sipe Municipality minimum if the language is Quechua? | create table table_2509113_2 (sipe_sipe_municipality integer, language varchar, PRIMARY KEY (sipe_sipe_municipality)) | select min(sipe_sipe_municipality) from table_2509113_2 where language = "quechua" |
What are the results of the elections in which Ted Strickland is seeking re-election? | create table table_1805191_36 (results varchar, incumbent varchar, PRIMARY KEY (results)) | select results from table_1805191_36 where incumbent = "ted strickland" |
How many production stage managers worked with Gabriel di Chiara as the Male Rep? | create table table_22410780_1 (production_stagemanager varchar, male_rep varchar, PRIMARY KEY (production_stagemanager)) | select count(production_stagemanager) from table_22410780_1 where male_rep = "gabriel di chiara" |
What are the countries in which the agricultural use (m 3 /p/yr)(in %) is 2040(93%)? | create table table_15909409_2 (country varchar, agricultural_use__m_3__p_yr__in__percentage_ varchar, PRIMARY KEY (country)) | select country from table_15909409_2 where agricultural_use__m_3__p_yr__in__percentage_ = "2040(93%)" |
what's the party with opponent being marcy kaptur (d) 75.3% randy whitman (r) 24.7% | create table table_1341522_38 (party varchar, opponent varchar, PRIMARY KEY (party)) | select party from table_1341522_38 where opponent = "marcy kaptur (d) 75.3% randy whitman (r) 24.7%" |
Name the final score for barcelona dragons | create table table_26401898_2 (final_score varchar, opponent varchar, PRIMARY KEY (final_score)) | select final_score from table_26401898_2 where opponent = "barcelona dragons" |
Where is the orchestra when the year of recording is 1934? | create table table_222198_1 (orchestra varchar, year_of_recording varchar, PRIMARY KEY (orchestra)) | select orchestra from table_222198_1 where year_of_recording = 1934 |
name the civil parish for garryduff | create table table_30120664_1 (civil_parish varchar, townland varchar, PRIMARY KEY (civil_parish)) | select civil_parish from table_30120664_1 where townland = "garryduff" |
What is the last date of the staff leaving the projects? | create table project_staff (date_to varchar, PRIMARY KEY (date_to)) | select date_to from project_staff order by date_to desc limit 1 |
Who is the director for diary for my loves? | create table table_14975415_1 (director varchar, english_title varchar, PRIMARY KEY (director)) | select director from table_14975415_1 where english_title = "diary for my loves" |
What is the subdivision name (BE) where subdivision name (RU) (BGN) is Grodnenskaya Oblast'? | create table table_290017_1 (subdivision_name___be____bgn_pcgn_ varchar, subdivision_name___ru____bgn_pcgn_ varchar, PRIMARY KEY (subdivision_name___be____bgn_pcgn_)) | select subdivision_name___be____bgn_pcgn_ from table_290017_1 where subdivision_name___ru____bgn_pcgn_ = "grodnenskaya oblast'" |
What is the title of the episode that aired on 13 august 1981? | create table table_2570269_3 (episode_title varchar, original_air_date__uk_ varchar, PRIMARY KEY (episode_title)) | select episode_title from table_2570269_3 where original_air_date__uk_ = "13 august 1981" |
Name the athelte for enkhzorig ( mgl ) l 1–10 | create table table_17417383_6 (athlete varchar, round_of_32 varchar, PRIMARY KEY (athlete)) | select athlete from table_17417383_6 where round_of_32 = "enkhzorig ( mgl ) l 1–10" |
Who were the writers when there were 27.11 million viewers? | create table table_18217753_1 (written_by varchar, us_viewers__millions_ varchar, PRIMARY KEY (written_by)) | select written_by from table_18217753_1 where us_viewers__millions_ = "27.11" |
On all other parties the National option polls are at 1.3% where as the opinion research pole is at what percentage? | create table table_159614_2 (opinion_research_centre__opc_ varchar, national_opinion_polls__nop_ varchar, PRIMARY KEY (opinion_research_centre__opc_)) | select opinion_research_centre__opc_ from table_159614_2 where national_opinion_polls__nop_ = "1.3%" |
Where the number of exports are 6,099.06, what is the total trade? | create table table_26160007_1 (total_trade varchar, exports varchar, PRIMARY KEY (total_trade)) | select total_trade from table_26160007_1 where exports = "6,099.06" |
Show the names of companies and the number of employees they have | create table company (name varchar, company_id varchar, PRIMARY KEY (name)); create table people (people_id varchar, PRIMARY KEY (people_id)); create table employment (people_id varchar, company_id varchar, PRIMARY KEY (people_id)) | select t3.name, count(*) from employment as t1 join people as t2 on t1.people_id = t2.people_id join company as t3 on t1.company_id = t3.company_id group by t3.name |
Show ids of students who don't play video game. | create table plays_games (stuid varchar, PRIMARY KEY (stuid)); create table student (stuid varchar, PRIMARY KEY (stuid)) | select stuid from student except select stuid from plays_games |
What are the high rebounds in the jamal crawford (20) high points? | create table table_27734577_8 (high_rebounds varchar, high_points varchar, PRIMARY KEY (high_rebounds)) | select high_rebounds from table_27734577_8 where high_points = "jamal crawford (20)" |
The semifinal score of vergeer ( ned ) l 0-6, 1-6 follows a round of 16 result of what? | create table table_18602462_22 (round_of_16 varchar, semifinals varchar, PRIMARY KEY (round_of_16)) | select round_of_16 from table_18602462_22 where semifinals = "vergeer ( ned ) l 0-6, 1-6" |
Where is the audition city when the venue is upi convention center? | create table table_28793672_1 (audition_city varchar, venue varchar, PRIMARY KEY (audition_city)) | select audition_city from table_28793672_1 where venue = "upi convention center" |
When hot adult contemporary is the format what is the call sign? | create table table_18536769_1 (call_sign varchar, format varchar, PRIMARY KEY (call_sign)) | select call_sign from table_18536769_1 where format = "hot adult contemporary" |
At what venues did Lorena Ochoa win the championship? | create table table_1520559_1 (venue varchar, champion varchar, PRIMARY KEY (venue)) | select venue from table_1520559_1 where champion = "lorena ochoa" |
How many frequency figures are given for next station service pattern? | create table table_1612760_1 (frequency__per_hour_ varchar, service_pattern varchar, PRIMARY KEY (frequency__per_hour_)) | select count(frequency__per_hour_) from table_1612760_1 where service_pattern = "next station" |
Name the total number of segment d for wooden s barrel | create table table_15187735_10 (segment_d varchar, segment_a varchar, PRIMARY KEY (segment_d)) | select count(segment_d) from table_15187735_10 where segment_a = "wooden s barrel" |
What is the total number of years active listings where Asian Cup played as a captain is Japan 1992? | create table table_272865_20 (years_active varchar, asian_cup_played_as_a_captain varchar, PRIMARY KEY (years_active)) | select count(years_active) from table_272865_20 where asian_cup_played_as_a_captain = "japan 1992" |
Show all document names using templates with template type code BK. | create table documents (document_name varchar, template_id varchar, PRIMARY KEY (document_name)); create table templates (template_id varchar, template_type_code varchar, PRIMARY KEY (template_id)) | select t2.document_name from templates as t1 join documents as t2 on t1.template_id = t2.template_id where t1.template_type_code = "bk" |
what's the province where member is dingley brittin category:articles with hcards | create table table_1193568_1 (province varchar, member varchar, PRIMARY KEY (province)) | select province from table_1193568_1 where member = "dingley brittin category:articles with hcards" |
Who was Andrew and Georgies guest when Jamie and Johns guest was Joe Calzaghe? | create table table_29141354_2 (andrew_and_georgies_guest varchar, jamie_and_johns_guest varchar, PRIMARY KEY (andrew_and_georgies_guest)) | select andrew_and_georgies_guest from table_29141354_2 where jamie_and_johns_guest = "joe calzaghe" |
If the episode was directed by Michael Offer, how many US Viewers watched it? | create table table_25084227_1 (us_viewers__in_millions_ varchar, directed_by varchar, PRIMARY KEY (us_viewers__in_millions_)) | select us_viewers__in_millions_ from table_25084227_1 where directed_by = "michael offer" |
Name the original title for the last metro | create table table_18987377_1 (original_title varchar, film_title_used_in_nomination varchar, PRIMARY KEY (original_title)) | select original_title from table_18987377_1 where film_title_used_in_nomination = "the last metro" |
Find the names of instructors who didn't each any courses in any Spring semester. | create table teaches (name varchar, id varchar, semester varchar, PRIMARY KEY (name)); create table instructor (name varchar, id varchar, semester varchar, PRIMARY KEY (name)) | select name from instructor where not id in (select id from teaches where semester = 'spring') |
If the condition/parameter is rapidity of 1 hyperbolic radian, what is the proper velocity w dx/dτ in units of c? | create table table_15314901_1 (proper_velocity_w_dx_dτ_in_units_of_c varchar, condition_parameter varchar, PRIMARY KEY (proper_velocity_w_dx_dτ_in_units_of_c)) | select proper_velocity_w_dx_dτ_in_units_of_c from table_15314901_1 where condition_parameter = "rapidity of 1 hyperbolic radian" |
Show the leader names and locations of colleges. | create table college (leader_name varchar, college_location varchar, PRIMARY KEY (leader_name)) | select leader_name, college_location from college |
How many climbers are there? | create table climber (id varchar, PRIMARY KEY (id)) | select count(*) from climber |
Return the names of the contestants whose names contain the substring 'Al' . | create table contestants (contestant_name varchar, PRIMARY KEY (contestant_name)) | select contestant_name from contestants where contestant_name like "%al%" |
For each building, show the name of the building and the number of institutions in it. | create table building (name varchar, building_id varchar, PRIMARY KEY (name)); create table institution (building_id varchar, PRIMARY KEY (building_id)) | select t1.name, count(*) from building as t1 join institution as t2 on t1.building_id = t2.building_id group by t1.building_id |
What is the number of seats in congress when the candidates per party is 6? | create table table_2676980_4 (seats_in_congress varchar, candidates_per_party varchar, PRIMARY KEY (seats_in_congress)) | select count(seats_in_congress) from table_2676980_4 where candidates_per_party = 6 |
Show the headquarters shared by more than two companies. | create table companies (headquarters varchar, PRIMARY KEY (headquarters)) | select headquarters from companies group by headquarters having count(*) > 2 |
What's the genre of Fever Ranma ½: Hot Springs Athletic Chapter? | create table table_12744399_1 (genre varchar, english_title_translation varchar, PRIMARY KEY (genre)) | select genre from table_12744399_1 where english_title_translation = "fever ranma ½: hot springs athletic chapter" |
What was the revising convention of the field 'trimmers and stokers'? | create table table_2001348_1 (revising_convention_s_ varchar, field varchar, PRIMARY KEY (revising_convention_s_)) | select revising_convention_s_ from table_2001348_1 where field = "trimmers and stokers" |
Who directed the episode that aired on September 25, 1967? | create table table_25800134_12 (director varchar, airdate varchar, PRIMARY KEY (director)) | select director from table_25800134_12 where airdate = "september 25, 1967" |
How many ILO codes are there with revising conventions of 'this convention, work in fishing convention'? | create table table_2001348_1 (ilo_code varchar, revising_convention_s_ varchar, PRIMARY KEY (ilo_code)) | select count(ilo_code) from table_2001348_1 where revising_convention_s_ = "this convention, work in fishing convention" |
What is the charity of the celebrity with the background reality star? | create table table_12286195_1 (charity varchar, background varchar, PRIMARY KEY (charity)) | select charity from table_12286195_1 where background = "reality star" |
How many millions of viewers watched the episode directed by Christine Moore? | create table table_23255941_1 (viewers__in_millions_ varchar, directed_by varchar, PRIMARY KEY (viewers__in_millions_)) | select viewers__in_millions_ from table_23255941_1 where directed_by = "christine moore" |
What's the gender of the students taught in the school founded in 1894? | create table table_1930857_1 (gender varchar, year_founded varchar, PRIMARY KEY (gender)) | select gender from table_1930857_1 where year_founded = "1894" |
Find how many school locations have the word 'NY'. | create table university (location varchar, PRIMARY KEY (location)) | select count(*) from university where location like "%ny%" |
What's the area coordinator for the municipality with 1715 people living in it in 2010? | create table table_2402209_1 (area_coordinator varchar, population__2010_ varchar, PRIMARY KEY (area_coordinator)) | select area_coordinator from table_2402209_1 where population__2010_ = 1715 |
for what crime was gunther volz executed at metz? | create table table_2861364_1 (crime varchar, place_of_execution varchar, executed_person varchar, PRIMARY KEY (crime)) | select crime from table_2861364_1 where place_of_execution = "metz" and executed_person = "gunther volz" |
Who was the centerfold model when a pictorial was done on marilyn monroe? | create table table_1566850_8 (centerfold_model varchar, pictorials varchar, PRIMARY KEY (centerfold_model)) | select centerfold_model from table_1566850_8 where pictorials = "marilyn monroe" |
Who was the writer when there were 15.85 million US viewers? | create table table_15717093_1 (written_by varchar, us_viewers__millions_ varchar, PRIMARY KEY (written_by)) | select written_by from table_15717093_1 where us_viewers__millions_ = "15.85" |
what is the total number of high rebounds for minnesota? | create table table_22879262_7 (high_rebounds varchar, team varchar, PRIMARY KEY (high_rebounds)) | select count(high_rebounds) from table_22879262_7 where team = "minnesota" |
Who played in Maryland the same year that Deep Run Valley LL Hilltown played in Pennsylvania? | create table table_13012165_1 (maryland varchar, pennsylvania varchar, PRIMARY KEY (maryland)) | select maryland from table_13012165_1 where pennsylvania = "deep run valley ll hilltown" |
Name the team for susan bates | create table table_24535095_2 (team varchar, listed_owner_s_ varchar, PRIMARY KEY (team)) | select team from table_24535095_2 where listed_owner_s_ = "susan bates" |
Name the candidates for ellsworth b. buck | create table table_1342233_32 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates)) | select candidates from table_1342233_32 where incumbent = "ellsworth b. buck" |
What's the C_{low} value when C_{high} is 12.0? | create table table_1942366_9 (low varchar, high varchar, PRIMARY KEY (low)) | select struct(low) from table_1942366_9 where struct(high) = "12.0" |
which vehicles got best time of day 1:17.17 | create table table_20090682_4 (vehicle varchar, best_time_of_day varchar, PRIMARY KEY (vehicle)) | select vehicle from table_20090682_4 where best_time_of_day = "1:17.17" |
List all dates of succession in the state class Missouri (3). | create table table_2417330_3 (date_of_successors_formal_installation varchar, state__class_ varchar, PRIMARY KEY (date_of_successors_formal_installation)) | select date_of_successors_formal_installation from table_2417330_3 where state__class_ = "missouri (3)" |
What are all the denominations for China? | create table table_2592308_1 (denominations__gold_weight_ varchar, country varchar, PRIMARY KEY (denominations__gold_weight_)) | select denominations__gold_weight_ from table_2592308_1 where country = "china" |
How many settlements were made on the claim with the most recent claim settlement date? List the number and the claim id. | create table settlements (claim_id varchar, PRIMARY KEY (claim_id)); create table claims (claim_id varchar, date_claim_settled varchar, PRIMARY KEY (claim_id)) | select count(*), t1.claim_id from claims as t1 join settlements as t2 on t1.claim_id = t2.claim_id group by t1.claim_id order by t1.date_claim_settled desc limit 1 |
Who scored highest rebounds high points is charlie villanueva (32) | create table table_17058116_7 (high_rebounds varchar, high_points varchar, PRIMARY KEY (high_rebounds)) | select high_rebounds from table_17058116_7 where high_points = "charlie villanueva (32)" |
List from which date and to which date these staff work: project staff of the project which hires the most staffs | create table project_staff (date_from varchar, date_to varchar, project_id varchar, role_code varchar, PRIMARY KEY (date_from)) | select date_from, date_to from project_staff where project_id in (select project_id from project_staff group by project_id order by count(*) desc limit 1) union select date_from, date_to from project_staff where role_code = 'leader' |
What percentage of voters chose McCain in the county where 1.1% of voters voted third party? | create table table_20278716_2 (mccain__percentage varchar, others__percentage varchar, PRIMARY KEY (mccain__percentage)) | select mccain__percentage from table_20278716_2 where others__percentage = "1.1%" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.