answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 484 |
|---|---|---|
SELECT venue FROM table_name_28 WHERE away_team = "carlton" | What was the venue when Carlton was the away team? | CREATE TABLE table_name_28 (venue VARCHAR, away_team VARCHAR) |
SELECT score_in_the_final FROM table_name_85 WHERE partner = "jorge lozano" AND outcome = "runner-up" AND opponents_in_the_final = "udo riglewski michael stich" | Name the Score which has a Partner of jorge lozano, an Outcome of runner-up, and Opponents in the final of udo riglewski michael stich? | CREATE TABLE table_name_85 (score_in_the_final VARCHAR, opponents_in_the_final VARCHAR, partner VARCHAR, outcome VARCHAR) |
SELECT city___town FROM table_28668784_1 WHERE stadium = "Stadion Zlatica" | What town holds Stadion Zlatica? | CREATE TABLE table_28668784_1 (city___town VARCHAR, stadium VARCHAR) |
SELECT score FROM table_name_62 WHERE to_par = "e" | When the To par is E, what is the Score? | CREATE TABLE table_name_62 (score VARCHAR, to_par VARCHAR) |
SELECT code FROM table_name_97 WHERE cr = "16.7:1" | What code has a C.R of 16.7:1? | CREATE TABLE table_name_97 (code VARCHAR, cr VARCHAR) |
SELECT COUNT(time) FROM table_name_82 WHERE competition = "summer universiade" | What's the total time for the summer universiade competition? | CREATE TABLE table_name_82 (time VARCHAR, competition VARCHAR) |
SELECT opponent FROM table_name_98 WHERE points = 63 | Which opponent has 63 points? | CREATE TABLE table_name_98 (opponent VARCHAR, points VARCHAR) |
SELECT percentage__2006_ FROM table_2328113_1 WHERE mother_tongue = "Polish" | What was the percentage in 2006 whose natives is Polish? | CREATE TABLE table_2328113_1 (percentage__2006_ VARCHAR, mother_tongue VARCHAR) |
SELECT COUNT(written_by) FROM table_12570759_2 WHERE us_viewers__millions_ = "12.72" | How many episodes were watched by 12.72 million U.S. viewers? | CREATE TABLE table_12570759_2 (written_by VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT MIN(no_by_season) FROM table_23958944_5 WHERE us_viewers__in_millions_ = "10.81" | What episode was watched by 10.81 million US viewers? | CREATE TABLE table_23958944_5 (no_by_season INTEGER, us_viewers__in_millions_ VARCHAR) |
SELECT regular_season FROM table_1046454_1 WHERE year = 2011 | what are all the regular season where year is 2011 | CREATE TABLE table_1046454_1 (regular_season VARCHAR, year VARCHAR) |
SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY COUNT(*) LIMIT 1 | Find the country of origin for the artist who made the least number of songs? | CREATE TABLE song (artist_name VARCHAR); CREATE TABLE artist (country VARCHAR, artist_name VARCHAR) |
SELECT coach FROM table_name_36 WHERE team = "northamptonshire steelbacks" | Who is the coach for the Northamptonshire Steelbacks? | CREATE TABLE table_name_36 (coach VARCHAR, team VARCHAR) |
SELECT stadium FROM table_name_76 WHERE coach = "rashid budaj" | Which stadium did Rashid Budaj coach? | CREATE TABLE table_name_76 (stadium VARCHAR, coach VARCHAR) |
SELECT notes FROM table_name_89 WHERE year = 2011 | What were the notes in 2011? | CREATE TABLE table_name_89 (notes VARCHAR, year VARCHAR) |
SELECT year FROM table_name_44 WHERE deputy = "james mcclure" AND name = "robert mcphearson" | What Year was james mcclure Deputy, and the Name is robert mcphearson? | CREATE TABLE table_name_44 (year VARCHAR, deputy VARCHAR, name VARCHAR) |
SELECT round FROM table_18328569_1 WHERE winners_from_previous_round = "8" | What is the round where winners from the previous round totals 8? | CREATE TABLE table_18328569_1 (round VARCHAR, winners_from_previous_round VARCHAR) |
SELECT college FROM table_name_42 WHERE round = 11 AND position = "wr" | Which College has a Round of 11, and a Position of wr? | CREATE TABLE table_name_42 (college VARCHAR, round VARCHAR, position VARCHAR) |
SELECT us_viewers__millions_ FROM table_22078972_2 WHERE no_in_series = 103 | How many millions of people in the US saw the episode with series number 103? | CREATE TABLE table_22078972_2 (us_viewers__millions_ VARCHAR, no_in_series VARCHAR) |
SELECT date FROM table_name_48 WHERE tie_no = "11" | What date has 11 as the tie no.? | CREATE TABLE table_name_48 (date VARCHAR, tie_no VARCHAR) |
SELECT date FROM table_name_52 WHERE opponent = "dender" AND tournament = "jupiler league" AND ground = "a" | Which date's opponent was Dender when the tournament was in the Jupiler League and the ground was a? | CREATE TABLE table_name_52 (date VARCHAR, ground VARCHAR, opponent VARCHAR, tournament VARCHAR) |
SELECT battle FROM table_name_21 WHERE bulgarian_commander = "ivan asen ii" | What is the Battle with Bulgarian Commander Ivan Asen II? | CREATE TABLE table_name_21 (battle VARCHAR, bulgarian_commander VARCHAR) |
SELECT guns FROM table_name_36 WHERE superintendent = "silas talbot" | What is the number of guns when the superintendent was Silas Talbot? | CREATE TABLE table_name_36 (guns VARCHAR, superintendent VARCHAR) |
SELECT date FROM table_name_6 WHERE game < 5 AND location = "oakland-alameda county coliseum" AND time = "3:40" | What date was at Oakland-Alameda County Coliseum with a time of 3:40 and a game less than 5? | CREATE TABLE table_name_6 (date VARCHAR, time VARCHAR, game VARCHAR, location VARCHAR) |
SELECT outcome FROM table_22839669_1 WHERE score_in_the_final = "4–6, 3–6, 2–6" | What was the outcome of the match with score 4–6, 3–6, 2–6? | CREATE TABLE table_22839669_1 (outcome VARCHAR, score_in_the_final VARCHAR) |
SELECT points_against FROM table_14058433_4 WHERE lost = "13" | what's the points against with lost being 13 | CREATE TABLE table_14058433_4 (points_against VARCHAR, lost VARCHAR) |
SELECT COUNT(caps) FROM table_name_16 WHERE club_province = "munster" AND position = "lock" AND player = "mick o'driscoll" | How many Caps does the Club/province Munster, position of lock and Mick O'Driscoll have? | CREATE TABLE table_name_16 (caps VARCHAR, player VARCHAR, club_province VARCHAR, position VARCHAR) |
SELECT couple FROM table_19744915_14 WHERE rank_by_average = 9 | If your rank by average is 9, what is the name of the couple? | CREATE TABLE table_19744915_14 (couple VARCHAR, rank_by_average VARCHAR) |
SELECT to_par FROM table_name_11 WHERE place = "t2" AND country = "united states" | What To par has a Place of t2, and a Country of united states? | CREATE TABLE table_name_11 (to_par VARCHAR, place VARCHAR, country VARCHAR) |
SELECT award FROM table_name_60 WHERE outcome = "nominated" AND name = "anuya bhagvath" | Anuya Bhagvath was nominated for what award? | CREATE TABLE table_name_60 (award VARCHAR, outcome VARCHAR, name VARCHAR) |
SELECT gvw__kg_ton_ FROM table_20866024_4 WHERE model_designation = "97H00" | What is the GVW for model 97H00? | CREATE TABLE table_20866024_4 (gvw__kg_ton_ VARCHAR, model_designation VARCHAR) |
SELECT phonemic FROM table_name_42 WHERE phonetic = "[pʰaː˥˥]" | What is the phonemic when the phonetic is [pʰaː˥˥]? | CREATE TABLE table_name_42 (phonemic VARCHAR, phonetic VARCHAR) |
SELECT MAX(game) FROM table_27715173_2 | What is the maximum basketball game? | CREATE TABLE table_27715173_2 (game INTEGER) |
SELECT AVG(injured) FROM death | What is the average number of injuries caused each time? | CREATE TABLE death (injured INTEGER) |
SELECT constructor FROM table_name_77 WHERE grid < 15 AND laps = 77 AND time_retired = "+ 0.771" | Who constructed the car with a grid under 15, 77 laps, and a Time/Retired of + 0.771? | CREATE TABLE table_name_77 (constructor VARCHAR, time_retired VARCHAR, grid VARCHAR, laps VARCHAR) |
SELECT date FROM table_name_29 WHERE venue = "kuwait city" | On what date was Kuwait City a venue? | CREATE TABLE table_name_29 (date VARCHAR, venue VARCHAR) |
SELECT COUNT(sprints_classification) FROM table_26257223_13 WHERE winner = "Joaquin Rodriguez" | How many sprints classifications were associated with an overall winner of Joaquin Rodriguez? | CREATE TABLE table_26257223_13 (sprints_classification VARCHAR, winner VARCHAR) |
SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1 | What is the customer id of the customer who has the most orders? | CREATE TABLE customers (customer_id VARCHAR); CREATE TABLE orders (customer_id VARCHAR) |
SELECT film_title_used_in_nomination FROM table_name_14 WHERE language = "german" AND original_name = "mama, ich lebe" | What is the title of the German film that is originally called Mama, Ich Lebe? | CREATE TABLE table_name_14 (film_title_used_in_nomination VARCHAR, language VARCHAR, original_name VARCHAR) |
SELECT date FROM table_name_94 WHERE home_team = "fitzroy" | When was Fitzroy the home team? | CREATE TABLE table_name_94 (date VARCHAR, home_team VARCHAR) |
SELECT date FROM table_name_2 WHERE week = "4" | On what date was Tampa Bay's Week 4 game? | CREATE TABLE table_name_2 (date VARCHAR, week VARCHAR) |
SELECT MAX(top_5) FROM table_2182573_2 WHERE avg_start = "28.5" | What was the best top five result when the average start is 28.5? | CREATE TABLE table_2182573_2 (top_5 INTEGER, avg_start VARCHAR) |
SELECT batting_team FROM table_name_84 WHERE runs = "624" | Which batting team had 624 runs? | CREATE TABLE table_name_84 (batting_team VARCHAR, runs VARCHAR) |
SELECT high_points FROM table_name_22 WHERE series = "4-2" | Who had the highest points when the series was 4-2? | CREATE TABLE table_name_22 (high_points VARCHAR, series VARCHAR) |
SELECT SUM(games) FROM table_name_80 WHERE rank < 4 AND rebounds < 275 AND team = "bruesa gbc" | Which game did Bruesa GBC play in with fewer than 275 rebounds that is ranked less than 4? | CREATE TABLE table_name_80 (games INTEGER, team VARCHAR, rank VARCHAR, rebounds VARCHAR) |
SELECT status FROM table_name_96 WHERE name = "prenocephale" | What is the status of Prenocephale? | CREATE TABLE table_name_96 (status VARCHAR, name VARCHAR) |
SELECT team_2 FROM table_name_76 WHERE team_1 = "vardar" | Which Team 2 has a Team 1 of vardar? | CREATE TABLE table_name_76 (team_2 VARCHAR, team_1 VARCHAR) |
SELECT COUNT(position) FROM table_name_1 WHERE lost < 1 | What was the position with the total number less than 1? | CREATE TABLE table_name_1 (position VARCHAR, lost INTEGER) |
SELECT score FROM table_name_82 WHERE year = 1998 | What score has 1998 as the year? | CREATE TABLE table_name_82 (score VARCHAR, year VARCHAR) |
SELECT COUNT(DISTINCT incident_type_code) FROM Behavior_Incident | How many distinct incident type codes are there? | CREATE TABLE Behavior_Incident (incident_type_code VARCHAR) |
SELECT college FROM table_name_6 WHERE position = "linebacker" | Where did the player picked for the linebacker position play in college? | CREATE TABLE table_name_6 (college VARCHAR, position VARCHAR) |
SELECT MAX(population) FROM table_2374338_2 | What is the largest value of population? | CREATE TABLE table_2374338_2 (population INTEGER) |
SELECT COUNT(*), city FROM airports WHERE country = 'United States' GROUP BY city ORDER BY COUNT(*) DESC | How many airports are there per city in the United States? Order the cities by decreasing number of airports. | CREATE TABLE airports (city VARCHAR, country VARCHAR) |
SELECT location_attendance FROM table_name_63 WHERE date = "december 30" | What is Location Attendance, when Date is "December 30"? | CREATE TABLE table_name_63 (location_attendance VARCHAR, date VARCHAR) |
SELECT high_rebounds FROM table_17104539_10 WHERE record = "11-13" | Who had a high rebound where the associated record is 11-13? | CREATE TABLE table_17104539_10 (high_rebounds VARCHAR, record VARCHAR) |
SELECT 1913 AS _class FROM table_name_68 WHERE lner_class = "d32" | What is the 1913 Class of the d32 LNER Class? | CREATE TABLE table_name_68 (lner_class VARCHAR) |
SELECT country FROM table_name_20 WHERE score = 69 - 69 = 138 AND player = "ian poulter" | What is Country, when Score is "69-69=138", and when Player is "Ian Poulter"? | CREATE TABLE table_name_20 (country VARCHAR, player VARCHAR, score VARCHAR) |
SELECT MAX(bronze) FROM table_name_93 WHERE gold > 1 AND nation = "china" AND total > 11 | What is the highest amount of bronze china, which has more than 1 gold and more than 11 total, has? | CREATE TABLE table_name_93 (bronze INTEGER, total VARCHAR, gold VARCHAR, nation VARCHAR) |
SELECT lead_tpt FROM table_name_68 WHERE bass = "kevin tomanka" AND alto_1 = "alan moffett" | Name the lead tpt for bass of kevin tomanka and alto 1 of alan moffett | CREATE TABLE table_name_68 (lead_tpt VARCHAR, bass VARCHAR, alto_1 VARCHAR) |
SELECT nation FROM table_name_23 WHERE event = "1000 metres" | What nation did the speed skater that set a record in the 1000 metres event represent? | CREATE TABLE table_name_23 (nation VARCHAR, event VARCHAR) |
SELECT COUNT(drawn) FROM table_name_13 WHERE name = "erc lechbruck" AND points < 17 | How much Drawn has a Name of erc lechbruck, and Points smaller than 17? | CREATE TABLE table_name_13 (drawn VARCHAR, name VARCHAR, points VARCHAR) |
SELECT MAX(vertical) FROM table_272313_1 WHERE horizontal = 640 | What was the maximum vertical measurement if the horizon measurement is 640? | CREATE TABLE table_272313_1 (vertical INTEGER, horizontal VARCHAR) |
SELECT english_title FROM table_name_95 WHERE japanese_title = "餓狼伝説バトルアーカイブズ2" | What is the English title of 餓狼伝説バトルアーカイブズ2? | CREATE TABLE table_name_95 (english_title VARCHAR, japanese_title VARCHAR) |
SELECT record FROM table_name_23 WHERE date = "4 september 2009" AND event = "400 m" | What is the record for the 400 m event on 4 september 2009? | CREATE TABLE table_name_23 (record VARCHAR, date VARCHAR, event VARCHAR) |
SELECT runners_up FROM table_name_28 WHERE year = "1996" | Who are the runners-up in 1996? | CREATE TABLE table_name_28 (runners_up VARCHAR, year VARCHAR) |
SELECT loss FROM table_name_22 WHERE attendance = "18,769" | What was the loss of the game that had an attendance of 18,769? | CREATE TABLE table_name_22 (loss VARCHAR, attendance VARCHAR) |
SELECT song FROM table_19763199_3 WHERE total_votes = 24 | What song has 24 votes? | CREATE TABLE table_19763199_3 (song VARCHAR, total_votes VARCHAR) |
SELECT college FROM table_name_88 WHERE pick > 122 AND team = "boston patriots" | What college was picked later than 122 by the Boston Patriots? | CREATE TABLE table_name_88 (college VARCHAR, pick VARCHAR, team VARCHAR) |
SELECT tie_no FROM table_name_46 WHERE home_team = "middlesbrough" | What is the tie number for Middlesbrough? | CREATE TABLE table_name_46 (tie_no VARCHAR, home_team VARCHAR) |
SELECT COUNT(byes) FROM table_name_70 WHERE against = 2139 AND draws > 0 | What is the total number of byes for teams with against of 2139 and more than 0 draws? | CREATE TABLE table_name_70 (byes VARCHAR, against VARCHAR, draws VARCHAR) |
SELECT romaji_title FROM table_name_78 WHERE japanese_title = "花より男子2(リターンズ)" | Which Romaji Title has a Japanese Title of 花より男子2(リターンズ)? | CREATE TABLE table_name_78 (romaji_title VARCHAR, japanese_title VARCHAR) |
SELECT game FROM table_name_44 WHERE opponent = "@ atlanta flames" | Opponent of @ atlanta flames had what game? | CREATE TABLE table_name_44 (game VARCHAR, opponent VARCHAR) |
SELECT COUNT(floors) FROM table_name_3 WHERE height * _m__ft_ = "300 / 985" AND rank < 3 | How many floors were there with a building rank of less than 3 and a height of 300 / 985 m (ft)? | CREATE TABLE table_name_3 (floors VARCHAR, rank VARCHAR, height VARCHAR, _m__ft_ VARCHAR) |
SELECT index_weighting___percentage__at_17_january_2013 FROM table_168274_1 WHERE ticker_symbol = "RNO" | Name the index weighting % for 17 januaary 2013 for rno | CREATE TABLE table_168274_1 (index_weighting___percentage__at_17_january_2013 VARCHAR, ticker_symbol VARCHAR) |
SELECT score FROM table_11603006_1 WHERE location = "Michigan" AND purse__$__ < 1813335.221493934 | What was the score for the tournament in Michigan where the purse was smaller than 1813335.221493934? | CREATE TABLE table_11603006_1 (score VARCHAR, location VARCHAR, purse__$__ VARCHAR) |
SELECT MIN(bush_number) FROM table_name_55 WHERE bush_percentage = "66.0%" AND others_number < 65 | What is the smallest bush# with 66.0% bush and less than 65 others#? | CREATE TABLE table_name_55 (bush_number INTEGER, bush_percentage VARCHAR, others_number VARCHAR) |
SELECT record FROM table_name_55 WHERE date = "august 18" | Tell me the record for the date of August 18. | CREATE TABLE table_name_55 (record VARCHAR, date VARCHAR) |
SELECT MAX(silver) FROM table_name_43 WHERE bronze = 9 AND total < 27 | What's the highest number of silver for 9 bronze and less than 27 total? | CREATE TABLE table_name_43 (silver INTEGER, bronze VARCHAR, total VARCHAR) |
SELECT MIN(wins) FROM table_name_71 WHERE ballarat_fl = "daylesford" AND byes < 1 | Can you tell me the lowest Wins that has the Ballarat FL of daylesford, and the Byes smaller than 1? | CREATE TABLE table_name_71 (wins INTEGER, ballarat_fl VARCHAR, byes VARCHAR) |
SELECT name FROM employee ORDER BY age | Sort employee names by their age in ascending order. | CREATE TABLE employee (name VARCHAR, age VARCHAR) |
SELECT tag_team FROM table_name_10 WHERE time = "03:34" | Name the Tag Team with a Time of 03:34? | CREATE TABLE table_name_10 (tag_team VARCHAR, time VARCHAR) |
SELECT written_by FROM table_18424435_3 WHERE canadian_viewers__million_ = "1.816" | Who wrote the episodes watched by 1.816 million people in Canada? | CREATE TABLE table_18424435_3 (written_by VARCHAR, canadian_viewers__million_ VARCHAR) |
SELECT SUM(figures) FROM table_name_13 WHERE total < 117.78 | What is the sum of the figure skating scores whose total is less than 117.78? | CREATE TABLE table_name_13 (figures INTEGER, total INTEGER) |
SELECT challenge FROM table_25531112_2 WHERE event = "Australian Grand Prix" | Who made the challenge in the Australian Grand Prix? | CREATE TABLE table_25531112_2 (challenge VARCHAR, event VARCHAR) |
SELECT SUM(points) FROM table_name_15 WHERE team = "são paulo athletic" AND position > 5 | Which Points has a Team of são paulo athletic, and a Position larger than 5? | CREATE TABLE table_name_15 (points INTEGER, team VARCHAR, position VARCHAR) |
SELECT track FROM table_name_47 WHERE race_winner = "scott lagasse jr." | Tell me the track for scott lagasse jr. | CREATE TABLE table_name_47 (track VARCHAR, race_winner VARCHAR) |
SELECT surface FROM table_name_32 WHERE score = "2–6, 6–3, 6–4" | On what surface was the match played with a score of 2–6, 6–3, 6–4? | CREATE TABLE table_name_32 (surface VARCHAR, score VARCHAR) |
SELECT place FROM table_name_50 WHERE country = "england" | What place did the player from England come in? | CREATE TABLE table_name_50 (place VARCHAR, country VARCHAR) |
SELECT SUM(total) FROM table_name_21 WHERE event = "2004 athens" AND gold < 20 | What is the Total with the Event 2004 Athens and Gold less than 20? | CREATE TABLE table_name_21 (total INTEGER, event VARCHAR, gold VARCHAR) |
SELECT district FROM table_1342331_5 WHERE incumbent = "William J. Driver" | what's the district with incumbent being william j. driver | CREATE TABLE table_1342331_5 (district VARCHAR, incumbent VARCHAR) |
SELECT rank FROM table_name_78 WHERE start = "totals" | Which rank is the start of totals? | CREATE TABLE table_name_78 (rank VARCHAR, start VARCHAR) |
SELECT 2010 AS _11 FROM table_name_99 WHERE event = "autumn gold" | WHich in 2010–11 has an Event of autumn gold? | CREATE TABLE table_name_99 (event VARCHAR) |
SELECT AVG(pick) FROM table_name_51 WHERE overall < 28 AND round = 3 | What number pick was the player drafted in round 3 at #28 overall? | CREATE TABLE table_name_51 (pick INTEGER, overall VARCHAR, round VARCHAR) |
SELECT MAX(series__number) FROM table_28019988_5 | What is the highest numbered episode in the series? | CREATE TABLE table_28019988_5 (series__number INTEGER) |
SELECT jockey FROM table_name_52 WHERE horse = "guadalcanal" | Who is the Jockey for guadalcanal? | CREATE TABLE table_name_52 (jockey VARCHAR, horse VARCHAR) |
SELECT SUM(attendance) FROM table_name_61 WHERE opponent = "new york jets" | How many people attended the home game against the New York Jets? | CREATE TABLE table_name_61 (attendance INTEGER, opponent VARCHAR) |
SELECT security_forces FROM table_name_81 WHERE civilians = "67" | Name the security forces with civilians being 67 | CREATE TABLE table_name_81 (security_forces VARCHAR, civilians VARCHAR) |
SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id JOIN Document_Types AS T3 ON T2.document_type_code = T3.document_type_code WHERE T3.document_description = 'Regular' INTERSECT SELECT T1.grant_start_date FROM Grants AS T1 JOIN Documents AS T2 ON T1.grant_id = T2.grant_id JOI... | For grants with both documents described as 'Regular' and documents described as 'Initial Application', list its start date. | CREATE TABLE Grants (grant_start_date VARCHAR, grant_id VARCHAR); CREATE TABLE Document_Types (document_type_code VARCHAR, document_description VARCHAR); CREATE TABLE Documents (grant_id VARCHAR, document_type_code VARCHAR) |
SELECT MAX(rank) FROM table_name_73 WHERE time = "7:52.65" | what is the highest rank when the time is 7:52.65? | CREATE TABLE table_name_73 (rank INTEGER, time VARCHAR) |
SELECT MAX(total_population__1000_) FROM table_name_79 WHERE country = "sweden" AND born_in_a_non_eu_state__1000_ < 859 | What is the greatest Total population (1000) from Sweden and born in a non EU state (1000) less than 859? | CREATE TABLE table_name_79 (total_population__1000_ INTEGER, country VARCHAR, born_in_a_non_eu_state__1000_ VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.