answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 484 |
|---|---|---|
SELECT 1989 FROM table_name_81 WHERE 1991 = "1r" AND 1994 = "1r" | Which 1989's 1991 and 1994 stats were 1r? | CREATE TABLE table_name_81 (Id VARCHAR) |
SELECT name FROM table_1198175_1 WHERE born = "December 30, 1957 Detroit, MI" | What is the name when born is december 30, 1957 detroit, mi? | CREATE TABLE table_1198175_1 (name VARCHAR, born VARCHAR) |
SELECT kerry__number FROM table_13606924_1 WHERE county = "Ness county, Kansas" | what's the kerry # with county being ness county, kansas | CREATE TABLE table_13606924_1 (kerry__number VARCHAR, county VARCHAR) |
SELECT COUNT(Winners) AS play_off_legs_won FROM table_24334163_1 WHERE total_money_won = "£10,300" | How many play-off legs were won when the prize money was £10,300? | CREATE TABLE table_24334163_1 (Winners VARCHAR, total_money_won VARCHAR) |
SELECT origin FROM program ORDER BY origin | List all program origins in the alphabetical order. | CREATE TABLE program (origin VARCHAR) |
SELECT championship FROM table_name_31 WHERE winning_score = "6 & 5" | What Championship had a Winning score of 6 & 5? | CREATE TABLE table_name_31 (championship VARCHAR, winning_score VARCHAR) |
SELECT location_attendance FROM table_23284271_11 WHERE high_points = "Dirk Nowitzki , Caron Butler (17)" | Name the location attendance for dirk nowitzki , caron butler (17) | CREATE TABLE table_23284271_11 (location_attendance VARCHAR, high_points VARCHAR) |
SELECT country FROM table_name_63 WHERE rider = "lindsay porter" | What is Country , when Rider is Lindsay Porter? | CREATE TABLE table_name_63 (country VARCHAR, rider VARCHAR) |
SELECT COUNT(*) FROM products WHERE price >= 180 | Compute the number of products with a price larger than or equal to $180. | CREATE TABLE products (price VARCHAR) |
SELECT away_team FROM table_name_46 WHERE tie_no = "14" | For the Tie number of 14 who was the away team? | CREATE TABLE table_name_46 (away_team VARCHAR, tie_no VARCHAR) |
SELECT high_points FROM table_27902171_7 WHERE score = "W 112-110" | Who had the high points when the score was w 112-110? | CREATE TABLE table_27902171_7 (high_points VARCHAR, score VARCHAR) |
SELECT date FROM table_name_50 WHERE city = "dublin" | When was the event in Dublin? | CREATE TABLE table_name_50 (date VARCHAR, city VARCHAR) |
SELECT frequency FROM table_12095519_1 WHERE origin = "Sealdah" | How often does a train leave sealdah? | CREATE TABLE table_12095519_1 (frequency VARCHAR, origin VARCHAR) |
SELECT name FROM table_15700367_2 WHERE overs_bowled = "31.2" | Name the name for when overs bowled is 31.2 | CREATE TABLE table_15700367_2 (name VARCHAR, overs_bowled VARCHAR) |
SELECT result FROM table_name_94 WHERE association = "primetime emmy awards" | Tell me the result for primetime emmy awards | CREATE TABLE table_name_94 (result VARCHAR, association VARCHAR) |
SELECT 2006 AS _2007_season FROM table_name_13 WHERE club = "vitória de setúbal" | Where did the Vitória de Setúbal club place in the 2006-2007 season? | CREATE TABLE table_name_13 (club VARCHAR) |
SELECT winner FROM table_28601467_1 WHERE result = "Scotland won on points table" AND runner_up = "[[|]] 4 points" | What are all the winning records when the result is Scotland won on points table and the Runner-Up result is [[|]] 4 points? | CREATE TABLE table_28601467_1 (winner VARCHAR, result VARCHAR, runner_up VARCHAR) |
SELECT MIN(road_wins) FROM table_1585112_2 | Name the least road wins | CREATE TABLE table_1585112_2 (road_wins INTEGER) |
SELECT location FROM table_name_80 WHERE game > 6 | What was the location of the game after game 6? | CREATE TABLE table_name_80 (location VARCHAR, game INTEGER) |
SELECT grand_prix FROM table_1139087_2 WHERE location = "Detroit" | What event was in detroit? | CREATE TABLE table_1139087_2 (grand_prix VARCHAR, location VARCHAR) |
SELECT SUM(points) FROM table_name_16 WHERE place < 2 AND played > 18 | What is the total points for a place less than 2 with a played greater than 18? | CREATE TABLE table_name_16 (points INTEGER, place VARCHAR, played VARCHAR) |
SELECT round5 FROM table_16815824_1 WHERE total_points = 212 | What was the round 5 score if the team's total points where 212? | CREATE TABLE table_16815824_1 (round5 VARCHAR, total_points VARCHAR) |
SELECT birth_date FROM table_name_57 WHERE batting_style = "right-handed" AND name = "a. j. holmes" | What is the birth date of A. J. Holmes who has a right-handed batting style? | CREATE TABLE table_name_57 (birth_date VARCHAR, batting_style VARCHAR, name VARCHAR) |
SELECT MAX(game) FROM table_name_95 WHERE time = "2:38" | What is the number of the game that was played in the time of 2:38? | CREATE TABLE table_name_95 (game INTEGER, time VARCHAR) |
SELECT lname, age FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = "Milk" INTERSECT SELECT StuID FROM Has_allergy WHERE Allergy = "Cat") | Find the last name and age of the student who has allergy to both milk and cat. | CREATE TABLE Has_allergy (lname VARCHAR, age VARCHAR, StuID VARCHAR, Allergy VARCHAR); CREATE TABLE Student (lname VARCHAR, age VARCHAR, StuID VARCHAR, Allergy VARCHAR) |
SELECT reason_for_change FROM table_18563954_3 WHERE state__class_ = "Massachusetts (2)" | Why did the change happened in Massachusetts (2)? | CREATE TABLE table_18563954_3 (reason_for_change VARCHAR, state__class_ VARCHAR) |
SELECT episode FROM table_name_62 WHERE viewers__millions_ > 11.26 AND weekly_rank = "#8" AND share = 12 | Which Episode has a Viewers (millions) larger than 11.26, a Weekly Rank of #8, and a Share of 12? | CREATE TABLE table_name_62 (episode VARCHAR, share VARCHAR, viewers__millions_ VARCHAR, weekly_rank VARCHAR) |
SELECT notes FROM table_name_33 WHERE call_sign = "cfun-fm-1" | What is the Notes of the Frequency with Call sign CFUN-FM-1? | CREATE TABLE table_name_33 (notes VARCHAR, call_sign VARCHAR) |
SELECT engine FROM table_name_85 WHERE rounds = "10-13" | What was the featured in Engine through rounds 10-13? | CREATE TABLE table_name_85 (engine VARCHAR, rounds VARCHAR) |
SELECT class FROM table_15327489_1 WHERE riders = "Makoto Tamada" AND races = "17" | Name the class for makoto tamada and races is 17 | CREATE TABLE table_15327489_1 (class VARCHAR, riders VARCHAR, races VARCHAR) |
SELECT bleeding_time FROM table_221653_1 WHERE platelet_count = "Decreased or unaffected" | What is the bleeding time when the platelet count is decreased or unaffected? | CREATE TABLE table_221653_1 (bleeding_time VARCHAR, platelet_count VARCHAR) |
SELECT MAX(_number_of_total_votes) FROM table_name_31 WHERE _percentage_of_popular_vote = "32.41%" AND _number_of_seats_won > 95 | Name the most # of total votes with % of popular vote of 32.41% and # of seats won more than 95 | CREATE TABLE table_name_31 (_number_of_total_votes INTEGER, _percentage_of_popular_vote VARCHAR, _number_of_seats_won VARCHAR) |
SELECT name FROM table_name_19 WHERE hanzi = "深圳卫视" | With a Hanzi of 深圳卫视, what is the name? | CREATE TABLE table_name_19 (name VARCHAR, hanzi VARCHAR) |
SELECT MAX(floors) FROM table_name_96 WHERE location = "stockholm" AND rank = "15" | What is the highest amount of floors in Stockholm with a rank of 15? | CREATE TABLE table_name_96 (floors INTEGER, location VARCHAR, rank VARCHAR) |
SELECT AVG(mean) FROM table_name_98 WHERE drug = "alcohol" AND psychological_dependence > 1.9 | What is the average Mean, when Drug is "Alcohol", and when Psychological Dependence is greater than 1.9? | CREATE TABLE table_name_98 (mean INTEGER, drug VARCHAR, psychological_dependence VARCHAR) |
SELECT result_s_ FROM table_name_34 WHERE format_s_ = "single" AND date = "march 21" | What are the results of Format single on March 21? | CREATE TABLE table_name_34 (result_s_ VARCHAR, format_s_ VARCHAR, date VARCHAR) |
SELECT AVG(points) FROM table_name_61 WHERE pct__percentage > 0.685 | When the percent is larger than 0.685, what is the average number of points scored? | CREATE TABLE table_name_61 (points INTEGER, pct__percentage INTEGER) |
SELECT record FROM table_name_82 WHERE result = "l 14–16" | What is the Record of the game with a Result of l 14–16? | CREATE TABLE table_name_82 (record VARCHAR, result VARCHAR) |
SELECT english_spelling FROM table_name_24 WHERE hebrew_word = "יְהוֹשָפָט" | How do you spell the Hebrew word יְהוֹשָפָט in English? | CREATE TABLE table_name_24 (english_spelling VARCHAR, hebrew_word VARCHAR) |
SELECT MIN(points) FROM table_name_85 WHERE engine = "bmw" AND chassis = "march 792" AND year > 1979 | Which engine of bmw had the lowest points and chassis of march 792 that is newer than 1979? | CREATE TABLE table_name_85 (points INTEGER, year VARCHAR, engine VARCHAR, chassis VARCHAR) |
SELECT engine FROM table_1181375_1 WHERE builder = "Gloucester RCW" AND withdrawn = "1959" | what's the engine where builder is gloucester rcw and withdrawn is 1959 | CREATE TABLE table_1181375_1 (engine VARCHAR, builder VARCHAR, withdrawn VARCHAR) |
SELECT SUM(week) FROM table_name_99 WHERE opponent = "cleveland browns" | In what week(s) did the Broncos go up against the Cleveland Browns? | CREATE TABLE table_name_99 (week INTEGER, opponent VARCHAR) |
SELECT gun FROM table_16439764_1 WHERE time_to_ft__m__at_55°__seconds_ = "18.8" | What gun has a time to feet ratio of 18.8 at 55 degrees? | CREATE TABLE table_16439764_1 (gun VARCHAR, time_to_ft__m__at_55°__seconds_ VARCHAR) |
SELECT score FROM table_name_83 WHERE player = "bert yancey" | what was the score of bert yancey | CREATE TABLE table_name_83 (score VARCHAR, player VARCHAR) |
SELECT COUNT(DISTINCT allergy) FROM Allergy_type | How many allergies are there? | CREATE TABLE Allergy_type (allergy VARCHAR) |
SELECT eid, name FROM Employee ORDER BY salary DESC LIMIT 1 | Show the id and name of the employee with maximum salary. | CREATE TABLE Employee (eid VARCHAR, name VARCHAR, salary VARCHAR) |
SELECT COUNT(event_4_carwalk) FROM table_24302700_2 WHERE nationality = "Ukraine" | How many men from the Ukraine? | CREATE TABLE table_24302700_2 (event_4_carwalk VARCHAR, nationality VARCHAR) |
SELECT club FROM table_name_93 WHERE city = "colón" | WHich Club has a City of colón? | CREATE TABLE table_name_93 (club VARCHAR, city VARCHAR) |
SELECT location FROM table_name_68 WHERE year > 2006 | Which location had a year over 2006? | CREATE TABLE table_name_68 (location VARCHAR, year INTEGER) |
SELECT code FROM table_1404486_1 WHERE population_census_2009 = 1356301 | what is the code of population census 2009 is 1356301? | CREATE TABLE table_1404486_1 (code VARCHAR, population_census_2009 VARCHAR) |
SELECT rank FROM table_name_44 WHERE silver = "2" | What rank is the nation with 2 silver medals? | CREATE TABLE table_name_44 (rank VARCHAR, silver VARCHAR) |
SELECT result FROM table_13258851_2 WHERE date = "September 16, 1984" | What was the result of the game played on September 16, 1984? | CREATE TABLE table_13258851_2 (result VARCHAR, date VARCHAR) |
SELECT SUM(lane) FROM table_name_31 WHERE notes = "q, sb" AND time___sec__ < 11.22 | What is the lane for notes Q, SB and time less than 11.22? | CREATE TABLE table_name_31 (lane INTEGER, notes VARCHAR, time___sec__ VARCHAR) |
SELECT queens FROM table_name_57 WHERE brooklyn = "201,866" | What was the Queens number when Brooklyn was 201,866? | CREATE TABLE table_name_57 (queens VARCHAR, brooklyn VARCHAR) |
SELECT voice_actor__japanese_ FROM table_name_59 WHERE character_name = "tien" | what voice acter played tien | CREATE TABLE table_name_59 (voice_actor__japanese_ VARCHAR, character_name VARCHAR) |
SELECT market_share FROM table_name_53 WHERE assets__usd__millions = 25 AND rank = "23" | What is the Market Share that has Assets of 25 Million and a rank of 23? | CREATE TABLE table_name_53 (market_share VARCHAR, assets__usd__millions VARCHAR, rank VARCHAR) |
SELECT ship FROM table_name_87 WHERE date = "28.1.1915" | what is the ship with the date of 28.1.1915? | CREATE TABLE table_name_87 (ship VARCHAR, date VARCHAR) |
SELECT gaelic_name FROM table_name_63 WHERE area___ha__ < 127 AND location = "kintyre" | What is the Gaelic name for an area less than 127 in Kintyre? | CREATE TABLE table_name_63 (gaelic_name VARCHAR, area___ha__ VARCHAR, location VARCHAR) |
SELECT winner FROM table_name_11 WHERE year = 2013 | What is Winner, when Year is 2013? | CREATE TABLE table_name_11 (winner VARCHAR, year VARCHAR) |
SELECT COUNT(wins) FROM table_name_52 WHERE cuts_made = 10 AND scoring_average < 74.09 | What is the total number of wins with 10 cuts made and a score average under 74.09? | CREATE TABLE table_name_52 (wins VARCHAR, cuts_made VARCHAR, scoring_average VARCHAR) |
SELECT opponent FROM table_name_59 WHERE week = 14 | Tell me the opponent of week 14 | CREATE TABLE table_name_59 (opponent VARCHAR, week VARCHAR) |
SELECT losses FROM table_26200568_16 WHERE club = "Toronto Downtown Dingos" | How many losses does Toronto Downtown Dingos have? | CREATE TABLE table_26200568_16 (losses VARCHAR, club VARCHAR) |
SELECT AVG(money___) AS $__ FROM table_name_14 WHERE country = "united states" AND to_par = "+3" | What is the average Money ( $ ), when Country is "United States", and when To par is "+3"? | CREATE TABLE table_name_14 (money___ INTEGER, country VARCHAR, to_par VARCHAR) |
SELECT circuit FROM table_name_62 WHERE winning_driver = "emilio de villota" AND name = "pace petroleum trophy" | What circuit did emilio de villota win on at the pace petroleum trophy? | CREATE TABLE table_name_62 (circuit VARCHAR, winning_driver VARCHAR, name VARCHAR) |
SELECT outgoing_manager FROM table_27683516_3 WHERE incoming_manager = "Štefan Tarkovič" | What is the outgoing manager when the incoming manager is štefan tarkovič? | CREATE TABLE table_27683516_3 (outgoing_manager VARCHAR, incoming_manager VARCHAR) |
SELECT position FROM table_name_38 WHERE team = "sahara force india f1 team" AND points = "46" | What Position is Team Sahara Force india f1 team with 46 Points? | CREATE TABLE table_name_38 (position VARCHAR, team VARCHAR, points VARCHAR) |
SELECT municipality FROM table_1480455_1 WHERE human_development_index__2000_ = "0.7827" | What municipality where the human development index in the year 2000 was 0.7827? | CREATE TABLE table_1480455_1 (municipality VARCHAR, human_development_index__2000_ VARCHAR) |
SELECT time FROM table_name_69 WHERE round = "2" AND opponent = "taylor mccorriston" | What was the time of round 2 against Taylor Mccorriston? | CREATE TABLE table_name_69 (time VARCHAR, round VARCHAR, opponent VARCHAR) |
SELECT country FROM table_name_62 WHERE score = 70 - 73 - 70 = 213 | What country has a 70-73-70=213 score? | CREATE TABLE table_name_62 (country VARCHAR, score VARCHAR) |
SELECT nationality FROM table_name_75 WHERE position = "left wing" AND round > 4 AND player = "mattia baldi" | What nationality has a position of left wing, and a round greater than 4, with mattia baldi as the player? | CREATE TABLE table_name_75 (nationality VARCHAR, player VARCHAR, position VARCHAR, round VARCHAR) |
SELECT result FROM table_name_1 WHERE film_title = "paljas" | What was the result for the fil Paljas? | CREATE TABLE table_name_1 (result VARCHAR, film_title VARCHAR) |
SELECT date FROM table_name_66 WHERE casualties = "1 wia" AND circumstances = "ied" AND location = "15km nw of pol-e khomri" | When was the location 15km NW of Pol-E Khomri, the circumstaances IED and the casualties of 1 WIA? | CREATE TABLE table_name_66 (date VARCHAR, location VARCHAR, casualties VARCHAR, circumstances VARCHAR) |
SELECT MIN(top_25) FROM table_name_31 WHERE cuts_made > 13 | What is the fewest number of top-25s for events with more than 13 cuts made? | CREATE TABLE table_name_31 (top_25 INTEGER, cuts_made INTEGER) |
SELECT lost FROM table_name_58 WHERE drawn = "2" AND points_against = "572" | What is the lost number for the team with 2 drawn games, and 572 points against? | CREATE TABLE table_name_58 (lost VARCHAR, drawn VARCHAR, points_against VARCHAR) |
SELECT races FROM table_name_51 WHERE top_5 > 2 AND avg_start = 6.5 | What is the number of races having top 5s over 2 and average starts of 6.5? | CREATE TABLE table_name_51 (races VARCHAR, top_5 VARCHAR, avg_start VARCHAR) |
SELECT origin FROM table_name_66 WHERE number > 161 | What is the origin of the one with a number larger than 161? | CREATE TABLE table_name_66 (origin VARCHAR, number INTEGER) |
SELECT COUNT(fleet_series__quantity_) FROM table_10007452_3 WHERE fuel_propulsion = "CNG" | how many times is the fuel propulsion is cng? | CREATE TABLE table_10007452_3 (fleet_series__quantity_ VARCHAR, fuel_propulsion VARCHAR) |
SELECT title FROM table_name_16 WHERE director = "rouben mamoulian" AND year > 1940 AND leading_lady = "linda darnell" | What title has rouben mamoulian directing after 1940 with linda darnell as the leading lady? | CREATE TABLE table_name_16 (title VARCHAR, leading_lady VARCHAR, director VARCHAR, year VARCHAR) |
SELECT engine FROM table_name_76 WHERE year < 1977 | Name the engine for year less than 1977 | CREATE TABLE table_name_76 (engine VARCHAR, year INTEGER) |
SELECT MIN(rank) FROM table_name_37 WHERE total = 8 AND nation = "hungary" AND silver > 2 | What is the lowest rank of Hungary where there was a total of 8 medals, including 2 silver? | CREATE TABLE table_name_37 (rank INTEGER, silver VARCHAR, total VARCHAR, nation VARCHAR) |
SELECT SUM(laps) FROM table_name_3 WHERE time = "+5.088" AND grid < 17 | What is the total of laps run by the driver with a grid under 17 and a time of +5.088? | CREATE TABLE table_name_3 (laps INTEGER, time VARCHAR, grid VARCHAR) |
SELECT COUNT(land___sqmi__) FROM table_18600760_19 WHERE longitude = "-100.895783" | how many lands with longitude of -100.895783 are? | CREATE TABLE table_18600760_19 (land___sqmi__ VARCHAR, longitude VARCHAR) |
SELECT score FROM table_name_6 WHERE result = "5-1" | Which item has a score of 5-1? | CREATE TABLE table_name_6 (score VARCHAR, result VARCHAR) |
SELECT guest FROM table_25691838_12 WHERE production_code = 6152 | Who were the guests on a show where the production code is 6152? | CREATE TABLE table_25691838_12 (guest VARCHAR, production_code VARCHAR) |
SELECT score FROM table_name_40 WHERE record = "11-32-11" | What is the score of the game with an 11-32-11 record? | CREATE TABLE table_name_40 (score VARCHAR, record VARCHAR) |
SELECT volts FROM table_name_44 WHERE energy_to_weight_ratio = "54 kj/kg to 2.0v" | How many volts has an energy-to-weight ratio of 54 kj/kg to 2.0v? | CREATE TABLE table_name_44 (volts VARCHAR, energy_to_weight_ratio VARCHAR) |
SELECT miles__km_ FROM table_2144863_1 WHERE driver = "Jeff Gordon" | Name the miles for jeff gordon | CREATE TABLE table_2144863_1 (miles__km_ VARCHAR, driver VARCHAR) |
SELECT away_team AS score FROM table_name_95 WHERE home_team = "footscray" | What is the score of the away team when the home team is Footscray? | CREATE TABLE table_name_95 (away_team VARCHAR, home_team VARCHAR) |
SELECT COUNT(duration__days_) FROM table_245801_1 WHERE crew = "Vladimir Vasyutin , Alexander Volkov" | Name the duration for vladimir vasyutin , alexander volkov | CREATE TABLE table_245801_1 (duration__days_ VARCHAR, crew VARCHAR) |
SELECT first_star FROM table_27537518_6 WHERE record = "17-11-5" | Who was the first star of the game with record of 17-11-5? | CREATE TABLE table_27537518_6 (first_star VARCHAR, record VARCHAR) |
SELECT MAX(crowd) FROM table_name_98 WHERE home_team = "north melbourne" | What was the largest crowd for North Melbourne | CREATE TABLE table_name_98 (crowd INTEGER, home_team VARCHAR) |
SELECT away_team FROM table_name_73 WHERE score = "63-69" | What was the away team that scored 63-69? | CREATE TABLE table_name_73 (away_team VARCHAR, score VARCHAR) |
SELECT distance FROM table_26166836_1 WHERE road_race = "Great Manchester Run" | How long was the great manchester run? | CREATE TABLE table_26166836_1 (distance VARCHAR, road_race VARCHAR) |
SELECT skip FROM table_name_34 WHERE third = "carlo alessandro zisa" | Which Skip has a Third of carlo alessandro zisa? | CREATE TABLE table_name_34 (skip VARCHAR, third VARCHAR) |
SELECT record FROM table_14941284_1 WHERE week = 2 | When it is week 2 what is the record? | CREATE TABLE table_14941284_1 (record VARCHAR, week VARCHAR) |
SELECT SUM(loss) FROM table_name_82 WHERE gain = 2646 | Can you tell me the sum of Loss that has the Gain of 2646? | CREATE TABLE table_name_82 (loss INTEGER, gain VARCHAR) |
SELECT incumbent FROM table_1341865_44 WHERE district = "Tennessee 5" | what's incumbent with district being tennessee 5 | CREATE TABLE table_1341865_44 (incumbent VARCHAR, district VARCHAR) |
SELECT incoming_manager FROM table_26976615_3 WHERE date_of_appointment = "15 January 2011" | Who was the incoming manager for the date of appointment of 15 january 2011? | CREATE TABLE table_26976615_3 (incoming_manager VARCHAR, date_of_appointment VARCHAR) |
SELECT home_team AS score FROM table_name_42 WHERE venue = "arden street oval" | Who was the home team in the game played at arden street oval? | CREATE TABLE table_name_42 (home_team VARCHAR, venue VARCHAR) |
SELECT MIN(total) FROM table_name_89 WHERE bronze = 5 AND gold < 8 | What's the smallest total with a bronze count of 5 and a gold count less than 8? | CREATE TABLE table_name_89 (total INTEGER, bronze VARCHAR, gold VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.