answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT athlete FROM table_name_30 WHERE rank < 17 AND total = "119" | Who had a rank under 17 with a total of 119? | CREATE TABLE table_name_30 (athlete VARCHAR, rank VARCHAR, total VARCHAR) |
SELECT SUM(1999) FROM table_name_27 WHERE 1990 > 0 AND 2003 = 3 AND 2007 > 1 AND 1996 > 0 | what is the listing for 1999 when 1990 is more than 0, 2003 is 3, 2007 is more than 1 and 1996 is more than 0? | CREATE TABLE table_name_27 (Id VARCHAR) |
SELECT COUNT(score_in_final) FROM table_22858557_1 WHERE championship = "US Open" AND outcome = "Runner-up" | What is the amount of US open runner-up score? | CREATE TABLE table_22858557_1 (score_in_final VARCHAR, championship VARCHAR, outcome VARCHAR) |
SELECT school FROM table_name_58 WHERE location = "alexandria" | what is the school with the location of alexandria? | CREATE TABLE table_name_58 (school VARCHAR, location VARCHAR) |
SELECT competition FROM table_name_28 WHERE date = "28 march 2009" | For what competition was the game played on 28 March 2009? | CREATE TABLE table_name_28 (competition VARCHAR, date VARCHAR) |
SELECT safe FROM table_12305325_4 WHERE eliminated = "John and Nicole" | Who is safe if John and Nicole are eliminated? | CREATE TABLE table_12305325_4 (safe VARCHAR, eliminated VARCHAR) |
SELECT rider FROM table_name_12 WHERE speed = "108.347mph" AND time = "1:02.40.93" | What Rider had a Speed of 108.347mph and Time of 1:02.40.93? | CREATE TABLE table_name_12 (rider VARCHAR, speed VARCHAR, time VARCHAR) |
SELECT attribute FROM table_name_52 WHERE cancelable = "yes" AND bubbles = "yes" AND category = "keyboard" | When Cancelable of yes, bubble of yes and a Category of keyboard, what was the Attribute? | CREATE TABLE table_name_52 (attribute VARCHAR, category VARCHAR, cancelable VARCHAR, bubbles VARCHAR) |
SELECT Shop_Name FROM shop ORDER BY Open_Year | What are the names of shops in ascending order of open year? | CREATE TABLE shop (Shop_Name VARCHAR, Open_Year VARCHAR) |
SELECT playoffs FROM table_1214035_1 WHERE regular_season = "7th, Southeast" | What was the result of the playoffs when the regular season was 7th, southeast | CREATE TABLE table_1214035_1 (playoffs VARCHAR, regular_season VARCHAR) |
SELECT COUNT(goals_olimpia) FROM table_13688489_1 WHERE matches = 32 | How many goals Olimpia recorded for 32 matches? | CREATE TABLE table_13688489_1 (goals_olimpia VARCHAR, matches VARCHAR) |
SELECT left_office FROM table_name_49 WHERE first_minister = "henry mcleish" | What left office does the First Minister of henry mcleish belong to? | CREATE TABLE table_name_49 (left_office VARCHAR, first_minister VARCHAR) |
SELECT COUNT(attendance) FROM table_name_44 WHERE date = "31 january 1987" | What was the Attendance on 31 January 1987? | CREATE TABLE table_name_44 (attendance VARCHAR, date VARCHAR) |
SELECT MIN(tournaments_played) FROM table_24330912_1 WHERE best_finish = "T3" | When t3 is the best finish what is the lowest amount of tournaments played? | CREATE TABLE table_24330912_1 (tournaments_played INTEGER, best_finish VARCHAR) |
SELECT pick FROM table_name_34 WHERE position = "defensive end" | Which pick number resulted in a defensive end? | CREATE TABLE table_name_34 (pick VARCHAR, position VARCHAR) |
SELECT builder FROM table_name_6 WHERE tc & stl_no__1883_84_ > 54 AND date_ordered = "november 1881" | Who built the order on November 1881 of more than 54 TC&StL no. (1883–84)? | CREATE TABLE table_name_6 (builder VARCHAR, date_ordered VARCHAR, tc VARCHAR, stl_no__1883_84_ VARCHAR) |
SELECT listed FROM table_name_17 WHERE cerclis_id = "msd004006995" | Tell me the listed when cerclis id is msd004006995 | CREATE TABLE table_name_17 (listed VARCHAR, cerclis_id VARCHAR) |
SELECT size FROM table_name_46 WHERE metal = "nickel" AND denomination = "one rupee" | What is the size that has nickel as the metal, and one rupee as the denomination? | CREATE TABLE table_name_46 (size VARCHAR, metal VARCHAR, denomination VARCHAR) |
SELECT unemployment_rate FROM table_22815568_12 WHERE county = "Botetourt" | Name the unemployment rate for botetourt | CREATE TABLE table_22815568_12 (unemployment_rate VARCHAR, county VARCHAR) |
SELECT party FROM table_1342292_2 WHERE district = "Alabama 3" | what's the party with district being alabama 3 | CREATE TABLE table_1342292_2 (party VARCHAR, district VARCHAR) |
SELECT error FROM table_name_65 WHERE size__steps_ > 5 AND just__cents_ = 536.95 | What is the error that has a size (steps) more than 5 and a just (cents) value 536.95 | CREATE TABLE table_name_65 (error VARCHAR, size__steps_ VARCHAR, just__cents_ VARCHAR) |
SELECT MAX(overall) FROM table_name_33 WHERE slalom = "39" AND season < 1996 | What is the highest overall prior to 1996 with a slalom of 39? | CREATE TABLE table_name_33 (overall INTEGER, slalom VARCHAR, season VARCHAR) |
SELECT province FROM table_name_62 WHERE iata = "aku" | Which Province has a IATA of aku? | CREATE TABLE table_name_62 (province VARCHAR, iata VARCHAR) |
SELECT notes FROM table_name_71 WHERE rank < 6 AND athlete = "ioannis christou" | Ioannis Christou with a rank smaller than 6 has what notes? | CREATE TABLE table_name_71 (notes VARCHAR, rank VARCHAR, athlete VARCHAR) |
SELECT theme FROM table_name_6 WHERE days < 148 AND series = "season 3" | What's the theme for a series of season 3 with smaller than 148 days? | CREATE TABLE table_name_6 (theme VARCHAR, days VARCHAR, series VARCHAR) |
SELECT T2.Name, T1.College_Location FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID ORDER BY T2.Name | Show the names of members and the locations of colleges they go to in ascending alphabetical order of member names. | CREATE TABLE member (Name VARCHAR, College_ID VARCHAR); CREATE TABLE college (College_Location VARCHAR, College_ID VARCHAR) |
SELECT nationality FROM table_name_48 WHERE position = "sg" | What is the nationality of the SG position? | CREATE TABLE table_name_48 (nationality VARCHAR, position VARCHAR) |
SELECT moving_from FROM table_name_88 WHERE transfer_window = "summer" AND source = "kerkida.net" | Where is the moving from location with a transfer window of summer and the source kerkida.net? | CREATE TABLE table_name_88 (moving_from VARCHAR, transfer_window VARCHAR, source VARCHAR) |
SELECT Advisor FROM Student WHERE StuID = 1004 | Who is the advisor of student with ID 1004? | CREATE TABLE Student (Advisor VARCHAR, StuID VARCHAR) |
SELECT name FROM table_name_69 WHERE hometown = "albuquerque, new mexico" | What is the Name of the Player from Albuquerque, New Mexico? | CREATE TABLE table_name_69 (name VARCHAR, hometown VARCHAR) |
SELECT MAX(crowd) FROM table_name_32 WHERE away_team = "st kilda" | What is the largest crowd for an Away team of st kilda? | CREATE TABLE table_name_32 (crowd INTEGER, away_team VARCHAR) |
SELECT original_air_date FROM table_28140590_1 WHERE production_code = 60072 | What date did the episode with a production code of 60072 originally air? | CREATE TABLE table_28140590_1 (original_air_date VARCHAR, production_code VARCHAR) |
SELECT location FROM table_1090916_2 WHERE status = "In service as coaching stock" | What is the location when the status is in service as coaching stock? | CREATE TABLE table_1090916_2 (location VARCHAR, status VARCHAR) |
SELECT production_code FROM table_20726262_3 WHERE usviewers__million_ = "3.38" | What was the production code for the episode with 3.38 million viewers? | CREATE TABLE table_20726262_3 (production_code VARCHAR, usviewers__million_ VARCHAR) |
SELECT peak_position FROM table_name_12 WHERE date = "july 11, 2001" | What was the Peak Position on July 11, 2001? | CREATE TABLE table_name_12 (peak_position VARCHAR, date VARCHAR) |
SELECT service FROM table_name_74 WHERE network = "atn urdu" | Which service does the network of atn urdu offer? | CREATE TABLE table_name_74 (service VARCHAR, network VARCHAR) |
SELECT opponents FROM table_name_15 WHERE edition = "2006 fed cup europe/africa group ii" AND against = "greece" | Who were the opponents during the 2006 fed cup europe/africa group ii against greece? | CREATE TABLE table_name_15 (opponents VARCHAR, edition VARCHAR, against VARCHAR) |
SELECT AVG(price) FROM products | Compute the average price of all the products. | CREATE TABLE products (price INTEGER) |
SELECT city FROM table_name_84 WHERE ihsaa_football_class = "aaa" AND enrollment < 676 AND school = "lawrenceburg" | Which city is Lawrenceburg school, with an IHSAA football class of aaa and less than 676 enrollments, located in? | CREATE TABLE table_name_84 (city VARCHAR, school VARCHAR, ihsaa_football_class VARCHAR, enrollment VARCHAR) |
SELECT COUNT(winner) FROM table_2534387_11 WHERE event__number = 5 | If the event number is 5, what is the winner total number? | CREATE TABLE table_2534387_11 (winner VARCHAR, event__number VARCHAR) |
SELECT AVG(week) FROM table_name_84 WHERE result = "l 10–30" AND attendance > 57 OFFSET 312 | Which Week has a Result of l 10–30, and an Attendance larger than 57,312? | CREATE TABLE table_name_84 (week INTEGER, result VARCHAR, attendance VARCHAR) |
SELECT sydney FROM table_name_43 WHERE melbourne = "yes" AND perth = "no" AND auckland = "no" AND gold_coast = "no" | yes or no for the sydney with yes for melbourne, no for perth, no for auckland and no for gold coast? | CREATE TABLE table_name_43 (sydney VARCHAR, gold_coast VARCHAR, auckland VARCHAR, melbourne VARCHAR, perth VARCHAR) |
SELECT loan_club FROM table_name_41 WHERE start_source = "bbc sport" AND ended = "3 february" | What is the loan club with bbc sport as the start source and ended in 3 February? | CREATE TABLE table_name_41 (loan_club VARCHAR, start_source VARCHAR, ended VARCHAR) |
SELECT Occupation FROM player GROUP BY Occupation ORDER BY COUNT(*) DESC LIMIT 1 | Please show the most common occupation of players. | CREATE TABLE player (Occupation VARCHAR) |
SELECT score FROM table_name_65 WHERE money___$__ = "36,090" | What score won $36,090? | CREATE TABLE table_name_65 (score VARCHAR, money___$__ VARCHAR) |
SELECT japanese_title FROM table_18540104_1 WHERE average_ratings = "11.6%" | What is the Japanese title with an average rating of 11.6%? | CREATE TABLE table_18540104_1 (japanese_title VARCHAR, average_ratings VARCHAR) |
SELECT date FROM table_name_37 WHERE competition = "friendship cup" | When was the friendship cup? | CREATE TABLE table_name_37 (date VARCHAR, competition VARCHAR) |
SELECT surface FROM table_name_35 WHERE date = "26 february 2006" | For the tournament played on 26 February 2006, what surface was used? | CREATE TABLE table_name_35 (surface VARCHAR, date VARCHAR) |
SELECT venue FROM table_name_50 WHERE score = "3 runs" AND city = "buxton" | Where in Buxton has 3 runs? | CREATE TABLE table_name_50 (venue VARCHAR, score VARCHAR, city VARCHAR) |
SELECT australian FROM table_name_12 WHERE british = "aɪ, ɪ, ə" | What is Australian, when British is "aɪ, ɪ, ə"? | CREATE TABLE table_name_12 (australian VARCHAR, british VARCHAR) |
SELECT away_team FROM table_name_69 WHERE venue = "windy hill" | Who is the away team at Windy Hill? | CREATE TABLE table_name_69 (away_team VARCHAR, venue VARCHAR) |
SELECT district_name FROM district ORDER BY city_population DESC LIMIT 1 | Which district has the largest population? | CREATE TABLE district (district_name VARCHAR, city_population VARCHAR) |
SELECT original_air_date FROM table_19897294_10 WHERE family_families = "The Ririe Family" | When did the episode with the Ririe family air for the first time? | CREATE TABLE table_19897294_10 (original_air_date VARCHAR, family_families VARCHAR) |
SELECT MIN(points) FROM table_name_3 WHERE drawn < 6 AND played < 18 | What is the lowest number of points of any team with less than 6 draws and less than 18 matches played? | CREATE TABLE table_name_3 (points INTEGER, drawn VARCHAR, played VARCHAR) |
SELECT MAX(interview) FROM table_name_77 WHERE average > 9.324 AND state = "louisiana" | What is the highest interview for Louisiana with an average above 9.324? | CREATE TABLE table_name_77 (interview INTEGER, average VARCHAR, state VARCHAR) |
SELECT norwegian_title FROM table_name_37 WHERE pages = 218 AND translated_title = "breaking dawn" | What Norwegian title has 218 pages and Translated Title of Breaking Dawn? | CREATE TABLE table_name_37 (norwegian_title VARCHAR, pages VARCHAR, translated_title VARCHAR) |
SELECT record FROM table_name_48 WHERE date = "january 10" | What's the record for january 10? | CREATE TABLE table_name_48 (record VARCHAR, date VARCHAR) |
SELECT result FROM table_2803106_1 WHERE tonioli = "8" AND horwood = "6" | What was the result for the dance that tonioli's scored an 8 and horwood scored a 6? | CREATE TABLE table_2803106_1 (result VARCHAR, tonioli VARCHAR, horwood VARCHAR) |
SELECT COUNT(country) FROM table_19001916_2 WHERE supply_point = "Itaipu" | In how many countries is Itaipu a supply point for electricity? | CREATE TABLE table_19001916_2 (country VARCHAR, supply_point VARCHAR) |
SELECT MAX(pick__number) FROM table_20170644_1 WHERE cfl_team = "BC Lions (via Hamilton via Winnipeg )" | What number pick did the CFL team bc lions (via hamilton via winnipeg ) have? | CREATE TABLE table_20170644_1 (pick__number INTEGER, cfl_team VARCHAR) |
SELECT event FROM table_name_39 WHERE year = 1964 | that was held in 1964? | CREATE TABLE table_name_39 (event VARCHAR, year VARCHAR) |
SELECT AVG(communes) FROM table_name_83 WHERE cantons > 10 AND area__square_km_ = 1 OFFSET 589 | How many communes associated with over 10 cantons and an area (Square km) of 1,589? | CREATE TABLE table_name_83 (communes INTEGER, cantons VARCHAR, area__square_km_ VARCHAR) |
SELECT AVG(tries) FROM table_name_82 WHERE team = "british and irish lions" AND games < 2 | What is the average number of tries for British and Irish Lions with less than 2 games? | CREATE TABLE table_name_82 (tries INTEGER, team VARCHAR, games VARCHAR) |
SELECT SUM(against) FROM table_name_65 WHERE losses > 2 AND wins = 8 AND byes < 0 | Which Against has Losses larger than 2, and Wins of 8, and Byes smaller than 0? | CREATE TABLE table_name_65 (against INTEGER, byes VARCHAR, losses VARCHAR, wins VARCHAR) |
SELECT laps FROM table_name_51 WHERE driver = "roberto moreno" | How many laps does roberto moreno have? | CREATE TABLE table_name_51 (laps VARCHAR, driver VARCHAR) |
SELECT branding FROM table_name_35 WHERE callsign = "dxre" | What is the brand of DXRE? | CREATE TABLE table_name_35 (branding VARCHAR, callsign VARCHAR) |
SELECT perpetrator FROM table_name_54 WHERE country = "uganda" AND location = "kampala" AND killed = "12" | Who is the perpetrator in Uganda who killed 12 in Kampala? | CREATE TABLE table_name_54 (perpetrator VARCHAR, killed VARCHAR, country VARCHAR, location VARCHAR) |
SELECT MAX(decile) FROM table_name_58 WHERE authority = "state" AND name = "tarras school" | What is the highest decile of Tarras school, which had a state authority? | CREATE TABLE table_name_58 (decile INTEGER, authority VARCHAR, name VARCHAR) |
SELECT MIN(season) FROM table_name_5 WHERE level < 1 | Tell me the least season with level less than 1 | CREATE TABLE table_name_5 (season INTEGER, level INTEGER) |
SELECT highest FROM table_11206787_5 WHERE stadium = "Balmoor" | What is the highest of balmoor/ | CREATE TABLE table_11206787_5 (highest VARCHAR, stadium VARCHAR) |
SELECT MAX(crowd) FROM table_name_49 WHERE home_team = "richmond" | When the home team was Richmond, what was the largest crowd? | CREATE TABLE table_name_49 (crowd INTEGER, home_team VARCHAR) |
SELECT against___percentage_ FROM table_20683381_3 WHERE ±_yes_side_2008___percentage_ = "+18.1" | When +18.1 is the ± yes side 2008 percentage what is the percentage of against? | CREATE TABLE table_20683381_3 (against___percentage_ VARCHAR, ±_yes_side_2008___percentage_ VARCHAR) |
SELECT COUNT(bronze) FROM table_name_2 WHERE rank > 2 AND total < 2 AND silver > 0 | What is the sum of bronze medals when the rank is greater than 2, and less than 2 total medals with silver medals being more than 0? | CREATE TABLE table_name_2 (bronze VARCHAR, silver VARCHAR, rank VARCHAR, total VARCHAR) |
SELECT 2010 FROM table_name_60 WHERE tournament = "australian open" | What is the 2010 value in the Australian Open? | CREATE TABLE table_name_60 (tournament VARCHAR) |
SELECT MAX(cuts_made) FROM table_name_20 WHERE top_5 = 0 AND wins < 0 | What is the highest number of cuts made in a tournament with 0 wins and 0 top 5 placings? | CREATE TABLE table_name_20 (cuts_made INTEGER, top_5 VARCHAR, wins VARCHAR) |
SELECT unit FROM table_name_53 WHERE location = "china" AND authors = "zhou zhang" | What unit is located in China and has Zhou Zhang as an author? | CREATE TABLE table_name_53 (unit VARCHAR, location VARCHAR, authors VARCHAR) |
SELECT player FROM table_name_46 WHERE average = "24.21" | What playee has 24.21 as the average? | CREATE TABLE table_name_46 (player VARCHAR, average VARCHAR) |
SELECT COUNT(driver) FROM table_10753917_1 WHERE team = "Williams" AND margin_of_defeat = "2" | How many drivers on the williams team had a margin of defeat of 2? | CREATE TABLE table_10753917_1 (driver VARCHAR, team VARCHAR, margin_of_defeat VARCHAR) |
SELECT record FROM table_name_17 WHERE location_attendance = "td banknorth garden 18,624" | What is Record, when Location Attendance is "TD Banknorth Garden 18,624"? | CREATE TABLE table_name_17 (record VARCHAR, location_attendance VARCHAR) |
SELECT race FROM table_name_72 WHERE replica = "dnf" | Which race has a replica of DNF? | CREATE TABLE table_name_72 (race VARCHAR, replica VARCHAR) |
SELECT rank FROM table_name_33 WHERE year = "1961" | What is the rank for 1961? | CREATE TABLE table_name_33 (rank VARCHAR, year VARCHAR) |
SELECT time FROM table_name_43 WHERE heat > 4 AND nationality = "australia" | What's Australia's time in the heat more than 4? | CREATE TABLE table_name_43 (time VARCHAR, heat VARCHAR, nationality VARCHAR) |
SELECT status FROM table_1341522_41 WHERE incumbent = "William F. Goodling" | What was the result of the election where william f. goodling was the incumbent? | CREATE TABLE table_1341522_41 (status VARCHAR, incumbent VARCHAR) |
SELECT position FROM table_name_6 WHERE team = "baltimore orioles" | What is the position of the player for the Baltimore Orioles? | CREATE TABLE table_name_6 (position VARCHAR, team VARCHAR) |
SELECT major_users FROM table_29474407_11 WHERE country_of_origin = "Australia" | Who are the major users from Australia? | CREATE TABLE table_29474407_11 (major_users VARCHAR, country_of_origin VARCHAR) |
SELECT runner_s__up FROM table_name_95 WHERE date = "jun 3, 1973" | Who was the runner(s)-up for the tournament played on Jun 3, 1973? | CREATE TABLE table_name_95 (runner_s__up VARCHAR, date VARCHAR) |
SELECT annual_change FROM table_name_31 WHERE rank < 3 AND capacity_in_use = "78.4%" | In which yearly change was there a capacity of 78.4% and a rank smaller than 3? | CREATE TABLE table_name_31 (annual_change VARCHAR, rank VARCHAR, capacity_in_use VARCHAR) |
SELECT Name FROM mountain ORDER BY Name | What are the names of mountains in ascending alphabetical order? | CREATE TABLE mountain (Name VARCHAR) |
SELECT total_points FROM table_14948647_1 WHERE oberstdorf__rk_ = "252.6 (11)" | How many points in total were scored by the player whose Oberstdork score and rank were 252.6 (11)? | CREATE TABLE table_14948647_1 (total_points VARCHAR, oberstdorf__rk_ VARCHAR) |
SELECT MAX(enrollment) FROM table_28243691_1 WHERE institution = "University of North Texas" | What was the highest number of students in attendance for the university of north texas? | CREATE TABLE table_28243691_1 (enrollment INTEGER, institution VARCHAR) |
SELECT władysławowo_, _poland FROM table_name_83 WHERE world_record = "olympic record" AND marcin_dołęga___pol__ = "olympic standard" AND snatch = "clean & jerk" | What shows for Władysławowo, Poland when the world record shows olympic record, a Marcin Dołęga (POL) is olympic standard, and Snatch is clean & jerk? | CREATE TABLE table_name_83 (władysławowo_ VARCHAR, _poland VARCHAR, snatch VARCHAR, world_record VARCHAR, marcin_dołęga___pol__ VARCHAR) |
SELECT COUNT(founded) FROM table_10581768_2 WHERE institution = "Carlow University 1" | how many founded dates are listed for carlow university 1 | CREATE TABLE table_10581768_2 (founded VARCHAR, institution VARCHAR) |
SELECT MAX(game) FROM table_27713030_3 WHERE date = "October 13" | Which game was played on October 13? | CREATE TABLE table_27713030_3 (game INTEGER, date VARCHAR) |
SELECT year FROM table_name_59 WHERE laps < 64 AND finish = "25" | In what year were laps less than 64 and the finish at 25? | CREATE TABLE table_name_59 (year VARCHAR, laps VARCHAR, finish VARCHAR) |
SELECT country FROM table_name_97 WHERE player = "lee trevino" | Which country is Lee Trevino from? | CREATE TABLE table_name_97 (country VARCHAR, player VARCHAR) |
SELECT COUNT(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy WHERE T2.allergytype = "food" | How many students have a food allergy? | CREATE TABLE Has_allergy (allergy VARCHAR); CREATE TABLE Allergy_type (allergy VARCHAR, allergytype VARCHAR) |
SELECT Reign FROM wrestler GROUP BY Reign ORDER BY COUNT(*) DESC LIMIT 1 | Please show the most common reigns of wrestlers. | CREATE TABLE wrestler (Reign VARCHAR) |
SELECT transfer_fee FROM table_name_80 WHERE from_club = "blackburn rovers" | Which Transfer fee has a From club of blackburn rovers? | CREATE TABLE table_name_80 (transfer_fee VARCHAR, from_club VARCHAR) |
SELECT ground FROM table_name_83 WHERE away = "high park demons" | The Away High Park Demons was which Ground? | CREATE TABLE table_name_83 (ground VARCHAR, away VARCHAR) |
SELECT AVG(year) FROM table_name_28 WHERE competition = "friendly" AND club = "everton" | What is the average Year when the Competition was friendly, and a Club of everton? | CREATE TABLE table_name_28 (year INTEGER, competition VARCHAR, club VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.