answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT isotopic_mass___u__ FROM table_name_6 WHERE nuclide = "89 y" | What is the isotopic mass (u) when the nuclide is 89 y? | CREATE TABLE table_name_6 (isotopic_mass___u__ VARCHAR, nuclide VARCHAR) |
SELECT MAX(total) FROM table_name_62 WHERE silver = 1 AND gold < 0 | What is the highest total medals when there were 0 gold medals and 1 silver? | CREATE TABLE table_name_62 (total INTEGER, silver VARCHAR, gold VARCHAR) |
SELECT firefox FROM table_name_86 WHERE chrome = "25.08%" | What was the firefox % was chrome was 25.08%? | CREATE TABLE table_name_86 (firefox VARCHAR, chrome VARCHAR) |
SELECT SUM(january) FROM table_name_69 WHERE score = "7–4" AND game < 42 | Which January has a Score of 7–4, and a Game smaller than 42? | CREATE TABLE table_name_69 (january INTEGER, score VARCHAR, game VARCHAR) |
SELECT swimsuit FROM table_17088705_2 WHERE preliminary = "8.847" | Give swimsuit scores of participants 8.847 in preliminary | CREATE TABLE table_17088705_2 (swimsuit VARCHAR, preliminary VARCHAR) |
SELECT location FROM table_26351260_1 WHERE team_nickname = "Bulldogs" | How many school teams are nicknamed "Bulldogs". | CREATE TABLE table_26351260_1 (location VARCHAR, team_nickname VARCHAR) |
SELECT MIN(attendance) FROM table_name_97 WHERE visitor = "carolina" | Name the least attendance with carolina visitor | CREATE TABLE table_name_97 (attendance INTEGER, visitor VARCHAR) |
SELECT bats FROM table_name_49 WHERE throws = "r" AND dob = "22 may 1973" | Which Bats have Throws of r, and a DOB of 22 may 1973? | CREATE TABLE table_name_49 (bats VARCHAR, throws VARCHAR, dob VARCHAR) |
SELECT castilian FROM table_name_17 WHERE italian = "auto(mobile)" | What word would a Castilian speaker use for the Italian word auto(mobile)? | CREATE TABLE table_name_17 (castilian VARCHAR, italian VARCHAR) |
SELECT COUNT(district) FROM table_1342379_20 WHERE incumbent = "John J. Douglass" | How many districts does john j. douglass represent? | CREATE TABLE table_1342379_20 (district VARCHAR, incumbent VARCHAR) |
SELECT AVG(events) FROM table_name_11 WHERE rank < 2 AND wins < 5 | What is the average events where the rank is smaller than 2 and wins are smaller than 5? | CREATE TABLE table_name_11 (events INTEGER, rank VARCHAR, wins VARCHAR) |
SELECT name AS origin FROM table_16799784_8 WHERE name = "Keller Patera" | What is the origin of the name of Keller Patera? | CREATE TABLE table_16799784_8 (name VARCHAR) |
SELECT kickoff FROM table_24481478_1 WHERE date = "Saturday, April 20" | What time did the game start on saturday, april 20? | CREATE TABLE table_24481478_1 (kickoff VARCHAR, date VARCHAR) |
SELECT MAX(rank) FROM table_name_44 WHERE player = "christy heffernan" AND matches > 4 | What is the highest rank for championships with christy heffernan with over 4 matches? | CREATE TABLE table_name_44 (rank INTEGER, player VARCHAR, matches VARCHAR) |
SELECT MIN(react) FROM table_name_53 WHERE country = "united states" AND lane < 4 | What is the lowest react of the athlete from the United States who has a lane less than 4? | CREATE TABLE table_name_53 (react INTEGER, country VARCHAR, lane VARCHAR) |
SELECT premiers FROM table_name_16 WHERE points = 38 AND score = "38-0" | What is the premier team that has 38 points and won with a score of 38-0? | CREATE TABLE table_name_16 (premiers VARCHAR, points VARCHAR, score VARCHAR) |
SELECT time FROM table_name_33 WHERE opponent = "jerry bohlander" | What was jerry bohlander's time? | CREATE TABLE table_name_33 (time VARCHAR, opponent VARCHAR) |
SELECT polling_firm FROM table_name_91 WHERE t_papadopoulos = "31%" | Which polling firm put T. Papadopoulos at 31%? | CREATE TABLE table_name_91 (polling_firm VARCHAR, t_papadopoulos VARCHAR) |
SELECT track FROM table_22673872_1 WHERE race_name = "International 500 Mile Sweepstakes" | What is the name of the track for the International 500 mile Sweepstakes race? | CREATE TABLE table_22673872_1 (track VARCHAR, race_name VARCHAR) |
SELECT MAX(pick__number) FROM table_name_43 WHERE rd__number < 6 AND player = "bob dailey" AND reg_gp > 257 | What is the highest Pick number that had a road number that was less than 6, featured Bob Dailey as a player, and which had a Reg GP bigger than 257? | CREATE TABLE table_name_43 (pick__number INTEGER, reg_gp VARCHAR, rd__number VARCHAR, player VARCHAR) |
SELECT character_name FROM table_name_76 WHERE voice_actor__japanese_ = "masaharu satou" | what character did Masaharu satou play | CREATE TABLE table_name_76 (character_name VARCHAR, voice_actor__japanese_ VARCHAR) |
SELECT brand FROM table_name_28 WHERE entrant = "mark henry" | What is Mark Henry's brand? | CREATE TABLE table_name_28 (brand VARCHAR, entrant VARCHAR) |
SELECT COUNT(played) FROM table_name_68 WHERE goal_difference = 11 AND goals_against > 44 | What is the total number of played for the goals against over 44 and a goal difference of 11? | CREATE TABLE table_name_68 (played VARCHAR, goal_difference VARCHAR, goals_against VARCHAR) |
SELECT COUNT(air_date) FROM table_25816476_2 WHERE team_guest_captain = "Stephen K Amos" | How many entries are shown for an air date when the team guest captain was stephen k amos? | CREATE TABLE table_25816476_2 (air_date VARCHAR, team_guest_captain VARCHAR) |
SELECT play FROM table_name_20 WHERE year = 1976 | Name the play for 1976 | CREATE TABLE table_name_20 (play VARCHAR, year VARCHAR) |
SELECT date FROM table_name_31 WHERE loss = "shirley (0-1)" | When was the date that had a Loss of Shirley (0-1)? | CREATE TABLE table_name_31 (date VARCHAR, loss VARCHAR) |
SELECT runner_s__up FROM table_name_93 WHERE tournament = "michelob light open at kingsmill" | Who was the runner-up in the Michelob Light Open at Kingsmill? | CREATE TABLE table_name_93 (runner_s__up VARCHAR, tournament VARCHAR) |
SELECT Assistant AS principal__2013_2014_ FROM table_14254419_3 WHERE principal__2013_2014_ = "Cort Monroe" | Who are all the assistant principals that served from 2013-2014 under the principal Cort Monroe? | CREATE TABLE table_14254419_3 (Assistant VARCHAR, principal__2013_2014_ VARCHAR) |
SELECT margin_of_victory FROM table_name_72 WHERE winning_score = 74 - 68 - 67 - 75 = 284 | When the Winning score is 74-68-67-75=284, what was the Margin of victory? | CREATE TABLE table_name_72 (margin_of_victory VARCHAR, winning_score VARCHAR) |
SELECT player FROM table_name_2 WHERE year_born < 1985 AND height < 2.02 | Who is the player born before 1985 who is less than 2.02 tall? | CREATE TABLE table_name_2 (player VARCHAR, year_born VARCHAR, height VARCHAR) |
SELECT frequency FROM table_name_28 WHERE call_sign = "cjjc-fm" | What is the call frequency sign of cjjc-fm? | CREATE TABLE table_name_28 (frequency VARCHAR, call_sign VARCHAR) |
SELECT Country FROM perpetrator WHERE Injured > 50 INTERSECT SELECT Country FROM perpetrator WHERE Injured < 20 | Show the countries that have both perpetrators with injures more than 50 and perpetrators with injures smaller than 20. | CREATE TABLE perpetrator (Country VARCHAR, Injured INTEGER) |
SELECT streak FROM table_name_74 WHERE game > 8 AND date = "nov 22" | What was the streak for the game after 8 on Nov 22? | CREATE TABLE table_name_74 (streak VARCHAR, game VARCHAR, date VARCHAR) |
SELECT games FROM table_name_91 WHERE event = "men's slalom" | What games have the event of Men's Slalom? | CREATE TABLE table_name_91 (games VARCHAR, event VARCHAR) |
SELECT current_marital_status FROM table_24143253_2 WHERE name = "Stella Farentino" | What is Stella Farentino's current relationship status? | CREATE TABLE table_24143253_2 (current_marital_status VARCHAR, name VARCHAR) |
SELECT visitor FROM table_name_78 WHERE date = "april 14" | WHo is the Visitor on april 14? | CREATE TABLE table_name_78 (visitor VARCHAR, date VARCHAR) |
SELECT name FROM stadium WHERE name LIKE "%Bank%" | Which stadium name contains the substring "Bank"? | CREATE TABLE stadium (name VARCHAR) |
SELECT hypotenuse_0_c FROM table_25519358_1 WHERE vertices = "月山泛 ΔYMF" | Name the hypotenuse for vertices 月山泛 δymf | CREATE TABLE table_25519358_1 (hypotenuse_0_c VARCHAR, vertices VARCHAR) |
SELECT MAX(game) FROM table_27537870_6 WHERE january = 21 | If the game was on January 21, which game was it? | CREATE TABLE table_27537870_6 (game INTEGER, january VARCHAR) |
SELECT MAX(Sales_billion), MIN(Sales_billion) FROM Companies WHERE Industry <> "Banking" | What are the maximum and minimum sales of the companies whose industries are not "Banking". | CREATE TABLE Companies (Sales_billion INTEGER, Industry VARCHAR) |
SELECT enrollment FROM table_24216139_2 WHERE nickname = "Cougars" | Name the enrollment with cougars | CREATE TABLE table_24216139_2 (enrollment VARCHAR, nickname VARCHAR) |
SELECT network FROM table_name_52 WHERE call_sign = "k33ln-ld" AND virtual_channel = "33.5" | Call sign of k33ln-ld, and a Virtual channel of 33.5 is what network? | CREATE TABLE table_name_52 (network VARCHAR, call_sign VARCHAR, virtual_channel VARCHAR) |
SELECT player FROM table_name_53 WHERE score = "79" | What player has a score of 79? | CREATE TABLE table_name_53 (player VARCHAR, score VARCHAR) |
SELECT distance FROM table_name_26 WHERE type = "team time trial" | What is the distance for the team time trial? | CREATE TABLE table_name_26 (distance VARCHAR, type VARCHAR) |
SELECT frequency FROM table_name_71 WHERE facility_id = 13598 | Which Frequency has a Facility ID of 13598? | CREATE TABLE table_name_71 (frequency VARCHAR, facility_id VARCHAR) |
SELECT MIN(total) FROM table_name_24 WHERE bronze < 2 AND rank > 2 AND silver < 1 | Name the least total when bronze is less than 2 and rank is more than 2 with silver less than 1 | CREATE TABLE table_name_24 (total INTEGER, silver VARCHAR, bronze VARCHAR, rank VARCHAR) |
SELECT record FROM table_name_26 WHERE date = "november 18" | What is the record on November 18? | CREATE TABLE table_name_26 (record VARCHAR, date VARCHAR) |
SELECT MIN(fa_cup_goals) FROM table_name_10 WHERE name = "dick taylor" AND league_goals < 0 | How many FA cup goals did dick taylor score in the year that he had 0 league goals? | CREATE TABLE table_name_10 (fa_cup_goals INTEGER, name VARCHAR, league_goals VARCHAR) |
SELECT place FROM table_name_41 WHERE score = 70 - 70 - 68 - 70 = 278 | What is Place, when Score is "70-70-68-70=278"? | CREATE TABLE table_name_41 (place VARCHAR, score VARCHAR) |
SELECT location FROM table_name_16 WHERE event = "king of the cage: flash point" | Which Location has an Event of king of the cage: flash point? | CREATE TABLE table_name_16 (location VARCHAR, event VARCHAR) |
SELECT director FROM table_name_66 WHERE film_title_used_in_nomination = "nick carter in prague" | Who is the Director that has a Film title of nick carter in prague? | CREATE TABLE table_name_66 (director VARCHAR, film_title_used_in_nomination VARCHAR) |
SELECT Name FROM climber WHERE Country <> "Switzerland" | List the names of climbers whose country is not Switzerland. | CREATE TABLE climber (Name VARCHAR, Country VARCHAR) |
SELECT T1.rank, COUNT(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.rank | Show all the faculty ranks and the number of students advised by each rank. | CREATE TABLE Student (advisor VARCHAR); CREATE TABLE Faculty (rank VARCHAR, FacID VARCHAR) |
SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' INTERSECT SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice' | Find the name and age of the person who is a friend of both Dan and Alice. | CREATE TABLE Person (name VARCHAR, age VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR) |
SELECT cancelable FROM table_name_97 WHERE bubbles = "no" AND category = "miscellaneous" AND type = "propertychange" | When Bubbles of no, and a Category of miscellaneous, and a Type of propertychange, what was the Cancelable? | CREATE TABLE table_name_97 (cancelable VARCHAR, type VARCHAR, bubbles VARCHAR, category VARCHAR) |
SELECT position FROM table_name_39 WHERE round = 5 AND college = "alabama state" | What is the position for round 5 from alabama state? | CREATE TABLE table_name_39 (position VARCHAR, round VARCHAR, college VARCHAR) |
SELECT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id GROUP BY t2.customer_details ORDER BY COUNT(*) DESC LIMIT 1 | Find the name of the customer that has been involved in the most policies. | CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR); CREATE TABLE policies (customer_id VARCHAR) |
SELECT COUNT(district) FROM table_1342315_17 WHERE incumbent = "Riley Joseph Wilson" | How many districts does riley joseph wilson? | CREATE TABLE table_1342315_17 (district VARCHAR, incumbent VARCHAR) |
SELECT COUNT(pac_12_sports) FROM table_27816698_2 WHERE institution = "California Polytechnic State University" | How many pac-12 sports are shown for california polytechnic state university? | CREATE TABLE table_27816698_2 (pac_12_sports VARCHAR, institution VARCHAR) |
SELECT COUNT(title) FROM table_30030477_1 WHERE original_air_date = "August3,2010" | How many titles are there with the original air date of august3,2010? | CREATE TABLE table_30030477_1 (title VARCHAR, original_air_date VARCHAR) |
SELECT MIN(production_num) FROM table_name_56 WHERE title = "bosko's fox hunt" | The film titled Bosko's fox hunt had what as the smallest production number? | CREATE TABLE table_name_56 (production_num INTEGER, title VARCHAR) |
SELECT margin FROM table_name_86 WHERE match_date = "oct 17, 2007" | What is Margin, when Match Date is Oct 17, 2007? | CREATE TABLE table_name_86 (margin VARCHAR, match_date VARCHAR) |
SELECT MAX(game) FROM table_17288825_7 WHERE location_attendance = "Conseco Fieldhouse 14,486" | At what game number was the attendance at Conseco Fieldhouse 14,486? | CREATE TABLE table_17288825_7 (game INTEGER, location_attendance VARCHAR) |
SELECT SUM(amount) FROM payment | What is the total amount of all payments? | CREATE TABLE payment (amount INTEGER) |
SELECT venue FROM table_name_58 WHERE notes = "1:23:07" | Which venue did the runner have a note of 1:23:07? | CREATE TABLE table_name_58 (venue VARCHAR, notes VARCHAR) |
SELECT year FROM table_name_21 WHERE competition = "universiade" | In which year did he compete in the Universiade? | CREATE TABLE table_name_21 (year VARCHAR, competition VARCHAR) |
SELECT record FROM table_name_65 WHERE date = "december 19" | what team scored on december 19 | CREATE TABLE table_name_65 (record VARCHAR, date VARCHAR) |
SELECT population, _in_thousands, __1905__ FROM table_name_79 WHERE name_in_polish = "gubernia łomżyńska" | Tell me the population for gubernia łomżyńska | CREATE TABLE table_name_79 (population VARCHAR, _in_thousands VARCHAR, __1905__ VARCHAR, name_in_polish VARCHAR) |
SELECT Event_ID FROM Participants_in_Events GROUP BY Event_ID ORDER BY COUNT(*) DESC LIMIT 1 | What is the id of the event with the most participants? | CREATE TABLE Participants_in_Events (Event_ID VARCHAR) |
SELECT time FROM table_name_42 WHERE laps = 18 AND grid > 15 AND rider = "russell holland" | What is the Time when there are 18 laps, grid larger than 15, and Rider of Russell Holland? | CREATE TABLE table_name_42 (time VARCHAR, rider VARCHAR, laps VARCHAR, grid VARCHAR) |
SELECT athlete FROM table_name_82 WHERE rank > 15 AND result < 7.68 AND group = "b" AND nationality = "great britain" | Which athlete's rank is more than 15 when the result is less than 7.68, the group is b, and the nationality listed is Great Britain? | CREATE TABLE table_name_82 (athlete VARCHAR, nationality VARCHAR, group VARCHAR, rank VARCHAR, result VARCHAR) |
SELECT outcome FROM table_name_4 WHERE score = "6–1, 6–4" | What is the outcome of a score that is 6–1, 6–4? | CREATE TABLE table_name_4 (outcome VARCHAR, score VARCHAR) |
SELECT AVG(weight), pettype FROM pets GROUP BY pettype | Find the average weight for each pet type. | CREATE TABLE pets (pettype VARCHAR, weight INTEGER) |
SELECT COUNT(episode) FROM table_15187735_15 WHERE netflix = "S08E04" | How many episodes have the Netflix episode number S08E04? | CREATE TABLE table_15187735_15 (episode VARCHAR, netflix VARCHAR) |
SELECT candidates FROM table_1341577_47 WHERE district = "Virginia 3" | Who was the candidate in the Virginia 3 district election? | CREATE TABLE table_1341577_47 (candidates VARCHAR, district VARCHAR) |
SELECT winning_team FROM table_name_22 WHERE year = 2008 | Who was the winning team in 2008? | CREATE TABLE table_name_22 (winning_team VARCHAR, year VARCHAR) |
SELECT 2009 FROM table_name_43 WHERE 2008 = "grand slam tournaments" | What 2009 has grand slam tournaments of 2008? | CREATE TABLE table_name_43 (Id VARCHAR) |
SELECT winner FROM table_name_64 WHERE score = "71-62" | who is the winner when the score is 71-62? | CREATE TABLE table_name_64 (winner VARCHAR, score VARCHAR) |
SELECT date FROM table_name_3 WHERE competition = "friendly" AND score = "2-1" | Which date has a competition type of friendly and a score of 2-1? | CREATE TABLE table_name_3 (date VARCHAR, competition VARCHAR, score VARCHAR) |
SELECT result FROM table_24561550_1 WHERE record = "3-3" | List all results from the 3-3 scoring game. | CREATE TABLE table_24561550_1 (result VARCHAR, record VARCHAR) |
SELECT gold FROM table_name_65 WHERE year > 1970 AND place = "milan" | What gold has a year after 1970, with milan as the place? | CREATE TABLE table_name_65 (gold VARCHAR, year VARCHAR, place VARCHAR) |
SELECT COUNT(attendance) FROM table_name_74 WHERE game_site = "candlestick park" | What is the total attendance for Candlestick Park? | CREATE TABLE table_name_74 (attendance VARCHAR, game_site VARCHAR) |
SELECT AVG(attendance) FROM table_name_22 WHERE date = "september 21, 1980" | How many people attended the September 21, 1980 game? | CREATE TABLE table_name_22 (attendance INTEGER, date VARCHAR) |
SELECT circuit FROM table_name_42 WHERE session = "race" AND discipline = "open wheel" AND event = "1977 japanese grand prix" | What circuit has a race for the session, and open wheel as the discipline, and the 1977 Japanese Grand Prix as the event? | CREATE TABLE table_name_42 (circuit VARCHAR, event VARCHAR, session VARCHAR, discipline VARCHAR) |
SELECT date FROM table_name_92 WHERE viewers = "4.4 million" | What is Date, when Viewers is 4.4 million? | CREATE TABLE table_name_92 (date VARCHAR, viewers VARCHAR) |
SELECT identity FROM table_name_48 WHERE builder = "brighton works" | What is the identity of the brighton works built train? | CREATE TABLE table_name_48 (identity VARCHAR, builder VARCHAR) |
SELECT COUNT(points_difference) FROM table_15467476_3 WHERE tries_against = "62" | How many teams have 62 tries against? | CREATE TABLE table_15467476_3 (points_difference VARCHAR, tries_against VARCHAR) |
SELECT streak FROM table_name_1 WHERE location_attendance = "staples center" AND score = "67–89" | which Streak has a Location/Attendance of staples center, and a Score of 67–89? | CREATE TABLE table_name_1 (streak VARCHAR, location_attendance VARCHAR, score VARCHAR) |
SELECT winner AS Women FROM table_1216097_7 WHERE third = "Italy" AND runner_up = "Finland" | What is the winner women and third is italy and runner-up is finland? | CREATE TABLE table_1216097_7 (winner VARCHAR, third VARCHAR, runner_up VARCHAR) |
SELECT game_site FROM table_name_17 WHERE week = 11 | I want the game site for week of 11 | CREATE TABLE table_name_17 (game_site VARCHAR, week VARCHAR) |
SELECT directed_by FROM table_1854728_2 WHERE written_by = "Arthur Heinemann" | When arthur heinemann is the writer who is the director? | CREATE TABLE table_1854728_2 (directed_by VARCHAR, written_by VARCHAR) |
SELECT year__ceremony_ FROM table_16255245_1 WHERE original_title = "Spiele Leben" | Name the year for spiele leben | CREATE TABLE table_16255245_1 (year__ceremony_ VARCHAR, original_title VARCHAR) |
SELECT MIN(rank) FROM table_name_95 WHERE gold < 3 AND silver = 0 AND bronze > 2 | What is the lowest rank of a nation with fewer than 3 gold medals, more than 2 bronze medals, and 0 silver medals? | CREATE TABLE table_name_95 (rank INTEGER, bronze VARCHAR, gold VARCHAR, silver VARCHAR) |
SELECT airdate FROM table_name_50 WHERE _number_in_season = 5 | Which air date has 5 for # in season? | CREATE TABLE table_name_50 (airdate VARCHAR, _number_in_season VARCHAR) |
SELECT game FROM table_name_89 WHERE genre = "fighting" | When the genre is fighting what is the game? | CREATE TABLE table_name_89 (game VARCHAR, genre VARCHAR) |
SELECT COUNT(total) FROM table_name_24 WHERE bronze < 0 | What is the total when there were less than 0 bronze? | CREATE TABLE table_name_24 (total VARCHAR, bronze INTEGER) |
SELECT episode FROM table_1579922_1 WHERE run_time = "24:25" | What episode had a run time of 24:25? | CREATE TABLE table_1579922_1 (episode VARCHAR, run_time VARCHAR) |
SELECT sat_21_aug FROM table_26986076_6 WHERE tues_24_aug = "20' 38.40 109.680mph" | What was the Sat 21 Aug time for the rider whose Tues 24 Aug time was 20' 38.40 109.680mph? | CREATE TABLE table_26986076_6 (sat_21_aug VARCHAR, tues_24_aug VARCHAR) |
SELECT MIN(draws) FROM table_name_86 WHERE goal_difference > -16 AND club = "elche cf" AND played > 38 | What was the number of draws when the Elche CF club played 38 and had a goal difference of -16? | CREATE TABLE table_name_86 (draws INTEGER, played VARCHAR, goal_difference VARCHAR, club VARCHAR) |
SELECT built FROM table_name_22 WHERE fuel__trans = "diesel-electric" | What is the manufacturer, found under the Built column, that made locomotives with a Fuel/Trans of diesel-electric? | CREATE TABLE table_name_22 (built VARCHAR, fuel__trans VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.