answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT swimsuit FROM table_15532342_2 WHERE state = "Arizona" | Name the swimsuit for arizona | CREATE TABLE table_15532342_2 (swimsuit VARCHAR, state VARCHAR) |
SELECT type FROM table_name_14 WHERE year > 2004 | What was the type after 2004? | CREATE TABLE table_name_14 (type VARCHAR, year INTEGER) |
SELECT name FROM table_name_54 WHERE heat > 3 AND lane = 5 | List a name that has a heat of at least 3 and a Lane of exactly 5. | CREATE TABLE table_name_54 (name VARCHAR, heat VARCHAR, lane VARCHAR) |
SELECT tie_no FROM table_name_89 WHERE score = "marlow united won 4–2 on penalties" | What is Tie No, when Score is "Marlow United won 4–2 on penalties"? | CREATE TABLE table_name_89 (tie_no VARCHAR, score VARCHAR) |
SELECT surface FROM table_name_79 WHERE date = "june 26, 2006" | On June 26, 2006 the game was played on what surface? | CREATE TABLE table_name_79 (surface VARCHAR, date VARCHAR) |
SELECT MIN(goals) FROM table_name_75 WHERE venue = "tehran, iran" AND date = "1948-10-28" | In 1948-10-28, what were the lowest Goals in Tehran, Iran? | CREATE TABLE table_name_75 (goals INTEGER, venue VARCHAR, date VARCHAR) |
SELECT MIN(_number) FROM table_22904707_1 WHERE no = 52 | What number in the season was episode 52 in the series? | CREATE TABLE table_22904707_1 (_number INTEGER, no VARCHAR) |
SELECT SUM(year) FROM table_name_8 WHERE category = "best supporting actress" | What year was there a category of Best Supporting Actress? | CREATE TABLE table_name_8 (year INTEGER, category VARCHAR) |
SELECT right_ascension___j2000__ FROM table_name_78 WHERE constellation = "sagittarius" AND ngc_number > 6522 AND object_type = "open cluster" AND declination___j2000__ = "°22′" | Name the right ascension for sagittarius and NGC number larger than 6522 for open cluster and declination of °22′ | CREATE TABLE table_name_78 (right_ascension___j2000__ VARCHAR, declination___j2000__ VARCHAR, object_type VARCHAR, constellation VARCHAR, ngc_number VARCHAR) |
SELECT status FROM table_name_77 WHERE against = 12 | What Status has Against of 12? | CREATE TABLE table_name_77 (status VARCHAR, against VARCHAR) |
SELECT population FROM table_name_15 WHERE gdp_per_capita__us$_ = "15,054" | What is the total population of the country that has a GDP per capita (US$) of 15,054? | CREATE TABLE table_name_15 (population VARCHAR, gdp_per_capita__us$_ VARCHAR) |
SELECT drobo__2nd_ FROM table_name_1 WHERE DROBO_S(2 AS nd) = 5 | Which Drobo (2nd) has a Drobo S (2nd) of 5? | CREATE TABLE table_name_1 (drobo__2nd_ VARCHAR) |
SELECT change__2009_to_2010_ FROM table_14752049_3 WHERE international_tourist_arrivals__2011_ = "9.4 million" | Name the change 2009 to 2010 where international tourist arrivals is 9.4 million | CREATE TABLE table_14752049_3 (change__2009_to_2010_ VARCHAR, international_tourist_arrivals__2011_ VARCHAR) |
SELECT skipper FROM table_name_92 WHERE yacht_name = "barclays adventurer" | Which skipper has barclays adventurer as the name of the yacht? | CREATE TABLE table_name_92 (skipper VARCHAR, yacht_name VARCHAR) |
SELECT score FROM table_name_25 WHERE to_par = 12 AND country = "jersey" | What score has a to par of 12 and is from Jersey? | CREATE TABLE table_name_25 (score VARCHAR, to_par VARCHAR, country VARCHAR) |
SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = "Heilo" AND T3.title = "Le Pop" | What instrument did the musician with last name "Heilo" use in the song "Le Pop"? | CREATE TABLE Songs (SongId VARCHAR, songid VARCHAR, title VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR); CREATE TABLE Band (id VARCHAR, lastname VARCHAR); CREATE TABLE Instruments (instrument VARCHAR, songid VARCHAR, bandmateid VARCHAR) |
SELECT score FROM table_name_76 WHERE date = "june 12" | What was the score on June 12? | CREATE TABLE table_name_76 (score VARCHAR, date VARCHAR) |
SELECT position FROM table_name_92 WHERE college = "western michigan" | What is the position of the player from the college of western michigan? | CREATE TABLE table_name_92 (position VARCHAR, college VARCHAR) |
SELECT MAX(year) FROM table_name_3 WHERE director = "christophe barratier" | Director of christophe barratier had what highest year? | CREATE TABLE table_name_3 (year INTEGER, director VARCHAR) |
SELECT name FROM table_name_1 WHERE time_retired = "52:56.4653" | Who recorded a time or retired time of 52:56.4653? | CREATE TABLE table_name_1 (name VARCHAR, time_retired VARCHAR) |
SELECT engine_type FROM table_name_90 WHERE model = "base 2.4" | What is the engine type with a model with base 2.4? | CREATE TABLE table_name_90 (engine_type VARCHAR, model VARCHAR) |
SELECT competition FROM table_name_70 WHERE notes = "half marathon" | Tell me the competition for half marathon | CREATE TABLE table_name_70 (competition VARCHAR, notes VARCHAR) |
SELECT completed FROM table_name_91 WHERE builder = "chatham" AND name = "hmsmedusa" | When did chatham complete the Hmsmedusa? | CREATE TABLE table_name_91 (completed VARCHAR, builder VARCHAR, name VARCHAR) |
SELECT COUNT(obama_number) FROM table_20350118_1 WHERE obama_percentage = "27.8%" | How many different results were there for the number of votes fro Obama in the county where he got 27.8% of the votes? | CREATE TABLE table_20350118_1 (obama_number VARCHAR, obama_percentage VARCHAR) |
SELECT MAX(gold) FROM table_name_91 WHERE total = 2 AND rank < 2 | What is the largest gold with a Total of 2, and a Rank smaller than 2? | CREATE TABLE table_name_91 (gold INTEGER, total VARCHAR, rank VARCHAR) |
SELECT type FROM table_name_20 WHERE name = "gonzález" | What type is González? | CREATE TABLE table_name_20 (type VARCHAR, name VARCHAR) |
SELECT gauge FROM table_name_9 WHERE builder = "beyer, peacock" | What is the Gauge of Builder Beyer, Peacock? | CREATE TABLE table_name_9 (gauge VARCHAR, builder VARCHAR) |
SELECT opponent FROM table_name_80 WHERE city = "zagreb" | Who was the opposing team during the game in Zagreb? | CREATE TABLE table_name_80 (opponent VARCHAR, city VARCHAR) |
SELECT score FROM table_name_97 WHERE date = "march 18" | What is the score on March 18? | CREATE TABLE table_name_97 (score VARCHAR, date VARCHAR) |
SELECT laps FROM table_2144863_1 WHERE driver = "Ryan Newman" | Name the laps for ryan newman | CREATE TABLE table_2144863_1 (laps VARCHAR, driver VARCHAR) |
SELECT COUNT(*), cName FROM tryout GROUP BY cName ORDER BY COUNT(*) DESC | Find the number of students who participate in the tryout for each college ordered by descending count. | CREATE TABLE tryout (cName VARCHAR) |
SELECT AVG(losses) FROM table_name_10 WHERE wins = 9 AND ties > 0 | what is the average losses when the wins is 9 and ties more than 0? | CREATE TABLE table_name_10 (losses INTEGER, wins VARCHAR, ties VARCHAR) |
SELECT party FROM table_1342149_6 WHERE incumbent = "Clair Engle" | Which party had Clair Engle as an incumbent? | CREATE TABLE table_1342149_6 (party VARCHAR, incumbent VARCHAR) |
SELECT title FROM table_26982362_2 WHERE original_airdate = "April 23, 2010" | What is the title of the episode whose original airdate is April 23, 2010? | CREATE TABLE table_26982362_2 (title VARCHAR, original_airdate VARCHAR) |
SELECT location FROM table_name_80 WHERE circumstances = "combat" AND date = "2009-09-16" | Where was the combat of 2009-09-16? | CREATE TABLE table_name_80 (location VARCHAR, circumstances VARCHAR, date VARCHAR) |
SELECT score FROM table_17340355_10 WHERE date = "April 1" | What was the team's score on April 1? | CREATE TABLE table_17340355_10 (score VARCHAR, date VARCHAR) |
SELECT score FROM table_name_21 WHERE place = "4" | What was the score for place 4? | CREATE TABLE table_name_21 (score VARCHAR, place VARCHAR) |
SELECT MAX(grid) FROM table_name_39 WHERE driver = "mario andretti" AND laps < 54 | what is the grid when the driver is mario andretti and the laps is less than 54? | CREATE TABLE table_name_39 (grid INTEGER, driver VARCHAR, laps VARCHAR) |
SELECT site FROM table_name_26 WHERE game = "game 2" | Name the site for game of game 2 | CREATE TABLE table_name_26 (site VARCHAR, game VARCHAR) |
SELECT MIN(total_votes) FROM table_19763199_3 | What is the least total votes? | CREATE TABLE table_19763199_3 (total_votes INTEGER) |
SELECT COUNT(network) FROM table_2941848_10 WHERE year = 2008 | How many networks are listed when the year is 2008? | CREATE TABLE table_2941848_10 (network VARCHAR, year VARCHAR) |
SELECT COUNT(android) FROM table_14260687_3 WHERE quarter = "2012 Q4" | During the quarter 2012 Q4, how many millions of android phones were shipped? | CREATE TABLE table_14260687_3 (android VARCHAR, quarter VARCHAR) |
SELECT away_team AS score FROM table_name_25 WHERE home_team = "geelong" | What is the away team score when the home team is Geelong? | CREATE TABLE table_name_25 (away_team VARCHAR, home_team VARCHAR) |
SELECT studio_host FROM table_name_57 WHERE channel = "fox sports net west" AND play_by_play = "chick hearn" | Who is the studio host for the game broadcasted by Fox Sports Net west and has Chick Hearn as the play by play commentator ? | CREATE TABLE table_name_57 (studio_host VARCHAR, channel VARCHAR, play_by_play VARCHAR) |
SELECT MIN(wins) FROM table_2012187_3 WHERE position = "4th" | How many wins in the 4th position? | CREATE TABLE table_2012187_3 (wins INTEGER, position VARCHAR) |
SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id HAVING COUNT(*) > 1 | Show the names of the buildings that have more than one company offices. | CREATE TABLE buildings (name VARCHAR, id VARCHAR); CREATE TABLE Companies (id VARCHAR); CREATE TABLE Office_locations (building_id VARCHAR, company_id VARCHAR) |
SELECT republican FROM table_17503169_1 WHERE incumbent = "Thelma Drake" | Who was the republican candidate in the race with incumbent thelma drake? | CREATE TABLE table_17503169_1 (republican VARCHAR, incumbent VARCHAR) |
SELECT venue FROM table_name_68 WHERE score = "56-4" | What is the Venue, when the Score is 56-4? | CREATE TABLE table_name_68 (venue VARCHAR, score VARCHAR) |
SELECT MIN(weight) FROM table_name_28 WHERE height = 196 AND date_of_birth = "24.07.1977" | What is the lowest Weight when the height is 196, and the date of birth is 24.07.1977? | CREATE TABLE table_name_28 (weight INTEGER, height VARCHAR, date_of_birth VARCHAR) |
SELECT MAX(floors) FROM table_name_97 WHERE metres > 220 | What is the highest floor for the building measuring 220 meters? | CREATE TABLE table_name_97 (floors INTEGER, metres INTEGER) |
SELECT T1.Product_Name FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name HAVING COUNT(*) >= 2 ORDER BY T1.Product_Name | Show the names of products that are in at least two events in ascending alphabetical order of product name. | CREATE TABLE Products (Product_Name VARCHAR, Product_ID VARCHAR); CREATE TABLE Products_in_Events (Product_ID VARCHAR) |
SELECT manhattan FROM table_1108394_24 WHERE richmond_[staten_is] = "35_percentage" | What is the manhattan for richmond 35%? | CREATE TABLE table_1108394_24 (manhattan VARCHAR, richmond_ VARCHAR, staten_is VARCHAR) |
SELECT leading_scorer FROM table_name_18 WHERE record = "9–6" | What is the name of the leading scorer when the record was 9–6? | CREATE TABLE table_name_18 (leading_scorer VARCHAR, record VARCHAR) |
SELECT engine_name FROM table_name_42 WHERE max_torque_at_rpm = "n·m ( lbf·ft ) @ 3,800" | What is the engine name that has a maximum torque at rpm of n·m ( lbf·ft ) @ 3,800? | CREATE TABLE table_name_42 (engine_name VARCHAR, max_torque_at_rpm VARCHAR) |
SELECT venue FROM table_name_46 WHERE date = "17/03/1990" | What Venue has a Date of 17/03/1990? | CREATE TABLE table_name_46 (venue VARCHAR, date VARCHAR) |
SELECT MIN(division) FROM table_2357201_1 | What is the lowest numbered division Cleveland played in? | CREATE TABLE table_2357201_1 (division INTEGER) |
SELECT to_par FROM table_name_44 WHERE place = "1" | What is the To par of the Place 1 Player? | CREATE TABLE table_name_44 (to_par VARCHAR, place VARCHAR) |
SELECT run_time FROM table_1429629_1 WHERE viewers__in_millions_ = "8.2" | What are all the run times with 8.2 million viewers? | CREATE TABLE table_1429629_1 (run_time VARCHAR, viewers__in_millions_ VARCHAR) |
SELECT english FROM table_20925393_3 WHERE cardinal_direction = "East" | state the name of day in english where cardinal direction is east | CREATE TABLE table_20925393_3 (english VARCHAR, cardinal_direction VARCHAR) |
SELECT MIN(round) FROM table_name_20 WHERE school = "usc" AND pick > 158 | After pick number 158, what is the next round a USC player was picked? | CREATE TABLE table_name_20 (round INTEGER, school VARCHAR, pick VARCHAR) |
SELECT genre FROM table_name_12 WHERE game = "tony hawk's pro skater 2" | Which Genre has a Game of tony hawk's pro skater 2? | CREATE TABLE table_name_12 (genre VARCHAR, game VARCHAR) |
SELECT january FROM table_name_66 WHERE november = "donna edmondson" | Who is the January playmate with the November playmate Donna Edmondson? | CREATE TABLE table_name_66 (january VARCHAR, november VARCHAR) |
SELECT MAX(played) FROM table_name_57 WHERE goal_difference < -27 | What is the highest number played with a goal difference less than -27? | CREATE TABLE table_name_57 (played INTEGER, goal_difference INTEGER) |
SELECT galician___reintegrationist__ FROM table_26614365_5 WHERE galician___official__ = "Bo día / Bos días" | What is the Galician (reintegrationist) word of the Galician (Official) is bo día / bos días? | CREATE TABLE table_26614365_5 (galician___reintegrationist__ VARCHAR, galician___official__ VARCHAR) |
SELECT d_50 FROM table_name_65 WHERE d_41 = "d 41" | What is the D 50 when the D 41 is d 41? | CREATE TABLE table_name_65 (d_50 VARCHAR, d_41 VARCHAR) |
SELECT MIN(gold) FROM table_name_92 WHERE nation = "greece" | What is the fewest gold medals won by Greece? | CREATE TABLE table_name_92 (gold INTEGER, nation VARCHAR) |
SELECT 1811 FROM table_name_47 WHERE "1801" = "1801" | Name the 1811 for 1801 of 1801 | CREATE TABLE table_name_47 (Id VARCHAR) |
SELECT rev FROM table_1310499_1 WHERE application = "Aston Martin" | What is the rev for all of the Aston Martin applications? | CREATE TABLE table_1310499_1 (rev VARCHAR, application VARCHAR) |
SELECT SUM(bronze) FROM table_name_14 WHERE silver > 0 AND total = 5 | What is the total number of bronze medals when the silver is greater than 0, and the total medals 5? | CREATE TABLE table_name_14 (bronze INTEGER, silver VARCHAR, total VARCHAR) |
SELECT res FROM table_name_43 WHERE time = "5:00" AND record = "14-4" | What is the result when the time was 5:00 and a record of 14-4? | CREATE TABLE table_name_43 (res VARCHAR, time VARCHAR, record VARCHAR) |
SELECT country FROM table_name_20 WHERE to_par = "−2" | Which Country has a To par of −2? Question 2 | CREATE TABLE table_name_20 (country VARCHAR, to_par VARCHAR) |
SELECT team_2 FROM table_name_46 WHERE team_1 = "la nuova piovese (veneto a)" | Tell me the team 2 for team 1 being la nuova piovese (veneto a) | CREATE TABLE table_name_46 (team_2 VARCHAR, team_1 VARCHAR) |
SELECT COUNT(modern_equivalent) FROM table_160510_1 WHERE former_kingdom = "Silla" AND hanja = "尙州" | What is the modern equivalent of the former kingdom "silla" with the hanja 尙州? | CREATE TABLE table_160510_1 (modern_equivalent VARCHAR, former_kingdom VARCHAR, hanja VARCHAR) |
SELECT tied FROM table_name_50 WHERE played = "15" | What was tied at 15 played? | CREATE TABLE table_name_50 (tied VARCHAR, played VARCHAR) |
SELECT date FROM table_name_53 WHERE venue = "a" AND attendance = "4,365" | When Venue of A has Attendance of 4,365? | CREATE TABLE table_name_53 (date VARCHAR, venue VARCHAR, attendance VARCHAR) |
SELECT location FROM table_name_15 WHERE driver = "george heath" | Which location was won by George Heath? | CREATE TABLE table_name_15 (location VARCHAR, driver VARCHAR) |
SELECT COUNT(country) FROM table_2305948_1 WHERE name = "The Rock" | What countries does the Rock come from? | CREATE TABLE table_2305948_1 (country VARCHAR, name VARCHAR) |
SELECT height_in_ft FROM table_11734041_16 WHERE years_for_rockets = "1973-78" | What is the height in ft for the rockets from 1973-78? | CREATE TABLE table_11734041_16 (height_in_ft VARCHAR, years_for_rockets VARCHAR) |
SELECT country FROM table_name_17 WHERE score = 72 - 66 - 72 = 210 | What Country had a Player with a Score of 72-66-72=210? | CREATE TABLE table_name_17 (country VARCHAR, score VARCHAR) |
SELECT pci_express FROM table_name_80 WHERE memory = "ddr2" AND model = "nforce 520" | What is the PCI-express with a ddr2 memory and a nforce 520 model? | CREATE TABLE table_name_80 (pci_express VARCHAR, memory VARCHAR, model VARCHAR) |
SELECT second_party FROM table_name_95 WHERE first_party = "conservative" AND second_member = "john cotes" | What is the second party that has a conservative first party and second member John Cotes? | CREATE TABLE table_name_95 (second_party VARCHAR, first_party VARCHAR, second_member 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 name__german_ FROM table_name_85 WHERE ideology = "liberalism" | WHAT IS THE GERMAN NAME OF LIBERALISM? | CREATE TABLE table_name_85 (name__german_ VARCHAR, ideology VARCHAR) |
SELECT away_team FROM table_name_33 WHERE date = "23 january 1982" AND home_team = "sunderland" | Who did home team sunderland play on 23 january 1982? | CREATE TABLE table_name_33 (away_team VARCHAR, date VARCHAR, home_team VARCHAR) |
SELECT clock_multiplier FROM table_name_69 WHERE clock_speed = "1.6 ghz" AND model_number = "c7-m 764" | Which Clock Multiplier has a Clock Speed of 1.6 ghz, and a Model Number of c7-m 764? | CREATE TABLE table_name_69 (clock_multiplier VARCHAR, clock_speed VARCHAR, model_number VARCHAR) |
SELECT score FROM table_name_55 WHERE date = "march 27" | What is the score March 27? | CREATE TABLE table_name_55 (score VARCHAR, date VARCHAR) |
SELECT pada_1 FROM table_name_8 WHERE pada_2 = "सा sa" | What kind of Pada 1 has a Pada 2 of सा sa? | CREATE TABLE table_name_8 (pada_1 VARCHAR, pada_2 VARCHAR) |
SELECT COUNT(rnd) FROM table_1140085_2 WHERE pole_position = "Niki Lauda" AND race = "Monaco Grand Prix" | how many times is the pole position niki lauda and the race is monaco grand prix? | CREATE TABLE table_1140085_2 (rnd VARCHAR, pole_position VARCHAR, race VARCHAR) |
SELECT ends FROM table_name_34 WHERE name = "donaldson" | When does Donaldson's move end? | CREATE TABLE table_name_34 (ends VARCHAR, name VARCHAR) |
SELECT SUM(attendance) FROM table_name_61 WHERE visitor = "chicago" | What was the total Attendance for Games while Chicago was the visiting Team? | CREATE TABLE table_name_61 (attendance INTEGER, visitor VARCHAR) |
SELECT league_apps FROM table_name_35 WHERE league_goals < 2 AND position = "df" AND fa_cup_apps = "5" | Tell me the league apps with league goals less than 2 and position of df and FA cup apps of 5 | CREATE TABLE table_name_35 (league_apps VARCHAR, fa_cup_apps VARCHAR, league_goals VARCHAR, position VARCHAR) |
SELECT COUNT(no_of_clubs) FROM table_name_10 WHERE team = "shenyang ginde" AND games > 182 | What is the number of clubs for Shenyang Ginde when there were more than 182 games? | CREATE TABLE table_name_10 (no_of_clubs VARCHAR, team VARCHAR, games VARCHAR) |
SELECT MAX(earnings___) AS $__ FROM table_name_72 WHERE player = "corey pavin" AND rank > 4 | Player of corey pavin, and a Rank larger than 4 involved which highest earnings ($)? | CREATE TABLE table_name_72 (earnings___ INTEGER, player VARCHAR, rank VARCHAR) |
SELECT exaltation FROM table_name_10 WHERE domicile = "saturn" AND sign = "capricorn" | Which exaltation has a domicile of Saturn and Capricorn as a sign? | CREATE TABLE table_name_10 (exaltation VARCHAR, domicile VARCHAR, sign VARCHAR) |
SELECT player FROM table_name_33 WHERE place = "t5" AND score = 73 - 72 - 71 - 75 = 291 | Can you tell me the Player that has the Place of t5, and the Score of 73-72-71-75=291? | CREATE TABLE table_name_33 (player VARCHAR, place VARCHAR, score VARCHAR) |
SELECT judges_residence FROM table_26758262_1 WHERE location_of_court = "Groton" | Where does the judge whose court is in Groton reside? | CREATE TABLE table_26758262_1 (judges_residence VARCHAR, location_of_court VARCHAR) |
SELECT tonnage FROM table_name_75 WHERE built = 2007 | What tonnage was built in 2007? | CREATE TABLE table_name_75 (tonnage VARCHAR, built VARCHAR) |
SELECT result FROM table_name_90 WHERE venue = "melbourne , australia" AND extra = "200 m" | Venue of melbourne , australia, and a Extra of 200 m has what results? | CREATE TABLE table_name_90 (result VARCHAR, venue VARCHAR, extra VARCHAR) |
SELECT title FROM table_name_85 WHERE platform = "xbox" AND year < 2006 | Which title has xbox as the platform with a year prior to 2006? | CREATE TABLE table_name_85 (title VARCHAR, platform VARCHAR, year VARCHAR) |
SELECT player FROM table_name_81 WHERE score = 73 - 65 = 138 | What is the name of the golfer that has the score of 73-65=138? | CREATE TABLE table_name_81 (player VARCHAR, score VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.