question
stringlengths 14
216
| context
stringlengths 45
458
| answer
stringlengths 18
463
|
---|---|---|
Please show each industry and the corresponding number of companies in that industry.
|
create table companies (industry varchar, PRIMARY KEY (industry))
|
select industry, count(*) from companies group by industry
|
Which courses are taught on days MTW?
|
create table course (cname varchar, days varchar, PRIMARY KEY (cname))
|
select cname from course where days = "mtw"
|
who are the participants that wear clothing in 33-23-36
|
create table table_27515452_3 (contestant varchar, sizes varchar, PRIMARY KEY (contestant))
|
select contestant from table_27515452_3 where sizes = "33-23-36"
|
What is the number of colour with the regisration number of mg-509?
|
create table table_11066073_1 (colour varchar, registration_no varchar, PRIMARY KEY (colour))
|
select count(colour) from table_11066073_1 where registration_no = "mg-509"
|
What is the id of the student who most recently registered course 301?
|
create table student_course_attendance (student_id varchar, course_id varchar, date_of_attendance varchar, PRIMARY KEY (student_id))
|
select student_id from student_course_attendance where course_id = 301 order by date_of_attendance desc limit 1
|
What is the name of the team when the stadium is listed as Edward Jones Dome?
|
create table table_28884858_1 (team varchar, stadium varchar, PRIMARY KEY (team))
|
select team from table_28884858_1 where stadium = "edward jones dome"
|
what's the turing complete with name being atanasoff–berry computer (us)
|
create table table_13636_1 (turing_complete varchar, name varchar, PRIMARY KEY (turing_complete))
|
select turing_complete from table_13636_1 where name = "atanasoff–berry computer (us)"
|
What are the countries having at least one car maker? List name and id.
|
create table car_makers (country varchar, PRIMARY KEY (country)); create table countries (countryname varchar, countryid varchar, PRIMARY KEY (countryname))
|
select t1.countryname, t1.countryid from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) >= 1
|
How many settlements does each claim correspond to? List the claim id and the number of settlements.
|
create table settlements (claim_id varchar, PRIMARY KEY (claim_id)); create table claims (claim_id varchar, claim_id varchar, PRIMARY KEY (claim_id))
|
select t1.claim_id, count(*) from claims as t1 join settlements as t2 on t1.claim_id = t2.claim_id group by t1.claim_id
|
Show the ids of high schoolers who have friends and are also liked by someone else.
|
create table likes (student_id varchar, liked_id varchar, PRIMARY KEY (student_id)); create table friend (student_id varchar, liked_id varchar, PRIMARY KEY (student_id))
|
select student_id from friend intersect select liked_id from likes
|
Who were the candidates when gregory w. meeks was the incumbent
|
create table table_1341395_33 (candidates varchar, incumbent varchar, PRIMARY KEY (candidates))
|
select candidates from table_1341395_33 where incumbent = "gregory w. meeks"
|
Please show the industries of companies in descending order of the number of companies.
|
create table companies (industry varchar, PRIMARY KEY (industry))
|
select industry from companies group by industry order by count(*) desc
|
The record of 9-4 was against which opponent?
|
create table table_10361453_2 (opponent varchar, record varchar, PRIMARY KEY (opponent))
|
select opponent from table_10361453_2 where record = "9-4"
|
What is the Spanish word for the French word filtrer?
|
create table table_15040_8 (spanish varchar, french varchar, PRIMARY KEY (spanish))
|
select spanish from table_15040_8 where french = "filtrer"
|
Show all artist names and the number of exhibitions for each artist.
|
create table artist (name varchar, artist_id varchar, PRIMARY KEY (name)); create table exhibition (artist_id varchar, PRIMARY KEY (artist_id))
|
select t2.name, count(*) from exhibition as t1 join artist as t2 on t1.artist_id = t2.artist_id group by t1.artist_id
|
How many teams eliminated béziers from competition?
|
create table table_28068063_3 (match_points varchar, eliminated_from_competition varchar, PRIMARY KEY (match_points))
|
select count(match_points) from table_28068063_3 where eliminated_from_competition = "béziers"
|
What is the instition where the main campus location is overland park?
|
create table table_12434380_1 (institution varchar, main_campus_location varchar, PRIMARY KEY (institution))
|
select institution from table_12434380_1 where main_campus_location = "overland park"
|
What are the names of enzymes in the medicine named 'Amisulpride' that can serve as an 'inhibitor'?
|
create table medicine (id varchar, name varchar, PRIMARY KEY (id)); create table medicine_enzyme_interaction (enzyme_id varchar, medicine_id varchar, interaction_type varchar, PRIMARY KEY (enzyme_id)); create table enzyme (name varchar, id varchar, PRIMARY KEY (name))
|
select t1.name from enzyme as t1 join medicine_enzyme_interaction as t2 on t1.id = t2.enzyme_id join medicine as t3 on t2.medicine_id = t3.id where t3.name = 'amisulpride' and t2.interaction_type = 'inhibitor'
|
What were the active dates for the storm that had 185km/h (115mph) deaths?
|
create table table_10602294_1 (dates_active varchar, deaths varchar, PRIMARY KEY (dates_active))
|
select dates_active from table_10602294_1 where deaths = "185km/h (115mph)"
|
Name the country for 188.77 market value
|
create table table_1682026_9 (country varchar, market_value__billion_$_ varchar, PRIMARY KEY (country))
|
select country from table_1682026_9 where market_value__billion_$_ = "188.77"
|
Name the high rebounds for memphis
|
create table table_17060277_7 (high_rebounds varchar, team varchar, PRIMARY KEY (high_rebounds))
|
select high_rebounds from table_17060277_7 where team = "memphis"
|
What is the maximum miles per hour recorded when the CHI (Carvill Hurricane Index) is equal to 13.5
|
create table table_15416002_1 (v_mph_ integer, chi varchar, PRIMARY KEY (v_mph_))
|
select max(v_mph_) from table_15416002_1 where chi = "13.5"
|
What is the song by the musician panjabi mc?
|
create table table_25760427_2 (single varchar, artist varchar, PRIMARY KEY (single))
|
select single from table_25760427_2 where artist = "panjabi mc"
|
Which colleges have the english abbreviation MTC?
|
create table table_11390711_4 (english_name varchar, abbreviation varchar, PRIMARY KEY (english_name))
|
select english_name from table_11390711_4 where abbreviation = "mtc"
|
What are the nationality of the players on the Fresno State school/club team?
|
create table table_10015132_9 (nationality varchar, school_club_team varchar, PRIMARY KEY (nationality))
|
select nationality from table_10015132_9 where school_club_team = "fresno state"
|
What college did the Rookie of the Year from the Columbus Crew attend?
|
create table table_1004033_1 (college varchar, team varchar, PRIMARY KEY (college))
|
select college from table_1004033_1 where team = "columbus crew"
|
What is the train name that has a destination of Tuticorin?
|
create table table_21716139_1 (train_name varchar, destination varchar, PRIMARY KEY (train_name))
|
select train_name from table_21716139_1 where destination = "tuticorin"
|
What were the January (°F) temperatures in the Corner Brook location?
|
create table table_21980_1 (january__°f_ varchar, location varchar, PRIMARY KEY (january__°f_))
|
select january__°f_ from table_21980_1 where location = "corner brook"
|
What is the volume when the resrvoir is Tanes?
|
create table table_28702208_1 (volume__hm³_ varchar, reservoir varchar, PRIMARY KEY (volume__hm³_))
|
select volume__hm³_ from table_28702208_1 where reservoir = "tanes"
|
Find the start and end dates of detentions of teachers with last name "Schultz".
|
create table detention (datetime_detention_start varchar, teacher_id varchar, PRIMARY KEY (datetime_detention_start)); create table teachers (teacher_id varchar, last_name varchar, PRIMARY KEY (teacher_id))
|
select t1.datetime_detention_start, datetime_detention_end from detention as t1 join teachers as t2 on t1.teacher_id = t2.teacher_id where t2.last_name = "schultz"
|
In what year was the total finals at 10?
|
create table table_14286908_1 (year_of_last_win varchar, total_finals varchar, PRIMARY KEY (year_of_last_win))
|
select year_of_last_win from table_14286908_1 where total_finals = 10
|
What is every high score for a strike rate of 84.88?
|
create table table_2985664_8 (high_score varchar, strike_rate varchar, PRIMARY KEY (high_score))
|
select high_score from table_2985664_8 where strike_rate = "84.88"
|
What was the date when Terry McAuliffe won 19%?
|
create table table_21535453_1 (dates_administered varchar, terry_mcauliffe varchar, PRIMARY KEY (dates_administered))
|
select dates_administered from table_21535453_1 where terry_mcauliffe = "19%"
|
What are the type and nationality of ships?
|
create table ship (type varchar, nationality varchar, PRIMARY KEY (type))
|
select type, nationality from ship
|
What is the highest number of third place runners up held by any of the countries competing in the Mr. International competition?.
|
create table table_20325360_2 (id varchar, PRIMARY KEY (id))
|
select max(3 as rd_runner_up) from table_20325360_2
|
What is the Portuguese word for the English word 'welcome'?
|
create table table_26614365_5 (portuguese varchar, english varchar, PRIMARY KEY (portuguese))
|
select portuguese from table_26614365_5 where english = "welcome"
|
List the names of all the customers in alphabetical order.
|
create table customers (customer_details varchar, PRIMARY KEY (customer_details))
|
select customer_details from customers order by customer_details
|
Which fault log included the most number of faulty parts? List the fault log id, description and record time.
|
create table fault_log (fault_log_entry_id varchar, fault_description varchar, fault_log_entry_datetime varchar, PRIMARY KEY (fault_log_entry_id)); create table fault_log_parts (fault_log_entry_id varchar, PRIMARY KEY (fault_log_entry_id))
|
select t1.fault_log_entry_id, t1.fault_description, t1.fault_log_entry_datetime from fault_log as t1 join fault_log_parts as t2 on t1.fault_log_entry_id = t2.fault_log_entry_id group by t1.fault_log_entry_id order by count(*) desc limit 1
|
What is the max gross weight of the Robinson R-22?
|
create table table_10006830_1 (max_gross_weight varchar, aircraft varchar, PRIMARY KEY (max_gross_weight))
|
select max_gross_weight from table_10006830_1 where aircraft = "robinson r-22"
|
what is the value for minimum total wins
|
create table table_1458666_4 (total_wins integer, PRIMARY KEY (total_wins))
|
select min(total_wins) from table_1458666_4
|
How many parks are there in the state of NY?
|
create table park (state varchar, PRIMARY KEY (state))
|
select count(*) from park where state = 'ny'
|
What is the id of the product that was ordered the most often?
|
create table order_items (product_id varchar, PRIMARY KEY (product_id))
|
select product_id from order_items group by product_id order by count(*) desc limit 1
|
What is the iclandic of the glossary for presenta for mi locaria
|
create table table_13003460_1 (the_icelandic_of_the_glossary varchar, the_basque_of_the_glossary varchar, PRIMARY KEY (the_icelandic_of_the_glossary))
|
select the_icelandic_of_the_glossary from table_13003460_1 where the_basque_of_the_glossary = "presenta for mi locaria"
|
How many different writers have written the episode with series number 8?
|
create table table_23958944_2 (written_by varchar, no_by_series varchar, PRIMARY KEY (written_by))
|
select count(written_by) from table_23958944_2 where no_by_series = 8
|
What date did the episode directed by Victor Cook and Written by Brat Jennett air in the U.S.?
|
create table table_28511558_2 (original_air_date__us_ varchar, directed_by varchar, written_by varchar, PRIMARY KEY (original_air_date__us_))
|
select original_air_date__us_ from table_28511558_2 where directed_by = "victor cook" and written_by = "brat jennett"
|
How many years did lin gaoyuan wu jiaji play mens doubles?
|
create table table_28138035_20 (year_location varchar, mens_doubles varchar, PRIMARY KEY (year_location))
|
select count(year_location) from table_28138035_20 where mens_doubles = "lin gaoyuan wu jiaji"
|
How many airlines are from USA?
|
create table airlines (country varchar, PRIMARY KEY (country))
|
select count(*) from airlines where country = "usa"
|
Find the first name and major of the students who are not allegry to soy.
|
create table has_allergy (fname varchar, major varchar, stuid varchar, allergy varchar, PRIMARY KEY (fname)); create table student (fname varchar, major varchar, stuid varchar, allergy varchar, PRIMARY KEY (fname))
|
select fname, major from student where not stuid in (select stuid from has_allergy where allergy = "soy")
|
what is the date of appointment 11 june 2010?
|
create table table_26914854_3 (team varchar, date_of_appointment varchar, PRIMARY KEY (team))
|
select team from table_26914854_3 where date_of_appointment = "11 june 2010"
|
IN WHAT STAGE DID ALEXANDER VINOKOUROV WON THE GENERAL CLASSIFICATION?
|
create table table_11667521_17 (stage__winner_ varchar, general_classification varchar, PRIMARY KEY (stage__winner_))
|
select stage__winner_ from table_11667521_17 where general_classification = "alexander vinokourov"
|
Who moved from Northampton Town?
|
create table table_22810095_8 (name varchar, moving_from varchar, PRIMARY KEY (name))
|
select name from table_22810095_8 where moving_from = "northampton town"
|
Name the number of developed by for solid edge
|
create table table_19495707_1 (developed_by varchar, application varchar, PRIMARY KEY (developed_by))
|
select count(developed_by) from table_19495707_1 where application = "solid edge"
|
Name the date of appointment for ascoli
|
create table table_17275810_7 (date_of_appointment varchar, team varchar, PRIMARY KEY (date_of_appointment))
|
select date_of_appointment from table_17275810_7 where team = "ascoli"
|
When 2011 is the period and olympikus is the kit manufacturer how many minor sponsors are there?
|
create table table_187239_1 (minor_sponsors varchar, kit_manufacturer varchar, period varchar, PRIMARY KEY (minor_sponsors))
|
select count(minor_sponsors) from table_187239_1 where kit_manufacturer = "olympikus" and period = "2011"
|
What are the different parties of representative? Show the party name and the number of representatives in each party.
|
create table representative (party varchar, PRIMARY KEY (party))
|
select party, count(*) from representative group by party
|
for the robot black nickname, what framed size is used
|
create table table_15070195_1 (framed_size varchar, nickname varchar, PRIMARY KEY (framed_size))
|
select framed_size from table_15070195_1 where nickname = "robot black"
|
Who had the pole position(s) when rob guiver won and kyle ryde had the fastest lap?
|
create table table_29162856_1 (pole_position varchar, winning_rider varchar, fastest_lap varchar, PRIMARY KEY (pole_position))
|
select pole_position from table_29162856_1 where winning_rider = "rob guiver" and fastest_lap = "kyle ryde"
|
Name the driver for race 2 7
|
create table table_15530244_5 (driver varchar, race_2 varchar, PRIMARY KEY (driver))
|
select driver from table_15530244_5 where race_2 = "7"
|
What teams drive cars manufactured by Toyota?
|
create table table_1963459_2 (team varchar, manufacturer varchar, PRIMARY KEY (team))
|
select team from table_1963459_2 where manufacturer = "toyota"
|
How many different instructors have taught some course?
|
create table teaches (id varchar, PRIMARY KEY (id))
|
select count(distinct id) from teaches
|
What is the area in km2 for the district whose original name was Kecamatan Bogor Timur?
|
create table table_1104312_5 (area_in_km² varchar, original_name varchar, PRIMARY KEY (area_in_km²))
|
select area_in_km² from table_1104312_5 where original_name = "kecamatan bogor timur"
|
What source gave 26% of the votes to Brian Moran?
|
create table table_21535453_1 (source varchar, brian_moran varchar, PRIMARY KEY (source))
|
select source from table_21535453_1 where brian_moran = "26%"
|
How many different standards have a PM of 0.02 g/kWh?
|
create table table_2780146_6 (standard varchar, pm__g_kwh_ varchar, PRIMARY KEY (standard))
|
select count(standard) from table_2780146_6 where pm__g_kwh_ = "0.02"
|
Name the film title for andré téchiné category:articles with hcards
|
create table table_18987377_1 (film_title_used_in_nomination varchar, director varchar, PRIMARY KEY (film_title_used_in_nomination))
|
select film_title_used_in_nomination from table_18987377_1 where director = "andré téchiné category:articles with hcards"
|
What is the country (exonym) where the official or native language(s) (alphabet/script) is Icelandic?
|
create table table_1008653_9 (country___exonym__ varchar, official_or_native_language_s___alphabet_script_ varchar, PRIMARY KEY (country___exonym__))
|
select country___exonym__ from table_1008653_9 where official_or_native_language_s___alphabet_script_ = "icelandic"
|
What is the seat of the county that has a density of 14.1?
|
create table table_214920_1 (seat_of_rcm varchar, density__pop_per_km2_ varchar, PRIMARY KEY (seat_of_rcm))
|
select seat_of_rcm from table_214920_1 where density__pop_per_km2_ = "14.1"
|
What is the arena capacity of the arena in the town whose head coach is Roberto Serniotti?
|
create table table_19526911_1 (arena__capacity_ varchar, head_coach varchar, PRIMARY KEY (arena__capacity_))
|
select arena__capacity_ from table_19526911_1 where head_coach = "roberto serniotti"
|
Show the names of pilots from team "Bradley" or "Fordham".
|
create table pilot (pilot_name varchar, team varchar, PRIMARY KEY (pilot_name))
|
select pilot_name from pilot where team = "bradley" or team = "fordham"
|
What is the lowest value in the miss international column?
|
create table table_29942205_1 (miss_international integer, PRIMARY KEY (miss_international))
|
select min(miss_international) from table_29942205_1
|
How many bill cosponsored during those years where bills originally cosponsored is 113?
|
create table table_18852984_2 (all_bills_cosponsored varchar, bills_originally_cosponsored varchar, PRIMARY KEY (all_bills_cosponsored))
|
select all_bills_cosponsored from table_18852984_2 where bills_originally_cosponsored = 113
|
how many times is the jewel malachite?
|
create table table_26615633_1 (birthday varchar, jewel varchar, PRIMARY KEY (birthday))
|
select count(birthday) from table_26615633_1 where jewel = "malachite"
|
What is the total number of postseason games that team Boston Red Stockings participated in?
|
create table postseason (team_id_winner varchar, team_id_loser varchar, PRIMARY KEY (team_id_winner)); create table team (team_id_br varchar, name varchar, PRIMARY KEY (team_id_br))
|
select count(*) from (select * from postseason as t1 join team as t2 on t1.team_id_winner = t2.team_id_br where t2.name = 'boston red stockings' union select * from postseason as t1 join team as t2 on t1.team_id_loser = t2.team_id_br where t2.name = 'boston red stockings')
|
Find the number of papers published by the institution "University of Pennsylvania".
|
create table inst (instid varchar, name varchar, PRIMARY KEY (instid)); create table authorship (paperid varchar, instid varchar, PRIMARY KEY (paperid)); create table papers (title varchar, paperid varchar, PRIMARY KEY (title))
|
select count(distinct t1.title) from papers as t1 join authorship as t2 on t1.paperid = t2.paperid join inst as t3 on t2.instid = t3.instid where t3.name = "university of pennsylvania"
|
What are the first and last name for those employees who works either in department 70 or 90?
|
create table employees (first_name varchar, last_name varchar, department_id varchar, PRIMARY KEY (first_name))
|
select first_name, last_name from employees where department_id = 70 or department_id = 90
|
Name the location of statesmen
|
create table table_1974482_1 (location varchar, nickname varchar, PRIMARY KEY (location))
|
select location from table_1974482_1 where nickname = "statesmen"
|
How many members arrived on the main island in week 4?
|
create table table_11764007_2 (member varchar, week_arrived_on_main_island varchar, PRIMARY KEY (member))
|
select count(member) from table_11764007_2 where week_arrived_on_main_island = "4"
|
How many clubs are there in the Korea Republic?
|
create table table_19412902_2 (clubs varchar, member_association varchar, PRIMARY KEY (clubs))
|
select clubs from table_19412902_2 where member_association = "korea republic"
|
When yen galagnara is the name what is the highest total days in the pbb house?
|
create table table_19061741_1 (total_days_in_pbb_house integer, name varchar, PRIMARY KEY (total_days_in_pbb_house))
|
select max(total_days_in_pbb_house) from table_19061741_1 where name = "yen galagnara"
|
What is the nickname of Linfield College?
|
create table table_261941_1 (nickname varchar, institution varchar, PRIMARY KEY (nickname))
|
select nickname from table_261941_1 where institution = "linfield college"
|
If the call sign is DXYR, what is the branding?
|
create table table_19874169_3 (branding varchar, callsign varchar, PRIMARY KEY (branding))
|
select branding from table_19874169_3 where callsign = "dxyr"
|
what are the details of the cmi masters that have the cross reference code 'Tax'?
|
create table cmi_cross_references (master_customer_id varchar, source_system_code varchar, PRIMARY KEY (master_customer_id)); create table customer_master_index (cmi_details varchar, master_customer_id varchar, PRIMARY KEY (cmi_details))
|
select t1.cmi_details from customer_master_index as t1 join cmi_cross_references as t2 on t1.master_customer_id = t2.master_customer_id where t2.source_system_code = 'tax'
|
What is run time when there were 7.4 million viewers?
|
create table table_1723080_1 (run_time varchar, viewers__in_millions_ varchar, PRIMARY KEY (run_time))
|
select run_time from table_1723080_1 where viewers__in_millions_ = "7.4"
|
When was the date of appointment by Hugo Broos?
|
create table table_27374004_4 (date_of_appointment varchar, replaced_by varchar, PRIMARY KEY (date_of_appointment))
|
select date_of_appointment from table_27374004_4 where replaced_by = "hugo broos"
|
What is the current streak against TCU?
|
create table table_15740666_4 (current_streak varchar, kansas_state_vs varchar, PRIMARY KEY (current_streak))
|
select current_streak from table_15740666_4 where kansas_state_vs = "tcu"
|
How many entries are there for u.s. viewers (millions) for the episode directed by rob bailey?
|
create table table_26914076_3 (us_viewers__millions_ varchar, directed_by varchar, PRIMARY KEY (us_viewers__millions_))
|
select count(us_viewers__millions_) from table_26914076_3 where directed_by = "rob bailey"
|
Who replaced on the date of appointment 2 november 2010?
|
create table table_24231638_3 (replaced_by varchar, date_of_appointment varchar, PRIMARY KEY (replaced_by))
|
select replaced_by from table_24231638_3 where date_of_appointment = "2 november 2010"
|
what is the total number of kickoff [a ] where week is week
|
create table table_11406866_2 (a_ varchar, kickoff_ varchar, PRIMARY KEY (a_))
|
select count(kickoff_)[a_] from table_11406866_2 where "week" = "week"
|
What is "the date in location from" and "the date in location to" for the document with name "Robin CV"?
|
create table all_documents (document_id varchar, document_name varchar, PRIMARY KEY (document_id)); create table document_locations (date_in_location_from varchar, date_in_locaton_to varchar, document_id varchar, PRIMARY KEY (date_in_location_from))
|
select t1.date_in_location_from, t1.date_in_locaton_to from document_locations as t1 join all_documents as t2 on t1.document_id = t2.document_id where t2.document_name = "robin cv"
|
When 12743 is the spelthorne what is the largest gore hundred?
|
create table table_16677738_1 (gore_hundred integer, spelthorne_hundred varchar, PRIMARY KEY (gore_hundred))
|
select max(gore_hundred) from table_16677738_1 where spelthorne_hundred = 12743
|
Name the total number of class aaa for 2006-07
|
create table table_14630796_1 (class_aaa varchar, school_year varchar, PRIMARY KEY (class_aaa))
|
select count(class_aaa) from table_14630796_1 where school_year = "2006-07"
|
How many thermal design power levels does part number amql65dam22gg have?
|
create table table_27277284_27 (tdp varchar, order_part_number varchar, PRIMARY KEY (tdp))
|
select count(tdp) from table_27277284_27 where order_part_number = "amql65dam22gg"
|
Name the copa libertadores 1992 for round of 16 and team of fluminense
|
create table table_15013825_8 (copa_libertadores_1992 varchar, copa_conmebol_1992 varchar, team varchar, PRIMARY KEY (copa_libertadores_1992))
|
select copa_libertadores_1992 from table_15013825_8 where copa_conmebol_1992 = "round of 16" and team = "fluminense"
|
Which locations did Gordon Johncock hold the pole position?
|
create table table_22673872_1 (location varchar, pole_position varchar, PRIMARY KEY (location))
|
select location from table_22673872_1 where pole_position = "gordon johncock"
|
Who was the participant or recipient for the Best Female Actor?
|
create table table_26282750_1 (participants_recipients varchar, category varchar, PRIMARY KEY (participants_recipients))
|
select participants_recipients from table_26282750_1 where category = "best female actor"
|
Wat is the tax source system code and master customer id of the taxes related to each parking fine id?
|
create table cmi_cross_references (source_system_code varchar, master_customer_id varchar, cmi_cross_ref_id varchar, PRIMARY KEY (source_system_code)); create table parking_fines (council_tax_id varchar, cmi_cross_ref_id varchar, PRIMARY KEY (council_tax_id))
|
select t1.source_system_code, t1.master_customer_id, t2.council_tax_id from cmi_cross_references as t1 join parking_fines as t2 on t1.cmi_cross_ref_id = t2.cmi_cross_ref_id
|
What was pinky's bmi at the reunion?
|
create table table_28654454_5 (reunion_bmi varchar, contestant varchar, PRIMARY KEY (reunion_bmi))
|
select reunion_bmi from table_28654454_5 where contestant = "pinky"
|
Name the months in the malayalam era for കുംഭം
|
create table table_169955_1 (months_in_malayalam_era varchar, in_malayalam varchar, PRIMARY KEY (months_in_malayalam_era))
|
select months_in_malayalam_era from table_169955_1 where in_malayalam = "കുംഭം"
|
How long is the total lesson time taught by staff with first name as Janessa and last name as Sawayn?
|
create table lessons (staff_id varchar, PRIMARY KEY (staff_id)); create table staff (staff_id varchar, first_name varchar, last_name varchar, PRIMARY KEY (staff_id))
|
select sum(lesson_time) from lessons as t1 join staff as t2 on t1.staff_id = t2.staff_id where t2.first_name = "janessa" and t2.last_name = "sawayn"
|
What is the lowest number of carriers?
|
create table table_2394927_1 (number_of_carriers integer, PRIMARY KEY (number_of_carriers))
|
select min(number_of_carriers) from table_2394927_1
|
What is the name of the tourist attraction that is associated with the photo "game1"?
|
create table tourist_attractions (name varchar, tourist_attraction_id varchar, PRIMARY KEY (name)); create table photos (tourist_attraction_id varchar, name varchar, PRIMARY KEY (tourist_attraction_id))
|
select t2.name from photos as t1 join tourist_attractions as t2 on t1.tourist_attraction_id = t2.tourist_attraction_id where t1.name = "game1"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.