sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT MIN(year) FROM table_name_8 WHERE event = "50km" AND result = "2nd" AND venue = "london, united kingdom" | CREATE TABLE INST, Here is a database schema( table schema); | What is earliest year that had a 50km event with a 2nd place result played in London United Kingdom?It is not neccessary to use all the tables. |
SELECT format FROM table_name_44 WHERE date = "may 24, 2008" | CREATE TABLE INST, Here is a database schema( table schema); | Which Format has a Date of may 24 2008?It is not neccessary to use all the tables. |
SELECT term_end FROM table_name_40 WHERE minister = "danny ayalon" | CREATE TABLE INST, Here is a database schema( table schema); | What term end had minister Danny Ayalon?It is not neccessary to use all the tables. |
SELECT away_team FROM table_name_65 WHERE venue = "victoria park" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the away team at the game at Victoria Park?It is not neccessary to use all the tables. |
SELECT SUM(attendance) FROM table_name_42 WHERE opponent = "nationals" AND record = "68-51" | CREATE TABLE INST, Here is a database schema( table schema); | What is the attendance of the game that has the opponent of The Nationals with a record of 68-51?It is not neccessary to use all the tables. |
SELECT Tied FROM table WHERE Losses = 8 AND Win % = 50% | CREATE TABLE INST, Here is a database schema( table schema); | Who tied with 8 losses and 50% wins?.It is not neccessary to use all the tables. |
SELECT MAX Population FROM table WHERE Density = 20.3 AND Area (km²) > 50,350 | CREATE TABLE INST, Here is a database schema( table schema); | Which population is the greatest, has a density of 20.3, and an area (km²) larger than 50,350?.It is not neccessary to use all the tables. |
SELECT SUM(attendance) FROM table_name_75 WHERE date = "april 7" | CREATE TABLE INST, Here is a database schema( table schema); | What was the attendance on April 7?It is not neccessary to use all the tables. |
SELECT AVG Nets points FROM table WHERE Game < 9 AND Opponents < 95 | CREATE TABLE INST, Here is a database schema( table schema); | What was the average point total for the nets in games before game 9 where the opponents scored less than 95?.It is not neccessary to use all the tables. |
SELECT MIN(lowest) FROM table_11207040_5 WHERE stadium = "Cappielow" | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest attandance recorded at Cappielow?It is not neccessary to use all the tables. |
SELECT SUM(first_season_of_current_spell_in_segunda_división) FROM table_name_44 WHERE city = "cañete" | CREATE TABLE INST, Here is a database schema( table schema); | What is the total of the first season in Segunda División that has a City of cañete?It is not neccessary to use all the tables. |
SELECT U.S. Rap FROM table WHERE Album = west coast bad boyz, vol. 3: poppin' collars | CREATE TABLE INST, Here is a database schema( table schema); | What is the U.S. Rap chart number of the album west coast bad boyz, vol. 3: poppin' collars?.It is not neccessary to use all the tables. |
SELECT outcome FROM table_name_74 WHERE partner = "dora djilianova" AND date = "october 1, 1995" | CREATE TABLE INST, Here is a database schema( table schema); | On October 1 1995 with Dora Djilianova as a partner what was the outcome of the match?It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Away team = essendon | CREATE TABLE INST, Here is a database schema( table schema); | What is the date when the away team is essendon?.It is not neccessary to use all the tables. |
SELECT "Office" FROM table_41826 WHERE "Law Preservation ticket" = 'william e. barron' | CREATE TABLE INST, Here is a database schema( table schema); | What office was law preservation ticket holder William E. Barron running for?It is not neccessary to use all the tables. |
SELECT Djurgården scorers FROM table WHERE Venue = idrottsparken | CREATE TABLE INST, Here is a database schema( table schema); | Who were the Djurgarden scorers when the venue was Idrottsparken?.It is not neccessary to use all the tables. |
SELECT team FROM table_name_73 WHERE kitmaker = "saller" AND shirt_sponsor = "krombacher" | CREATE TABLE INST, Here is a database schema( table schema); | Which team uses the kitmaker Saller and has Krombacher as their shirt sponsor?It is not neccessary to use all the tables. |
SELECT Time/Retired FROM table WHERE Grid < 5 AND Driver = jean alesi | CREATE TABLE INST, Here is a database schema( table schema); | How much time does it take for jean alesi and grids lesser than 5?.It is not neccessary to use all the tables. |
SELECT 1985 FROM table_name_62 WHERE career_win_loss = "n/a" AND career_sr = "0 / 23" | CREATE TABLE INST, Here is a database schema( table schema); | What is the result in 1985 when the career win-loss is n/a and 0 / 23 as the career SR?It is not neccessary to use all the tables. |
SELECT Current March 20, 2010 FROM table WHERE Country = Denmark | CREATE TABLE INST, Here is a database schema( table schema); | How many current drivers, as of March 20, 2010 does Denmark have?.It is not neccessary to use all the tables. |
SELECT tournament FROM table_name_22 WHERE opponent_in_the_final = "nadia petrova" AND score = "6–3, 4–6, 6–1" | CREATE TABLE INST, Here is a database schema( table schema); | Which tournament has an opponent in the final of nadia petrova and a score of 6 3, 4 6, 6 1??It is not neccessary to use all the tables. |
SELECT Country FROM table WHERE To par < 6 AND Money ( $ ) > 700 AND Score = 69-73-70-71=283 | CREATE TABLE INST, Here is a database schema( table schema); | Which Country has a To par smaller than 6, and a Money ($) larger than 700, and a Score of 69-73-70-71=283?.It is not neccessary to use all the tables. |
SELECT date FROM table_2267857_1 WHERE year = 2006 | CREATE TABLE INST, Here is a database schema( table schema); | Name the date for 2006It is not neccessary to use all the tables. |
SELECT hadeda_ibis FROM table_20042805_2 WHERE whitefaced_duck = "Blacksmith Plover" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Hadeda Ibis when the Whitefaced Duck is Blacksmith Plover?It is not neccessary to use all the tables. |
SELECT batting_style FROM table_11950720_3 WHERE player = "Javagal Srinath" | CREATE TABLE INST, Here is a database schema( table schema); | What's Javagal Srinath's batting style?It is not neccessary to use all the tables. |
SELECT College/Junior/Club Team FROM table WHERE Position = defence AND Nationality = czechoslovakia | CREATE TABLE INST, Here is a database schema( table schema); | Can you tell me the College/Junior/Club Team that has the Position of defence, and the Nationality of czechoslovakia?.It is not neccessary to use all the tables. |
SELECT T2.first_name, T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T1.city = "Damianfort" | CREATE TABLE INST, Here is a database schema( table schema); | Find out the first name and last name of staff lived in city Damianfort.It is not neccessary to use all the tables. |
SELECT date FROM table_name_9 WHERE opponent = "kentucky" AND loss = "ragle" | CREATE TABLE INST, Here is a database schema( table schema); | On what date was Kentucky the opponent and Ragle lost?It is not neccessary to use all the tables. |
SELECT Winning driver FROM table WHERE Date = 29 march | CREATE TABLE INST, Here is a database schema( table schema); | Name the winner for 29 march.It is not neccessary to use all the tables. |
SELECT Method FROM table WHERE Time = 3:20 | CREATE TABLE INST, Here is a database schema( table schema); | What is Method, when Time is "3:20"?.It is not neccessary to use all the tables. |
SELECT shooter FROM table_name_56 WHERE time > 8.97 AND year < 2013 | CREATE TABLE INST, Here is a database schema( table schema); | Which shooter's time is more than 8.97 and has a year prior to 2013?It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Attendance = 54,626 | CREATE TABLE INST, Here is a database schema( table schema); | Which Date has an Attendance of 54,626?.It is not neccessary to use all the tables. |
SELECT Region FROM table WHERE Automatic washing machine = 60.9% | CREATE TABLE INST, Here is a database schema( table schema); | Name the region for automatic washing machine being 60.9%.It is not neccessary to use all the tables. |
SELECT name, home_city, age FROM driver | CREATE TABLE INST, Here is a database schema( table schema); | Show the name home city and age for all drivers.It is not neccessary to use all the tables. |
SELECT venue FROM table_name_68 WHERE opponent = "melbourne storm" AND round = "rd 7, 2006" | CREATE TABLE INST, Here is a database schema( table schema); | What venue did Melbourne Storm played in Rd 7 2006?It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Visiting Team = cleveland browns | CREATE TABLE INST, Here is a database schema( table schema); | When were the Cleveland Browns the visiting team?.It is not neccessary to use all the tables. |
SELECT star_rating_code, AVG(price_range) FROM HOTELS GROUP BY star_rating_code | CREATE TABLE INST, Here is a database schema( table schema); | Show the average price of hotels for each star rating code.It is not neccessary to use all the tables. |
SELECT record FROM table_name_56 WHERE score = "111-96" | CREATE TABLE INST, Here is a database schema( table schema); | What record has a score of 111-96?It is not neccessary to use all the tables. |
SELECT 2009 FROM table WHERE 2011 = 39th | CREATE TABLE INST, Here is a database schema( table schema); | What 2009 has 39th as the 2011?.It is not neccessary to use all the tables. |
SELECT title FROM table_27969432_2 WHERE written_by = "Karina Csolty" | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the episode written by karina csolty?It is not neccessary to use all the tables. |
SELECT masters FROM table_1506950_9 WHERE pga_ch = "R16" | CREATE TABLE INST, Here is a database schema( table schema); | What is the result at the Masters for the player who finished R16 at the PGA Ch.?It is not neccessary to use all the tables. |
SELECT COUNT(game) FROM table_name_95 WHERE location = "memorial stadium" AND time = "2:27" | CREATE TABLE INST, Here is a database schema( table schema); | how many games have a location of memorial stadium and a time of 2:27?It is not neccessary to use all the tables. |
SELECT name FROM table_name_30 WHERE year = "1957" | CREATE TABLE INST, Here is a database schema( table schema); | What actor made a film in 1957?It is not neccessary to use all the tables. |
SELECT automobile_name FROM table_name_18 WHERE year = "1956-1958" | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the car that was made in the years 1956-1958?It is not neccessary to use all the tables. |
SELECT COUNT(interregnum_ended) FROM table_11071897_1 WHERE duration = "3 months, 6 days" | CREATE TABLE INST, Here is a database schema( table schema); | What is the number of interregnum for duration 3 months 6 days?It is not neccessary to use all the tables. |
SELECT gauge FROM table_name_9 WHERE builder = "beyer, peacock" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Gauge of Builder Beyer Peacock?It is not neccessary to use all the tables. |
SELECT event_place FROM table_name_61 WHERE time = "61:32" | CREATE TABLE INST, Here is a database schema( table schema); | Where did someone run a 61:32It is not neccessary to use all the tables. |
SELECT qual_2 FROM table_name_5 WHERE best = "1:31.327" | CREATE TABLE INST, Here is a database schema( table schema); | Who in Qual 2 had the best time of 1:31.327?It is not neccessary to use all the tables. |
SELECT MAX Average FROM table WHERE Goals < 45 AND Team = real sociedad | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest average of goals less than 45 for team Real Sociedad?.It is not neccessary to use all the tables. |
SELECT MIN(attendance) FROM table_name_61 WHERE date = "november 19, 1961" | CREATE TABLE INST, Here is a database schema( table schema); | Which Attendance has a Date of november 19 1961?It is not neccessary to use all the tables. |
SELECT year FROM table_name_96 WHERE tournament_name = "grand prix passing shot bordeaux" AND runners_up = "diego nargiso" | CREATE TABLE INST, Here is a database schema( table schema); | What year was the Grand Prix Passing Shot Bordeaux that had Runners-up of Diego Nargiso?It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Opponents = royal antwerp | CREATE TABLE INST, Here is a database schema( table schema); | What date was the game against Royal Antwerp?.It is not neccessary to use all the tables. |
SELECT Party FROM table WHERE Result = re-elected AND District = south carolina 5 | CREATE TABLE INST, Here is a database schema( table schema); | Which party was re-elected in south carolina 5 district?.It is not neccessary to use all the tables. |
SELECT COUNT("song") FROM table_203_723 | CREATE TABLE INST, Here is a database schema( table schema); | what was the total number of singles that the band released ?It is not neccessary to use all the tables. |
SELECT Time FROM table WHERE Athlete = emma twigg | CREATE TABLE INST, Here is a database schema( table schema); | What is the race time for emma twigg?.It is not neccessary to use all the tables. |
SELECT COUNT(*) FROM country | CREATE TABLE INST, Here is a database schema( table schema); | How many countries are there in total?It is not neccessary to use all the tables. |
SELECT SUM(week) FROM table_name_48 WHERE date = "september 6, 1946" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Week number on September 6 1946?It is not neccessary to use all the tables. |
SELECT COUNT Left FROM table WHERE Institution = Anderson University | CREATE TABLE INST, Here is a database schema( table schema); | How many times did anderson university leave?.It is not neccessary to use all the tables. |
SELECT player FROM table_name_20 WHERE round = 8 | CREATE TABLE INST, Here is a database schema( table schema); | Who is the player from round 8?It is not neccessary to use all the tables. |
SELECT Winner FROM table WHERE Time (GMT) = 18:54 | CREATE TABLE INST, Here is a database schema( table schema); | Which ralliers won the stages that were at 18:54 GMT?.It is not neccessary to use all the tables. |
SELECT AVG Apps FROM table WHERE Player = gilberto AND Goals > 1 | CREATE TABLE INST, Here is a database schema( table schema); | How many Apps did Player Gilberto with more than 1 Goals have?.It is not neccessary to use all the tables. |
SELECT AVG Year FROM table WHERE Score = 270 | CREATE TABLE INST, Here is a database schema( table schema); | What was the average year during which the score was 270?.It is not neccessary to use all the tables. |
SELECT COUNT U.S. viewers (million) FROM table WHERE Written by = Chris Sheridan & Danny Smith | CREATE TABLE INST, Here is a database schema( table schema); | how many u.s. viewers (million) have seen a production written by chris sheridan & danny smith.It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'bradycardia' AND DATETIME(diagnosis.diagnosistime) >= DATETIME(CURRENT_TIME(), '-4 year')) AS t1 JOIN (SELEC... | CREATE TABLE INST, Here is a database schema( table schema); | how many patients have been treated with physical restraints in the same month after being diagnosed with bradycardia since 4 years ago?It is not neccessary to use all the tables. |
SELECT 02:00 AM FROM table WHERE Time = thursday | CREATE TABLE INST, Here is a database schema( table schema); | What is the show on Thursday when the time is 02:00 AM?.It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Score = 4–6, 2–6 | CREATE TABLE INST, Here is a database schema( table schema); | Which date has a Score of 4–6, 2–6?.It is not neccessary to use all the tables. |
SELECT Birthplace FROM table WHERE Position = f AND Height (cm) > 175 AND NHL rights, if any = calgary flames | CREATE TABLE INST, Here is a database schema( table schema); | What is the birthplace of the player with Calgary Flames NHL rights, plays the f position, and has a height taller than 175 cm?.It is not neccessary to use all the tables. |
SELECT us_viewers__millions_ FROM table_23294081_11 WHERE no = 226 | CREATE TABLE INST, Here is a database schema( table schema); | How many millions of people in the US saw the episode number 226?It is not neccessary to use all the tables. |
SELECT 1st Member FROM table WHERE 2nd Party = conservative AND Election = 1859 | CREATE TABLE INST, Here is a database schema( table schema); | Which 1st Member has an election in 1859 and a conservative 2nd Party?.It is not neccessary to use all the tables. |
SELECT League FROM table WHERE School = Delaware Military Academy | CREATE TABLE INST, Here is a database schema( table schema); | What league does Delaware Military Academy belong to.It is not neccessary to use all the tables. |
SELECT position FROM table_name_81 WHERE college_junior_club_team = "hull olympiques (qmjhl)" | CREATE TABLE INST, Here is a database schema( table schema); | Can you tell me the Position that has the College/Junior/Club Team of hull olympiques (qmjhl)?It is not neccessary to use all the tables. |
SELECT Win-Loss FROM table WHERE Win % = .456 | CREATE TABLE INST, Here is a database schema( table schema); | What is Win-Loss, when Win % is .456?.It is not neccessary to use all the tables. |
SELECT AVG Roll FROM table WHERE Authority = state AND Decile = 9 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average roll of a school with state authority and a decile of 9?.It is not neccessary to use all the tables. |
SELECT year_in_novel FROM table_name_18 WHERE published_as_serial = "november 1934-april 1935, blue book" | CREATE TABLE INST, Here is a database schema( table schema); | Which year in novel has a Published as serial of november 1934-april 1935 blue book?It is not neccessary to use all the tables. |
SELECT Outcome FROM table WHERE Score in the final = 4–6, 4–6 AND Date = october 21, 1990 | CREATE TABLE INST, Here is a database schema( table schema); | Name the Outcome which has a Score in the final of 4–6, 4–6 on october 21, 1990?.It is not neccessary to use all the tables. |
SELECT MAX(laps) FROM table_name_82 WHERE grid = 7 | CREATE TABLE INST, Here is a database schema( table schema); | What is the highest laps for the grid of 7?It is not neccessary to use all the tables. |
SELECT team FROM table_name_14 WHERE driver = "narain karthikeyan" | CREATE TABLE INST, Here is a database schema( table schema); | For what Team is Narain Karthikeyan the Driver?It is not neccessary to use all the tables. |
SELECT MAX(bronze) FROM table_name_44 WHERE rank > 1 AND nation = "dominican republic" AND total > 4 | CREATE TABLE INST, Here is a database schema( table schema); | Which Bronze is the highest one that has a Rank larger than 1, and a Nation of dominican republic, and a Total larger than 4?It is not neccessary to use all the tables. |
SELECT COUNT Highest FROM table WHERE Lowest = 16415 | CREATE TABLE INST, Here is a database schema( table schema); | How many highest figures for the team with lowest of 16415?.It is not neccessary to use all the tables. |
SELECT name FROM table_16799784_2 WHERE latitude = "36.0N" | CREATE TABLE INST, Here is a database schema( table schema); | Name the name of 36.0nIt is not neccessary to use all the tables. |
SELECT "Team" FROM table_842 WHERE "Record" = '45-36' | CREATE TABLE INST, Here is a database schema( table schema); | Who did the Raptors play when their record was 45-36?It is not neccessary to use all the tables. |
SELECT MIN(apps) FROM table_name_29 WHERE club = "barcelona" AND season = "1996/97" AND rank < 7 | CREATE TABLE INST, Here is a database schema( table schema); | Which Apps have a Club of barcelona and a Season of 1996/97 and a Rank smaller than 7?It is not neccessary to use all the tables. |
SELECT Candidates FROM table WHERE District = New York 10 | CREATE TABLE INST, Here is a database schema( table schema); | who are the candidates for district new york 10?.It is not neccessary to use all the tables. |
SELECT outcome FROM table_name_61 WHERE championship = "us championships" AND score_in_the_final = "5–7, 6–1, 6–3, 6–3" | CREATE TABLE INST, Here is a database schema( table schema); | Which Outcome has a Championship of us championships and a Score in the final of 5–7 6–1 6–3 6–3?It is not neccessary to use all the tables. |
SELECT SUM Round FROM table WHERE Time = 6:04 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total number of Round that has a Time of 6:04?.It is not neccessary to use all the tables. |
SELECT MAX(games) FROM table_name_27 WHERE goals_against < 14 AND wins > 1 AND draws < 2 AND goals_for = 3 | CREATE TABLE INST, Here is a database schema( table schema); | what's the number of games with a Goals Against smaller than 14, and a Wins larger than 1, and a Draws smaller than 2, and a Goals For of 3?It is not neccessary to use all the tables. |
SELECT React FROM table WHERE Lane = 3 AND Heat = 2 | CREATE TABLE INST, Here is a database schema( table schema); | what is the react when the lane is 3 and heat is 2?.It is not neccessary to use all the tables. |
SELECT first_elected FROM table_1434788_5 WHERE incumbent = "John Thomas Wilson" | CREATE TABLE INST, Here is a database schema( table schema); | When was incumbent John Thomas Wilson first elected?It is not neccessary to use all the tables. |
SELECT line FROM table_name_95 WHERE colour = "green" | CREATE TABLE INST, Here is a database schema( table schema); | Which line was green?It is not neccessary to use all the tables. |
SELECT COUNT Game site FROM table WHERE Opponent = Barcelona Dragons | CREATE TABLE INST, Here is a database schema( table schema); | In how many locations was the game against Barcelona Dragons played?.It is not neccessary to use all the tables. |
SELECT MAX Population (2006) FROM table WHERE Mother Tongue = romanian | CREATE TABLE INST, Here is a database schema( table schema); | How many people ha Romanian as their mother tongue in 2006?.It is not neccessary to use all the tables. |
SELECT class FROM table_name_32 WHERE year_s__of_manufacture = "1899" | CREATE TABLE INST, Here is a database schema( table schema); | Which Class has a Year(s) of Manufacture of 1899?It is not neccessary to use all the tables. |
SELECT State FROM table WHERE Hometown = lincoln, de | CREATE TABLE INST, Here is a database schema( table schema); | What state has lincoln, de as the hometown?.It is not neccessary to use all the tables. |
SELECT opponent FROM table_name_78 WHERE result = "l 17–24" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the Opponent with a Result of l 17–24?It is not neccessary to use all the tables. |
SELECT driver FROM table_name_48 WHERE race_2 = "14" | CREATE TABLE INST, Here is a database schema( table schema); | What is Driver when Race 2 is 14?It is not neccessary to use all the tables. |
SELECT country FROM table_name_22 WHERE player = "george archer" | CREATE TABLE INST, Here is a database schema( table schema); | Which country is George Archer from?It is not neccessary to use all the tables. |
SELECT result FROM table_name_75 WHERE date = "october 12, 2005" | CREATE TABLE INST, Here is a database schema( table schema); | What is the result foe October 12, 2005?It is not neccessary to use all the tables. |
SELECT COUNT(against) FROM table_name_20 WHERE status = "first test" | CREATE TABLE INST, Here is a database schema( table schema); | How many against have a status of first test?It is not neccessary to use all the tables. |
SELECT Cabinet FROM table WHERE Year > 1981 AND Fractievoorzitter = hans van mierlo AND Chair = w.i.j.m. vrijhoef | CREATE TABLE INST, Here is a database schema( table schema); | What is Cabinet, when Year is after 1981, when Fractievoorzitter is "Hans Van Mierlo", and when Chair is "W.I.J.M. Vrijhoef"?.It is not neccessary to use all the tables. |
SELECT score FROM table_23248910_9 WHERE record = "46-25" | CREATE TABLE INST, Here is a database schema( table schema); | What is every score with a record of 46-25?It is not neccessary to use all the tables. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.