answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 484 |
|---|---|---|
SELECT Product_Price FROM Products WHERE Product_Name = "Dining" OR Product_Name = "Trading Policy" | Show the prices of the products named "Dining" or "Trading Policy". | CREATE TABLE Products (Product_Price VARCHAR, Product_Name VARCHAR) |
SELECT density__inhabitants_km_2__ FROM table_1449176_1 WHERE common_of = "Chieri" | The common of Chieri has what population density? | CREATE TABLE table_1449176_1 (density__inhabitants_km_2__ VARCHAR, common_of VARCHAR) |
SELECT name FROM table_name_36 WHERE overall = 72 | Who had the overall pick of 72? | CREATE TABLE table_name_36 (name VARCHAR, overall VARCHAR) |
SELECT us_viewers__million_ FROM table_22347090_4 WHERE no_in_season = 2 | How many viewers tuned in for season 2? | CREATE TABLE table_22347090_4 (us_viewers__million_ VARCHAR, no_in_season VARCHAR) |
SELECT name_designation FROM table_name_79 WHERE status = "under development" | What is the name/designation for the under development status? | CREATE TABLE table_name_79 (name_designation VARCHAR, status VARCHAR) |
SELECT 2010 FROM table_name_95 WHERE tournament = "us open" | Name the 2010 for tournament of us open | CREATE TABLE table_name_95 (tournament VARCHAR) |
SELECT 2011 FROM table_name_73 WHERE 2012 = "1r" | What is 2011, when 2012 is "1R"? | CREATE TABLE table_name_73 (Id VARCHAR) |
SELECT result FROM table_name_40 WHERE game < 37 AND streak = "lost 1" AND record = "4-9" | Which Result has a Game smaller than 37, and a Streak of lost 1, and a Record of 4-9? | CREATE TABLE table_name_40 (result VARCHAR, record VARCHAR, game VARCHAR, streak VARCHAR) |
SELECT source FROM table_name_8 WHERE race_winners = "ben adriaenssen / ben van den bogaart" AND gp_winner = "ben adriaenssen / ben van den bogaart" AND date = "1 april" | What source has a race winner of ben adriaenssen / ben van den bogaart, and the gp winner of ben adriaenssen / ben van den bogaart, for the date of 1 april? | CREATE TABLE table_name_8 (source VARCHAR, date VARCHAR, race_winners VARCHAR, gp_winner VARCHAR) |
SELECT SUM(core__number) FROM table_name_62 WHERE tdp__w_ < 85.3 | What is the sum of core# with a TDP less than 85.3? | CREATE TABLE table_name_62 (core__number INTEGER, tdp__w_ INTEGER) |
SELECT location FROM table_name_21 WHERE year < 1998 AND international_captain = "david graham" | what is the location when the year is less than 1998 and the international captain is david graham? | CREATE TABLE table_name_21 (location VARCHAR, year VARCHAR, international_captain VARCHAR) |
SELECT COUNT(copies_per_particle) FROM table_140968_1 WHERE size___s_base_pair__ = 1059 | How many copies per particle are there for the base pair that is size 1059? | CREATE TABLE table_140968_1 (copies_per_particle VARCHAR, size___s_base_pair__ VARCHAR) |
SELECT rider FROM table_name_60 WHERE points = 10 | Which rider had a points score equal to 10? | CREATE TABLE table_name_60 (rider VARCHAR, points VARCHAR) |
SELECT COUNT(title) FROM table_27303975_3 WHERE catalog_number = "CAL04 / 0091037553546" | How many times was the catalog number cal04 / 0091037553546? | CREATE TABLE table_27303975_3 (title VARCHAR, catalog_number VARCHAR) |
SELECT home__2nd_leg_ FROM table_14219514_1 WHERE home__1st_leg_ = "Talleres" | Who was in home (2nd leg) when Talleres was in home (1st leg) | CREATE TABLE table_14219514_1 (home__2nd_leg_ VARCHAR, home__1st_leg_ VARCHAR) |
SELECT air_dates FROM table_27487310_5 WHERE network = "ABS-CBN" | What are the air dates of the show in ABS-CBN? | CREATE TABLE table_27487310_5 (air_dates VARCHAR, network VARCHAR) |
SELECT LMS AS class FROM table_15412381_5 WHERE lms_nos = "14510-5" | What is the LMS class of trains with numbers 14510-5? | CREATE TABLE table_15412381_5 (LMS VARCHAR, lms_nos VARCHAR) |
SELECT player FROM table_name_1 WHERE place = "2" | What is the Place 2 Player? | CREATE TABLE table_name_1 (player VARCHAR, place VARCHAR) |
SELECT youth_classification FROM table_23157997_13 WHERE mountains_classification = "Kenneth Hanson" AND winner = "Lucas Sebastian Haedo" | Who was the Youth Classification in the race with Kenneth Hanson as Mountains Classification and Lucas Sebastian Haedo as winner? | CREATE TABLE table_23157997_13 (youth_classification VARCHAR, mountains_classification VARCHAR, winner VARCHAR) |
SELECT shigella FROM table_name_52 WHERE yersinia = "yopb" | Tell me the shigella for yersinia yopb | CREATE TABLE table_name_52 (shigella VARCHAR, yersinia VARCHAR) |
SELECT year_s__won FROM table_name_43 WHERE player = "raymond floyd" | Which years did raymond floyd win? | CREATE TABLE table_name_43 (year_s__won VARCHAR, player VARCHAR) |
SELECT MAX(founded) FROM table_2076595_1 WHERE school = "Southern Vermont College" | When was Southern Vermont College founded? | CREATE TABLE table_2076595_1 (founded INTEGER, school VARCHAR) |
SELECT country FROM table_name_29 WHERE left_office = "incumbent" | What is the country of the Representative that left office as incumbent? | CREATE TABLE table_name_29 (country VARCHAR, left_office VARCHAR) |
SELECT john_kerry FROM table_name_94 WHERE john_edwards = "20%" | What is John Kerry, when John Edwards is "20%"? | CREATE TABLE table_name_94 (john_kerry VARCHAR, john_edwards VARCHAR) |
SELECT cfl_team FROM table_name_53 WHERE player = "chris evraire" | Name the CFL Team which has a Player of chris evraire? | CREATE TABLE table_name_53 (cfl_team VARCHAR, player VARCHAR) |
SELECT SUM(position) FROM table_name_32 WHERE played > 9 | Which Position has a Played larger than 9? | CREATE TABLE table_name_32 (position INTEGER, played INTEGER) |
SELECT MIN(population__2011_) FROM table_189598_7 WHERE name = "Beauval" | When beauval is the name what is the lowest population of 2011? | CREATE TABLE table_189598_7 (population__2011_ INTEGER, name VARCHAR) |
SELECT first_elected FROM table_name_28 WHERE party = "labor" AND member = "james sharpe" | Which first election for the labor party is James Sharpe a part of? | CREATE TABLE table_name_28 (first_elected VARCHAR, party VARCHAR, member VARCHAR) |
SELECT margin FROM table_22754491_1 WHERE constituency = "Periyakulam" | What is the margin when periyakulam is the constituency? | CREATE TABLE table_22754491_1 (margin VARCHAR, constituency VARCHAR) |
SELECT gto_winning_team FROM table_13642023_2 WHERE to_winning_team = "#84 Camaro" | Who was the GTO winning team when the TO winning team was #84 Camaro? | CREATE TABLE table_13642023_2 (gto_winning_team VARCHAR, to_winning_team VARCHAR) |
SELECT model_type FROM table_20866024_2 WHERE model_designation = "97500" | What model type has model designation 97500? | CREATE TABLE table_20866024_2 (model_type VARCHAR, model_designation VARCHAR) |
SELECT incumbent FROM table_1342256_38 WHERE district = "Pennsylvania 27" | Who was the incumbent in Pennsylvania 27? | CREATE TABLE table_1342256_38 (incumbent VARCHAR, district VARCHAR) |
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" | 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); CREATE TABLE Document_locations (date_in_location_from VARCHAR, date_in_locaton_to VARCHAR, document_id VARCHAR) |
SELECT MAX(pts_agst) FROM table_21991074_3 | Name the most points agst | CREATE TABLE table_21991074_3 (pts_agst INTEGER) |
SELECT seasons FROM table_23886181_1 WHERE no = "3" | what are the seasons for no 3? | CREATE TABLE table_23886181_1 (seasons VARCHAR, no VARCHAR) |
SELECT MAX(rd_1) FROM table_name_70 WHERE province = "utrecht" AND rd_4 > 0 | Which is the highest Rd 1 has a Province of utrecht and a Rd 4 larger than 0? | CREATE TABLE table_name_70 (rd_1 INTEGER, province VARCHAR, rd_4 VARCHAR) |
SELECT director_s_ FROM table_name_61 WHERE writer_s_ = "al mackay" | What director worked with Al Mackay as writer? | CREATE TABLE table_name_61 (director_s_ VARCHAR, writer_s_ VARCHAR) |
SELECT university FROM table_27369069_1 WHERE soccer_stadium = "Moncton Stadium" | Which University's soccer stadium in named Moncton Stadium? | CREATE TABLE table_27369069_1 (university VARCHAR, soccer_stadium VARCHAR) |
SELECT japanese FROM table_name_92 WHERE korean = "상나화수 / sanahwasa" | Which JAPANESE has a KOREAN of 상나화수 / sanahwasa? | CREATE TABLE table_name_92 (japanese VARCHAR, korean VARCHAR) |
SELECT opponent FROM table_20745685_1 WHERE date = "February 28, 1991" | Who was the opponent on February 28, 1991 | CREATE TABLE table_20745685_1 (opponent VARCHAR, date VARCHAR) |
SELECT AVG(week) FROM table_name_68 WHERE date = "december 21, 1969" | In what week was the December 21, 1969 game? | CREATE TABLE table_name_68 (week INTEGER, date VARCHAR) |
SELECT points_for FROM table_1676073_13 WHERE points = "6" | What is the points for when the total points is 6? | CREATE TABLE table_1676073_13 (points_for VARCHAR, points VARCHAR) |
SELECT investor_id, AVG(share_count) FROM TRANSACTIONS GROUP BY investor_id | Show the average share count of transactions for different investors. | CREATE TABLE TRANSACTIONS (investor_id VARCHAR, share_count INTEGER) |
SELECT rank FROM table_name_55 WHERE player = "jason dunstall" | What is the rank of player Jason Dunstall? | CREATE TABLE table_name_55 (rank VARCHAR, player VARCHAR) |
SELECT government FROM table_name_63 WHERE number = 6 | Which government is number 6? | CREATE TABLE table_name_63 (government VARCHAR, number VARCHAR) |
SELECT SUM(gold) FROM table_name_81 WHERE bronze = 1 AND rank < 6 AND total < 3 | How many gold have a bronze of 1, a rank smaller than 6, and a total less than 3? | CREATE TABLE table_name_81 (gold INTEGER, total VARCHAR, bronze VARCHAR, rank VARCHAR) |
SELECT pinyin FROM table_2008069_2 WHERE conventional = "Mazar" | Name the pinyin for mazar | CREATE TABLE table_2008069_2 (pinyin VARCHAR, conventional VARCHAR) |
SELECT 2 AS nd_leg FROM table_name_78 WHERE team__number2 = "2007 uefa intertoto cup" | What is the 2nd leg of the second team in the 2007 uefa intertoto cup? | CREATE TABLE table_name_78 (team__number2 VARCHAR) |
SELECT SUM(laps) FROM table_name_8 WHERE team = "dale coyne racing" AND points = 0 | What is the sum of lap for the Dale Coyne Racing Team, and 0 points? | CREATE TABLE table_name_8 (laps INTEGER, team VARCHAR, points VARCHAR) |
SELECT total FROM table_name_5 WHERE silver = "0" AND competitors = "31" | What was the Total the Year Yugoslavia had 0 Silver medals and 31 Competitors? | CREATE TABLE table_name_5 (total VARCHAR, silver VARCHAR, competitors VARCHAR) |
SELECT owner FROM table_name_43 WHERE winner = "raglan road" | Who is the owner of the Raglan Road winner? | CREATE TABLE table_name_43 (owner VARCHAR, winner VARCHAR) |
SELECT MIN(kerry_number) FROM table_2401326_1 WHERE others_number = 8 | How many people voted for Kerry in the county where 8 voted for others? | CREATE TABLE table_2401326_1 (kerry_number INTEGER, others_number VARCHAR) |
SELECT school FROM table_name_7 WHERE pick > 225 AND player = "victor jones" | What is the school of Victor Jones, who was picked further than number 225? | CREATE TABLE table_name_7 (school VARCHAR, pick VARCHAR, player VARCHAR) |
SELECT release_date FROM table_27932399_1 WHERE release_title = "New Worlds For Old" | What is the release date of "New Worlds for Old"? | CREATE TABLE table_27932399_1 (release_date VARCHAR, release_title VARCHAR) |
SELECT COUNT(fastest_laps) FROM table_20016339_1 WHERE team = "I.C. team" | How many fastest laps did I.C. Team have? | CREATE TABLE table_20016339_1 (fastest_laps VARCHAR, team VARCHAR) |
SELECT position FROM table_name_39 WHERE college = "saint louis" | What position does the saint louis player play? | CREATE TABLE table_name_39 (position VARCHAR, college VARCHAR) |
SELECT team_1 FROM table_name_60 WHERE team_2 = "red star (d1)" | What was the team 1 when Red Star (D1) was team 2? | CREATE TABLE table_name_60 (team_1 VARCHAR, team_2 VARCHAR) |
SELECT record FROM table_name_73 WHERE method = "tko (kick)" | With a method of tko (kick) what is the record of the match? | CREATE TABLE table_name_73 (record VARCHAR, method VARCHAR) |
SELECT COUNT(qpi_speed__gt_s_) FROM table_269920_17 WHERE model = "L5506" | How many models numbered L5506 have a QPI speed? | CREATE TABLE table_269920_17 (qpi_speed__gt_s_ VARCHAR, model VARCHAR) |
SELECT opponent_in_final FROM table_name_88 WHERE date = "may 22, 2006" | Who is the opponent in the final of the tournament on May 22, 2006? | CREATE TABLE table_name_88 (opponent_in_final VARCHAR, date VARCHAR) |
SELECT MAX(round_1) FROM table_14708760_3 WHERE round_2 = 90 | What is the highest score of round 1 where they also shot 90 in round 2 | CREATE TABLE table_14708760_3 (round_1 INTEGER, round_2 VARCHAR) |
SELECT peak FROM table_name_10 WHERE prom__m_ < 147 AND height__m_ < 619 | I want to know the peak which is prom less than 147 and height less than 619 | CREATE TABLE table_name_10 (peak VARCHAR, prom__m_ VARCHAR, height__m_ VARCHAR) |
SELECT first_elected FROM table_1342249_32 WHERE result = "Lost renomination Democratic loss" | Name the first elected for lost renomination democratic loss | CREATE TABLE table_1342249_32 (first_elected VARCHAR, result VARCHAR) |
SELECT average FROM table_28798161_3 WHERE bbi = "4/39" | if the bbi is 4/39 what is the average | CREATE TABLE table_28798161_3 (average VARCHAR, bbi VARCHAR) |
SELECT venue FROM table_name_9 WHERE figures = "5/29" | What is Venue, when Figures is 5/29? | CREATE TABLE table_name_9 (venue VARCHAR, figures VARCHAR) |
SELECT national_share___percentage_ FROM table_171666_1 WHERE area__km²_ = 148064 | What is the national share of the country whose area is 148064 km^2? | CREATE TABLE table_171666_1 (national_share___percentage_ VARCHAR, area__km²_ VARCHAR) |
SELECT 1997 FROM table_name_77 WHERE 1992 = "1r" AND 1994 = "a" | Which 1997's 1992 was 1r when 1994 was a? | CREATE TABLE table_name_77 (Id VARCHAR) |
SELECT MAX(game) FROM table_name_40 WHERE opponent = "new york knickerbockers" | What is the maximum game that was played against the New York Knickerbockers? | CREATE TABLE table_name_40 (game INTEGER, opponent VARCHAR) |
SELECT joined FROM table_255205_1 WHERE type = "Private/Church of God" | How many joined this Private/Church of God institution? | CREATE TABLE table_255205_1 (joined VARCHAR, type VARCHAR) |
SELECT MIN(rockhampton) FROM table_12570207_1 | what is the minimum rockhampton | CREATE TABLE table_12570207_1 (rockhampton INTEGER) |
SELECT place FROM table_name_95 WHERE score = 71 - 69 - 66 = 206 | What is the place of the player with a 71-69-66=206 score? | CREATE TABLE table_name_95 (place VARCHAR, score VARCHAR) |
SELECT score FROM table_name_6 WHERE home = "montreal canadiens" AND date = "april 11" | What is the Score that has a Home of montreal canadiens on april 11? | CREATE TABLE table_name_6 (score VARCHAR, home VARCHAR, date VARCHAR) |
SELECT geelong_dfl FROM table_name_87 WHERE wins > 4 AND losses = 8 | Which Geelong DFL has 8 losses and more than 4 wins? | CREATE TABLE table_name_87 (geelong_dfl VARCHAR, wins VARCHAR, losses VARCHAR) |
SELECT opponents FROM table_name_51 WHERE date = "26 october 1889" | what was the opponent on 26 october 1889? | CREATE TABLE table_name_51 (opponents VARCHAR, date VARCHAR) |
SELECT round FROM table_name_65 WHERE college = "villanova" | College of villanova has what round? | CREATE TABLE table_name_65 (round VARCHAR, college VARCHAR) |
SELECT MIN(_number) FROM table_24535095_2 WHERE listed_owner_s_ = "Pete Raymer" | Name the least listed owner for pete raymer | CREATE TABLE table_24535095_2 (_number INTEGER, listed_owner_s_ VARCHAR) |
SELECT city FROM table_name_33 WHERE floors > 57 | What city has a building with over 57 floors? | CREATE TABLE table_name_33 (city VARCHAR, floors INTEGER) |
SELECT COUNT(episode__number) FROM table_22353769_3 WHERE viewers__millions_ = "3.63" | How many epsidode(s) had 3.63 million viewers? | CREATE TABLE table_22353769_3 (episode__number VARCHAR, viewers__millions_ VARCHAR) |
SELECT station_ownership FROM table_1404984_1 WHERE virtual_channel = "33.3" | Who owns the station on channel 33.3? | CREATE TABLE table_1404984_1 (station_ownership VARCHAR, virtual_channel VARCHAR) |
SELECT SUM(launch_failures) FROM table_name_73 WHERE launched = 4 AND not_usable > 0 | What is the total launch failures when there are 4 launches, and the not usable is greater than 0? | CREATE TABLE table_name_73 (launch_failures INTEGER, launched VARCHAR, not_usable VARCHAR) |
SELECT 2 AS nd_leg FROM table_name_82 WHERE team_1 = "lesotho" | What was the 2nd leg score for the match with Lesotho as team 1? | CREATE TABLE table_name_82 (team_1 VARCHAR) |
SELECT away_team AS score FROM table_name_86 WHERE away_team = "carlton" | What was Carlton's score when they were the away team? | CREATE TABLE table_name_86 (away_team VARCHAR) |
SELECT area FROM table_name_61 WHERE authority = "state" AND decile > 6 AND gender = "coed" AND roll = 26 | Where is the coed school with state authority, a Decile larger than 6 and 26 enrolled? | CREATE TABLE table_name_61 (area VARCHAR, roll VARCHAR, gender VARCHAR, authority VARCHAR, decile VARCHAR) |
SELECT points FROM table_name_92 WHERE highest_position < 9 AND position = 22 | What is the number of points associated with the highest position under 9 and a current position of 22? | CREATE TABLE table_name_92 (points VARCHAR, highest_position VARCHAR, position VARCHAR) |
SELECT camp FROM table_10335_1 WHERE estimated_deaths = "600,000" | what's the camp with estimated deaths of 600,000 | CREATE TABLE table_10335_1 (camp VARCHAR, estimated_deaths VARCHAR) |
SELECT date FROM table_name_13 WHERE tie_no = "21" | What is the Date of Tie no 21? | CREATE TABLE table_name_13 (date VARCHAR, tie_no VARCHAR) |
SELECT date FROM table_name_36 WHERE venue = "lake oval" | Which Date has a Venue of lake oval? | CREATE TABLE table_name_36 (date VARCHAR, venue VARCHAR) |
SELECT Date_of_ceremony FROM music_festival WHERE Category = "Best Song" AND RESULT = "Awarded" | What are the date of ceremony of music festivals with category "Best Song" and result "Awarded"? | CREATE TABLE music_festival (Date_of_ceremony VARCHAR, Category VARCHAR, RESULT VARCHAR) |
SELECT MIN(apparent_magnitude) FROM table_name_66 WHERE object_type = "spiral galaxy" AND constellation = "leo minor" AND ngc_number > 3021 | what is the lowest apparent magnitude when the object type is spiral galaxy, the constellation is leo minor and the ngc number is more than 3021? | CREATE TABLE table_name_66 (apparent_magnitude INTEGER, ngc_number VARCHAR, object_type VARCHAR, constellation VARCHAR) |
SELECT club_province FROM table_name_27 WHERE caps > 45 AND position = "prop" | What club/province does the prop player with over 45 caps play for? | CREATE TABLE table_name_27 (club_province VARCHAR, caps VARCHAR, position VARCHAR) |
SELECT MIN(no_in_series) FROM table_11694832_1 WHERE written_by = "Adele Lim" | What is the first series number that Adele Lim wrote? | CREATE TABLE table_11694832_1 (no_in_series INTEGER, written_by VARCHAR) |
SELECT athlete FROM table_name_46 WHERE react = 0.164 | who is the athlete when react is 0.164? | CREATE TABLE table_name_46 (athlete VARCHAR, react VARCHAR) |
SELECT MIN(first_elected) FROM table_name_40 WHERE district = "massachusetts 10" | What is the lowest First Elected, when District is "Massachusetts 10"? | CREATE TABLE table_name_40 (first_elected INTEGER, district VARCHAR) |
SELECT constructor FROM table_name_6 WHERE grid < 2 | What is the constructor for the driver with grid less than 2? | CREATE TABLE table_name_6 (constructor VARCHAR, grid INTEGER) |
SELECT writer FROM table_name_22 WHERE film_title = "toy story" | Who wrote Toy Story? | CREATE TABLE table_name_22 (writer VARCHAR, film_title VARCHAR) |
SELECT COUNT(no_in_season) FROM table_22347090_5 WHERE no_in_series = 26 | Name the number of number in season for 26 | CREATE TABLE table_22347090_5 (no_in_season VARCHAR, no_in_series VARCHAR) |
SELECT payment_method FROM Customers GROUP BY payment_method ORDER BY COUNT(*) DESC LIMIT 1 | Find the payment method that is used most frequently. | CREATE TABLE Customers (payment_method VARCHAR) |
SELECT DISTINCT classroom, grade FROM list | For each classroom report the grade that is taught in it. Report just the classroom number and the grade number. | CREATE TABLE list (classroom VARCHAR, grade VARCHAR) |
SELECT attendance FROM table_name_47 WHERE visitor = "clippers" | How many people attended the game that had the Clippers as visiting team? | CREATE TABLE table_name_47 (attendance VARCHAR, visitor VARCHAR) |
SELECT AVG(year) FROM table_name_24 WHERE attendance = "80,388" | What year was the average attendance 80,388? | CREATE TABLE table_name_24 (year INTEGER, attendance VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.