answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
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 AVG(num_of_staff), AVG(score) FROM shop | What are the average score and average staff number of all shops? | CREATE TABLE shop (num_of_staff INTEGER, score INTEGER) |
SELECT MAX(points) FROM table_name_9 WHERE engine = "alta straight-4" AND entrant = "connaught engineering" AND year < 1957 | What is the greatest point of an Entrant of connaught engineering alta straight-4 engine before 1957 | CREATE TABLE table_name_9 (points INTEGER, year VARCHAR, engine VARCHAR, entrant VARCHAR) |
SELECT time_retired FROM table_name_81 WHERE grid = 10 | What is the time with 10 grids? | CREATE TABLE table_name_81 (time_retired VARCHAR, grid VARCHAR) |
SELECT game_site FROM table_name_36 WHERE result = "l 7-38" | Name the game site with result of l 7-38 | CREATE TABLE table_name_36 (game_site VARCHAR, result VARCHAR) |
SELECT rounds FROM table_name_46 WHERE driver = "shirley van der lof" | How many rounds did shirley van der lof go? | CREATE TABLE table_name_46 (rounds VARCHAR, driver VARCHAR) |
SELECT name FROM table_name_54 WHERE number = "50" | What name has 50 as the number? | CREATE TABLE table_name_54 (name VARCHAR, number VARCHAR) |
SELECT entrant FROM table_name_82 WHERE engine = "cosworth v8" AND year = 1970 | In 1970, what entrant had a cosworth v8 engine? | CREATE TABLE table_name_82 (entrant VARCHAR, engine VARCHAR, year VARCHAR) |
SELECT position_in_table FROM table_name_11 WHERE team = "hartlepool united" | what is the position in table when the team is hartlepool united? | CREATE TABLE table_name_11 (position_in_table VARCHAR, team VARCHAR) |
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 record FROM table_name_23 WHERE date = "june 24" | What is the Record of the game on June 24? | CREATE TABLE table_name_23 (record VARCHAR, date VARCHAR) |
SELECT tujunga FROM table_name_85 WHERE la_crescenta__montrose = "66%" | When La Crescenta-Montrose has 66%, what is Tujunga? | CREATE TABLE table_name_85 (tujunga VARCHAR, la_crescenta__montrose VARCHAR) |
SELECT first_class_team FROM table_11950720_4 WHERE date_of_birth = "20 November 1969" | Where is the first class team of date of birth 20 november 1969? | CREATE TABLE table_11950720_4 (first_class_team VARCHAR, date_of_birth VARCHAR) |
SELECT jockey FROM table_name_76 WHERE group = "g3" | Which jockey had a group of G3? | CREATE TABLE table_name_76 (jockey VARCHAR, group VARCHAR) |
SELECT COUNT(high_points) FROM table_22654073_7 WHERE high_rebounds = "Mo Williams , LeBron James , J.J. Hickson (6)" | Name the high points for mo williams , lebron james , j.j. hickson (6) | CREATE TABLE table_22654073_7 (high_points VARCHAR, high_rebounds VARCHAR) |
SELECT record FROM table_23285761_7 WHERE date = "January 5" | What was the record of the game played on January 5? | CREATE TABLE table_23285761_7 (record VARCHAR, date VARCHAR) |
SELECT english_title FROM table_name_96 WHERE romanization = "lee jae-su-eui nan" | What English title for the Romanization of lee jae-su-eui nan? | CREATE TABLE table_name_96 (english_title VARCHAR, romanization VARCHAR) |
SELECT tyre FROM table_name_27 WHERE race = "german grand prix" | What was the Tyre for the German Grand Prix? | CREATE TABLE table_name_27 (tyre VARCHAR, race VARCHAR) |
SELECT notes FROM table_name_29 WHERE country = "spain" | What are the notes for the athlete from Spain? | CREATE TABLE table_name_29 (notes VARCHAR, country VARCHAR) |
SELECT tournament FROM table_name_83 WHERE date = "nov 5" AND location = "mississippi" | What tournament located is mississippi was nov 5 | CREATE TABLE table_name_83 (tournament VARCHAR, date VARCHAR, location VARCHAR) |
SELECT years FROM table_name_13 WHERE decile < 8 AND area = "southbrook" | What years had the decile smaller than 8 in the area of southbrook? | CREATE TABLE table_name_13 (years VARCHAR, decile VARCHAR, area VARCHAR) |
SELECT visa_3 FROM table_name_83 WHERE visa_1 = "gui finkler" | Which Visa 3 has gui finkler as Visa 1? | CREATE TABLE table_name_83 (visa_3 VARCHAR, visa_1 VARCHAR) |
SELECT MAX(frequency) FROM table_name_40 WHERE status = "owned by multicultural broadcasting" AND format = "vietnamese" | What is the largest frequency owned by multicultural broadcasting with a Format of vietnamese? | CREATE TABLE table_name_40 (frequency INTEGER, status VARCHAR, format VARCHAR) |
SELECT SUM(year) FROM table_name_17 WHERE film = "the adventures of tintin" | Which year did The Adventures of Tintin come out? | CREATE TABLE table_name_17 (year INTEGER, film VARCHAR) |
SELECT date FROM table_name_75 WHERE site = "williams-brice stadium • columbia, sc" | What date was the game at Williams-Brice stadium • Columbia, SC? | CREATE TABLE table_name_75 (date VARCHAR, site VARCHAR) |
SELECT date FROM table_name_30 WHERE tournament = "orange" | When was the tournament at Orange? | CREATE TABLE table_name_30 (date VARCHAR, tournament VARCHAR) |
SELECT total_poll___percentage_ FROM table_20683381_3 WHERE against___percentage_ = "13,895 (27.3)" | When 13,895 (27.3) is the percentage against what is the toll poll percentage? | CREATE TABLE table_20683381_3 (total_poll___percentage_ VARCHAR, against___percentage_ VARCHAR) |
SELECT county FROM table_name_59 WHERE built = "1934" | Which county built a bridge in 1934? | CREATE TABLE table_name_59 (county VARCHAR, built VARCHAR) |
SELECT MAX(first_season_in_the_serie_a) FROM table_2454589_1 WHERE stadium = "7 de Octubre" | Name the most for first season in the serie a for 7 de octubre | CREATE TABLE table_2454589_1 (first_season_in_the_serie_a INTEGER, stadium VARCHAR) |
SELECT first_leg FROM table_name_13 WHERE opposition = "hibernian" | What was the first leg against Hibernian? | CREATE TABLE table_name_13 (first_leg VARCHAR, opposition VARCHAR) |
SELECT tie_no FROM table_24887326_6 WHERE home_team = "Orient" | What tie has Orient as the home team? | CREATE TABLE table_24887326_6 (tie_no VARCHAR, home_team VARCHAR) |
SELECT candidates FROM table_1342370_12 WHERE first_elected = 1922 | Who were the candidates in the 1922 entry? | CREATE TABLE table_1342370_12 (candidates VARCHAR, first_elected VARCHAR) |
SELECT COUNT(attendance) FROM table_name_29 WHERE opponent = "new orleans saints" | What was the Attendance in the game against the New Orleans Saints? | CREATE TABLE table_name_29 (attendance VARCHAR, opponent VARCHAR) |
SELECT COUNT(title) FROM table_12030612_9 WHERE written_by = "Adam I. Lapidus" | Name the number of titles written by adam i. lapidus | CREATE TABLE table_12030612_9 (title VARCHAR, written_by VARCHAR) |
SELECT nationality FROM table_name_13 WHERE 445 = "o" AND 455 = "xo" | What national has 4.45 for o and 4.55 for xo? | CREATE TABLE table_name_13 (nationality VARCHAR) |
SELECT event FROM table_name_73 WHERE games = "2000 sydney" AND name = "gete wami category:articles with hcards" | Which event in the 2000 Sydney games was in the category gete wami category:articles with hcards? | CREATE TABLE table_name_73 (event VARCHAR, games VARCHAR, name VARCHAR) |
SELECT COUNT(points_1) FROM table_name_62 WHERE position = 7 AND drawn > 6 | What is the total number of Points 1, when Position is "7", and when Drawn is greater than 6? | CREATE TABLE table_name_62 (points_1 VARCHAR, position VARCHAR, drawn VARCHAR) |
SELECT MIN(rank) FROM table_name_28 WHERE name = "jens kruppa" AND lane > 2 | What is the lowest rank of Jens Kruppa in a lane larger than 2? | CREATE TABLE table_name_28 (rank INTEGER, name VARCHAR, lane VARCHAR) |
SELECT 2 AS _car_sets FROM table_19255192_2 WHERE total_vehicles = 622 | Name the 2 car sets for 622 | CREATE TABLE table_19255192_2 (total_vehicles VARCHAR) |
SELECT record FROM table_24561550_1 WHERE wildcats_points = 48 | List the record from the game where Wildcats had 48 points. | CREATE TABLE table_24561550_1 (record VARCHAR, wildcats_points VARCHAR) |
SELECT AVG(attendance) FROM table_name_58 WHERE visitor = "montreal" AND decision = "price" | What was the average attendance when the decision was price and montreal were the visitors? | CREATE TABLE table_name_58 (attendance INTEGER, visitor VARCHAR, decision VARCHAR) |
SELECT COUNT(crew_chief) FROM table_1266602_1 WHERE team = "FAS Lane Racing" | What's the total number of crew chiefs of the Fas Lane Racing team? | CREATE TABLE table_1266602_1 (crew_chief VARCHAR, team VARCHAR) |
SELECT nationality FROM table_1473672_5 WHERE player = "Bernie Germain" | What is Bernie Germain's nationality? | CREATE TABLE table_1473672_5 (nationality VARCHAR, player VARCHAR) |
SELECT results FROM table_name_93 WHERE first_elected < 1988 | What is Results, when First Elected is less than 1988? | CREATE TABLE table_name_93 (results VARCHAR, first_elected INTEGER) |
SELECT report FROM table_name_8 WHERE circuit = "kyalami" AND race_name = "south african republic trophy" | Name the report for circuit of kyalami for south african republic trophy | CREATE TABLE table_name_8 (report VARCHAR, circuit VARCHAR, race_name VARCHAR) |
SELECT district FROM table_225093_4 WHERE vacator = "John Culpepper (F)" | Which district has John Culpepper (f) as the vacator? | CREATE TABLE table_225093_4 (district VARCHAR, vacator VARCHAR) |
SELECT AVG(against) FROM table_name_88 WHERE drawn > 2 AND difference = "- 17" AND played < 20 | What is the average Against when the drawn is more than 2 and the Difference of- 17, and a Played smaller than 20? | CREATE TABLE table_name_88 (against INTEGER, played VARCHAR, drawn VARCHAR, difference VARCHAR) |
SELECT city, COUNT(*) FROM station GROUP BY city HAVING COUNT(*) >= 15 | List the name and the number of stations for all the cities that have at least 15 stations. | CREATE TABLE station (city VARCHAR) |
SELECT report FROM table_15511178_3 WHERE rd = 8 | Did the round 8 race get reported | CREATE TABLE table_15511178_3 (report VARCHAR, rd VARCHAR) |
SELECT visitor FROM table_name_23 WHERE home = "minnesota" | Which visitor lives in Minnesota? | CREATE TABLE table_name_23 (visitor VARCHAR, home VARCHAR) |
SELECT COUNT(total) FROM table_name_47 WHERE play_offs < 0 | How many totals have a play-off less than 0? | CREATE TABLE table_name_47 (total VARCHAR, play_offs INTEGER) |
SELECT reason_for_vacancy FROM table_2417445_4 WHERE successor = "Rudolph Kleberg (D)" | When rudolph kleberg (d) is the successor is the reason for vacancy? | CREATE TABLE table_2417445_4 (reason_for_vacancy VARCHAR, successor VARCHAR) |
SELECT record FROM table_name_24 WHERE visitor = "trail blazers" | What was the Record of the game in which the Trail Blazers was the visiting team? | CREATE TABLE table_name_24 (record VARCHAR, visitor VARCHAR) |
SELECT sound__allophone_ FROM "t" AS able_name_50 WHERE roman = "t" | The Roman value of t is associated with what allophone? | CREATE TABLE t (Id VARCHAR) |
SELECT player FROM table_name_30 WHERE round = 5 | What player was drafted in Round 5? | CREATE TABLE table_name_30 (player VARCHAR, round VARCHAR) |
SELECT website FROM table_name_53 WHERE ages = "8-16" AND locality = "cheadle" | What is the Website of the Cheadle School for Ages 8-16? | CREATE TABLE table_name_53 (website VARCHAR, ages VARCHAR, locality VARCHAR) |
SELECT method FROM table_name_54 WHERE venue = "club med sandpiper" | The match that was held at Club Med Sandpiper has what method? | CREATE TABLE table_name_54 (method VARCHAR, venue VARCHAR) |
SELECT AVG(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'no' | Find the average hours for the students whose tryout decision is no. | CREATE TABLE player (HS INTEGER, pID VARCHAR); CREATE TABLE tryout (pID VARCHAR, decision VARCHAR) |
SELECT location FROM table_name_57 WHERE res = "win" AND event = "superbrawl 16" | In which location did he win the Superbrawl 16 event? | CREATE TABLE table_name_57 (location VARCHAR, res VARCHAR, event VARCHAR) |
SELECT erin_and_jake FROM table_2311410_5 WHERE week = 4 | Name the erin and jake for week 4 | CREATE TABLE table_2311410_5 (erin_and_jake VARCHAR, week VARCHAR) |
SELECT COUNT(guest_1) FROM table_20466963_9 WHERE guest_4 = "Des Kelly" | How many people are guest 1 on episodes where guest 4 is Des Kelly? | CREATE TABLE table_20466963_9 (guest_1 VARCHAR, guest_4 VARCHAR) |
SELECT player FROM table_name_43 WHERE score = 69 - 68 - 68 = 205 | What player has a score of 69-68-68=205? | CREATE TABLE table_name_43 (player VARCHAR, score VARCHAR) |
SELECT result FROM table_name_73 WHERE role = "ellie greenwich" AND year = "2005" | What was the result for the role of Ellie Greenwich in 2005? | CREATE TABLE table_name_73 (result VARCHAR, role VARCHAR, year VARCHAR) |
SELECT MAX(tankers) FROM table_name_84 WHERE pumpers > 2 | what is the highest tankers when pumpers is more than 2? | CREATE TABLE table_name_84 (tankers INTEGER, pumpers INTEGER) |
SELECT year__ceremony_ FROM table_18638067_1 WHERE actor_actress = "Teresa Wright" AND category = "Best Supporting Actress" | What year was Teresa Wright nominated best supporting actress? | CREATE TABLE table_18638067_1 (year__ceremony_ VARCHAR, actor_actress VARCHAR, category VARCHAR) |
SELECT fibonacci FROM table_name_18 WHERE operation = "find-min" | Operation of find-min has what Fibonacci? | CREATE TABLE table_name_18 (fibonacci VARCHAR, operation VARCHAR) |
SELECT crew_chief FROM table_name_27 WHERE driver_s_ = "matt kurzejewski" | Who is the crew chief, of driver Matt kurzejewski? | CREATE TABLE table_name_27 (crew_chief VARCHAR, driver_s_ VARCHAR) |
SELECT acquisition_via FROM table_name_50 WHERE season = "2006-2012" | What is Acquisition via, when Season is 2006-2012? | CREATE TABLE table_name_50 (acquisition_via VARCHAR, season VARCHAR) |
SELECT MAX(founded) FROM table_2076516_1 WHERE school = "East Carolina University" | When east carolina university is the school what is the highest year founded? | CREATE TABLE table_2076516_1 (founded INTEGER, school VARCHAR) |
SELECT status FROM table_name_58 WHERE name = "joon-hyung park 박준형" | What was the status of joon-hyung park 박준형? | CREATE TABLE table_name_58 (status VARCHAR, name VARCHAR) |
SELECT T2.Height FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Total < 315 | What are the heights of body builders with total score smaller than 315? | CREATE TABLE people (Height VARCHAR, People_ID VARCHAR); CREATE TABLE body_builder (People_ID VARCHAR, Total INTEGER) |
SELECT result FROM table_name_80 WHERE goal > 12 AND venue = "pasadena" | What was the result of the game with more than 12 goals at Pasadena? | CREATE TABLE table_name_80 (result VARCHAR, goal VARCHAR, venue VARCHAR) |
SELECT circuit FROM table_name_67 WHERE winning_team = "marlboro team penske" AND fastest_lap = "unknown" | What circuit did marlboro team penske win with an unknown fastest lap? | CREATE TABLE table_name_67 (circuit VARCHAR, winning_team VARCHAR, fastest_lap VARCHAR) |
SELECT position FROM table_name_85 WHERE league = "malaysian super league" AND year = "2011" | What is the position when the League is the malaysian super league, and a Year of 2011? | CREATE TABLE table_name_85 (position VARCHAR, league VARCHAR, year VARCHAR) |
SELECT COUNT(total_rebounds) FROM table_name_5 WHERE player = "andre gaddy" AND rank < 6 | How many rebounds have a Player of andre gaddy, and a Rank smaller than 6? | CREATE TABLE table_name_5 (total_rebounds VARCHAR, player VARCHAR, rank VARCHAR) |
SELECT MAX(1937) FROM table_name_60 WHERE 1940 > 126 | What is the highest 1937 value that has a 1940 value over 126? | CREATE TABLE table_name_60 (Id VARCHAR) |
SELECT title FROM table_20046379_3 WHERE us_viewers__millions_ = "3.8" | What's the title of the episode seen by 3.8 million people in the US? | CREATE TABLE table_20046379_3 (title VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT city FROM table_18299148_1 WHERE resolution = "Negotiated exile in Austria" | Which city has a resolution that is negotiated exile in Austria? | CREATE TABLE table_18299148_1 (city VARCHAR, resolution VARCHAR) |
SELECT MIN(cultural_and_educational_panel) FROM table_name_74 WHERE nominated_by_the_taoiseach < 5 AND total > 19 | What is the smallest cultural and educational panel with a nominated by the Taoiseach less than 5 and the total greater than 19? | CREATE TABLE table_name_74 (cultural_and_educational_panel INTEGER, nominated_by_the_taoiseach VARCHAR, total VARCHAR) |
SELECT totals FROM table_28628309_9 WHERE average = "0.667" AND category = "3-pt field goal percentage" | What is the total listed when the average is 0.667 and the category is 3-pt field goal percentage? | CREATE TABLE table_28628309_9 (totals VARCHAR, average VARCHAR, category VARCHAR) |
SELECT builder’s_model FROM table_name_83 WHERE total_produced > 40 AND build_date = "1966" | Who built the train in 1966 with over 40 produced? | CREATE TABLE table_name_83 (builder’s_model VARCHAR, total_produced VARCHAR, build_date VARCHAR) |
SELECT T1.name, T1.type FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id | What are the names and types of the companies that have ever operated a flight? | CREATE TABLE operate_company (name VARCHAR, type VARCHAR, id VARCHAR); CREATE TABLE flight (Id VARCHAR) |
SELECT gas_storage FROM table_21690339_1 WHERE alternative_fuel = "Yes" | What was the gas storage status for the nation that had "yes" for alternative fuel? | CREATE TABLE table_21690339_1 (gas_storage VARCHAR, alternative_fuel VARCHAR) |
SELECT visitor FROM table_name_7 WHERE home = "nets" | Who were the Visitor when the Nets were the Home team? | CREATE TABLE table_name_7 (visitor VARCHAR, home VARCHAR) |
SELECT country FROM table_28498999_6 WHERE player = "Luke Donald" | what is the place where the person is luke donald | CREATE TABLE table_28498999_6 (country VARCHAR, player VARCHAR) |
SELECT candidates FROM table_1342256_11 WHERE first_elected = 1924 | Who ran for the House in the 1924 election? | CREATE TABLE table_1342256_11 (candidates VARCHAR, first_elected VARCHAR) |
SELECT wins FROM table_name_15 WHERE podiums = "5" | How many wins did the team with 5 podiums have? | CREATE TABLE table_name_15 (wins VARCHAR, podiums VARCHAR) |
SELECT author FROM table_22464685_1 WHERE transliteration = "lasha-giorgis droindeli matiane" | who is the auther when the transliteration is lasha-giorgis droindeli matiane? | CREATE TABLE table_22464685_1 (author VARCHAR, transliteration VARCHAR) |
SELECT played FROM table_name_94 WHERE "club" = "club" | Which Played has a Club of club? | CREATE TABLE table_name_94 (played VARCHAR) |
SELECT score FROM table_name_3 WHERE attendance = "213" | What is the score for the game with 213 attending? | CREATE TABLE table_name_3 (score VARCHAR, attendance VARCHAR) |
SELECT first_name, last_name, hire_date FROM employees WHERE department_id = (SELECT department_id FROM employees WHERE first_name = "Clara") AND first_name <> "Clara" | display the employee name ( first name and last name ) and hire date for all employees in the same department as Clara excluding Clara. | CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, hire_date VARCHAR, department_id VARCHAR) |
SELECT engine FROM table_name_44 WHERE chassis = "march 90ca" | What car has a March 90ca Chassis? | CREATE TABLE table_name_44 (engine VARCHAR, chassis VARCHAR) |
SELECT AVG(fiscal_year) FROM table_name_55 WHERE headquarters = "noida" AND employees < 85 OFFSET 335 | What is the average Fiscal Year of the firm Headquartered in noida, with less than 85,335 employees? | CREATE TABLE table_name_55 (fiscal_year INTEGER, headquarters VARCHAR, employees VARCHAR) |
SELECT nationality FROM table_name_82 WHERE athlete = "henry carr" AND time = "20.3y" | What's the nationality of Henry Carr having a time of 20.3y? | CREATE TABLE table_name_82 (nationality VARCHAR, athlete VARCHAR, time VARCHAR) |
SELECT series FROM table_25146455_1 WHERE driver = "Bobby Labonte" | In what series did Bobby Labonte drive? | CREATE TABLE table_25146455_1 (series VARCHAR, driver VARCHAR) |
SELECT away_team FROM table_name_27 WHERE home_team = "carlton" | What Away team is visiting Carlton? | CREATE TABLE table_name_27 (away_team VARCHAR, home_team VARCHAR) |
SELECT MIN(wildcats_points) FROM table_20850527_1 WHERE record = "5-1" | What is the lowest points scored by the Wildcats when the record was 5-1? | CREATE TABLE table_20850527_1 (wildcats_points INTEGER, record VARCHAR) |
SELECT event FROM table_name_80 WHERE prize = "€900,000" | What event had a prize of €900,000? | CREATE TABLE table_name_80 (event VARCHAR, prize VARCHAR) |
SELECT COUNT(number_of_electorates__2009_) FROM table_name_97 WHERE name = "govindpura" | what is the total number of electorates (2009) when the name is govindpura? | CREATE TABLE table_name_97 (number_of_electorates__2009_ VARCHAR, name VARCHAR) |
SELECT week FROM table_name_1 WHERE result = "w 23–14" | Which week was there a w 23–14 result? | CREATE TABLE table_name_1 (week VARCHAR, result VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.