question
stringlengths 14
216
| context
stringlengths 45
458
| answer
stringlengths 18
463
|
---|---|---|
What is the code of airport that has fewest number of flights? | create table flights (destairport varchar, sourceairport varchar, PRIMARY KEY (destairport)); create table airports (airportcode varchar, PRIMARY KEY (airportcode)) | select t1.airportcode from airports as t1 join flights as t2 on t1.airportcode = t2.destairport or t1.airportcode = t2.sourceairport group by t1.airportcode order by count(*) limit 1 |
Who had the high rebounds when Chris Bosh (16) had the high points? | create table table_11960407_4 (high_rebounds varchar, high_points varchar, PRIMARY KEY (high_rebounds)) | select high_rebounds from table_11960407_4 where high_points = "chris bosh (16)" |
What is the team when the date of appointment is 23 march 2011? | create table table_26914854_3 (team varchar, date_of_appointment varchar, PRIMARY KEY (team)) | select team from table_26914854_3 where date_of_appointment = "23 march 2011" |
How many passengers (in millions) flew from Seoul in 2012? | create table table_16066063_1 (city_1 varchar, PRIMARY KEY (city_1)) | select 2012 as _passengers__in_millions_ from table_16066063_1 where city_1 = "seoul" |
What is the name of the episode performed by Essra Mohawk | create table table_191105_4 (episode_title varchar, performed_by varchar, PRIMARY KEY (episode_title)) | select episode_title from table_191105_4 where performed_by = "essra mohawk" |
Who is the director when there is 8.44 million viewers? | create table table_24910733_1 (directed_by varchar, us_viewers__millions_ varchar, PRIMARY KEY (directed_by)) | select directed_by from table_24910733_1 where us_viewers__millions_ = "8.44" |
Name the original air date for 15.74 viewers | create table table_19501664_1 (original_air_date varchar, us_viewers__millions_ varchar, PRIMARY KEY (original_air_date)) | select original_air_date from table_19501664_1 where us_viewers__millions_ = "15.74" |
What are the names of the drama workshop groups with address in Feliciaberg city? | create table addresses (address_id varchar, city_town varchar, PRIMARY KEY (address_id)); create table drama_workshop_groups (store_name varchar, address_id varchar, PRIMARY KEY (store_name)) | select t2.store_name from addresses as t1 join drama_workshop_groups as t2 on t1.address_id = t2.address_id where t1.city_town = "feliciaberg" |
If the top team in regular season (points) is the New York Cosmos (200 points), what is the winner (number of titles)? | create table table_237757_3 (winner__number_of_titles_ varchar, top_team_in_regular_season__points_ varchar, PRIMARY KEY (winner__number_of_titles_)) | select winner__number_of_titles_ from table_237757_3 where top_team_in_regular_season__points_ = "new york cosmos (200 points)" |
How many candidates were there in the election for William Jennings Bryan Dorn's seat? | create table table_1341897_42 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates)) | select count(candidates) from table_1341897_42 where incumbent = "william jennings bryan dorn" |
What is we two where you two is ngipen? | create table table_1015914_24 (we_two varchar, you_two varchar, PRIMARY KEY (we_two)) | select we_two from table_1015914_24 where you_two = "ngipen" |
what is the arrival time where the station code is awy? | create table table_14688744_2 (arrival varchar, station_code varchar, PRIMARY KEY (arrival)) | select arrival from table_14688744_2 where station_code = "awy" |
where was sun 09/12/93 record made | create table table_21436373_12 (stadium varchar, date_year varchar, PRIMARY KEY (stadium)) | select stadium from table_21436373_12 where date_year = "sun 09/12/93" |
in electorate of 83850 what is the minimum s split vote | create table table_15082102_3 (s_spoilt_vote integer, electorate varchar, PRIMARY KEY (s_spoilt_vote)) | select min(s_spoilt_vote) from table_15082102_3 where electorate = 83850 |
What was the location when the opposition was East Coast? | create table table_26847237_1 (location varchar, opposition varchar, PRIMARY KEY (location)) | select location from table_26847237_1 where opposition = "east coast" |
how many total number of moto2/250cc when country is united states | create table table_2889810_2 (moto2_250cc varchar, country varchar, PRIMARY KEY (moto2_250cc)) | select count(moto2_250cc) from table_2889810_2 where country = "united states" |
What is the name of the team song written by ken walther? | create table table_28243323_1 (basis_for_team_song varchar, writer_composer varchar, PRIMARY KEY (basis_for_team_song)) | select basis_for_team_song from table_28243323_1 where writer_composer = "ken walther" |
what's the others% with parbeingh being tangipahoa | create table table_13608101_1 (others_percentage varchar, parish varchar, PRIMARY KEY (others_percentage)) | select others_percentage from table_13608101_1 where parish = "tangipahoa" |
If the horizontal bar is n/a and the floor is 14.175, what is the number for the parallel bars? | create table table_18662026_10 (parallel_bars varchar, floor varchar, horizontal_bar varchar, PRIMARY KEY (parallel_bars)) | select parallel_bars from table_18662026_10 where floor = "14.175" and horizontal_bar = "n/a" |
How many times did Viorel Moldovan replaced a manager? | create table table_17115950_2 (date_of_vacancy varchar, replaced_by varchar, PRIMARY KEY (date_of_vacancy)) | select count(date_of_vacancy) from table_17115950_2 where replaced_by = "viorel moldovan" |
What is the NFL team of the player whose college is Minnesota? | create table table_14650162_1 (nfl_team varchar, college varchar, PRIMARY KEY (nfl_team)) | select nfl_team from table_14650162_1 where college = "minnesota" |
Who played in group 12 when persikutim east kutai played in group 10? | create table table_19523142_5 (group_12 varchar, group_10 varchar, PRIMARY KEY (group_12)) | select group_12 from table_19523142_5 where group_10 = "persikutim east kutai" |
Name the segment d for bowling balls | create table table_15187735_13 (segment_d varchar, segment_a varchar, PRIMARY KEY (segment_d)) | select segment_d from table_15187735_13 where segment_a = "bowling balls" |
Find the ids and first names of the 3 teachers that have the most number of assessment notes? | create table assessment_notes (teacher_id varchar, PRIMARY KEY (teacher_id)); create table teachers (first_name varchar, teacher_id varchar, PRIMARY KEY (first_name)) | select t1.teacher_id, t2.first_name from assessment_notes as t1 join teachers as t2 on t1.teacher_id = t2.teacher_id group by t1.teacher_id order by count(*) desc limit 3 |
What is the LMS class of trains with numbers 14510-5? | create table table_15412381_5 (lms varchar, lms_nos varchar, PRIMARY KEY (lms)) | select lms as class from table_15412381_5 where lms_nos = "14510-5" |
how many times was the catalog number cal04 / 0091037553546? | create table table_27303975_3 (copyright_information varchar, catalog_number varchar, PRIMARY KEY (copyright_information)) | select count(copyright_information) from table_27303975_3 where catalog_number = "cal04 / 0091037553546" |
how many countries are in Asia? | create table country (continent varchar, PRIMARY KEY (continent)) | select count(*) from country where continent = "asia" |
What is the ship id and name that caused most total injuries? | create table death (caused_by_ship_id varchar, PRIMARY KEY (caused_by_ship_id)); create table ship (id varchar, PRIMARY KEY (id)) | select t2.id, t2.name from death as t1 join ship as t2 on t1.caused_by_ship_id = t2.id group by t2.id order by count(*) desc limit 1 |
Name the dominant religion 2002 for меленци | create table table_2562572_35 (dominant_religion__2002_ varchar, cyrillic_name_other_names varchar, PRIMARY KEY (dominant_religion__2002_)) | select dominant_religion__2002_ from table_2562572_35 where cyrillic_name_other_names = "меленци" |
When temperley is the home (2nd leg) what is the home (1st leg)? | create table table_14219514_2 (home__1st_leg_ varchar, home__2nd_leg_ varchar, PRIMARY KEY (home__1st_leg_)) | select home__1st_leg_ from table_14219514_2 where home__2nd_leg_ = "temperley" |
What is every entry for Tuesday August 23 when Thursday August 25 is 24' 31.87 92.282mph? | create table table_30058355_3 (tues_23_aug varchar, thurs_25_aug varchar, PRIMARY KEY (tues_23_aug)) | select tues_23_aug from table_30058355_3 where thurs_25_aug = "24' 31.87 92.282mph" |
how many segments involve wood boring augers | create table table_15187735_17 (segment_a varchar, segment_d varchar, PRIMARY KEY (segment_a)) | select segment_a from table_15187735_17 where segment_d = "wood boring augers" |
Show the ids for projects with at least 2 documents. | create table documents (project_id varchar, PRIMARY KEY (project_id)) | select project_id from documents group by project_id having count(*) >= 2 |
How much does Point Barrow weight? | create table table_20095300_1 (weight__st varchar, _lb_ varchar, name varchar, PRIMARY KEY (weight__st)) | select weight__st, _lb_ from table_20095300_1 where name = "point barrow" |
What are the timeslot(s) for broadcast on February 22, 2008? | create table table_16072430_1 (timeslot varchar, air_date varchar, PRIMARY KEY (timeslot)) | select timeslot from table_16072430_1 where air_date = "february 22, 2008" |
Show all advisors who have at least two students. | create table student (advisor varchar, PRIMARY KEY (advisor)) | select advisor from student group by advisor having count(*) >= 2 |
How many races were in fukuoka, japan? | create table table_26166836_1 (road_race varchar, country varchar, location varchar, PRIMARY KEY (road_race)) | select count(road_race) from table_26166836_1 where country = "japan" and location = "fukuoka" |
Name the commander of 167 off 2348 men | create table table_11793221_4 (commander varchar, complement varchar, PRIMARY KEY (commander)) | select commander from table_11793221_4 where complement = "167 off 2348 men" |
What is the oder part number for the model with 10x mult. 1? | create table table_27277284_28 (order_part_number varchar, mult_1 varchar, PRIMARY KEY (order_part_number)) | select order_part_number from table_27277284_28 where mult_1 = "10x" |
What is the fleet number when the length (ft) is 30? | create table table_19643196_1 (fleet__number varchar, length__ft_ varchar, PRIMARY KEY (fleet__number)) | select fleet__number from table_19643196_1 where length__ft_ = 30 |
What are the distinct battle names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'? | create table battle (name varchar, bulgarian_commander varchar, latin_commander varchar, PRIMARY KEY (name)) | select name from battle where bulgarian_commander = 'kaloyan' and latin_commander = 'baldwin i' |
In which year did the least people enter hall of fame? | create table hall_of_fame (yearid varchar, PRIMARY KEY (yearid)) | select yearid from hall_of_fame group by yearid order by count(*) limit 1 |
On how many different dates was event 1 Suspension Bridge? | create table table_17257687_1 (air_date varchar, event_1 varchar, PRIMARY KEY (air_date)) | select count(air_date) from table_17257687_1 where event_1 = "suspension bridge" |
What is the target market of the station with call sign KFXS? | create table table_134987_3 (target_city__market varchar, call_sign varchar, PRIMARY KEY (target_city__market)) | select target_city__market from table_134987_3 where call_sign = "kfxs" |
Where is California Lutheran University located? | create table table_14976504_2 (location varchar, institution varchar, PRIMARY KEY (location)) | select count(location) from table_14976504_2 where institution = "california lutheran university" |
What is the total number of churches named Høyanger Kyrkje? | create table table_178389_1 (sub_parish__sogn_ varchar, church_name varchar, PRIMARY KEY (sub_parish__sogn_)) | select count(sub_parish__sogn_) from table_178389_1 where church_name = "høyanger kyrkje" |
What settlement is also called мартонош (hungarian: martonos)? | create table table_2562572_33 (settlement varchar, cyrillic_name_other_names varchar, PRIMARY KEY (settlement)) | select settlement from table_2562572_33 where cyrillic_name_other_names = "мартонош (hungarian: martonos)" |
How many defending champs from thailand? | create table table_19765685_2 (defending_champion varchar, country varchar, PRIMARY KEY (defending_champion)) | select count(defending_champion) from table_19765685_2 where country = "thailand" |
Which part has the least chargeable amount? List the part id and amount. | create table parts (part_id varchar, chargeable_amount varchar, PRIMARY KEY (part_id)) | select part_id, chargeable_amount from parts order by chargeable_amount limit 1 |
What is the minimum 2010 population of Edgewater? | create table table_249512_2 (population__2010_ integer, place_name varchar, PRIMARY KEY (population__2010_)) | select min(population__2010_) from table_249512_2 where place_name = "edgewater" |
What's Luis Siri's shooting score? | create table table_12407546_1 (shooting varchar, athlete__noc_ varchar, PRIMARY KEY (shooting)) | select shooting from table_12407546_1 where athlete__noc_ = "luis siri" |
When event 4 was Whiplash, what was event 2? | create table table_17257687_1 (event_2 varchar, event_4 varchar, PRIMARY KEY (event_2)) | select event_2 from table_17257687_1 where event_4 = "whiplash" |
What is the official name of the municipality whose name in Spanish is Vitoria? | create table table_300283_1 (official_name varchar, name_in_spanish varchar, PRIMARY KEY (official_name)) | select official_name from table_300283_1 where name_in_spanish = "vitoria" |
What is the country of Paavo Yrjölä? | create table table_26454128_4 (country varchar, athlete varchar, PRIMARY KEY (country)) | select country from table_26454128_4 where athlete = "paavo yrjölä" |
picturesque and trekking route is the category what is the height from sea level in meters? | create table table_1430913_1 (height_from_sea_level_in_meters varchar, category varchar, PRIMARY KEY (height_from_sea_level_in_meters)) | select height_from_sea_level_in_meters from table_1430913_1 where category = "picturesque and trekking_route" |
How many reports were the for the cleveland burke lakefront airport circut? | create table table_10707176_2 (report varchar, circuit varchar, PRIMARY KEY (report)) | select count(report) from table_10707176_2 where circuit = "cleveland burke lakefront airport" |
Who won the 1973 democratic initial primary for queens of 19%? | create table table_1108394_24 (queens varchar, PRIMARY KEY (queens)) | select 1973 as _democratic_initial_primary from table_1108394_24 where queens = "19_percentage" |
What is the content of TV Channel with serial name "Sky Radio"? | create table tv_channel (content varchar, series_name varchar, PRIMARY KEY (content)) | select content from tv_channel where series_name = "sky radio" |
What is the winning span in the country of England with the name of paul casey? | create table table_1953516_1 (winning_span varchar, country varchar, name varchar, PRIMARY KEY (winning_span)) | select winning_span from table_1953516_1 where country = "england" and name = "paul casey" |
How many values of total top 3 placements does Taiwan have? | create table table_2876467_3 (total_top_3_placements varchar, region_represented varchar, PRIMARY KEY (total_top_3_placements)) | select count(total_top_3_placements) from table_2876467_3 where region_represented = "taiwan" |
What city of license/market has the channel of 41? | create table table_1847523_2 (city_of_license__market varchar, channel___tv___rf__ varchar, PRIMARY KEY (city_of_license__market)) | select city_of_license__market from table_1847523_2 where channel___tv___rf__ = "41" |
If the Original Air Date is 10January2008, what directors released on that date? | create table table_11642945_1 (director varchar, original_air_date varchar, PRIMARY KEY (director)) | select director from table_11642945_1 where original_air_date = "10january2008" |
Who had the high assists @ Dallas? | create table table_11964154_11 (high_assists varchar, team varchar, PRIMARY KEY (high_assists)) | select high_assists from table_11964154_11 where team = "@ dallas" |
What are the meanings of the flag whose name transliterates to semërka? | create table table_29997112_3 (meaning varchar, transliteration varchar, PRIMARY KEY (meaning)) | select meaning from table_29997112_3 where transliteration = "semërka" |
Show the names of products that are in at least two events. | create table products (product_name varchar, product_id varchar, PRIMARY KEY (product_name)); create table products_in_events (product_id varchar, PRIMARY KEY (product_id)) | select t1.product_name from products as t1 join products_in_events as t2 on t1.product_id = t2.product_id group by t1.product_name having count(*) >= 2 |
What is the charity for the celebrity with an occupation title of actor and singer? | create table table_28730873_2 (charity varchar, occupation varchar, PRIMARY KEY (charity)) | select charity from table_28730873_2 where occupation = "actor and singer" |
Who had the high assists against charlotte? | create table table_13557843_3 (high_assists varchar, team varchar, PRIMARY KEY (high_assists)) | select high_assists from table_13557843_3 where team = "charlotte" |
What is the Italian word for "orange" in English? | create table table_2077192_2 (italian varchar, english varchar, PRIMARY KEY (italian)) | select italian from table_2077192_2 where english = "orange" |
When are the vacancy dates for outgoing manager Damien Fox? | create table table_11190568_7 (date_of_vacancy varchar, outgoing_manager varchar, PRIMARY KEY (date_of_vacancy)) | select date_of_vacancy from table_11190568_7 where outgoing_manager = "damien fox" |
Which film is rented at a fee of 0.99 and has less than 3 in the inventory? List the film title and id. | create table film (title varchar, film_id varchar, rental_rate varchar, PRIMARY KEY (title)); create table inventory (film_id varchar, PRIMARY KEY (film_id)); create table film (title varchar, film_id varchar, PRIMARY KEY (title)) | select title, film_id from film where rental_rate = 0.99 intersect select t1.title, t1.film_id from film as t1 join inventory as t2 on t1.film_id = t2.film_id group by t1.film_id having count(*) < 3 |
What's the name of the barangay whose area is 3.6787 km² ? | create table table_2004733_2 (barangay varchar, area__in_km_2__ varchar, PRIMARY KEY (barangay)) | select barangay from table_2004733_2 where area__in_km_2__ = "3.6787" |
What are the types and countries of competitions? | create table competition (competition_type varchar, country varchar, PRIMARY KEY (competition_type)) | select competition_type, country from competition |
What party did the incumbent Thomas P. Moore belong to? | create table table_2668254_8 (party varchar, incumbent varchar, PRIMARY KEY (party)) | select party from table_2668254_8 where incumbent = "thomas p. moore" |
How many institutes have the team name Spartans? | create table table_27961684_1 (institution varchar, team_name varchar, PRIMARY KEY (institution)) | select count(institution) from table_27961684_1 where team_name = "spartans" |
When dxcc-tv is the call sign how many station types are there? | create table table_23394920_1 (station_type varchar, callsign varchar, PRIMARY KEY (station_type)) | select count(station_type) from table_23394920_1 where callsign = "dxcc-tv" |
Name the number location of georgia perimeter college | create table table_16734640_1 (location varchar, institution varchar, PRIMARY KEY (location)) | select count(location) from table_16734640_1 where institution = "georgia perimeter college" |
The person who had $126,796 WSOP earnings had how many WSOP cashes? | create table table_23696862_6 (wsop_cashes varchar, wsop_earnings varchar, PRIMARY KEY (wsop_cashes)) | select wsop_cashes from table_23696862_6 where wsop_earnings = "$126,796" |
List in alphabetic order the names of all distinct instructors. | create table instructor (name varchar, PRIMARY KEY (name)) | select distinct name from instructor order by name |
What is the col location with a col height (m) of 1107? | create table table_2731431_1 (col_location varchar, col_height__m_ varchar, PRIMARY KEY (col_location)) | select col_location from table_2731431_1 where col_height__m_ = 1107 |
How many different combinations of scores by individual judges were given to the contestant competing against Mukul Dev? | create table table_18278508_6 (scores_by_each_individual_judge varchar, co_contestant__yaar_vs_pyaar_ varchar, PRIMARY KEY (scores_by_each_individual_judge)) | select count(scores_by_each_individual_judge) from table_18278508_6 where co_contestant__yaar_vs_pyaar_ = "mukul dev" |
How many different results came out of the round in which #98 All American Racers became the GTU winning team? | create table table_13643320_2 (results varchar, gtu_winning_team varchar, PRIMARY KEY (results)) | select count(results) from table_13643320_2 where gtu_winning_team = "#98 all american racers" |
what is the institution located in north newton, kansas? | create table table_262527_1 (institution varchar, location varchar, PRIMARY KEY (institution)) | select institution from table_262527_1 where location = "north newton, kansas" |
What are the result description of the project whose detail is 'sint'? | create table project_outcomes (outcome_code varchar, project_id varchar, PRIMARY KEY (outcome_code)); create table research_outcomes (outcome_description varchar, outcome_code varchar, PRIMARY KEY (outcome_description)); create table projects (project_id varchar, project_details varchar, PRIMARY KEY (project_id)) | select t1.outcome_description from research_outcomes as t1 join project_outcomes as t2 on t1.outcome_code = t2.outcome_code join projects as t3 on t2.project_id = t3.project_id where t3.project_details = 'sint' |
What college did the Cincinnati Bengals' player come from? | create table table_12165999_1 (college varchar, afl_team varchar, PRIMARY KEY (college)) | select college from table_12165999_1 where afl_team = "cincinnati bengals" |
What is the song for Dixie Chicks? | create table table_23981771_1 (song_title varchar, artist varchar, PRIMARY KEY (song_title)) | select song_title from table_23981771_1 where artist = "dixie chicks" |
how many times did tunde abdulrahman leave the team? | create table table_28164986_4 (date_of_vacancy varchar, outgoing_manager varchar, PRIMARY KEY (date_of_vacancy)) | select count(date_of_vacancy) from table_28164986_4 where outgoing_manager = "tunde abdulrahman" |
What is the original date of the repeat air date of 26/01/1969? | create table table_13403120_1 (originalairdate varchar, repeatairdate_s_ varchar, PRIMARY KEY (originalairdate)) | select originalairdate from table_13403120_1 where repeatairdate_s_ = "26/01/1969" |
List the names of the dogs of the rarest breed and the treatment dates of them. | create table dogs (name varchar, dog_id varchar, breed_code varchar, PRIMARY KEY (name)); create table treatments (date_of_treatment varchar, dog_id varchar, PRIMARY KEY (date_of_treatment)); create table dogs (breed_code varchar, PRIMARY KEY (breed_code)) | select t1.name, t2.date_of_treatment from dogs as t1 join treatments as t2 on t1.dog_id = t2.dog_id where t1.breed_code = (select breed_code from dogs group by breed_code order by count(*) limit 1) |
How many rewards are there for air date October 6, 2005? | create table table_1893276_2 (reward varchar, air_date varchar, PRIMARY KEY (reward)) | select reward from table_1893276_2 where air_date = "october 6, 2005" |
Who was the deceased spouse who was married for 4 years? | create table table_24143253_5 (deceased_spouse varchar, length_of_marriage varchar, PRIMARY KEY (deceased_spouse)) | select deceased_spouse from table_24143253_5 where length_of_marriage = "4 years" |
Find id of candidates whose assessment code is "Pass"? | create table candidate_assessments (candidate_id varchar, asessment_outcome_code varchar, PRIMARY KEY (candidate_id)) | select candidate_id from candidate_assessments where asessment_outcome_code = "pass" |
What is the ratings for the original air date may 25, 2010 22.00 - 22.54? | create table table_26591434_1 (ratings__kansai_ varchar, original_airdate varchar, PRIMARY KEY (ratings__kansai_)) | select ratings__kansai_ from table_26591434_1 where original_airdate = "may 25, 2010 22.00 - 22.54" |
When did the episode that had 5.09 million total viewers (both Live and SD types) first air? | create table table_24222929_3 (original_airdate varchar, live varchar, sd_total_viewers varchar, PRIMARY KEY (original_airdate)) | select original_airdate from table_24222929_3 where live + sd_total_viewers = "5.09 million" |
What is the description of the type of the company who concluded its contracts most recently? | create table maintenance_contracts (maintenance_contract_company_id varchar, contract_end_date varchar, PRIMARY KEY (maintenance_contract_company_id)); create table third_party_companies (company_name varchar, company_id varchar, company_type_code varchar, PRIMARY KEY (company_name)); create table ref_company_types (company_type_code varchar, PRIMARY KEY (company_type_code)) | select t1.company_name from third_party_companies as t1 join maintenance_contracts as t2 on t1.company_id = t2.maintenance_contract_company_id join ref_company_types as t3 on t1.company_type_code = t3.company_type_code order by t2.contract_end_date desc limit 1 |
What is the interaction type of the enzyme named 'ALA synthase' and the medicine named 'Aripiprazole'? | create table enzyme (id varchar, name varchar, PRIMARY KEY (id)); create table medicine (id varchar, name varchar, PRIMARY KEY (id)); create table medicine_enzyme_interaction (interaction_type varchar, medicine_id varchar, enzyme_id varchar, PRIMARY KEY (interaction_type)) | select t1.interaction_type from medicine_enzyme_interaction as t1 join medicine as t2 on t1.medicine_id = t2.id join enzyme as t3 on t1.enzyme_id = t3.id where t3.name = 'ala synthase' and t2.name = 'aripiprazole' |
what is the total number of coach where captain is grant welsh and win/loss is 5-15 | create table table_1165048_1 (coach varchar, captain varchar, win_loss varchar, PRIMARY KEY (coach)) | select count(coach) from table_1165048_1 where captain = "grant welsh" and win_loss = "5-15" |
What was the production format for the series with the local title Fort Boyard: Ultimate Challenge? | create table table_1949994_8 (format varchar, local_title varchar, PRIMARY KEY (format)) | select format from table_1949994_8 where local_title = "fort boyard: ultimate challenge" |
what is the total number of building for address on 201 1st avenue south | create table table_13397394_1 (building varchar, address varchar, PRIMARY KEY (building)) | select count(building) from table_13397394_1 where address = "201 1st avenue south" |
Find the addresses of the course authors who teach the course with name "operating system" or "data structure". | create table courses (author_id varchar, course_name varchar, PRIMARY KEY (author_id)); create table course_authors_and_tutors (address_line_1 varchar, author_id varchar, PRIMARY KEY (address_line_1)) | select t1.address_line_1 from course_authors_and_tutors as t1 join courses as t2 on t1.author_id = t2.author_id where t2.course_name = "operating system" or t2.course_name = "data structure" |
Who wrote the episode that got 5.95 million U.S. viewers? | create table table_28760804_1 (written_by varchar, us_viewers__million_ varchar, PRIMARY KEY (written_by)) | select written_by from table_28760804_1 where us_viewers__million_ = "5.95" |
Subsets and Splits