question stringlengths 12 244 | context stringlengths 27 489 | answer stringlengths 18 557 |
|---|---|---|
Name the analysts | CREATE TABLE table_22654139_2 (s_analyst VARCHAR) | SELECT s_analyst FROM table_22654139_2 |
List the text of all tweets in the order of date. | CREATE TABLE tweets (text VARCHAR, createdate VARCHAR) | SELECT text FROM tweets ORDER BY createdate |
How many sprints on average had 10 wins and less than 5 features? | CREATE TABLE table_name_85 (sprint INTEGER, wins VARCHAR, feature VARCHAR) | SELECT AVG(sprint) FROM table_name_85 WHERE wins = 10 AND feature < 5 |
What is the total attendance for Candlestick Park? | CREATE TABLE table_name_74 (attendance VARCHAR, game_site VARCHAR) | SELECT COUNT(attendance) FROM table_name_74 WHERE game_site = "candlestick park" |
Find the names of stadiums that the most swimmers have been to. | CREATE TABLE record (event_id VARCHAR); CREATE TABLE stadium (name VARCHAR, id VARCHAR); CREATE TABLE event (stadium_id VARCHAR, id VARCHAR) | SELECT t3.name FROM record AS t1 JOIN event AS t2 ON t1.event_id = t2.id JOIN stadium AS t3 ON t3.id = t2.stadium_id GROUP BY t2.stadium_id ORDER BY COUNT(*) DESC LIMIT 1 |
What is the report for round 3? | CREATE TABLE table_1137696_3 (report VARCHAR, round VARCHAR) | SELECT report FROM table_1137696_3 WHERE round = 3 |
What is the Format of the release with Catalog number RTRADLP491? | CREATE TABLE table_name_15 (format VARCHAR, catalog VARCHAR) | SELECT format FROM table_name_15 WHERE catalog = "rtradlp491" |
For what nation is the gold medals 0, and the bronze medals less than 1? | CREATE TABLE table_name_28 (nation VARCHAR, gold VARCHAR, bronze VARCHAR) | SELECT nation FROM table_name_28 WHERE gold = 0 AND bronze < 1 |
Name the 2nd runner-up for season 7 | CREATE TABLE table_name_59 (season_number VARCHAR) | SELECT 2 AS nd_runner_up FROM table_name_59 WHERE season_number = "season 7" |
How many professors who has a either Ph.D. or MA degree? | CREATE TABLE professor (prof_high_degree VARCHAR) | SELECT COUNT(*) FROM professor WHERE prof_high_degree = 'Ph.D.' OR prof_high_degree = 'MA' |
What is the most used instrument? | CREATE TABLE instruments (instrument VARCHAR) | SELECT instrument FROM instruments GROUP BY instrument ORDER BY COUNT(*) DESC LIMIT 1 |
What round had a record of 8-2? | CREATE TABLE table_name_73 (round VARCHAR, record VARCHAR) | SELECT round FROM table_name_73 WHERE record = "8-2" |
what is the City of license that has a 1,400 watts Power | CREATE TABLE table_name_93 (city_of_license VARCHAR, power VARCHAR) | SELECT city_of_license FROM table_name_93 WHERE power = "1,400 watts" |
What is the lowest value for int. caps? | CREATE TABLE table_29743928_5 (int_caps INTEGER) | SELECT MIN(int_caps) FROM table_29743928_5 |
What is the name of Rank 5? | CREATE TABLE table_name_89 (name VARCHAR, rank VARCHAR) | SELECT name FROM table_name_89 WHERE rank = 5 |
Who is the opponent on week 2? | CREATE TABLE table_name_73 (opponent VARCHAR, week VARCHAR) | SELECT opponent FROM table_name_73 WHERE week = 2 |
Which Team 1 has an aggregate score of 1-1 1? | CREATE TABLE table_name_13 (team_1 VARCHAR, agg VARCHAR) | SELECT team_1 FROM table_name_13 WHERE agg = "1-1 1" |
How many players have a height of 2.07? | CREATE TABLE table_23670057_7 (player VARCHAR, height__m_ VARCHAR) | SELECT COUNT(player) FROM table_23670057_7 WHERE height__m_ = "2.07" |
What team hired Renato Gaúcho? | CREATE TABLE table_29414946_3 (team VARCHAR, replaced_by VARCHAR) | SELECT team FROM table_29414946_3 WHERE replaced_by = "Renato Gaúcho" |
What was the competition in 1978? | CREATE TABLE table_name_71 (competition VARCHAR, year VARCHAR) | SELECT competition FROM table_name_71 WHERE year = 1978 |
What is the origin of the one with a number larger than 161? | CREATE TABLE table_name_66 (origin VARCHAR, number INTEGER) | SELECT origin FROM table_name_66 WHERE number > 161 |
In the country Switzerland, what is the total trade? | CREATE TABLE table_26160007_1 (total_trade VARCHAR, country VARCHAR) | SELECT total_trade FROM table_26160007_1 WHERE country = "Switzerland" |
WHAT IS THE LOWEST ROUND FOR CB POSITION? | CREATE TABLE table_name_56 (round INTEGER, position VARCHAR) | SELECT MIN(round) FROM table_name_56 WHERE position = "cb" |
Which Frequency MHz has an ERP W larger than 4, and a Call sign of w218ap? | CREATE TABLE table_name_92 (frequency_mhz VARCHAR, erp_w VARCHAR, call_sign VARCHAR) | SELECT frequency_mhz FROM table_name_92 WHERE erp_w > 4 AND call_sign = "w218ap" |
What is the 1995 value with a 2005 value bigger than 74, a 2008 value of 84, and a 2000 value less than 80? | CREATE TABLE table_name_35 (Id VARCHAR) | SELECT SUM(1995) FROM table_name_35 WHERE 2005 > 74 AND 2008 = 84 AND 2000 < 80 |
What was the score for the Perth Wildcats as away team? | CREATE TABLE table_name_38 (score VARCHAR, away_team VARCHAR) | SELECT score FROM table_name_38 WHERE away_team = "perth wildcats" |
Who was the winner with the loser being russia-2? | CREATE TABLE table_name_66 (winner VARCHAR, loser VARCHAR) | SELECT winner FROM table_name_66 WHERE loser = "russia-2" |
What country is Curtis Strange from? | CREATE TABLE table_name_54 (country VARCHAR, player VARCHAR) | SELECT country FROM table_name_54 WHERE player = "curtis strange" |
Name the race name for rnd being 11 | CREATE TABLE table_22669375_1 (race_name VARCHAR, rnd VARCHAR) | SELECT race_name FROM table_22669375_1 WHERE rnd = 11 |
What is the Position when the Drawn is less than 2, with a Difference of 2? | CREATE TABLE table_name_65 (position VARCHAR, drawn VARCHAR, difference VARCHAR) | SELECT position FROM table_name_65 WHERE drawn < "2" AND difference = "2" |
How many weeks are associated with Season 3 – spring 2008? | CREATE TABLE table_name_74 (_number_of_weeks VARCHAR, season VARCHAR) | SELECT COUNT(_number_of_weeks) FROM table_name_74 WHERE season = "3 – spring 2008" |
What year did the university of Pittsburgh school join the hockey league? | CREATE TABLE table_16384648_2 (joined_tschl VARCHAR, institution VARCHAR) | SELECT joined_tschl FROM table_16384648_2 WHERE institution = "University of Pittsburgh" |
Which date is in stereo lp format? | CREATE TABLE table_name_97 (date VARCHAR, format VARCHAR) | SELECT date FROM table_name_97 WHERE format = "stereo lp" |
What is Country, when Player is "Jimmy Demaret"? | CREATE TABLE table_name_10 (country VARCHAR, player VARCHAR) | SELECT country FROM table_name_10 WHERE player = "jimmy demaret" |
Which Prominence (m) has a Peak of nakanai mountains high point, and an Elevation (m) smaller than 2,316? | CREATE TABLE table_name_37 (prominence__m_ INTEGER, peak VARCHAR, elevation__m_ VARCHAR) | SELECT AVG(prominence__m_) FROM table_name_37 WHERE peak = "nakanai mountains high point" AND elevation__m_ < 2 OFFSET 316 |
What is the score when the team is @ dallas? | CREATE TABLE table_27755784_10 (score VARCHAR, team VARCHAR) | SELECT score FROM table_27755784_10 WHERE team = "@ Dallas" |
What numer pick in the draft for jerry marion | CREATE TABLE table_13758243_1 (overall INTEGER, player VARCHAR) | SELECT MAX(overall) FROM table_13758243_1 WHERE player = "Jerry Marion" |
What was the record on July 28? | CREATE TABLE table_name_87 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_87 WHERE date = "july 28" |
What year had an attendance of 90,000? | CREATE TABLE table_name_38 (year VARCHAR, attendance VARCHAR) | SELECT year FROM table_name_38 WHERE attendance = "90,000" |
How many films are there in each category? List the genre name, genre id and the count. | CREATE TABLE film_category (category_id VARCHAR); CREATE TABLE category (name VARCHAR, category_id VARCHAR) | SELECT T2.name, T1.category_id, COUNT(*) FROM film_category AS T1 JOIN category AS T2 ON T1.category_id = T2.category_id GROUP BY T1.category_id |
How many resorts have 118 runs? | CREATE TABLE table_25762852_1 (name VARCHAR, runs VARCHAR) | SELECT COUNT(name) FROM table_25762852_1 WHERE runs = "118" |
What was the fineness prior to 2007? | CREATE TABLE table_name_28 (fineness VARCHAR, year INTEGER) | SELECT fineness FROM table_name_28 WHERE year < 2007 |
What is the temperature rating of the intermediate temperature classification? | CREATE TABLE table_name_1 (temperature_rating VARCHAR, temperature_classification VARCHAR) | SELECT temperature_rating FROM table_name_1 WHERE temperature_classification = "intermediate" |
What is the record number of the game where Guardado lost? | CREATE TABLE table_name_9 (record VARCHAR, loss VARCHAR) | SELECT record FROM table_name_9 WHERE loss = "guardado" |
When did Oliver Jarvis have pole position? | CREATE TABLE table_21321935_2 (date VARCHAR, pole_position VARCHAR) | SELECT date FROM table_21321935_2 WHERE pole_position = "Oliver Jarvis" |
What is the transfer fee when summer is the transfer window, the type is transfer and the country is Hun? | CREATE TABLE table_name_9 (transfer_fee VARCHAR, country VARCHAR, transfer_window VARCHAR, type VARCHAR) | SELECT transfer_fee FROM table_name_9 WHERE transfer_window = "summer" AND type = "transfer" AND country = "hun" |
What is Tournament, when Opponent is "Lu Jiaxiang"? | CREATE TABLE table_name_98 (tournament VARCHAR, opponent VARCHAR) | SELECT tournament FROM table_name_98 WHERE opponent = "lu jiaxiang" |
Which Payment has a Type of text, and a Release date of 26 september, 2003? | CREATE TABLE table_name_12 (payment VARCHAR, type VARCHAR, release_date VARCHAR) | SELECT payment FROM table_name_12 WHERE type = "text" AND release_date = "26 september, 2003" |
WHich Match has a Venue of h on 22 september 1888 with Attendances smaller than 4,000? | CREATE TABLE table_name_99 (match INTEGER, attendance VARCHAR, venue VARCHAR, date VARCHAR) | SELECT MAX(match) FROM table_name_99 WHERE venue = "h" AND date = "22 september 1888" AND attendance < 4 OFFSET 000 |
What is Position, when Round is less than 6, and when Nationality is "Denmark"? | CREATE TABLE table_name_22 (position VARCHAR, round VARCHAR, nationality VARCHAR) | SELECT position FROM table_name_22 WHERE round < 6 AND nationality = "denmark" |
How many votes did kennedy win when coakley won 66.2% | CREATE TABLE table_24115349_4 (kennedy_votes INTEGER, coakley__percentage VARCHAR) | SELECT MIN(kennedy_votes) FROM table_24115349_4 WHERE coakley__percentage = "66.2%" |
Who has a Score of 68-71-70=208? | CREATE TABLE table_name_60 (player VARCHAR, score VARCHAR) | SELECT player FROM table_name_60 WHERE score = 68 - 71 - 70 = 208 |
What is the unemployment rate in those places in Alexander county whose status is transitional? | CREATE TABLE table_22815568_7 (unemployment_rate VARCHAR, status VARCHAR, county VARCHAR) | SELECT unemployment_rate FROM table_22815568_7 WHERE status = "Transitional" AND county = "Alexander" |
What is the score when 36-33 is the record? | CREATE TABLE table_23281862_9 (score VARCHAR, record VARCHAR) | SELECT score FROM table_23281862_9 WHERE record = "36-33" |
When did the Argentine Grand Prix race? | CREATE TABLE table_name_84 (date VARCHAR, race VARCHAR) | SELECT date FROM table_name_84 WHERE race = "argentine grand prix" |
How many total murders happened after 2011? | CREATE TABLE table_name_44 (murder INTEGER, year INTEGER) | SELECT SUM(murder) FROM table_name_44 WHERE year > 2011 |
What is every trigram when direction is Northwest? | CREATE TABLE table_23406517_2 (trigram VARCHAR, direction VARCHAR) | SELECT trigram FROM table_23406517_2 WHERE direction = "Northwest" |
what was the score in the loss to tapani (0-1)? | CREATE TABLE table_name_39 (score VARCHAR, loss VARCHAR) | SELECT score FROM table_name_39 WHERE loss = "tapani (0-1)" |
What is the Date of Week 9? | CREATE TABLE table_name_6 (date VARCHAR, week VARCHAR) | SELECT date FROM table_name_6 WHERE week = 9 |
On the date of April 22, which city was a visitor? | CREATE TABLE table_name_5 (visitor VARCHAR, date VARCHAR) | SELECT visitor FROM table_name_5 WHERE date = "april 22" |
Who was the winner in the competition in which Lyn took third place and Lillestrøm was the runner-up? | CREATE TABLE table_name_44 (winners VARCHAR, runners_up VARCHAR, third VARCHAR) | SELECT winners FROM table_name_44 WHERE runners_up = "lillestrøm" AND third = "lyn" |
Name the max top 5 for avg finish being 27.6 | CREATE TABLE table_2181798_1 (top_5 INTEGER, avg_finish VARCHAR) | SELECT MAX(top_5) FROM table_2181798_1 WHERE avg_finish = "27.6" |
What is the lowest MPG-US combined for a green rating of E, mpg in the UK- combined of under 42.2, manufacturer of Volkswagen, and an M6 transmission? | CREATE TABLE table_name_90 (mpg_us_combined INTEGER, transmission VARCHAR, manufacturer VARCHAR, green_rating VARCHAR, mpg_uk_combined VARCHAR) | SELECT MIN(mpg_us_combined) FROM table_name_90 WHERE green_rating = "e" AND mpg_uk_combined < 42.2 AND manufacturer = "volkswagen" AND transmission = "m6" |
What Game site has an Opponent of Miami Dolphins? | CREATE TABLE table_name_90 (game_site VARCHAR, opponent VARCHAR) | SELECT game_site FROM table_name_90 WHERE opponent = "miami dolphins" |
What's the ACL qualification when the minor ladder position is 5th and the finals qualifications were DNQ? | CREATE TABLE table_name_11 (acl_qualification VARCHAR, finals_qualification VARCHAR, minor_ladder_position VARCHAR) | SELECT acl_qualification FROM table_name_11 WHERE finals_qualification = "dnq" AND minor_ladder_position = "5th" |
Which airport is in Xinjiang province in the city Kuqa? | CREATE TABLE table_name_45 (airport VARCHAR, province VARCHAR, city VARCHAR) | SELECT airport FROM table_name_45 WHERE province = "xinjiang" AND city = "kuqa" |
Which week 3 had a week 1 of Kristy Dwyer? | CREATE TABLE table_name_30 (week_3 VARCHAR, week_1 VARCHAR) | SELECT week_3 FROM table_name_30 WHERE week_1 = "kristy dwyer" |
Find the name, account type, and account balance of the customer who has the highest credit score. | CREATE TABLE customer (cust_name VARCHAR, acc_type VARCHAR, acc_bal VARCHAR, credit_score VARCHAR) | SELECT cust_name, acc_type, acc_bal FROM customer ORDER BY credit_score DESC LIMIT 1 |
What is the Coach with a Big Ten that is 3rd (278)? | CREATE TABLE table_name_92 (coach VARCHAR, big_ten VARCHAR) | SELECT coach FROM table_name_92 WHERE big_ten = "3rd (278)" |
How many are directed by episodes with the production code 3T5009? | CREATE TABLE table_26561509_1 (directed_by VARCHAR, production_code VARCHAR) | SELECT COUNT(directed_by) FROM table_26561509_1 WHERE production_code = "3T5009" |
Name the brand for pick number 15 | CREATE TABLE table_26397277_3 (brand__to_ VARCHAR, pick__number VARCHAR) | SELECT brand__to_ FROM table_26397277_3 WHERE pick__number = 15 |
What is 1st Member, when Summoned is "14 July 1302"? | CREATE TABLE table_name_82 (summoned VARCHAR) | SELECT 1 AS st_member FROM table_name_82 WHERE summoned = "14 july 1302" |
Sum of m. night shyamalan ranks? | CREATE TABLE table_name_41 (rank INTEGER, director_s_ VARCHAR) | SELECT SUM(rank) FROM table_name_41 WHERE director_s_ = "m. night shyamalan" |
What is every value for % 20-39 if % 60-74 is 10,46%? | CREATE TABLE table_23606500_4 (_percentage_20_39 VARCHAR, _percentage_60_74 VARCHAR) | SELECT _percentage_20_39 FROM table_23606500_4 WHERE _percentage_60_74 = "10,46%" |
How many companies are headquartered in the US? | CREATE TABLE company (Headquarters VARCHAR) | SELECT COUNT(*) FROM company WHERE Headquarters = 'USA' |
What is the administrative division that has an area of 30 km^2? | CREATE TABLE table_171666_1 (administrative_division VARCHAR, area__km²_ VARCHAR) | SELECT administrative_division FROM table_171666_1 WHERE area__km²_ = 30 |
What is the total population and maximum GNP in Asia? | CREATE TABLE country (Population INTEGER, GNP INTEGER, Continent VARCHAR) | SELECT SUM(Population), MAX(GNP) FROM country WHERE Continent = "Asia" |
What is the name of the incumbent for Glenn Nye? | CREATE TABLE table_name_62 (incumbent VARCHAR, democratic VARCHAR) | SELECT incumbent FROM table_name_62 WHERE democratic = "glenn nye" |
What was the penalty for the gymnast with average above 9.662 and total is more than 9.706? | CREATE TABLE table_name_13 (penalty VARCHAR, average VARCHAR, total VARCHAR) | SELECT penalty FROM table_name_13 WHERE average > 9.662 AND total > 9.706 |
What to par has 66 as the score? | CREATE TABLE table_name_56 (to_par VARCHAR, score VARCHAR) | SELECT to_par FROM table_name_56 WHERE score = 66 |
What is the lowest overall draft pick number for terry daniels who was picked in round 10? | CREATE TABLE table_name_17 (overall INTEGER, round VARCHAR, name VARCHAR) | SELECT MIN(overall) FROM table_name_17 WHERE round = 10 AND name = "terry daniels" |
What points larger than 1950 has a maserati straight-6 engine? | CREATE TABLE table_name_68 (points VARCHAR, year VARCHAR, engine VARCHAR) | SELECT points FROM table_name_68 WHERE year > 1950 AND engine = "maserati straight-6" |
What Loss occured on the Date of June 12? | CREATE TABLE table_name_39 (loss VARCHAR, date VARCHAR) | SELECT loss FROM table_name_39 WHERE date = "june 12" |
What is 2001, when 1999 is "2R", and when 1992 is "3R"? | CREATE TABLE table_name_12 (Id VARCHAR) | SELECT 2001 FROM table_name_12 WHERE 1999 = "2r" AND 1992 = "3r" |
What is the record on December 4? | CREATE TABLE table_name_55 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_55 WHERE date = "december 4" |
What is the average score for the player who is T5 in the United States? | CREATE TABLE table_name_60 (score INTEGER, place VARCHAR, country VARCHAR) | SELECT AVG(score) FROM table_name_60 WHERE place = "t5" AND country = "united states" |
What is the position played by the man born on 1976-09-20? | CREATE TABLE table_name_52 (pos VARCHAR, date_of_birth VARCHAR) | SELECT pos FROM table_name_52 WHERE date_of_birth = "1976-09-20" |
On which datebis arco arena 17361 the location attendance? | CREATE TABLE table_23285805_8 (date VARCHAR, location_attendance VARCHAR) | SELECT date FROM table_23285805_8 WHERE location_attendance = "Arco Arena 17361" |
Name the total number of bids of the sun belt conference | CREATE TABLE table_10722506_6 (_number_of_bids VARCHAR, conference VARCHAR) | SELECT COUNT(_number_of_bids) FROM table_10722506_6 WHERE conference = "Sun Belt" |
What date was the game when 40,000 attended? | CREATE TABLE table_name_65 (date VARCHAR, attendance VARCHAR) | SELECT date FROM table_name_65 WHERE attendance = "40,000" |
Which Date has a Pole Position of michael devaney? | CREATE TABLE table_name_94 (date VARCHAR, pole_position VARCHAR) | SELECT date FROM table_name_94 WHERE pole_position = "michael devaney" |
Which average Round has a Pick # larger than 20, and a College of virginia, and an Overall larger than 127? | CREATE TABLE table_name_43 (round INTEGER, overall VARCHAR, pick__number VARCHAR, college VARCHAR) | SELECT AVG(round) FROM table_name_43 WHERE pick__number > 20 AND college = "virginia" AND overall > 127 |
What is the highest number of losses for the Cobden club when there is less than 1 win? | CREATE TABLE table_name_92 (losses INTEGER, club VARCHAR, wins VARCHAR) | SELECT MAX(losses) FROM table_name_92 WHERE club = "cobden" AND wins < 1 |
Who was the team 2 that played against team 1 Atlético la Sabana? | CREATE TABLE table_27603010_14 (team__number2 VARCHAR, team__number1 VARCHAR) | SELECT team__number2 FROM table_27603010_14 WHERE team__number1 = "Atlético La Sabana" |
What years in Orlando have the United States as the nationality, with concord hs as the school/club team? | CREATE TABLE table_name_64 (years_in_orlando VARCHAR, nationality VARCHAR, school_club_team VARCHAR) | SELECT years_in_orlando FROM table_name_64 WHERE nationality = "united states" AND school_club_team = "concord hs" |
Who were the scorers in the semi-final round where oldham athletic were the opponents? | CREATE TABLE table_name_94 (scorers VARCHAR, opponents VARCHAR, round VARCHAR) | SELECT scorers FROM table_name_94 WHERE opponents = "oldham athletic" AND round = "semi-final" |
Show the names of phones that are on market with number of shops greater than 50. | CREATE TABLE market (Market_ID VARCHAR, Num_of_shops INTEGER); CREATE TABLE phone (Name VARCHAR, Phone_ID VARCHAR); CREATE TABLE phone_market (Market_ID VARCHAR, Phone_ID VARCHAR) | SELECT T3.Name FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID WHERE T2.Num_of_shops > 50 |
Please list the name and id of all artists that have at least 3 albums in alphabetical order. | CREATE TABLE ARTIST (Name VARCHAR, ArtistID VARCHAR); CREATE TABLE ALBUM (ArtistId VARCHAR) | SELECT T2.Name, T1.ArtistId FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistID GROUP BY T1.ArtistId HAVING COUNT(*) >= 3 ORDER BY T2.Name |
Who is the play by play commentator for the game that has Alan Massengale as Studio Host? | CREATE TABLE table_name_17 (play_by_play VARCHAR, studio_host VARCHAR) | SELECT play_by_play FROM table_name_17 WHERE studio_host = "alan massengale" |
What is the country with a t7 place and a 69-68-72=209 score? | CREATE TABLE table_name_70 (country VARCHAR, place VARCHAR, score VARCHAR) | SELECT country FROM table_name_70 WHERE place = "t7" AND score = 69 - 68 - 72 = 209 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.