question stringlengths 12 244 | context stringlengths 27 489 | answer stringlengths 18 557 |
|---|---|---|
What is the average grid for johnny herbert with a Time/Retired of +1 lap? | CREATE TABLE table_name_38 (grid INTEGER, time_retired VARCHAR, driver VARCHAR) | SELECT AVG(grid) FROM table_name_38 WHERE time_retired = "+1 lap" AND driver = "johnny herbert" |
Who is the opponent in a game higher than 76 on April 6? | CREATE TABLE table_name_52 (opponent VARCHAR, game VARCHAR, april VARCHAR) | SELECT opponent FROM table_name_52 WHERE game > 76 AND april = 6 |
Name the constructor for number 10 | CREATE TABLE table_28190534_1 (constructor VARCHAR, no VARCHAR) | SELECT constructor FROM table_28190534_1 WHERE no = 10 |
List the name of physicians who took some appointment. | CREATE TABLE appointment (Physician VARCHAR); CREATE TABLE physician (name VARCHAR, EmployeeID VARCHAR) | SELECT T2.name FROM appointment AS T1 JOIN physician AS T2 ON T1.Physician = T2.EmployeeID |
When rank is 5, what is the rowers? | CREATE TABLE table_name_32 (rowers VARCHAR, rank VARCHAR) | SELECT rowers FROM table_name_32 WHERE rank = 5 |
What is the Tournament with a Date larger than 1973, with Opponents in the final with hank pfister sherwood stewart? | CREATE TABLE table_name_66 (tournament VARCHAR, date VARCHAR, opponents_in_the_final VARCHAR) | SELECT tournament FROM table_name_66 WHERE date > 1973 AND opponents_in_the_final = "hank pfister sherwood stewart" |
What is the best score of the dance freestyle? | CREATE TABLE table_name_30 (best_score VARCHAR, dance VARCHAR) | SELECT best_score FROM table_name_30 WHERE dance = "freestyle" |
What is the Score of the Fifa World Cup 1986 Qualifying Competition? | CREATE TABLE table_name_86 (score VARCHAR, competition VARCHAR) | SELECT score FROM table_name_86 WHERE competition = "fifa world cup 1986 qualifying" |
What team is 2 when 1 is Taipower and the result is 0-1? | CREATE TABLE table_name_90 (team_2 VARCHAR, team_1 VARCHAR, result VARCHAR) | SELECT team_2 FROM table_name_90 WHERE team_1 = "taipower" AND result = "0-1" |
What was the time for the country of kazakhstan? | CREATE TABLE table_name_13 (time VARCHAR, country VARCHAR) | SELECT time FROM table_name_13 WHERE country = "kazakhstan" |
Tell me the highest launced for trn | CREATE TABLE table_name_1 (launched INTEGER, name VARCHAR) | SELECT MAX(launched) FROM table_name_1 WHERE name = "trn" |
Name the virtual for Fox | CREATE TABLE table_14623167_1 (virtual VARCHAR, network VARCHAR) | SELECT COUNT(virtual) FROM table_14623167_1 WHERE network = "Fox" |
What is the language total number if the Tacachi Municipality is 3? | CREATE TABLE table_2509112_3 (language VARCHAR, tacachi_municipality VARCHAR) | SELECT COUNT(language) FROM table_2509112_3 WHERE tacachi_municipality = 3 |
What is the value of the coin weighing 10.5 g and made of cupronickel? | CREATE TABLE table_name_52 (value VARCHAR, composition VARCHAR, weight VARCHAR) | SELECT value FROM table_name_52 WHERE composition = "cupronickel" AND weight = "10.5 g" |
List the school color of the school that has the largest enrollment. | CREATE TABLE school (School_Colors VARCHAR, Enrollment VARCHAR) | SELECT School_Colors FROM school ORDER BY Enrollment DESC LIMIT 1 |
What is the lowest round of Ed Smith, who had a pick lower than 19? | CREATE TABLE table_name_29 (round INTEGER, player VARCHAR, pick VARCHAR) | SELECT MIN(round) FROM table_name_29 WHERE player = "ed smith" AND pick > 19 |
The location (transmitter site) San Fernando, Pampanga ** has what Power kW (ERP)? | CREATE TABLE table_2610582_2 (power_kw__erp_ VARCHAR, location__transmitter_site_ VARCHAR) | SELECT power_kw__erp_ FROM table_2610582_2 WHERE location__transmitter_site_ = "San Fernando, Pampanga **" |
What is the skip in Wales? | CREATE TABLE table_name_31 (skip VARCHAR, nation VARCHAR) | SELECT skip FROM table_name_31 WHERE nation = "wales" |
What are the names and location of the shops in ascending alphabetical order of name. | CREATE TABLE shop (Shop_Name VARCHAR, LOCATION VARCHAR) | SELECT Shop_Name, LOCATION FROM shop ORDER BY Shop_Name |
When was the competition that had a score of 3-0? | CREATE TABLE table_name_34 (date VARCHAR, score VARCHAR) | SELECT date FROM table_name_34 WHERE score = "3-0" |
What is the sum of the total apps of player benayoun, who has a PL G greater than 0 and more than 9 CL apps? | CREATE TABLE table_name_28 (total_apps INTEGER, cl_apps VARCHAR, pl_g VARCHAR, player VARCHAR) | SELECT SUM(total_apps) FROM table_name_28 WHERE pl_g > 0 AND player = "benayoun" AND cl_apps > 9 |
What is the name of the person whose date of death is 01-04-1954? | CREATE TABLE table_11585313_1 (name VARCHAR, date_of_death† VARCHAR) | SELECT name FROM table_11585313_1 WHERE date_of_death† = "01-04-1954" |
Who is the winner for the match on October 7? | CREATE TABLE table_name_20 (winner VARCHAR, date VARCHAR) | SELECT winner FROM table_name_20 WHERE date = "october 7" |
What is the genre for the hot fm station? | CREATE TABLE table_1601792_3 (genre VARCHAR, station VARCHAR) | SELECT genre FROM table_1601792_3 WHERE station = "Hot FM" |
What sport has Ma Yuxi in it? | CREATE TABLE table_name_26 (sport VARCHAR, name VARCHAR) | SELECT sport FROM table_name_26 WHERE name = "ma yuxi" |
Name the Score of Tournament of portugal f1, faro , portugal? | CREATE TABLE table_name_4 (score VARCHAR, tournament VARCHAR) | SELECT score FROM table_name_4 WHERE tournament = "portugal f1, faro , portugal" |
What is the average silver medals a team ranked 12 with less than 2 bronze has? | CREATE TABLE table_name_28 (silver INTEGER, rank VARCHAR, bronze VARCHAR) | SELECT AVG(silver) FROM table_name_28 WHERE rank = 12 AND bronze < 2 |
What is the UK broadcast date of the episode where Chris Bonington was the presenter? | CREATE TABLE table_name_72 (uk_broadcast_date VARCHAR, presenter VARCHAR) | SELECT uk_broadcast_date FROM table_name_72 WHERE presenter = "chris bonington" |
What Inchicore Class has a GSWR Class smaller than 268, and a Type of 0-4-2t? | CREATE TABLE table_name_60 (inchicore_class VARCHAR, gswr_class VARCHAR, type VARCHAR) | SELECT inchicore_class FROM table_name_60 WHERE gswr_class < 268 AND type = "0-4-2t" |
What country had the total 18,900 (r)? | CREATE TABLE table_10586064_2 (county VARCHAR, total VARCHAR) | SELECT county FROM table_10586064_2 WHERE total = "18,900 (R)" |
who are the writers of the episode whose production code is 176206? | CREATE TABLE table_2866509_1 (written_by VARCHAR, production_code VARCHAR) | SELECT written_by FROM table_2866509_1 WHERE production_code = 176206 |
Which incumbent was first elected in 1964? | CREATE TABLE table_1341707_15 (incumbent VARCHAR, first_elected VARCHAR) | SELECT incumbent FROM table_1341707_15 WHERE first_elected = "1964" |
What was the last year MCA had a Release? | CREATE TABLE table_name_40 (year_of_release INTEGER, label VARCHAR) | SELECT MAX(year_of_release) FROM table_name_40 WHERE label = "mca" |
What was score of the game when the record was 72-74? | CREATE TABLE table_name_23 (score VARCHAR, record VARCHAR) | SELECT score FROM table_name_23 WHERE record = "72-74" |
How many different pairs of candidates were there for the district first elected in 1988? | CREATE TABLE table_19753079_12 (candidates VARCHAR, first_elected VARCHAR) | SELECT COUNT(candidates) FROM table_19753079_12 WHERE first_elected = 1988 |
Who left a position on 29 May? | CREATE TABLE table_17327458_1 (outgoing_manager VARCHAR, date_of_vacancy VARCHAR) | SELECT outgoing_manager FROM table_17327458_1 WHERE date_of_vacancy = "29 May" |
What is the grid 13 time score? | CREATE TABLE table_name_88 (time_retired VARCHAR, grid VARCHAR) | SELECT time_retired FROM table_name_88 WHERE grid = 13 |
What was Oslo's population in 1960, with a population of 507,467 in 2000? | CREATE TABLE table_name_41 (population__1960_ INTEGER, county VARCHAR, population__2000_ VARCHAR) | SELECT AVG(population__1960_) FROM table_name_41 WHERE county = "oslo" AND population__2000_ > 507 OFFSET 467 |
When was the first elected for district missouri 7? | CREATE TABLE table_1341663_26 (first_elected INTEGER, district VARCHAR) | SELECT MIN(first_elected) FROM table_1341663_26 WHERE district = "Missouri 7" |
what are the first name and last name of all candidates? | CREATE TABLE candidates (candidate_id VARCHAR); CREATE TABLE people (first_name VARCHAR, last_name VARCHAR, person_id VARCHAR) | SELECT T2.first_name, T2.last_name FROM candidates AS T1 JOIN people AS T2 ON T1.candidate_id = T2.person_id |
Who is the director of the game with HIroshi Sato as the producer on the GBA platform? | CREATE TABLE table_name_41 (director VARCHAR, producer VARCHAR, platform_s_ VARCHAR) | SELECT director FROM table_name_41 WHERE producer = "hiroshi sato" AND platform_s_ = "gba" |
What country was ole ellefsæter from? | CREATE TABLE table_name_34 (country VARCHAR, winner VARCHAR) | SELECT country FROM table_name_34 WHERE winner = "ole ellefsæter" |
How many players had 8 goals? | CREATE TABLE table_28286776_52 (player VARCHAR, goal_s_ VARCHAR) | SELECT COUNT(player) FROM table_28286776_52 WHERE goal_s_ = 8 |
what city scored 0:0 | CREATE TABLE table_name_78 (city VARCHAR, results¹ VARCHAR) | SELECT city FROM table_name_78 WHERE results¹ = "0:0" |
What is the region for Catalog amlh 66078 in stereo lp format? | CREATE TABLE table_name_49 (region VARCHAR, format VARCHAR, catalog VARCHAR) | SELECT region FROM table_name_49 WHERE format = "stereo lp" AND catalog = "amlh 66078" |
In the Tournament during which Jiří Novák made it to the 1st round(1R) in 1995, how did he do in 2001? | CREATE TABLE table_name_32 (Id VARCHAR) | SELECT 2001 FROM table_name_32 WHERE 1995 = "1r" |
In what place did Darren Clarke finish? | CREATE TABLE table_name_23 (place VARCHAR, player VARCHAR) | SELECT place FROM table_name_23 WHERE player = "darren clarke" |
What is the score at the Champions League, when the result shows win? | CREATE TABLE table_name_25 (score VARCHAR, competition VARCHAR, result VARCHAR) | SELECT score FROM table_name_25 WHERE competition = "champions league" AND result = "win" |
What was the Winning score when the Margin of victory is 5 strokes and the Date was 6 Sep 2009? | CREATE TABLE table_name_29 (winning_score VARCHAR, margin_of_victory VARCHAR, date VARCHAR) | SELECT winning_score FROM table_name_29 WHERE margin_of_victory = "5 strokes" AND date = "6 sep 2009" |
How many meters tall is Ulrike Wolful? | CREATE TABLE table_23495048_2 (height__mtr_ VARCHAR, contestant VARCHAR) | SELECT height__mtr_ FROM table_23495048_2 WHERE contestant = "Ulrike Wolful" |
What is the campus fee of "San Francisco State University" in year 1996? | CREATE TABLE csu_fees (year VARCHAR); CREATE TABLE campuses (id VARCHAR) | SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = "San Francisco State University" AND T2.year = 1996 |
how many times did debbie black block | CREATE TABLE table_19722233_5 (blocks VARCHAR, player VARCHAR) | SELECT blocks FROM table_19722233_5 WHERE player = "Debbie Black" |
What is the IHSAA class in monon? | CREATE TABLE table_name_56 (ihsaa_class VARCHAR, location VARCHAR) | SELECT ihsaa_class FROM table_name_56 WHERE location = "monon" |
Name the least podiums for 0 wins and 2005 season for 321 points | CREATE TABLE table_20398823_1 (podiums INTEGER, points VARCHAR, wins VARCHAR, season VARCHAR) | SELECT MIN(podiums) FROM table_20398823_1 WHERE wins = 0 AND season = 2005 AND points = "321" |
What is the party for first elected 1948 for william t. granahan | CREATE TABLE table_1342198_38 (party VARCHAR, first_elected VARCHAR, incumbent VARCHAR) | SELECT party FROM table_1342198_38 WHERE first_elected = 1948 AND incumbent = "William T. Granahan" |
Who was the printer of Estes Park, Colorado? | CREATE TABLE table_15635768_1 (printer VARCHAR, place_of_issue VARCHAR) | SELECT printer FROM table_15635768_1 WHERE place_of_issue = "Estes Park, Colorado" |
What game was held against a team with a 6-3 record against the Cowboys? | CREATE TABLE table_22801331_1 (game VARCHAR, record VARCHAR) | SELECT game FROM table_22801331_1 WHERE record = "6-3" |
Find the name, type, and flag of the ship that is built in the most recent year. | CREATE TABLE ship (name VARCHAR, TYPE VARCHAR, flag VARCHAR, built_year VARCHAR) | SELECT name, TYPE, flag FROM ship ORDER BY built_year DESC LIMIT 1 |
How many votes did candice sjostrom receive? | CREATE TABLE table_name_94 (popular_votes INTEGER, candidate VARCHAR) | SELECT AVG(popular_votes) FROM table_name_94 WHERE candidate = "candice sjostrom" |
What is the status of the game where there was more than 22 against? | CREATE TABLE table_name_20 (status VARCHAR, against INTEGER) | SELECT status FROM table_name_20 WHERE against > 22 |
Who has the highest assists on april 28? | CREATE TABLE table_name_45 (high_assists VARCHAR, date VARCHAR) | SELECT high_assists FROM table_name_45 WHERE date = "april 28" |
What is every year premiered when Behzat Uighur is main presenter? | CREATE TABLE table_24224647_2 (year_premiered VARCHAR, main_presenter VARCHAR) | SELECT year_premiered FROM table_24224647_2 WHERE main_presenter = "Behzat Uighur" |
How many years has 2 points? | CREATE TABLE table_name_85 (year INTEGER, points VARCHAR) | SELECT SUM(year) FROM table_name_85 WHERE points = 2 |
What is the pick number for the player Chris Gomez? | CREATE TABLE table_name_75 (pick__number INTEGER, player VARCHAR) | SELECT SUM(pick__number) FROM table_name_75 WHERE player = "chris gomez" |
What is the sum of Markatal, when Inhabitants Per Km² is less than 13, and when Area (in Km²) is 27? | CREATE TABLE table_name_47 (markatal INTEGER, inhabitants_per_km² VARCHAR, area__in_km²_ VARCHAR) | SELECT SUM(markatal) FROM table_name_47 WHERE inhabitants_per_km² < 13 AND area__in_km²_ = 27 |
What was the score when Donald Bradman in 9 innings? | CREATE TABLE table_16570286_2 (highest_score VARCHAR, innings VARCHAR, player VARCHAR) | SELECT highest_score FROM table_16570286_2 WHERE innings = 9 AND player = "Donald Bradman" |
What was the highest number of bronze medals for the entry with rank 2 and fewer than 3 silver medals? | CREATE TABLE table_name_15 (bronze INTEGER, rank VARCHAR, silver VARCHAR) | SELECT MAX(bronze) FROM table_name_15 WHERE rank = "2" AND silver < 3 |
What is the name of the settlement that had a population of 9443 in 2011? | CREATE TABLE table_2562572_53 (settlement VARCHAR, population__2011_ VARCHAR) | SELECT settlement FROM table_2562572_53 WHERE population__2011_ = 9443 |
Which To par has a Score of 67-72-71-75=285? | CREATE TABLE table_name_40 (to_par VARCHAR, score VARCHAR) | SELECT to_par FROM table_name_40 WHERE score = 67 - 72 - 71 - 75 = 285 |
How many institutions are shown for the football stadium of mosaic stadium? | CREATE TABLE table_27599216_6 (institution VARCHAR, football_stadium VARCHAR) | SELECT COUNT(institution) FROM table_27599216_6 WHERE football_stadium = "Mosaic Stadium" |
How many products have a price higher than the average? | CREATE TABLE products (product_price INTEGER) | SELECT COUNT(*) FROM products WHERE product_price > (SELECT AVG(product_price) FROM products) |
How many services has each resident requested? List the resident id, details, and the count in descending order of the count. | CREATE TABLE Residents_Services (resident_id VARCHAR); CREATE TABLE Residents (resident_id VARCHAR, other_details VARCHAR) | SELECT T1.resident_id, T1.other_details, COUNT(*) FROM Residents AS T1 JOIN Residents_Services AS T2 ON T1.resident_id = T2.resident_id GROUP BY T1.resident_id ORDER BY COUNT(*) DESC |
What is the copa libertadores 1996 result of the team with a copa conmebol 1996 result of quarterfinals? | CREATE TABLE table_name_84 (copa_libertadores_1996 VARCHAR, copa_conmebol_1996 VARCHAR) | SELECT copa_libertadores_1996 FROM table_name_84 WHERE copa_conmebol_1996 = "quarterfinals" |
What is bedford's mascot? | CREATE TABLE table_name_20 (mascot VARCHAR, location VARCHAR) | SELECT mascot FROM table_name_20 WHERE location = "bedford" |
Name the size which is past 2000 | CREATE TABLE table_name_94 (size VARCHAR, date INTEGER) | SELECT size FROM table_name_94 WHERE date > 2000 |
What is Etymology, when Rank is 14? | CREATE TABLE table_name_10 (etymology VARCHAR, rank VARCHAR) | SELECT etymology FROM table_name_10 WHERE rank = 14 |
What is the total number of national titles for the team with doane tigers as the mascot? | CREATE TABLE table_name_2 (national_titles VARCHAR, mascot VARCHAR) | SELECT COUNT(national_titles) FROM table_name_2 WHERE mascot = "doane tigers" |
What was Johnnie Parsons rank when he completed over 200 laps? | CREATE TABLE table_name_67 (rank VARCHAR, laps INTEGER) | SELECT rank FROM table_name_67 WHERE laps > 200 |
Show the minimum, average, maximum order quantity of all invoices. | CREATE TABLE INVOICES (Order_Quantity INTEGER) | SELECT MIN(Order_Quantity), AVG(Order_Quantity), MAX(Order_Quantity) FROM INVOICES |
Loss of kendrick (11–8) had what record? | CREATE TABLE table_name_54 (record VARCHAR, loss VARCHAR) | SELECT record FROM table_name_54 WHERE loss = "kendrick (11–8)" |
What is the Record for April 22? | CREATE TABLE table_name_54 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_54 WHERE date = "april 22" |
What is the sum on week against the Tampa Bay Buccaneers with less than 60,320 in attendance? | CREATE TABLE table_name_41 (week INTEGER, opponent VARCHAR, attendance VARCHAR) | SELECT SUM(week) FROM table_name_41 WHERE opponent = "tampa bay buccaneers" AND attendance < 60 OFFSET 320 |
Which of the countries showed a score of 71-72=143? | CREATE TABLE table_name_8 (country VARCHAR, score VARCHAR) | SELECT country FROM table_name_8 WHERE score = 71 - 72 = 143 |
What was the outcome in the 2010 Europe/Africa Group IIB edition? | CREATE TABLE table_27877656_8 (outcome VARCHAR, edition VARCHAR) | SELECT outcome FROM table_27877656_8 WHERE edition = "2010 Europe/Africa Group IIB" |
What was the score of the game at Great Western Forum? | CREATE TABLE table_name_54 (score VARCHAR, location_attendance VARCHAR) | SELECT score FROM table_name_54 WHERE location_attendance = "great western forum" |
Which Score has an Opponent of melanie south? | CREATE TABLE table_name_58 (score VARCHAR, opponent VARCHAR) | SELECT score FROM table_name_58 WHERE opponent = "melanie south" |
Which Prohibition ticket has a Socialist Labor ticket of joseph smith? | CREATE TABLE table_name_34 (prohibition_ticket VARCHAR, socialist_labor_ticket VARCHAR) | SELECT prohibition_ticket FROM table_name_34 WHERE socialist_labor_ticket = "joseph smith" |
Which Round has a Pick of 174? | CREATE TABLE table_name_47 (round VARCHAR, pick VARCHAR) | SELECT round FROM table_name_47 WHERE pick = 174 |
Who won Silver in 2000? | CREATE TABLE table_name_53 (silver VARCHAR, year VARCHAR) | SELECT silver FROM table_name_53 WHERE year = 2000 |
Who sponsors owner Bobby Dotter's team? | CREATE TABLE table_19908313_2 (primary_sponsor_s_ VARCHAR, listed_owner_s_ VARCHAR) | SELECT primary_sponsor_s_ FROM table_19908313_2 WHERE listed_owner_s_ = "Bobby Dotter" |
Which Performance has a Usage of hepa and a Class of h14? | CREATE TABLE table_name_38 (performance VARCHAR, usage VARCHAR, class VARCHAR) | SELECT performance FROM table_name_38 WHERE usage = "hepa" AND class = "h14" |
how many candidates with district being california 7 | CREATE TABLE table_1342359_5 (candidates VARCHAR, district VARCHAR) | SELECT COUNT(candidates) FROM table_1342359_5 WHERE district = "California 7" |
What is the number of nationality in 1992? | CREATE TABLE table_12086015_7 (nationality VARCHAR, year_s_ VARCHAR) | SELECT COUNT(nationality) FROM table_12086015_7 WHERE year_s_ = "1992" |
Which organization administered the poll that showed a lead margin of 5.5? | CREATE TABLE table_name_88 (poll_source VARCHAR, lead_margin VARCHAR) | SELECT poll_source FROM table_name_88 WHERE lead_margin = 5.5 |
What was the away team score, when the away team was Fitzroy? | CREATE TABLE table_name_32 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_32 WHERE away_team = "fitzroy" |
When the home attendance is 3.123, what's the highest away attendance? | CREATE TABLE table_1816947_2 (highest_attendance_away VARCHAR, average_attendance_home VARCHAR) | SELECT highest_attendance_away FROM table_1816947_2 WHERE average_attendance_home = "3.123" |
Which college has a pick less than 25, an overall greater than 159, a round less than 10, and wr as the position? | CREATE TABLE table_name_10 (college VARCHAR, position VARCHAR, round VARCHAR, pick VARCHAR, overall VARCHAR) | SELECT college FROM table_name_10 WHERE pick < 25 AND overall > 159 AND round < 10 AND position = "wr" |
What is the total of the River Mile in Greenup, Kentucky? | CREATE TABLE table_name_34 (river_mile INTEGER, location_ VARCHAR, l_ VARCHAR) | SELECT SUM(river_mile) FROM table_name_34 WHERE location_[l_] = "greenup, kentucky" |
Which opponent scored 95-101? | CREATE TABLE table_name_34 (opponent VARCHAR, score VARCHAR) | SELECT opponent FROM table_name_34 WHERE score = "95-101" |
Which civil parish is for the townland clooncugger? | CREATE TABLE table_30121096_1 (civil_parish VARCHAR, townland VARCHAR) | SELECT civil_parish FROM table_30121096_1 WHERE townland = "Clooncugger" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.