question
stringlengths 14
216
| context
stringlengths 45
458
| answer
stringlengths 18
463
|
---|---|---|
Name the name for norway nationality | create table table_25826954_7 (name varchar, nationality varchar, PRIMARY KEY (name)) | select name from table_25826954_7 where nationality = "norway" |
What is the cyrillic name when the settlement is ašanja? | create table table_2562572_52 (cyrillic_name varchar, settlement varchar, PRIMARY KEY (cyrillic_name)) | select cyrillic_name from table_2562572_52 where settlement = "ašanja" |
How many episode were written by Brett Conrad? | create table table_25740548_2 (title varchar, written_by varchar, PRIMARY KEY (title)) | select count(title) from table_25740548_2 where written_by = "brett conrad" |
How many original 3rd us tour cast were there while the original uk cast was alyssa dipalma? | create table table_24353141_1 (original_3rd_us_tour_cast varchar, original_uk_cast varchar, PRIMARY KEY (original_3rd_us_tour_cast)) | select count(original_3rd_us_tour_cast) from table_24353141_1 where original_uk_cast = "alyssa dipalma" |
What is the description of the measure that got 39.57% yes votes? | create table table_256286_23 (description varchar, _percentage_yes varchar, PRIMARY KEY (description)) | select description from table_256286_23 where _percentage_yes = "39.57%" |
How many different second members were there when John rudhale was first member? | create table table_15451122_2 (second_member varchar, first_member varchar, PRIMARY KEY (second_member)) | select count(second_member) from table_15451122_2 where first_member = "john rudhale" |
what's the country with es mulatto being 3.5% | create table table_1333612_1 (country varchar, es_mulatto varchar, PRIMARY KEY (country)) | select country from table_1333612_1 where es_mulatto = "3.5%" |
Find the number of students for each department. | create table student (dept_code varchar, PRIMARY KEY (dept_code)) | select count(*), dept_code from student group by dept_code |
what ist he output where the short description is massive? | create table table_17157367_1 (output varchar, short_description varchar, PRIMARY KEY (output)) | select output from table_17157367_1 where short_description = "massive" |
What party was represented by incumbent Richard Coulter ? | create table table_2668243_20 (party varchar, incumbent varchar, PRIMARY KEY (party)) | select party from table_2668243_20 where incumbent = "richard coulter" |
Name the number of high points for record 5-17 | create table table_23186738_6 (high_points varchar, record varchar, PRIMARY KEY (high_points)) | select count(high_points) from table_23186738_6 where record = "5-17" |
What nationality is the draft pick player going to Minnesota North Stars? | create table table_2850912_1 (nationality varchar, nhl_team varchar, PRIMARY KEY (nationality)) | select nationality from table_2850912_1 where nhl_team = "minnesota north stars" |
What is the event name with the number 8M? | create table table_22050544_4 (event varchar, event__number varchar, PRIMARY KEY (event)) | select event from table_22050544_4 where event__number = "8m" |
Report the first name and last name of all the students. | create table list (firstname varchar, lastname varchar, PRIMARY KEY (firstname)) | select distinct firstname, lastname from list |
What is the title for the episode that written by Michael Miller? | create table table_19517621_3 (title varchar, written_by varchar, PRIMARY KEY (title)) | select title from table_19517621_3 where written_by = "michael miller" |
Where was the competition with a qualifying score of 58.425? | create table table_25143284_1 (location varchar, score_qualifying varchar, PRIMARY KEY (location)) | select location from table_25143284_1 where score_qualifying = "58.425" |
What country is the contestant from San Francisco de Yojoa from? | create table table_20669355_2 (country varchar, hometown varchar, PRIMARY KEY (country)) | select country from table_20669355_2 where hometown = "san francisco de yojoa" |
Show the average amount of transactions for different lots. | create table transactions (transaction_id varchar, PRIMARY KEY (transaction_id)); create table transactions_lots (lot_id varchar, transaction_id varchar, PRIMARY KEY (lot_id)) | select t2.lot_id, avg(amount_of_transaction) from transactions as t1 join transactions_lots as t2 on t1.transaction_id = t2.transaction_id group by t2.lot_id |
Find the number of rooms with king bed for each decor type. | create table rooms (decor varchar, bedtype varchar, PRIMARY KEY (decor)) | select decor, count(*) from rooms where bedtype = "king" group by decor |
What was the report for the winton race? | create table table_20884163_2 (report varchar, race_title varchar, PRIMARY KEY (report)) | select report from table_20884163_2 where race_title = "winton" |
What is the origin of the constellation that can be abbreviated to tele? | create table table_287159_1 (origin varchar, other_abbreviation varchar, PRIMARY KEY (origin)) | select origin from table_287159_1 where other_abbreviation = "tele" |
How many items are listed under caps when burnley is the club team? | create table table_28286776_12 (cap_s_ varchar, club_s_ varchar, PRIMARY KEY (cap_s_)) | select count(cap_s_) from table_28286776_12 where club_s_ = "burnley" |
What is the name of the station where the language is tamil malay? | create table table_1601792_3 (station varchar, language varchar, PRIMARY KEY (station)) | select station from table_1601792_3 where language = "tamil malay" |
How many drivers on the williams team had a margin of defeat of 2? | create table table_10753917_1 (driver varchar, team varchar, margin_of_defeat varchar, PRIMARY KEY (driver)) | select count(driver) from table_10753917_1 where team = "williams" and margin_of_defeat = "2" |
What channel has station kdfw ++? | create table table_1353096_1 (channel_tv___dt__ varchar, station varchar, PRIMARY KEY (channel_tv___dt__)) | select channel_tv___dt__ from table_1353096_1 where station = "kdfw ++" |
When were the members tenured in the Field school? | create table table_28051859_3 (tenure varchar, school varchar, PRIMARY KEY (tenure)) | select tenure from table_28051859_3 where school = "field" |
What is the largest n value for 55.6% r1b1c4 (r-v69)? | create table table_21481509_4 (n integer, r1b1c4__r_v69_ varchar, PRIMARY KEY (n)) | select max(n) from table_21481509_4 where r1b1c4__r_v69_ = "55.6%" |
What is the role name and role description for employee called Ebba? | create table employees (role_code varchar, employee_name varchar, PRIMARY KEY (role_code)); create table roles (role_name varchar, role_description varchar, role_code varchar, PRIMARY KEY (role_name)) | select t2.role_name, t2.role_description from employees as t1 join roles as t2 on t1.role_code = t2.role_code where t1.employee_name = "ebba" |
How many tree species are there when the total plant species is 113? | create table table_16577990_1 (tree_species varchar, total_plant_species varchar, PRIMARY KEY (tree_species)) | select count(tree_species) from table_16577990_1 where total_plant_species = 113 |
Who is the captain in Chaguaramas? | create table table_24039173_1 (captain varchar, location varchar, PRIMARY KEY (captain)) | select captain from table_24039173_1 where location = "chaguaramas" |
How many staff in total? | create table staff (id varchar, PRIMARY KEY (id)) | select count(*) from staff |
Who directed the episode whose production code is 2m5901? | create table table_27969432_4 (directed_by varchar, production varchar, PRIMARY KEY (directed_by)) | select directed_by from table_27969432_4 where production = "2m5901" |
Name the circuit for france and portugal | create table table_2446333_2 (circuit varchar, main_winner varchar, country varchar, PRIMARY KEY (circuit)) | select circuit from table_2446333_2 where main_winner = "france" and country = "portugal" |
List the names of the schools without any endowment. | create table endowment (school_name varchar, school_id varchar, PRIMARY KEY (school_name)); create table school (school_name varchar, school_id varchar, PRIMARY KEY (school_name)) | select school_name from school where not school_id in (select school_id from endowment) |
Where are the Buffalo Sabres from? | create table table_2679061_7 (college_junior_club_team varchar, nhl_team varchar, PRIMARY KEY (college_junior_club_team)) | select college_junior_club_team from table_2679061_7 where nhl_team = "buffalo sabres" |
Who was the GTO winner of the round that ended with Chris Cord becoming the GTU winner? | create table table_13643320_2 (gto_winning_team varchar, gtu_winning_team varchar, PRIMARY KEY (gto_winning_team)) | select gto_winning_team from table_13643320_2 where gtu_winning_team = "chris cord" |
What is the Malayalam word for punarvasu ಪುನರ್ವಸು in Kannada? | create table table_1408397_3 (malayalam_മലയാളം varchar, kannada_ಕನ್ನಡ varchar, PRIMARY KEY (malayalam_മലയാളം)) | select malayalam_മലയാളം from table_1408397_3 where kannada_ಕನ್ನಡ = "punarvasu ಪುನರ್ವಸು" |
Name the cardinal points for 19-4 record | create table table_23192661_3 (cardinal_points integer, record varchar, PRIMARY KEY (cardinal_points)) | select min(cardinal_points) from table_23192661_3 where record = "19-4" |
If the just cents is 701.96, what is the interval name? | create table table_18955077_1 (interval_name varchar, just__cents_ varchar, PRIMARY KEY (interval_name)) | select interval_name from table_18955077_1 where just__cents_ = "701.96" |
How many air dates were there when Morgan was eliminated? | create table table_1893276_2 (air_date varchar, eliminated varchar, PRIMARY KEY (air_date)) | select count(air_date) from table_1893276_2 where eliminated = "morgan" |
What is the minimum of 25 to 29? | create table table_16457934_5 (id varchar, PRIMARY KEY (id)) | select min(25 as _to_29) from table_16457934_5 |
what's the character name with voice actor (englbeingh 1997 / saban) being ian james corlett | create table table_1410384_1 (character_name varchar, voice_actor__english_1997___saban_ varchar, PRIMARY KEY (character_name)) | select character_name from table_1410384_1 where voice_actor__english_1997___saban_ = "ian james corlett" |
what is the name of the station where the metlink code is mata? | create table table_3005450_1 (station varchar, metlink_code varchar, PRIMARY KEY (station)) | select station from table_3005450_1 where metlink_code = "mata" |
What was the number of viewers for the episode having a fourth couple of Tony and Jamie? | create table table_25664518_3 (viewers__millions_ varchar, fourth_couple varchar, PRIMARY KEY (viewers__millions_)) | select viewers__millions_ from table_25664518_3 where fourth_couple = "tony and jamie" |
What circuit was the Clipsal 500 on? | create table table_25531112_2 (circuit varchar, event varchar, PRIMARY KEY (circuit)) | select circuit from table_25531112_2 where event = "clipsal 500" |
How many daves team entries are there on 27 october 2006? | create table table_23292220_4 (daves_team varchar, first_broadcast varchar, PRIMARY KEY (daves_team)) | select count(daves_team) from table_23292220_4 where first_broadcast = "27 october 2006" |
What team won when the race time was 3:12:30? | create table table_2175685_1 (team varchar, race_time varchar, PRIMARY KEY (team)) | select team from table_2175685_1 where race_time = "3:12:30" |
What is the minimum number of wins possible for the Champ Car World Series among all the drivers? | create table table_19524523_1 (champ_car_world_series__2004_2007_ integer, PRIMARY KEY (champ_car_world_series__2004_2007_)) | select min(champ_car_world_series__2004_2007_) from table_19524523_1 |
What was round of 16 when in round 32 it was koryttseva ( ukr ) w 2–6, 6–1, 7–5? | create table table_17289604_38 (round_of_16 varchar, round_of_32 varchar, PRIMARY KEY (round_of_16)) | select round_of_16 from table_17289604_38 where round_of_32 = "koryttseva ( ukr ) w 2–6, 6–1, 7–5" |
How many neighborhoods have a station proposed at a Hospital? | create table table_22771048_4 (city_neighborhood varchar, station varchar, PRIMARY KEY (city_neighborhood)) | select count(city_neighborhood) from table_22771048_4 where station = "hospital" |
Find the number of students taught by TARRING LEIA. | create table list (classroom varchar, PRIMARY KEY (classroom)); create table teachers (classroom varchar, firstname varchar, lastname varchar, PRIMARY KEY (classroom)) | select count(*) from list as t1 join teachers as t2 on t1.classroom = t2.classroom where t2.firstname = "tarring" and t2.lastname = "leia" |
When @ new orleans is the team who has the highest amount of rebounds? | create table table_17288825_6 (high_rebounds varchar, team varchar, PRIMARY KEY (high_rebounds)) | select high_rebounds from table_17288825_6 where team = "@ new orleans" |
What year and where was the tournament when fan ying won the womens singles? | create table table_28138035_26 (year_location varchar, womens_singles varchar, PRIMARY KEY (year_location)) | select year_location from table_28138035_26 where womens_singles = "fan ying" |
What smallest amount in the weeks at peak column? | create table table_26399982_2 (weeks_at_peak integer, PRIMARY KEY (weeks_at_peak)) | select min(weeks_at_peak) from table_26399982_2 |
What is the team captain when the shirt sponser is quick? | create table table_27374004_2 (team_captain varchar, shirt_sponsor varchar, PRIMARY KEY (team_captain)) | select team_captain from table_27374004_2 where shirt_sponsor = "quick" |
How many different players did the high assists in games where the high rebounds were done by Sales (10)? | create table table_19778010_5 (high_assists varchar, high_rebounds varchar, PRIMARY KEY (high_assists)) | select count(high_assists) from table_19778010_5 where high_rebounds = "sales (10)" |
What format for the release that had 2000 copies? | create table table_18710512_3 (format varchar, other_details varchar, PRIMARY KEY (format)) | select format from table_18710512_3 where other_details = "2000 copies" |
How many races was Loki in? | create table table_25594888_1 (race_number varchar, yacht varchar, PRIMARY KEY (race_number)) | select count(race_number) from table_25594888_1 where yacht = "loki" |
who wrote s01e06 | create table table_20360535_2 (written_by varchar, television_order varchar, PRIMARY KEY (written_by)) | select written_by from table_20360535_2 where television_order = "s01e06" |
How many distinct courses are enrolled in by students? | create table student_course_enrolment (course_id varchar, PRIMARY KEY (course_id)) | select count(course_id) from student_course_enrolment |
What was the total of arlenes vote when craig voted for brian and karen? | create table table_12305325_4 (arlenes_vote varchar, craigs_vote varchar, PRIMARY KEY (arlenes_vote)) | select count(arlenes_vote) from table_12305325_4 where craigs_vote = "brian and karen" |
What city and state is the Lancers mascot located? | create table table_11044765_1 (location varchar, mascot varchar, PRIMARY KEY (location)) | select location from table_11044765_1 where mascot = "lancers" |
What is the record in the atlantic coast conference for the Miami team? | create table table_28744929_2 (acc_record varchar, team varchar, PRIMARY KEY (acc_record)) | select acc_record from table_28744929_2 where team = "miami" |
What is every value for TDP if model is x53xx? | create table table_2467150_2 (tdp varchar, model__list_ varchar, PRIMARY KEY (tdp)) | select tdp from table_2467150_2 where model__list_ = "x53xx" |
What is the format for the station owned by Dakota Broadcasting? | create table table_2709_4 (format varchar, owner varchar, PRIMARY KEY (format)) | select format from table_2709_4 where owner = "dakota broadcasting" |
Car number 15 earned what time? | create table table_17244483_1 (time_retired varchar, car_no varchar, PRIMARY KEY (time_retired)) | select time_retired from table_17244483_1 where car_no = 15 |
How many years of kindergarten is provided in Ticino? | create table table_1831309_1 (years_of_kindergarten varchar, canton varchar, PRIMARY KEY (years_of_kindergarten)) | select years_of_kindergarten as provided from table_1831309_1 where canton = "ticino" |
Name the sabaean for sabʕ- | create table table_26919_6 (sabaean varchar, arabic varchar, PRIMARY KEY (sabaean)) | select sabaean from table_26919_6 where arabic = "sabʕ-" |
What percentage voted for Tom Horner according to the poll source with sampling error of 2.5%? | create table table_20032301_3 (tom_horner__i_ varchar, sampling_error varchar, PRIMARY KEY (tom_horner__i_)) | select tom_horner__i_ from table_20032301_3 where sampling_error = "2.5%" |
What is the end (UTC) for spacecraft STS-114 Eva 3? | create table table_22385461_6 (end__utc_ varchar, spacecraft varchar, PRIMARY KEY (end__utc_)) | select end__utc_ from table_22385461_6 where spacecraft = "sts-114 eva 3" |
What alumni had noor jehangir as their fresh meat partner? | create table table_26419467_1 (alumni varchar, fresh_meat_partner varchar, PRIMARY KEY (alumni)) | select alumni from table_26419467_1 where fresh_meat_partner = "noor jehangir" |
What is the total number of 3rd placed teams when the host is University of Manitoba, Winnipeg, Manitoba? | create table table_1906920_1 (host varchar, PRIMARY KEY (host)) | select count(3 as rd_place) from table_1906920_1 where host = "university of manitoba, winnipeg, manitoba" |
List the language used least number of TV Channel. List language and number of TV Channel. | create table tv_channel (language varchar, PRIMARY KEY (language)) | select language, count(*) from tv_channel group by language order by count(*) limit 1 |
How many times does ROY SWEAZY has reserved a room. | create table reservations (firstname varchar, lastname varchar, PRIMARY KEY (firstname)) | select count(*) from reservations where firstname = "roy" and lastname = "sweazy" |
Which channel tv (dt) plays in San Francisco - Oakland - San Jose? | create table table_1553485_1 (channel_tv___dt__ varchar, city_of_license__market varchar, PRIMARY KEY (channel_tv___dt__)) | select channel_tv___dt__ from table_1553485_1 where city_of_license__market = "san francisco - oakland - san jose" |
When did the staff member with first name as Janessa and last name as Sawayn join the company? | create table staff (date_joined_staff varchar, first_name varchar, last_name varchar, PRIMARY KEY (date_joined_staff)) | select date_joined_staff from staff where first_name = "janessa" and last_name = "sawayn" |
What album was the song Shimmy Jimmy from the episode titled Toy to the world on? | create table table_23667534_1 (album_s_ varchar, episode_title varchar, song_s__title varchar, PRIMARY KEY (album_s_)) | select album_s_ from table_23667534_1 where episode_title = "toy to the world" and song_s__title = "shimmy jimmy" |
What's Eduardo Salas' riding score? | create table table_12407546_1 (riding varchar, athlete__noc_ varchar, PRIMARY KEY (riding)) | select riding from table_12407546_1 where athlete__noc_ = "eduardo salas" |
Name the hebrew for *tišʻ- | create table table_26919_6 (hebrew varchar, proto_semitic varchar, PRIMARY KEY (hebrew)) | select hebrew from table_26919_6 where proto_semitic = "*tišʻ-" |
what is the socket that has a brand name of core 2 extreme? | create table table_24101118_1 (socket varchar, brand_name varchar, PRIMARY KEY (socket)) | select socket from table_24101118_1 where brand_name = "core 2 extreme" |
Find the name of the airports located in Cuba or Argentina. | create table airports (name varchar, country varchar, PRIMARY KEY (name)) | select name from airports where country = 'cuba' or country = 'argentina' |
What does the non-present stem -erama- mean? | create table table_12784134_1 (meaning varchar, non_present_stem varchar, PRIMARY KEY (meaning)) | select meaning from table_12784134_1 where non_present_stem = "-erama-" |
How many figures are named for security forces in 1998? | create table table_21636599_2 (security_forces varchar, period varchar, PRIMARY KEY (security_forces)) | select count(security_forces) from table_21636599_2 where period = 1998 |
What are the addresses of the course authors or tutors with personal name "Cathrine" | create table course_authors_and_tutors (address_line_1 varchar, personal_name varchar, PRIMARY KEY (address_line_1)) | select address_line_1 from course_authors_and_tutors where personal_name = "cathrine" |
What is the title that had 13.59 u.s. viewers (millions)? | create table table_22078691_2 (title varchar, us_viewers__millions_ varchar, PRIMARY KEY (title)) | select title from table_22078691_2 where us_viewers__millions_ = "13.59" |
List the names and phone numbers of all the distinct suppliers who supply red jeans. | create table product_suppliers (supplier_id varchar, product_id varchar, PRIMARY KEY (supplier_id)); create table suppliers (supplier_name varchar, supplier_phone varchar, supplier_id varchar, PRIMARY KEY (supplier_name)); create table products (product_id varchar, product_name varchar, PRIMARY KEY (product_id)) | select distinct t1.supplier_name, t1.supplier_phone from suppliers as t1 join product_suppliers as t2 on t1.supplier_id = t2.supplier_id join products as t3 on t2.product_id = t3.product_id where t3.product_name = "red jeans" |
How many events had participants whose details had the substring 'Dr.' | create table participants (participant_id varchar, participant_details varchar, PRIMARY KEY (participant_id)); create table participants_in_events (participant_id varchar, PRIMARY KEY (participant_id)) | select count(*) from participants as t1 join participants_in_events as t2 on t1.participant_id = t2.participant_id where t1.participant_details like '%dr.%' |
Who was on Jon's team when Sean's team had Matthew Crosby and Kimberly Wyatt? | create table table_23292220_13 (jons_team varchar, seans_team varchar, PRIMARY KEY (jons_team)) | select jons_team from table_23292220_13 where seans_team = "matthew crosby and kimberly wyatt" |
Which party was the incumbent from when the cadidates were henry e. barbour (r) 52.1% henry hawson (d) 47.9%? Answer: Democratic | create table table_1346118_5 (party varchar, candidates varchar, PRIMARY KEY (party)) | select count(party) from table_1346118_5 where candidates = "henry e. barbour (r) 52.1% henry hawson (d) 47.9%" |
What is the record at Columbia for the team overall record of MU, 3-1? | create table table_16201038_5 (at_columbia varchar, overall_record varchar, PRIMARY KEY (at_columbia)) | select at_columbia from table_16201038_5 where overall_record = "mu, 3-1" |
in the drum module td-5 what are the tom-tom pads | create table table_2889300_6 (tom_tom_pads varchar, drum_module varchar, PRIMARY KEY (tom_tom_pads)) | select tom_tom_pads from table_2889300_6 where drum_module = "td-5" |
Who was the home team when the away team is Carlton? | create table table_16388478_4 (home_team varchar, away_team varchar, PRIMARY KEY (home_team)) | select home_team from table_16388478_4 where away_team = "carlton" |
List the hebrew word for the strongs words compounded of 'adown [# 113] & yahu | create table table_1242447_2 (hebrew_word varchar, strongs_words_compounded varchar, PRIMARY KEY (hebrew_word)) | select hebrew_word from table_1242447_2 where strongs_words_compounded = "'adown [# 113] & yahu" |
What was the game record when the opponent was 'at Los Angeles Raiders'? | create table table_17972193_1 (record varchar, opponent varchar, PRIMARY KEY (record)) | select record from table_17972193_1 where opponent = "at los angeles raiders" |
what's the airport with total passengers 2009 being 157933 | create table table_13836704_4 (airport varchar, total_passengers_2009 varchar, PRIMARY KEY (airport)) | select airport from table_13836704_4 where total_passengers_2009 = 157933 |
How long has the team who owns North Shore Events Centre Vector Arena been active? | create table table_283203_1 (years_active varchar, home_venue varchar, PRIMARY KEY (years_active)) | select years_active from table_283203_1 where home_venue = "north shore events centre vector arena" |
What stain is used commonly for elastic fibers? | create table table_13570_1 (stain varchar, common_use varchar, PRIMARY KEY (stain)) | select stain from table_13570_1 where common_use = "elastic fibers" |
Display the first name and department name for each employee. | create table departments (department_name varchar, department_id varchar, PRIMARY KEY (department_name)); create table employees (first_name varchar, department_id varchar, PRIMARY KEY (first_name)) | select t1.first_name, t2.department_name from employees as t1 join departments as t2 on t1.department_id = t2.department_id |
what is the numbe of provincial captial where the population is 1162900? | create table table_17416221_1 (provincial_capital varchar, population__2013_ varchar, PRIMARY KEY (provincial_capital)) | select count(provincial_capital) from table_17416221_1 where population__2013_ = 1162900 |
Who was the winning driver in the race that was 3:04:09 long? | create table table_2266762_1 (driver varchar, race_time varchar, PRIMARY KEY (driver)) | select driver from table_2266762_1 where race_time = "3:04:09" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.